/* ==========================================================================
   CityMovers.cl — Hoja de estilos
   Identidad tomada del logo: azul marino, rojo del arco y gris del mapa.
   Tipografías: Fraunces (display serif) + Archivo (grotesk).
   ========================================================================== */

/* ---------- 1. Variables y base ---------- */

:root {
  /* Paleta (derivada del logo real) */
  --navy: #1d2372;        /* azul del wordmark */
  --navy-deep: #131845;
  --navy-950: #0c102f;
  --red: #e2372b;         /* rojo del arco */
  --red-dark: #c02b21;
  --gray-map: #8f9196;    /* gris del mapa de Chile */
  --paper: #f6f4ef;       /* fondo cálido */
  --paper-2: #edeae2;
  --ink: #171a33;
  --white: #ffffff;

  --line: rgba(23, 26, 51, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);

  /* Tipografía */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --h1: clamp(2.5rem, 1.6rem + 4.5vw, 4.75rem);
  --h2: clamp(2rem, 1.5rem + 2.6vw, 3.375rem);
  --h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);

  /* Ritmo */
  --section-y: clamp(4.5rem, 4rem + 6vw, 8.5rem);
  --gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 10px;

  --shadow: 0 18px 50px -18px rgba(12, 16, 47, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* red de seguridad contra desbordes horizontales en móvil */
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.25; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 480;
  color: var(--red);
}

.section-dark h2 em,
.hero h1 em { color: #ff8d84; }

p { margin: 0 0 1em; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--navy); color: var(--white); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- 2. Utilidades ---------- */

.container {
  width: min(100% - clamp(2.5rem, 8vw, 5rem), 74rem);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.section-alt { background: var(--paper-2); }

.section-dark {
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(226, 55, 43, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy-deep), var(--navy-950));
  color: var(--paper);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}

.eyebrow-light { color: rgba(255, 255, 255, 0.9); }
.eyebrow-red { color: #ff9a92; }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.section-lead {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: color-mix(in srgb, currentColor 78%, transparent);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.footnote {
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  margin-top: 2rem;
}

.footnote-light {
  font-size: var(--text-sm);
  color: rgba(246, 244, 239, 0.65);
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-lg { padding: 1.05rem 2.25rem; font-size: 1rem; }

.btn-solid {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(226, 55, 43, 0.55);
}
.btn-solid:hover { background: var(--red-dark); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.btn-quiet {
  border-color: var(--line);
  color: var(--navy);
  background: transparent;
}
.btn-quiet:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover::after { transform: translateX(4px); }

.section-dark .link-arrow { color: #ff9a92; }

.cta-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

/* Aparición al hacer scroll */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .link-arrow, .plan, .wa-float, .fleet-item img, .gallery-btn img,
  .why-list li, .site-nav, .nav-toggle-bar, .nav-toggle-bar::before,
  .nav-toggle-bar::after, .sticky-cta { transition: none; }
  .marquee-track { animation: none; }
  .btn:hover, .plan:hover, .wa-float:hover { transform: none; }
  .fleet-item:hover img,
  .gallery-btn:hover img,
  .gallery-btn:focus-visible img { transform: none; filter: none; }
}

/* ---------- 3. Cabecera ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  color: var(--white);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  /* Sin backdrop-filter: crea un containing block y el menú fijo
     dejaría de cubrir el viewport (solo la barra del header). */
  background: rgba(12, 16, 47, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  line-height: 1;
}

.brand-word {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.brand-word i {
  font-style: normal;
  color: var(--gray-map);
  font-weight: 400;
  margin-inline: 1px;
}

.brand-arc {
  width: 100%;
  height: 7px;
  color: var(--red);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  list-style: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.site-nav a:not(.btn) {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.2s;
  position: relative;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:not(.btn):hover { opacity: 1; }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-cta { padding: 0.65rem 1.4rem; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle-bar { top: calc(50% - 1px); }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateX(-50%) translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

/* ---------- 4. Hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 60rem);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
  z-index: -2;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 16, 47, 0.92) 0%, rgba(12, 16, 47, 0.45) 45%, rgba(12, 16, 47, 0.35) 100%),
    linear-gradient(100deg, rgba(12, 16, 47, 0.75) 0%, rgba(12, 16, 47, 0.15) 60%);
}

.hero-content {
  padding-block: clamp(8rem, 20vh, 12rem) clamp(3rem, 6vh, 5rem);
  max-width: 62rem;
}

.hero h1 { max-width: 15ch; }

.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 46ch;
  color: rgba(246, 244, 239, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-micro {
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: rgba(246, 244, 239, 0.62);
  max-width: 52ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 2.75rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-light);
}

.hero-badges div { margin: 0; }

.hero-badges dt {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 550;
  letter-spacing: -0.01em;
}

.hero-badges dd {
  margin: 0.15rem 0 0;
  font-size: var(--text-sm);
  color: rgba(246, 244, 239, 0.68);
}

/* ---------- 5. Cinta / marquee ---------- */

.marquee {
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  padding-block: 0.9rem;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee .dot { color: var(--red); font-style: normal; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}


/* ---------- 6. Presentación (split) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 3vw + 1rem, 5rem);
  align-items: center;
}

.split-text h2 { max-width: 18ch; }

.split-media {
  margin: 0;
  position: relative;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-media::before {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 60%;
  height: 60%;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  z-index: -1;
}

.split-media figcaption {
  margin-top: 0.9rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

/* ---------- 7. Servicios ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.plan-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  font-style: italic;
  color: color-mix(in srgb, var(--gray-map) 55%, transparent);
  margin: 0 0 0.75rem;
  line-height: 1;
}

.plan h3 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.plan-short {
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  min-height: 3.2em;
}

.plan-list {
  list-style: none;
  margin: 0.5rem 0 1.75rem;
  flex-grow: 1;
  display: grid;
  gap: 0.6rem;
}

.plan-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--red);
}

.plan-featured {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-950) 100%);
  color: var(--paper);
  border-color: transparent;
}

.plan-featured .plan-num { color: rgba(255, 255, 255, 0.35); }
.plan-featured .plan-short { color: rgba(246, 244, 239, 0.8); }
.plan-featured .plan-list li::before { background: #ff8d84; }

.plan-tag {
  position: absolute;
  top: -0.85rem;
  right: 1.5rem;
  margin: 0;
  padding: 0.35rem 0.9rem;
  background: var(--red);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.services-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: var(--gap);
}

.extra-card {
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.extra-card:hover {
  background: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.extra-card p { color: color-mix(in srgb, var(--ink) 75%, transparent); }

.chooser {
  margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  padding: clamp(1.75rem, 1.5rem + 1.5vw, 3rem);
  border-radius: var(--radius);
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: 0 10px 30px -20px rgba(12, 16, 47, 0.25);
}

.chooser h3 { margin-bottom: 1.25rem; }

.chooser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 1.25rem;
}

.chooser-grid p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}

.chooser-grid strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

/* ---------- 8. Cómo funciona ---------- */

.steps {
  list-style: none;
  counter-reset: paso;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}

.steps li {
  position: relative;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
  line-height: 1;
  color: #ff8d84;
  margin: 0 0 0.9rem;
}

.steps h3 { font-size: 1.2rem; }

.steps p:last-child {
  font-size: var(--text-sm);
  color: rgba(246, 244, 239, 0.72);
  margin-bottom: 0;
}

/* ---------- 9. Por qué CityMovers ---------- */

.why {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 3vw + 1rem, 5rem);
  align-items: start;
}

.why-head { position: sticky; top: 7rem; }
.why-head h2 { max-width: 12ch; }

.why-list {
  list-style: none;
  display: grid;
}

.why-list li {
  padding-block: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.25rem;
  transition: padding-left 0.35s var(--ease);
}

.why-list li:last-child { border-bottom: 1px solid var(--line); }

.why-list li:hover { padding-left: 0.9rem; }

.why-list h3 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.why-list h3::before {
  content: "—";
  color: var(--red);
  font-family: var(--font-body);
}

.why-list p {
  margin: 0.35rem 0 0;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

/* ---------- 10. Flota ---------- */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(11rem, 9rem + 8vw, 17rem);
  gap: var(--gap);
}

.fleet-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 4;
}

.fleet-wide { grid-column: span 8; grid-row: span 2; }
.fleet-tall { grid-column: span 4; grid-row: span 2; }

.fleet-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.fleet-item:hover img { transform: scale(1.045); }

.fleet-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.2rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(12, 16, 47, 0.85), transparent);
  color: var(--paper);
  font-size: var(--text-sm);
  line-height: 1.45;
  overflow-wrap: break-word;
}

.fleet-item figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 550;
  letter-spacing: 0.01em;
}

/* ---------- 11. Galería de trabajos ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.gallery-item { margin: 0; }

.gallery-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-btn img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.gallery-btn:hover img,
.gallery-btn:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.gallery-item figcaption {
  margin-top: 0.7rem;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}

/* Lightbox */

.lightbox {
  border: 0;
  padding: 1.5rem;
  background: transparent;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
}

.lightbox::backdrop {
  background: rgba(12, 16, 47, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox figure {
  margin: 0 auto;
  max-width: min(92vw, 60rem);
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}

.lightbox figcaption {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--paper);
  font-size: var(--text-sm);
}

.lightbox-close {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 1;
  width: 2.75rem;  /* ≥44px de área táctil */
  height: 2.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(12, 16, 47, 0.55);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- 12. Cobertura ---------- */

.cobertura .split { align-items: center; }

.route {
  display: flex;
  gap: 1.5rem;
  padding: clamp(1.75rem, 1.5rem + 1.5vw, 3rem);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.route-line {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--red), var(--gray-map));
  flex-shrink: 0;
}

.route-stops {
  list-style: none;
  display: grid;
  gap: clamp(1.75rem, 1.5rem + 2vw, 3.25rem);
}

.route-stops li {
  position: relative;
  font-size: var(--text-sm);
  color: rgba(246, 244, 239, 0.65);
  display: grid;
  gap: 0.1rem;
}

.route-stops strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  color: var(--paper);
}

.route-dot {
  position: absolute;
  left: calc(-1.5rem - 3px - 0.45rem + 1.5px);
  top: 0.4rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--navy-deep);
}

.route-dot-mid { background: var(--gray-map); }
.route-dot-end { background: var(--paper); }

/* ---------- 13. FAQ ---------- */

.faq-wrap { max-width: 52rem; }

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 1.5rem;
  padding-block: 1.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 520;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary:hover { color: var(--navy); }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--red);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.faq-icon::before { width: 100%; height: 2px; }
.faq-icon::after { width: 2px; height: 100%; }

.faq details[open] .faq-icon::after { transform: rotate(90deg) scaleY(0); }

.faq details p {
  margin: 0 0 1.5rem;
  max-width: 62ch;
  color: color-mix(in srgb, var(--ink) 75%, transparent);
}

/* ---------- 14. Contacto / cotización ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: start;
}

.quote-form {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 1.5rem + 1.5vw, 2.75rem);
  display: grid;
  gap: 1.15rem;
}

.quote-form h3 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, 0.72);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem; /* 16px: evita el zoom automático de iOS al enfocar */
  color: var(--paper);
  background-color: rgba(12, 16, 47, 0.5);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background-color 0.2s;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23f6f4ef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 L6 6 L10.5 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 0.75rem;
  padding-right: 2.4rem;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(246, 244, 239, 0.4); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background-color: rgba(12, 16, 47, 0.75);
}

.field textarea { resize: vertical; min-height: 6rem; }

.quote-form .btn { justify-self: start; }

.form-micro {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: rgba(246, 244, 239, 0.55);
}

.contact-info h3 { font-size: 1.4rem; }

.contact-list {
  list-style: none;
  display: grid;
  gap: 1.4rem;
  margin: 1.75rem 0;
}

.contact-list li { display: grid; gap: 0.2rem; }

.contact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff9a92;
}

.contact-list a,
.contact-list span:not(.contact-label) {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  line-height: 1.4;
}

.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 15. Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(246, 244, 239, 0.78);
  padding-top: var(--section-y);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.footer-logo {
  width: min(15rem, 70%);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: var(--text-sm);
  max-width: 34ch;
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 244, 239, 0.5);
  margin-bottom: 1.1rem;
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-size: var(--text-sm);
}

.footer-nav a,
.footer-contact a {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.footer-nav a:hover,
.footer-contact a:hover { opacity: 1; color: #ff9a92; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
}

.footer-bottom p { margin: 0; }

.to-top {
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
}
.to-top:hover { opacity: 1; }

/* ---------- 16. WhatsApp flotante ---------- */

.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: #25d366;
  color: #073c1e;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(7, 60, 30, 0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 36px -10px rgba(7, 60, 30, 0.55);
}

.wa-float svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

/* ---------- 16b. Barra de cotización fija (solo móvil) ---------- */

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 85;
  display: none;
  padding: 0.6rem clamp(1rem, 4vw, 1.5rem) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(12, 16, 47, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(0);
  transition: transform 0.35s var(--ease);
}

.sticky-cta .btn {
  flex: 1;
  min-height: 2.75rem;
}

/* Se oculta cuando el formulario está a la vista, para no taparlo */
body.at-form .sticky-cta { transform: translateY(110%); }

/* ---------- 17. Responsive ---------- */

@media (max-width: 64rem) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-featured { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr; }
  .why-head { position: static; }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    overflow-y: auto;
    padding-block: 5.5rem 3rem;
    background:
      radial-gradient(120% 140% at 85% -20%, rgba(226, 55, 43, 0.2), transparent 55%),
      var(--navy-950);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1.6rem;
    text-align: center;
  }

  .site-nav a:not(.btn) {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    opacity: 1;
  }
}

@media (max-width: 48rem) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .presentacion .split-media { order: 0; }

  .plans { grid-template-columns: 1fr; }
  .services-extra { grid-template-columns: 1fr; }
  .chooser-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }

  .fleet-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 12rem; }
  .fleet-item, .fleet-wide, .fleet-tall { grid-column: span 2; grid-row: span 2; }
  .fleet-item:not(.fleet-wide):not(.fleet-tall) { grid-column: span 1; grid-row: span 1; }

  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-badges { gap: 1.5rem 2.5rem; }
  .wa-float-text { display: none; }

  /* La barra de cotización aparece y WhatsApp sube para no chocar con ella */
  .sticky-cta { display: flex; }

  .wa-float {
    padding: 0.95rem;
    bottom: calc(4.35rem + env(safe-area-inset-bottom));
  }

  body.at-form .wa-float { bottom: clamp(1rem, 3vw, 1.75rem); }

  /* Que el pie de página no quede escondido tras la barra fija */
  .site-footer { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }

  /* Áreas táctiles ≥44px en enlaces secundarios */
  .link-arrow { min-height: 2.75rem; }
  .footer-nav a,
  .footer-contact a,
  .to-top {
    display: inline-block;
    padding-block: 0.4rem;
  }
}

@media (max-width: 56rem) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 30rem) {
  .gallery { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
