/* ==========================================================
   TLA Adventures — Vive Mazamitla
   Sistema de diseño basado en la paleta y variables provistas
   ========================================================== */

:root {
  /* Fondos */
  --color-bg: #020807;
  --color-sidebar: #030706;
  --color-panel: #06100c;
  --color-panel-secondary: #0a130f;
  --color-surface: #101710;

  /* Verde */
  --color-primary: #7f8f3c;
  --color-primary-light: #9aaa4a;
  --color-primary-dark: #435226;
  --color-nav-active: #3d4f25;

  /* Dorado */
  --color-border: #6a5b25;
  --color-border-light: #87732d;
  --color-map-line: #9d792d;
  --color-divider: #302d19;

  /* Texto */
  --color-heading: #f0eee8;
  --color-text: #d3d1ca;
  --color-muted: #aaa9a2;
  --color-disabled: #74766f;
  --color-text-green: #84943d;
  --color-price: #95a548;

  /* Botones */
  --color-button: #778840;
  --color-button-hover: #92a34d;
  --color-button-text: #f5f4ed;

  /* Tipografías */
  --font-display: "Bebas Neue", sans-serif;
  --font-heading: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;

  --sidebar-w: 180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ================= Layout ================= */

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.main {
  min-width: 0;
}

/* ================= Barra lateral ================= */

.sidebar {
  width: var(--sidebar-w);
  background: var(--color-sidebar);
  border-right: 1px solid #4c4e47;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-logo {
  padding: 28px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--color-divider);
}

.sidebar-logo svg { width: 88px; height: auto; }

.logo-word {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 0.42em;
  margin-left: 0.42em;
  color: var(--color-heading);
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-heading);
  font-size: 8.5px;
  letter-spacing: 0.34em;
  color: var(--color-muted);
  text-transform: uppercase;
  position: relative;
  padding: 0 14px;
}
.logo-sub::before,
.logo-sub::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--color-divider);
}
.logo-sub::before { left: 0; }
.logo-sub::after { right: 0; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding-top: 14px;
  flex: 1;
}

.sidebar-item {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  color: var(--color-text);
  border-left: 8px solid transparent;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}

.sidebar-item svg {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: currentColor;
}

.sidebar-item:hover {
  background: rgba(127, 143, 60, 0.12);
}

.sidebar-item.active {
  color: var(--color-primary-light);
  background: linear-gradient(
    90deg,
    #425426 0%,
    #29371c 60%,
    rgba(41, 55, 28, 0.8) 100%
  );
  border-left-color: var(--color-primary-light);
}

.sidebar-item.active svg { stroke: #96a73f; }

.sidebar-footer {
  border-top: 1px solid var(--color-divider);
  padding-bottom: 8px;
}

/* ================= Botones ================= */

.primary-button {
  min-height: 34px;
  padding: 8px 24px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #697a39, #879648);
  color: var(--color-button-text);
  font-family: var(--font-heading);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.18s ease, transform 0.15s ease;
}

.primary-button:hover {
  background: linear-gradient(90deg, #809143, #9aaa52);
}

.primary-button:active { transform: translateY(1px); }

.primary-button .arrow { font-family: var(--font-body); }

.button-lg {
  min-height: 56px;
  padding: 12px 34px;
  border-radius: 8px;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}
.button-lg small {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #e9ecdc;
}

/* ================= Utilidades tipográficas ================= */

.eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-green);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--color-text-green);
}

.display-title {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 0.95;
  letter-spacing: 0.015em;
}

.display-title .accent { color: var(--color-primary); }

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 34px 0 20px;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}
.section-divider h2 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-heading);
  white-space: nowrap;
}
.section-divider h2 .accent { color: var(--color-primary); }

/* ================= Página: Mapa (landing) ================= */

.hero-map {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 8, 7, 0.94) 0%, rgba(2, 8, 7, 0.55) 34%, rgba(2, 8, 7, 0) 60%),
    url("assets/mapa_landing.png") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 70px 56px;
  max-width: 620px;
}

.hero-content .display-title {
  font-size: clamp(56px, 7.5vw, 106px);
  margin: 18px 0 10px;
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 22px;
  color: var(--color-text-green);
}
.hero-rule::before,
.hero-rule::after {
  content: "";
  width: 86px;
  height: 1px;
  background: var(--color-divider);
}

.hero-lede {
  font-size: 19px;
  color: var(--color-text);
  max-width: 320px;
  margin-bottom: 30px;
}

/* Banner inferior */

.bottom-band {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) 1.6fr auto;
  align-items: stretch;
  border-top: 1px solid var(--color-divider);
  background: var(--color-panel);
}

.band-photo {
  position: relative;
  clip-path: polygon(0 0, 100% 0, calc(100% - 46px) 100%, 0 100%);
  background: url("assets/banner_aventura.png") center / cover no-repeat;
  min-height: 190px;
  display: flex;
  align-items: center;
}

.band-photo-inner {
  padding: 26px 60px 26px 46px;
  background: linear-gradient(90deg, rgba(2, 8, 7, 0.72), rgba(2, 8, 7, 0.15));
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.band-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-text-green);
  display: flex;
  align-items: center;
  gap: 10px;
}
.band-eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--color-text-green);
}

.band-photo-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  color: var(--color-heading);
  margin: 8px 0 4px;
  letter-spacing: 0.03em;
}

.band-photo-inner p { color: var(--color-text); font-size: 14px; }

.band-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.band-feature {
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--color-divider);
}
.band-feature:first-child { border-left: 1px solid var(--color-divider); }

.band-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  display: grid;
  place-items: center;
  color: var(--color-primary-light);
}
.band-icon svg { width: 22px; height: 22px; stroke: currentColor; }

.band-feature h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-green);
}

.band-feature p { font-size: 12.5px; color: var(--color-muted); max-width: 170px; }

.band-cta {
  display: flex;
  align-items: center;
  padding: 26px 34px;
}

/* ================= Encabezado interior (actividades / atractivos) ================= */

.page-header {
  position: relative;
  padding: 46px 56px 30px;
  background:
    linear-gradient(90deg, var(--color-bg) 42%, rgba(2, 8, 7, 0.45) 68%, rgba(2, 8, 7, 0.1) 100%),
    url("assets/network_bg.png") right top / auto 115% no-repeat;
  border-bottom: 1px solid var(--color-divider);
}

.page-header .display-title {
  font-size: clamp(40px, 4.6vw, 62px);
  margin: 12px 0 10px;
}

.page-header .lede {
  max-width: 480px;
  color: var(--color-text);
  font-size: 15px;
}

/* ================= Tarjetas ================= */

.card {
  background: linear-gradient(180deg, #09130f 0%, #040b08 100%);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.card-description { color: var(--color-text); font-size: 13.5px; }

.card-meta {
  color: var(--color-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-meta svg { width: 16px; height: 16px; stroke: currentColor; }

.card-price {
  color: var(--color-primary-light);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.card-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.06em;
}

.card .primary-button { margin-top: auto; }

/* ================= Página: Actividades ================= */

.content { padding: 30px 56px 60px; }

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.activity-row {
  display: grid;
  grid-template-columns: 1.6fr 1.15fr;
  gap: 22px;
  margin-top: 22px;
}

.card-horizontal {
  flex-direction: row;
  align-items: stretch;
}

.card-horizontal .card-image {
  width: 52%;
  aspect-ratio: auto;
  height: 100%;
  min-height: 230px;
}

.card-horizontal .card-body { justify-content: center; gap: 12px; }

.card-heli {
  position: relative;
  justify-content: flex-end;
  min-height: 250px;
  background:
    linear-gradient(90deg, rgba(4, 11, 8, 0.9) 0%, rgba(4, 11, 8, 0.35) 55%, rgba(4, 11, 8, 0.05) 100%),
    url("assets/helicoptero.png") center / cover no-repeat;
}

.card-heli .card-body {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  max-width: 330px;
}

.card-heli .card-title { font-size: 24px; color: var(--color-primary-light); }

/* Accesorios */

.accessories {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-panel-secondary);
  margin-top: 26px;
  padding: 20px 24px 24px;
}

.accessories-title {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.accessories-title::before,
.accessories-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}
.accessories-title .accent { color: var(--color-primary); }

.accessories-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 20px;
  align-items: stretch;
}

.accessory {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--color-divider);
  border-radius: 12px;
  background: linear-gradient(180deg, #09130f, #040b08);
  overflow: hidden;
}

.accessory-img {
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  background: var(--color-surface);
}

.accessory-placeholder {
  height: 100%;
  min-height: 130px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(127, 143, 60, 0.18), transparent 60%),
    var(--color-surface);
  color: var(--color-primary-light);
}
.accessory-placeholder svg { width: 52px; height: 52px; stroke: currentColor; }

.accessory-info { padding: 16px 18px 16px 0; }

.accessory-info h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 17px;
  color: var(--color-heading);
}

.accessory-price {
  color: var(--color-price);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 6px;
}
.accessory-price small { font-size: 12px; font-weight: 400; color: var(--color-muted); }

.accessory-info p { font-size: 12.5px; color: var(--color-muted); }

.included-badge {
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(127, 143, 60, 0.08), rgba(4, 11, 8, 0.4));
}

.included-badge svg { width: 44px; height: 44px; stroke: var(--color-primary-light); }

.included-badge p {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-text-green);
  line-height: 1.4;
}
.included-badge p strong { color: var(--color-heading); font-weight: 600; display: block; }

/* ================= Página: Atractivos ================= */

.attractions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.attraction-card .card-body { padding: 12px 14px 14px; gap: 6px; }
.attraction-card .card-title { font-size: 16.5px; }

.routes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.route-card .card-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
}

.route-card .card-description { font-size: 12.5px; }

.route-stats {
  margin-top: auto;
  border-top: 1px solid var(--color-divider);
  padding-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.route-stat {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11.5px;
  color: var(--color-muted);
}
.route-stat svg { width: 16px; height: 16px; flex: none; stroke: var(--color-primary-light); margin-top: 1px; }
.route-stat strong { display: block; color: var(--color-text); font-weight: 500; }

/* Incluye */

.includes {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-panel-secondary);
  margin-top: 30px;
  padding: 18px 22px 22px;
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

.include-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 10px 8px;
  border-right: 1px solid var(--color-divider);
  font-size: 12px;
  color: var(--color-text);
}
.include-item:last-child { border-right: 0; }
.include-item svg { width: 30px; height: 30px; stroke: var(--color-primary-light); }

/* ================= Responsive ================= */

@media (max-width: 1280px) {
  .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
  .attractions-grid { grid-template-columns: repeat(3, 1fr); }
  .routes-grid { grid-template-columns: repeat(2, 1fr); }
  .includes-grid { grid-template-columns: repeat(4, 1fr); }
  .include-item:nth-child(4n) { border-right: 0; }
  .bottom-band { grid-template-columns: 1fr; }
  .band-photo { clip-path: none; }
  .band-cta { justify-content: center; padding-top: 0; }
  .accessories-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #4c4e47;
    overflow-x: auto;
  }
  .sidebar-logo { border-bottom: 0; padding: 14px 18px; flex: none; }
  .logo-word { font-size: 24px; }
  .sidebar-logo svg { width: 54px; }
  .sidebar-nav { flex-direction: row; padding-top: 0; }
  .sidebar-item {
    min-height: 56px;
    border-left: 0;
    border-bottom: 4px solid transparent;
    padding: 0 14px;
    white-space: nowrap;
  }
  .sidebar-item.active { border-left: 0; border-bottom-color: var(--color-primary-light); }
  .sidebar-footer { border-top: 0; padding-bottom: 0; display: flex; flex-direction: row; }

  .hero-content, .page-header, .content { padding-left: 24px; padding-right: 24px; }
  .hero-map {
    background:
      linear-gradient(180deg, rgba(2, 8, 7, 0.88) 0%, rgba(2, 8, 7, 0.45) 100%),
      url("assets/mapa_landing.png") center / cover no-repeat;
  }
  .activity-row { grid-template-columns: 1fr; }
  .card-horizontal { flex-direction: column; }
  .card-horizontal .card-image { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
  .band-features { grid-template-columns: 1fr; }
  .band-feature { border: 0; border-bottom: 1px solid var(--color-divider); }
  .band-feature:first-child { border-left: 0; }
}

@media (max-width: 640px) {
  .vehicles-grid, .attractions-grid, .routes-grid { grid-template-columns: 1fr; }
  .includes-grid { grid-template-columns: repeat(2, 1fr); }
  .include-item:nth-child(2n) { border-right: 0; }
  .accessory { grid-template-columns: 1fr; }
  .accessory-info { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ================= Ocultar temporalmente (Etapa 1) ================= */

.sidebar-item.is-hidden { display: none; }

/* ================= Modal de reserva ================= */

button.primary-button {
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-heading);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 7, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: linear-gradient(180deg, #09130f 0%, #040b08 100%);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  padding: 28px 26px 26px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 0;
  color: var(--color-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--color-heading); }

.modal-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--color-primary-light);
  margin-bottom: 20px;
}

.modal-field { margin-bottom: 16px; }

.modal-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.modal-field input,
.modal-field select {
  width: 100%;
  padding: 10px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 6px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
}
.modal-field input:focus,
.modal-field select:focus {
  outline: none;
  border-color: var(--color-primary-light);
}

.modal-error {
  color: #c96b4a;
  font-size: 12px;
  margin-top: -6px;
  margin-bottom: 14px;
  display: none;
}
.modal-error.active { display: block; }

.modal-submit { width: 100%; margin-top: 6px; }

/* ================= Contacto y Mi cuenta ================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: start;
}

.contact-list { list-style: none; }
.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
  font-size: 14px;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-green);
  margin-bottom: 4px;
}

.form-card .card-body { padding: 22px; }
.form-card .card-title { margin-bottom: 6px; }
.form-card .modal-submit { margin-top: 10px; }

.centered-card {
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ================= Carrito ================= */

.cart-toggle {
  cursor: pointer;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
}

.cart-badge {
  background: var(--color-primary-light);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  margin-left: auto;
}
.cart-badge.is-empty { display: none; }

.cart-box { max-width: 480px; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
}
.cart-item:last-child { border-bottom: 0; }

.cart-item-info h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-heading);
  margin-bottom: 4px;
}
.cart-item-info p {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.5;
}
.cart-item-price {
  font-family: var(--font-heading);
  color: var(--color-primary-light);
  font-size: 15px;
  white-space: nowrap;
}
.cart-item-remove {
  background: none;
  border: 0;
  color: var(--color-muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
}
.cart-item-remove:hover { color: #c96b4a; }

.cart-empty {
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
  padding: 30px 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  margin: 4px 0 18px;
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-size: 15px;
}
.cart-total strong {
  font-size: 24px;
  color: var(--color-primary-light);
}

.accessory-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text);
  padding: 8px 0;
  cursor: pointer;
}
.accessory-check input { width: auto; }
.accessory-check small { color: var(--color-muted); margin-left: 2px; }

.secondary-button {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-bottom: 10px;
}
.secondary-button:hover {
  border-color: var(--color-border-light);
  color: var(--color-heading);
}

/* ================= TEMA BLANCO (aprobado por cliente) ================= */

:root {
  --color-bg: #f6f5ef;
  --color-sidebar: #ffffff;
  --color-panel: #ffffff;
  --color-panel-secondary: #f1efe6;
  --color-surface: #ece9dd;

  --color-primary: #6b7a35;
  --color-primary-light: #7f8f3c;
  --color-primary-dark: #435226;
  --color-nav-active: #e7ecd8;

  --color-border: #cdbf8c;
  --color-border-light: #ded2a0;
  --color-map-line: #b08f3a;
  --color-divider: #e3ddc8;

  --color-heading: #1c1f17;
  --color-text: #43453a;
  --color-muted: #7a7c6e;
  --color-disabled: #a8aa9a;
  --color-text-green: #5c6b2e;
  --color-price: #4f5e28;

  --color-button: #6b7a35;
  --color-button-hover: #566023;
  --color-button-text: #f8f7f1;
}

.sidebar { border-right: 1px solid var(--color-divider); }

.sidebar-item:hover { background: rgba(107, 122, 53, 0.08); }

.sidebar-item.active {
  background: var(--color-nav-active);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
}
.sidebar-item.active svg { stroke: var(--color-primary); }

.card {
  background: #ffffff;
  border-color: var(--color-border);
}
.card:hover {
  border-color: var(--color-border-light);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.modal-box {
  background: #ffffff;
  border-color: var(--color-border);
}

.modal-field input,
.modal-field select {
  background: var(--color-surface);
  border-color: var(--color-divider);
  color: var(--color-text);
}

.accessory {
  background: #ffffff;
  border-color: var(--color-divider);
}

.accessory-placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(107, 122, 53, 0.12), transparent 60%),
    var(--color-surface);
}

.included-badge {
  background: linear-gradient(180deg, rgba(127, 143, 60, 0.10), rgba(127, 143, 60, 0.02));
  border-color: var(--color-border-light);
}

.accessories,
.includes {
  background: var(--color-panel-secondary);
  border-color: var(--color-border);
}

/* Las secciones sobre fotos mantienen texto claro, sin importar el tema */
.hero-content {
  --color-heading: #f0eee8;
  --color-text: #d3d1ca;
  --color-text-green: #9aaa4a;
  --color-primary: #9aaa4a;
  --color-primary-light: #9aaa4a;
}

.band-photo-inner {
  --color-heading: #f0eee8;
  --color-text: #d3d1ca;
  --color-text-green: #9aaa4a;
}

.card-heli .card-body {
  --color-heading: #f0eee8;
  --color-muted: #cfd0c6;
  --color-primary-light: #9aaa4a;
}

.sidebar-logo svg { stroke: var(--color-heading); }

.card-heli {
  background:
    linear-gradient(90deg, rgba(4, 11, 8, 0.9) 0%, rgba(4, 11, 8, 0.35) 55%, rgba(4, 11, 8, 0.05) 100%),
    url("assets/helicoptero.png") center / cover no-repeat;
}

/* Hero claro: overlay y texto ajustados a la ilustracion de mapa */
.hero-map {
  background:
    linear-gradient(90deg, rgba(246, 245, 239, 0.96) 0%, rgba(246, 245, 239, 0.55) 34%, rgba(246, 245, 239, 0) 60%),
    url("assets/mapa_landing.png") center right / cover no-repeat;
}

.hero-content {
  --color-heading: #1c1f17;
  --color-text: #43453a;
  --color-text-green: #5c6b2e;
  --color-primary: #6b7a35;
  --color-primary-light: #6b7a35;
}

@media (max-width: 900px) {
  .hero-map {
    background:
      linear-gradient(180deg, rgba(246, 245, 239, 0.92) 0%, rgba(246, 245, 239, 0.5) 100%),
      url("assets/mapa_landing.png") center / cover no-repeat;
  }
}

/* ================= Animaciones y transiciones suaves ================= */

body { animation: fadeInPage 0.45s ease; }
@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay {
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  transform: scale(0.96) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.accessory {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.accessory:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .modal-box { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.band-photo { background-position: 100% 40% !important; background-size: 280% !important; }

.page-header { background: var(--color-bg) !important; }

.site-credit {
  text-align: center;
  padding: 22px 20px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}
.site-credit a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ================= Refinamiento de animaciones ================= */

.card { overflow: hidden; }
.card-image {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card-image {
  transform: scale(1.06);
}

.primary-button .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.primary-button:hover .arrow {
  transform: translateX(5px);
}

.sidebar-item svg {
  transition: transform 0.2s ease;
}
.sidebar-item:hover svg {
  transform: scale(1.08);
}

.cart-badge {
  transition: transform 0.2s ease;
}
.cart-badge.bump {
  animation: badgeBump 0.35s ease;
}
@keyframes badgeBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .card-image, .primary-button .arrow, .sidebar-item svg, .cart-badge { transition: none; animation: none; }
}

/* Evitar zoom automatico de iOS Safari en inputs */
@media (max-width: 900px) {
  .modal-field input,
  .modal-field select {
    font-size: 16px;
  }
}

/* Titulos largos no deben desbordar en mobile */
@media (max-width: 640px) {
  .section-divider {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .section-divider h2,
  .accessories-title {
    white-space: normal;
    font-size: 13px;
    letter-spacing: 0.1em;
    line-height: 1.4;
  }
  .section-divider::before,
  .section-divider::after {
    flex: 1 1 20px;
  }
}

/* ================= Menu hamburguesa mobile ================= */

.mobile-menu-toggle { display: none; }

@media (max-width: 900px) {
  .sidebar {
    flex-wrap: wrap;
    overflow: visible;
  }
  .sidebar-logo {
    flex: 1;
    border-bottom: 0;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 14px;
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    background: none;
    color: var(--color-heading);
    cursor: pointer;
    flex: none;
  }
  .mobile-menu-toggle svg { width: 22px; height: 22px; }

  .sidebar-nav,
  .sidebar-footer {
    display: none;
    width: 100%;
    flex-direction: column;
    overflow-x: visible;
  }
  .sidebar.menu-open .sidebar-nav,
  .sidebar.menu-open .sidebar-footer {
    display: flex;
  }
  .sidebar-item {
    border-left: 0;
    border-bottom: 1px solid var(--color-divider);
    justify-content: flex-start;
    white-space: normal;
  }
  .sidebar-item.active { border-bottom-color: var(--color-primary-light); }
}

/* ================= Rediseño menu mobile ================= */

@media (max-width: 900px) {
  .sidebar {
    flex-wrap: wrap;
    overflow: visible;
    padding: 0;
  }

  .sidebar-logo {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 0;
  }
  .sidebar-logo svg { width: 32px; height: auto; }
  .logo-word { font-size: 17px; letter-spacing: 0.28em; margin-left: 0.28em; }
  .logo-sub { display: none; }

  .mobile-menu-toggle {
    order: 2;
    margin: 10px 14px 10px 0;
  }

  .sidebar-nav,
  .sidebar-footer {
    order: 3;
    background: var(--color-sidebar);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.10);
  }
  .sidebar-nav {
    border-top: 1px solid var(--color-divider);
    padding-top: 4px;
  }
  .sidebar-footer {
    border-top: 0;
    padding-bottom: 6px;
  }

  .sidebar-item {
    min-height: 52px;
    padding: 0 20px;
    border-left: 0;
    border-bottom: 1px solid var(--color-divider);
  }
  .sidebar-item.active {
    background: var(--color-nav-active);
    border-bottom-color: var(--color-divider);
  }
  .cart-badge { margin-left: 8px; }
}

/* Fix real: forzar que el menu ocupe toda su fila en mobile */
@media (max-width: 900px) {
  .sidebar { align-items: flex-start; }
  .sidebar-logo { flex: 0 0 auto; }
  .sidebar-nav,
  .sidebar-footer {
    flex: 1 0 100%;
    width: 100%;
  }
}

/* ================= Drawer lateral mobile (rediseño final) ================= */

@media (max-width: 900px) {
  .sidebar {
    flex-wrap: nowrap;
    align-items: center;
    position: sticky;
    top: 0;
    height: auto;
    overflow: visible;
  }
  .sidebar-logo { flex: 1; }

  .sidebar-nav,
  .sidebar-footer {
    position: fixed;
    left: 0;
    width: 78vw;
    max-width: 300px;
    background: var(--color-sidebar);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.18);
  }
  .sidebar-nav {
    top: 0;
    height: 100vh;
    padding-top: 74px;
    overflow-y: auto;
    border-top: 0;
  }
  .sidebar-footer {
    bottom: 0;
    padding-bottom: 8px;
    border-top: 1px solid var(--color-divider);
  }
  .sidebar.menu-open .sidebar-nav,
  .sidebar.menu-open .sidebar-footer {
    transform: translateX(0);
  }

  .sidebar-item {
    min-height: 52px;
    padding: 0 24px;
    border-left: 0;
    border-bottom: 1px solid var(--color-divider);
    white-space: normal;
  }
  .sidebar-item.active {
    background: var(--color-nav-active);
    border-bottom-color: var(--color-divider);
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 15, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 1150;
  }
  .menu-backdrop.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ================= SIMPLIFICACION FINAL: menu que empuja contenido ================= */

@media (max-width: 900px) {
  .menu-backdrop { display: none !important; }

  .sidebar-nav,
  .sidebar-footer {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    transform: none !important;
    box-shadow: none !important;
    background: var(--color-sidebar);
    flex-direction: column;
    display: none;
  }
  .sidebar-nav {
    border-top: 1px solid var(--color-divider);
    padding-top: 4px;
  }
  .sidebar-footer {
    border-top: 1px solid var(--color-divider);
    padding-bottom: 6px;
  }
  .sidebar.menu-open .sidebar-nav,
  .sidebar.menu-open .sidebar-footer {
    display: flex !important;
  }
}

/* ================= FIX DEFINITIVO: forzar wrap y ancho completo ================= */

@media (max-width: 900px) {
  .sidebar {
    flex-wrap: wrap !important;
  }
  .sidebar-nav,
  .sidebar-footer {
    flex: 1 1 100% !important;
  }
}

/* Devolver z-index seguro al sidebar (ya sin backdrop que compita) */
@media (max-width: 900px) {
  .sidebar {
    z-index: 100 !important;
    background: var(--color-sidebar);
  }
}

.accessory-note {
  font-size: 12.5px;
  color: var(--color-text-green);
  background: rgba(127, 143, 60, 0.08);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 4px;
}

/* ================= Calendario de disponibilidad ================= */

.calendar-trigger {
  width: 100%;
  padding: 10px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 6px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.calendar-trigger:hover { border-color: var(--color-border-light); }

.calendar-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  padding: 14px;
  margin-top: 6px;
}
.calendar-panel.active { display: block; }

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.calendar-header button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-divider);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-heading);
}
.calendar-header span {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.calendar-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.calendar-legend span { display: flex; align-items: center; gap: 4px; }
.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.cal-dot.verde { background: #7f8f3c; }
.cal-dot.amarillo { background: #d4a72c; }
.cal-dot.rojo { background: #b0533f; }

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-weekdays {
  font-size: 10px;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 4px;
}

.cal-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  background: var(--color-surface);
  color: var(--color-text);
}
.cal-day.verde { background: rgba(127, 143, 60, 0.18); color: #435226; }
.cal-day.amarillo { background: rgba(212, 167, 44, 0.22); color: #7a5f10; }
.cal-day.rojo { background: rgba(176, 83, 63, 0.18); color: #7a3524; cursor: not-allowed; opacity: 0.6; }
.cal-day.pasado { opacity: 0.3; cursor: not-allowed; background: transparent; }
.cal-day.vacio { background: transparent; cursor: default; }
.cal-day.seleccionado { outline: 2px solid var(--color-primary); font-weight: 600; }
.cal-day:hover:not(.rojo):not(.pasado):not(.vacio) { outline: 1px solid var(--color-primary-light); }

/* Reacomodo: fila de 3 tarjetas parejas (Maverick 2p, Defender Max, Heli) */
.activity-row { grid-template-columns: repeat(3, 1fr) !important; }

/* ================= Modal de reserva por pasos (wizard) ================= */

.wizard-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.wizard-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-divider);
}
.wizard-dot.activo { background: var(--color-primary); }
.wizard-dot.completado { background: var(--color-primary-light); }

.wizard-step { display: none; }
.wizard-step.activo { display: block; }

.wizard-step-title {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-green);
  margin-bottom: 14px;
}

.wizard-vehiculo-resumen {
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}
.wizard-vehiculo-resumen h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--color-heading);
  margin-bottom: 4px;
}
.wizard-vehiculo-resumen p {
  color: var(--color-primary-light);
  font-size: 14px;
}

.wizard-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.wizard-nav .secondary-button { margin-top: 0; flex: 1; }
.wizard-nav .primary-button { flex: 2; }
