/* ==========================================================================
   VIMAR Traslados — estilos compartidos
   Estética inspirada en flyer de referencia: azul noche, naranja, condensada.
   ========================================================================== */

:root {
  /* Color */
  --navy: #12223a;          /* fondo */
  --navy-deep: #0d1a2d;     /* footer / escalón oscuro */
  --surface: #1a2f4d;       /* escalón de tono */
  --surface-2: #223a5c;
  --ink: #f3e8d2;           /* texto: crema del logo */
  --ink-soft: #cbc0ab;      /* texto secundario */
  --bone: #f3e8d2;          /* crema: acentos, íconos y campos de color */
  --bone-press: #e4d6bb;
  --on-bone: #12223a;
  --gold: #b9894c;          /* dorado del logo */
  --logo-cream: #f3e8d2;    /* crema más visible, solo para el logo (también en img/logo-mark.svg y favicon.svg) */
  --orange: #f59e1b;        /* SOLO botones de reserva */
  --orange-press: #e08a08;
  --on-orange: #12223a;
  --error: #ffb4a8;
  --scrim: rgba(13, 26, 45, 0.74);

  /* Tipografía */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "Barlow", system-ui, sans-serif;
  --step-display: clamp(3.5rem, 11vw, 9rem);
  --step-h2: clamp(2.25rem, 5vw, 3.75rem);
  --step-h3: clamp(1.5rem, 2.4vw, 1.875rem);
  --step-lead: clamp(1.125rem, 1.6vw, 1.375rem);
  --step-body: 1.0625rem;
  --step-small: 0.9375rem;

  /* Espacio */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1200px;
  --section: clamp(4.5rem, 10vw, 8rem);
  --radius: 14px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset mínimo ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--bone);
  outline-offset: 3px;
}
::selection { background: var(--bone); color: var(--on-bone); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--bone);
  color: var(--on-bone);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Tipografía ------------------------------------------------------------- */
.display,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.display { font-size: var(--step-display); }
.h2 { font-size: var(--step-h2); }
.h3 { font-size: var(--step-h3); font-weight: 700; line-height: 1; }

.lead {
  font-size: var(--step-lead);
  line-height: 1.45;
  max-width: 36ch;
}
.prose { max-width: 62ch; }
.prose > * + * { margin-top: 1rem; }
.soft { color: var(--ink-soft); }

/* Botones y links -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.75rem 1.75rem;
  border: 0;
  border-radius: 0;
  background: var(--bone);
  color: var(--on-bone);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.18s var(--ease), transform 0.12s var(--ease);
}
.btn:hover { background: #faf4e8; }
.btn:active { background: var(--bone-press); transform: scale(0.98); }
.btn svg { width: 1.3em; height: 1.3em; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--navy); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bone);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: color 0.18s var(--ease);
}
.text-link:hover { color: var(--gold); }

/* Encabezado / navegación ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand { gap: 0.7rem; font-family: inherit; }
.brand img { width: 34px; height: auto; }

/* Logotipo (marca M + "VIMAR" en serif + "TRASLADOS" espaciado, como el logo original) */
.logo-text { display: inline-grid; justify-items: center; line-height: 1; color: var(--logo-cream); }
.logo-word {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-right: -0.1em;
}
.logo-sub {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.5625rem;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  text-transform: uppercase;
  margin-top: 0.3em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.18s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--bone);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.55em;
}
.site-nav .btn { min-height: 44px; padding: 0.5rem 1.25rem; font-size: 1.125rem; margin-left: 0.75rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--navy);
    padding: 0.5rem var(--gutter) 1.5rem;
    border-bottom: 4px solid var(--bone);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) {
    min-height: 56px;
    padding: 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
  }
  .site-nav .btn { margin: 1rem 0 0; width: 100%; min-height: 52px; }
}

/* Íconos de servicio (naranja, como el flyer) ---------------------------- */
.icon {
  width: 56px;
  height: 56px;
  color: var(--bone);
  flex: none;
}

/* Panel de 4 servicios (franja del flyer) -------------------------------- */
.service-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem 0;
}
.service-band li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
}
.service-band li + li { border-left: 3px solid var(--ink); }
.service-band h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1;
  text-transform: uppercase;
}
.service-band p {
  font-style: italic;
  font-size: var(--step-small);
  line-height: 1.4;
  max-width: 20ch;
}

@media (max-width: 860px) {
  .service-band { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .service-band li { padding: 1.5rem 1rem; }
  .service-band li + li { border-left: 0; }
  .service-band li:nth-child(even) { border-left: 3px solid var(--ink); }
  .service-band li:nth-child(n + 3) { border-top: 3px solid var(--ink); }
  .service-band .icon { width: 44px; height: 44px; }
  .service-band h3 { font-size: 1.375rem; }
}

/* Hero de la home -------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(calc(100svh - 72px), 980px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(3rem, 8vh, 6rem) clamp(2rem, 6vh, 4rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 40%;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
}
.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 7vh, 4.5rem);
  text-align: center;
  justify-items: center;
}
.hero h1 .display { display: block; }
.hero__logo {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}
.hero__logo img { width: clamp(72px, 9vw, 104px); height: auto; }
.hero__logo .logo-word { font-size: clamp(2rem, 4vw, 2.75rem); }
.hero__logo .logo-sub { font-size: clamp(0.75rem, 1.2vw, 0.9375rem); }
.hero .lead {
  margin: 1.75rem auto 0;
  font-style: italic;
  font-weight: 500;
  max-width: 34ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.hero__services { width: 100%; display: grid; justify-items: center; gap: 1rem; }
.hero .service-band { width: 100%; max-width: 980px; }

/* Entrada orquestada del hero; después la foto queda en un movimiento lento continuo */
@media (prefers-reduced-motion: no-preference) {
  .hero__bg img {
    animation:
      hero-zoom 1.6s var(--ease) both,
      hero-drift 26s ease-in-out 1.6s infinite alternate;
  }
  .hero [data-enter] { animation: rise 0.7s var(--ease) both; }
  .hero [data-enter="2"] { animation-delay: 0.12s; }
  .hero [data-enter="3"] { animation-delay: 0.24s; }
  .hero [data-enter="4"] { animation-delay: 0.4s; }
  /* Los 4 servicios del hero entran de a uno */
  .hero .service-band li { animation: rise 0.6s var(--ease) both; }
  .hero .service-band li:nth-child(1) { animation-delay: 0.55s; }
  .hero .service-band li:nth-child(2) { animation-delay: 0.63s; }
  .hero .service-band li:nth-child(3) { animation-delay: 0.71s; }
  .hero .service-band li:nth-child(4) { animation-delay: 0.79s; }
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.07) translate(-1.5%, -1%); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Cabecera de páginas internas ------------------------------------------- */
.page-head {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 12vw, 8rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.page-head__bg { position: absolute; inset: 0; z-index: -1; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head__bg::after { content: ""; position: absolute; inset: 0; background: rgba(13, 26, 45, 0.8); }
.page-head .display { font-size: clamp(3.5rem, 10vw, 7.5rem); }
.page-head .lead { margin-top: 1.25rem; font-style: italic; font-weight: 500; }
.page-head--plain { background: var(--surface); }

/* Secciones -------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--deep { background: var(--navy-deep); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head .lead,
.section__lead { margin-top: 1rem; }

/* Home: ¿Adónde vas? ----------------------------------------------------- */
.planner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "intro result"
    "cta   result";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 6vw, 5rem);
  row-gap: 1.5rem;
  align-items: start;
}
.planner__intro { grid-area: intro; }
.planner__result { grid-area: result; }
.planner__cta { grid-area: cta; }
.planner__cta .btn { width: 100%; }
.planner__options {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
  border: 0;
  padding: 0;
}
.planner__options legend { font-weight: 600; margin-bottom: 0.75rem; }
.planner__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 60px;
  padding: 0.75rem 1.1rem;
  background: var(--surface-2);
  cursor: pointer;
  transition: background-color 0.18s var(--ease);
}
.planner__option:hover { background: #2a4670; }
.planner__option input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--ink-soft);
  border-radius: 50%;
  display: grid;
  place-content: center;
}
.planner__option input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--on-bone);
  transform: scale(0);
  transition: transform 0.15s var(--ease);
}
.planner__option input:checked { border-color: var(--on-bone); }
.planner__option input:checked::before { transform: scale(1); }
.planner__option:has(input:checked) { background: var(--bone); color: var(--on-bone); }
.planner__option:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.planner__option span { font-weight: 600; font-size: 1.0625rem; }

.planner__result {
  background: var(--navy);
  padding: clamp(1.75rem, 4vw, 3rem);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.planner__route {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--step-h3);
  line-height: 1.05;
}
.planner__figures {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}
.planner__figures div { display: grid; }
.planner__figures strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 0.9;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.planner__quote {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3rem, 7vw, 4.75rem);
  line-height: 0.9;
}
.planner__quote[hidden], .planner__figures[hidden] { display: none; }
.planner__note { font-size: var(--step-small); color: var(--ink-soft); }

/* Lista sin JS: se muestran todas las rutas como texto */
.no-js .planner__options, .no-js .planner__result { display: none; }
.no-js .planner__cta .btn { width: auto; }
.planner__fallback { display: none; }
.no-js .planner__fallback { display: block; margin-top: 1.5rem; }
.planner__fallback li { padding: 0.5rem 0; }

@media (max-width: 860px) {
  .planner {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "result" "cta";
    grid-template-rows: auto;
  }
}

/* Home: cierre con foto -------------------------------------------------- */
.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--bone);
  color: var(--on-bone);
}
.closing__media img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
}
.closing__body {
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
.closing .btn { background: var(--navy); color: var(--ink); align-self: flex-start; }
.closing .btn:hover { background: var(--surface); }
.closing .lead { max-width: 32ch; }

@media (max-width: 760px) {
  .closing { grid-template-columns: 1fr; }
  .closing__media img { aspect-ratio: 4 / 3; max-height: none; }
}

/* Servicios -------------------------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.service--flip .service__media { order: 2; }
.service__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Fotos verticales recortadas a 4:3: se baja el foco para que se vea lo importante */
.service__media img.img-focus-low { object-position: 50% 62%; }
.page-head__bg img.img-focus-road { object-position: 50% 50%; }
.service__tile {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--navy);
}
.section--deep .service__tile { background: var(--surface); }
.service__tile .icon { width: clamp(96px, 16vw, 168px); height: auto; aspect-ratio: 1; }
.service__body { display: grid; gap: 1.25rem; justify-items: start; }
.service__body .h2 { max-width: 14ch; }
.checklist { display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 0.15rem; color: var(--bone); }

@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; }
  .service--flip .service__media { order: 0; }
  .service__tile { aspect-ratio: 16 / 7; }
  .service__tile .icon { width: 88px; }
}

.quote-band {
  background: var(--bone);
  color: var(--on-bone);
}
.quote-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.quote-band .btn { background: var(--navy); color: var(--ink); }
.quote-band .btn:hover { background: var(--surface); }
.quote-band p { max-width: 52ch; margin-top: 1rem; font-size: var(--step-lead); line-height: 1.45; }

/* Testimonios (franja que avanza de derecha a izquierda, al final de Inicio) */
/* Cuántas tarjetas entran a lo ancho de la pantalla: 4 en escritorio */
.marquee {
  --cards: 1.15;
  --card-gap: 1.5rem;
}
@media (min-width: 600px) { .marquee { --cards: 2; } }
@media (min-width: 900px) { .marquee { --cards: 3; } }
@media (min-width: 1100px) { .marquee { --cards: 4; } }

/* Sin animación (sin JS o con "reducir movimiento"): fila que se desliza a mano */
.marquee {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--surface-2) transparent;
}
.marquee__track { display: flex; width: max-content; padding-bottom: 0.5rem; }
.marquee__track > li {
  display: flex;
  flex: none;
  width: calc((100vw - var(--card-gap) * (var(--cards) - 1)) / var(--cards));
  margin-right: var(--card-gap); /* margen y no gap: así el -50% del recorrido cierra exacto */
  scroll-snap-align: start;
}
.marquee__track > li:nth-child(even) .testimonial { background: var(--surface-2); }

/* Con animación: js/main.js duplica las tarjetas y agrega .is-running */
.marquee.is-running { overflow: hidden; }
.marquee.is-running .marquee__track {
  animation: marquee var(--marquee-duration, 60s) linear infinite;
}
.marquee.is-running:hover .marquee__track,
.marquee.is-running:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.testimonial {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 360px;
  padding: clamp(1.75rem, 2.4vw, 2.5rem);
  background: var(--surface);
}
.testimonial blockquote {
  font-size: clamp(1.1875rem, 1.35vw, 1.375rem);
  line-height: 1.45;
}
.testimonial blockquote::before { content: "“"; }
.testimonial blockquote::after { content: "”"; }
.testimonial figcaption { margin-top: auto; display: grid; gap: 0.9rem; }
.testimonial cite {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  text-transform: uppercase;
  line-height: 1;
}
.testimonial cite span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--step-small);
  text-transform: none;
  color: var(--ink-soft);
}
.testimonial .result {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding-top: 0.9rem;
  border-top: 3px solid var(--bone);
  font-weight: 600;
}
.testimonial .result svg { flex: none; width: 22px; height: 22px; color: var(--bone); margin-top: 0.1rem; }

/* Contacto --------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 600; }
.field .hint { font-size: var(--step-small); color: var(--ink-soft); }
.field .req { color: var(--bone); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 2px solid var(--surface-2);
  border-radius: 0;
  color: var(--ink);
  font-size: 1.0625rem;
  transition: border-color 0.18s var(--ease);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fef8ec' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 22px;
  padding-right: 3rem;
}
.field select option { background: var(--navy); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8796aa; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #3a5680; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 0; border-color: var(--bone); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .error {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--error);
  font-size: var(--step-small);
  font-weight: 500;
}
.field .error:empty { display: none; }
.field .error::before { content: "!"; display: inline-grid; place-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: var(--navy); font-weight: 700; font-size: 0.75rem; }
.field--flight[hidden],
.field--passengers[hidden] { display: none; }
.field input { color-scheme: dark; } /* reloj y flechas del navegador en claro sobre el fondo oscuro */

/* Dos campos lado a lado (origen/destino, pasajeros/hora) */
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
/* Si "pasajeros" se oculta, la hora ocupa toda la fila */
.field-row > .field:only-child,
.field-row > [hidden] + .field { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { font-weight: 500; }
.form__status:empty { display: none; }

.contact__side { display: grid; gap: 1.5rem; }

.contact-card {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.5rem;
}
.contact-card ul { display: grid; gap: 0.25rem; }
.contact-card a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 56px;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.contact-card a:hover { color: var(--gold); }
.contact-card a svg { width: 26px; height: 26px; color: var(--bone); flex: none; }
.contact-card a span { display: grid; line-height: 1.3; }
.contact-card a small { color: var(--ink-soft); font-size: var(--step-small); }
.contact-card a strong { font-weight: 600; overflow-wrap: anywhere; }

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

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  padding-block: clamp(3.5rem, 8vw, 6rem) 2rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}
.footer__logo img { width: clamp(72px, 10vw, 120px); height: auto; }
.footer__logo .logo-text { justify-items: start; }
.footer__logo .logo-word { font-size: clamp(2.75rem, 9vw, 6.5rem); }
.footer__logo .logo-sub { font-size: clamp(0.75rem, 1.6vw, 1.25rem); margin-top: 0.5em; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.footer__grid h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer__grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.18s var(--ease);
}
.footer__grid a:hover { color: var(--bone); }
.footer__grid a[aria-current="page"] { color: var(--ink); }
.footer__legal {
  margin-top: 3rem;
  font-size: var(--step-small);
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* Botón de reserva: el único elemento naranja del sitio.
   Va al final y con dos clases para ganarle a .closing .btn / .quote-band .btn */
.btn.btn--reserve { background: var(--orange); color: var(--on-orange); }
.btn.btn--reserve:hover { background: #ffb13d; }
.btn.btn--reserve:active { background: var(--orange-press); }

/* Animaciones ------------------------------------------------------------
   Todas dentro de no-preference: con "reducir movimiento" el sitio queda quieto.
   [data-reveal] lo agrega js/main.js solo si puede animar. */
@media (prefers-reduced-motion: no-preference) {
  /* Encabezado de páginas internas al cargar */
  .page-head__bg img { animation: hero-zoom 1.6s var(--ease) both; }
  .page-head .display { animation: rise 0.7s var(--ease) both; }
  .page-head .lead { animation: rise 0.7s var(--ease) 0.12s both; }

  /* Entradas al hacer scroll */
  .reveal-ready [data-reveal="text"] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.7s var(--ease) var(--reveal-delay, 0ms),
      transform 0.7s var(--ease) var(--reveal-delay, 0ms);
  }
  /* El recorte va en el hijo (foto o ícono): si fuera en el contenedor,
     el navegador lo vería de alto cero y nunca lo detectaría en pantalla */
  .reveal-ready [data-reveal="image"] { overflow: hidden; }
  .reveal-ready [data-reveal="image"] > * {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.08);
    transition:
      clip-path 1s var(--ease) var(--reveal-delay, 0ms),
      transform 1.4s var(--ease) var(--reveal-delay, 0ms);
  }
  .reveal-ready [data-reveal="text"].is-visible { opacity: 1; transform: none; }
  .reveal-ready [data-reveal="image"].is-visible > * { clip-path: inset(0); transform: none; }

  /* ¿Adónde vas?: el panel se renueva al cambiar de destino */
  .planner__result.is-swapping > * { animation: swap 0.4s var(--ease) both; }
  .planner__result.is-swapping > :nth-child(2),
  .planner__result.is-swapping > :nth-child(3) { animation-delay: 0.05s; }
  .planner__result.is-swapping > :nth-child(4) { animation-delay: 0.1s; }
  .planner__result.is-swapping > :nth-child(5) { animation-delay: 0.15s; }

  /* Formulario: errores y confirmación aparecen suave */
  .field .error:not(:empty),
  .form__status:not(:empty) { animation: swap 0.3s var(--ease) both; }

  /* Ícono del recuadro de cada servicio responde al pasar por la sección */
  .service__tile .icon { transition: transform 0.5s var(--ease); }
  .service:hover .service__tile .icon { transform: translateY(-6px) scale(1.04); }
}
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Movimiento reducido ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
