/*
 * Web pública de Global Móbil del Sur.
 *
 * Formal y luminosa: el azul del logo, mucho blanco y la serif de los
 * títulos. La portada es la costa de verdad —la carretera entre el mar y el
 * desierto— y el único color cálido es el del sol: los destellos sobre el
 * mar y el guion de «Chala – Camaná».
 */
:root {
  --azul: #0b6fc0;
  --azul-hondo: #075494;
  --azul-noche: #052f55;
  --cielo: #f1f7fd;
  --cielo-2: #dcebf8;
  --blanco: #ffffff;
  --tinta: #0f1e2c;
  --tinta-2: #46586a;
  --borde: #dce7f1;
  --sol: #ffd27a;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', 'Segoe UI', system-ui, sans-serif;

  --ancho: 1160px;
  --margen: max(1.25rem, calc((100% - var(--ancho)) / 2));
  --radio: 16px;
  --sombra: 0 1px 2px rgb(15 30 44 / 0.05), 0 18px 40px -18px rgb(15 30 44 / 0.22);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
}

a {
  color: var(--azul);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.portada :focus-visible,
.contacto__caja :focus-visible,
.pie :focus-visible,
.js .cabecera:not(.solida) :focus-visible {
  outline-color: #fff;
}

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

.saltar {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 60;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--tinta);
  color: #fff;
}

.saltar:focus {
  top: 1rem;
}

/* ---- Íconos de línea fina ---- */
.iconos {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--grande {
  width: 2.4rem;
  height: 2.4rem;
  stroke-width: 1.3;
  color: var(--azul);
}

.relleno {
  fill: currentColor;
  stroke: none;
}

/* ---- Botones ---- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.45rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 160ms var(--ease-out);
}

.boton:active {
  transform: scale(0.97);
}

.boton--blanco {
  background: #fff;
  color: var(--azul-hondo);
}

.boton--claro {
  border-color: rgb(255 255 255 / 0.6);
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.boton--azul {
  background: var(--azul);
  color: #fff;
}

.boton--contorno {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.boton--chico {
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.92rem;
}

@media (hover: hover) and (pointer: fine) {
  .boton--blanco:hover {
    background: var(--cielo-2);
  }

  .boton--claro:hover {
    background: rgb(255 255 255 / 0.2);
  }

  .boton--azul:hover {
    background: var(--azul-hondo);
  }

  .boton--contorno:hover {
    background: rgb(255 255 255 / 0.12);
  }

  .cabecera.solida .boton--contorno:hover {
    background: var(--cielo);
  }
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.acciones--centro {
  justify-content: center;
}

/* ---- Cabecera: transparente sobre la foto, blanca al bajar ---- */
.cabecera {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.7rem var(--margen);
  background: rgb(255 255 255 / 0.98);
  color: var(--tinta);
  box-shadow: 0 1px 0 var(--borde);
  transition:
    background-color 250ms ease,
    box-shadow 250ms ease,
    color 250ms ease;
}

/* Sin JS no se sabe cuándo se baja: la cabecera queda blanca siempre. */
.js .cabecera:not(.solida) {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}

/* El logo va sobre blanco siempre: sus letras oscuras no se leen sobre el
   mar. */
.marca__logo {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--borde);
}

.marca__logo img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.marca__nombre {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.05;
}

.marca__nombre small {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.cabecera__nav {
  display: flex;
  gap: 1.6rem;
}

.cabecera__nav a {
  color: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 6px;
  opacity: 0.92;
}

@media (hover: hover) and (pointer: fine) {
  .cabecera__nav a:hover {
    text-decoration: underline;
    opacity: 1;
  }
}

.cabecera.solida .cabecera__entrar {
  color: var(--azul);
}

/* ---- Portada ---- */
.portada {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7.5rem var(--margen) 7rem;
  overflow: hidden;
  background: var(--azul-noche);
  color: #fff;
  text-align: center;
}

.portada__fondo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.portada__imagen,
.portada__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
}

/* El video entra fundiéndose sobre la foto cuando ya está andando. */
.portada__video {
  opacity: 0;
  transition: opacity 1200ms var(--ease-out);
}

.portada__video.listo {
  opacity: 1;
}

/* Oscuro arriba (cabecera) y abajo (botones), más claro al medio: el paisaje
   se ve y el texto se lee. */
.portada__fondo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 55% at 50% 52%, rgb(4 30 55 / 0.42), transparent 72%),
    linear-gradient(
      180deg,
      rgb(5 47 85 / 0.68) 0%,
      rgb(5 47 85 / 0.3) 34%,
      rgb(5 47 85 / 0.34) 62%,
      rgb(4 30 55 / 0.88) 100%
    );
}

/* Destellos de sol sobre el mar: aparecen, giran un poco y se apagan. */
.destello {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 1.6rem;
  height: 1.6rem;
  color: #fffaf0;
  opacity: 0;
  animation: destello 5.6s ease-in-out var(--d) infinite;
}

.destello::before {
  content: '';
  position: absolute;
  inset: -70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 214 140 / 0.5), transparent 62%);
}

.destello svg {
  position: relative;
  width: 100%;
  height: 100%;
}

.destello--chico {
  width: 1rem;
  height: 1rem;
}

@keyframes destello {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.45) rotate(0deg);
  }
  45% {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
  65% {
    opacity: 0.75;
    transform: scale(0.85) rotate(60deg);
  }
}

.portada__texto {
  position: relative;
  z-index: 1;
  max-width: 54rem;
}

.antetitulo {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.portada .antetitulo {
  color: rgb(255 255 255 / 0.88);
}

/* Las líneas finas a los lados, como en una invitación formal. */
.portada .antetitulo::before,
.portada .antetitulo::after {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: rgb(255 255 255 / 0.55);
}

.antetitulo--azul {
  color: var(--azul);
}

.portada h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7.4vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgb(0 0 0 / 0.25);
}

.titulo__arriba {
  display: block;
  margin-bottom: 0.1em;
  font-size: 0.5em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.titulo__ruta {
  white-space: nowrap;
}

.guion {
  color: var(--sol);
}

/* El guion va en el CSS: así el título que lee Google es «Chala y Camaná». */
.guion::before {
  content: '–';
}

.lema {
  max-width: 40rem;
  margin: 1.4rem auto 2.4rem;
  color: rgb(255 255 255 / 0.9);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.lema em {
  display: block;
  margin-bottom: 0.2rem;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.35em;
  font-weight: 400;
}

.portada .acciones {
  justify-content: center;
}

/* Entrada de la portada: el texto sube en escalera al cargar, una vez. */
.js .portada__texto > * {
  animation: aparecer 900ms var(--ease-out) both;
}

.js .portada__texto > :nth-child(2) {
  animation-delay: 110ms;
}

.js .portada__texto > :nth-child(3) {
  animation-delay: 220ms;
}

.js .portada__texto > :nth-child(4) {
  animation-delay: 330ms;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* ---- Tres razones, montadas sobre el borde de la portada ---- */
.garantias {
  position: relative;
  z-index: 2;
  margin-top: -4.5rem;
  padding: 0 var(--margen);
}

.garantias__lista {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0.5rem;
  border-radius: var(--radio);
  background: #fff;
  box-shadow: var(--sombra);
  list-style: none;
}

.garantia {
  padding: 1.75rem 1.9rem 1.6rem;
}

.garantia + .garantia {
  border-left: 1px solid var(--borde);
}

.garantia .ico--grande {
  margin-bottom: 0.9rem;
}

.garantia__titulo {
  margin: 0 0 0.3rem;
  font-size: 1.32rem;
}

.garantia p {
  margin: 0;
  color: var(--tinta-2);
  font-size: 0.98rem;
}

/* ---- Secciones ---- */
.seccion {
  padding: 6rem var(--margen);
}

.seccion--cielo {
  background: var(--cielo);
}

.seccion__cabeza {
  max-width: var(--ancho);
  margin: 0 auto 3rem;
}

.seccion h2 {
  max-width: 40rem;
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.12;
}

.seccion__entrada {
  max-width: 40rem;
  margin: 0.9rem 0 0;
  color: var(--tinta-2);
  font-size: 1.12rem;
}

/* ---- Servicios ---- */
.servicios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: var(--ancho);
  margin: 0 auto;
}

.servicio {
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: #fff;
}

.servicio h3 {
  display: flex;
  align-items: flex-start;
  line-height: 1.2;
  gap: 0.65rem;
  margin: 1.5rem 0.75rem 0.5rem;
  font-size: 1.5rem;
}

.servicio h3 .ico {
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.05rem;
  color: var(--azul);
}

/* Cabecera visual de cada tarjeta, a la misma altura en las dos. */
.servicio__autos,
.servicio__marca {
  position: relative;
  height: 10.5rem;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--cielo) 0%, var(--cielo-2) 100%);
}

.servicio__autos::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1.7rem;
  background:
    repeating-linear-gradient(90deg, #fff 0 1.6rem, transparent 1.6rem 2.8rem) center / 100% 2px
      no-repeat,
    #53606c;
}

.servicio__auto {
  position: absolute;
  bottom: 0.1rem;
  z-index: 1;
  width: 50%;
  height: auto;
}

.servicio__auto--ida {
  left: -3%;
}

.servicio__auto--vuelta {
  right: -3%;
  bottom: -0.3rem;
}

.servicio__marca {
  display: grid;
  place-items: center;
  color: var(--azul);
}

.servicio__marca svg {
  width: 5.5rem;
  height: 5.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.puntos {
  margin: 0;
  padding: 0 0.75rem;
  list-style: none;
}

.puntos li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem 0;
  color: var(--tinta-2);
}

.puntos li + li {
  border-top: 1px solid var(--borde);
}

.puntos .ico {
  margin-top: 0.22rem;
  color: var(--azul);
}

/* ---- Cómo viajar ---- */
.pasos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.paso {
  position: relative;
  padding: 2rem 1.9rem 1.8rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: #fff;
}

.paso__numero {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: rgb(11 111 192 / 0.16);
  font-family: var(--serif);
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1;
}

.paso h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.4rem;
}

.paso p {
  margin: 0;
  color: var(--tinta-2);
}

/* ---- Ruta ---- */
.ruta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.5rem;
  max-width: 48rem;
  margin: 0 auto 3rem;
  padding: 0;
  list-style: none;
  text-align: center;
}

.ruta__punto h3 {
  margin: 0;
  font-size: 1.55rem;
}

.ruta__punto p {
  margin: 0.15rem 0 0;
  color: var(--tinta-2);
  font-size: 0.95rem;
}

.ruta__marca {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0 auto 0.6rem;
  border: 3px solid var(--azul);
  border-radius: 50%;
  background: #fff;
}

.ruta__tramo {
  padding-top: 0.45rem;
}

/* La ruta se dibuja de Chala a Camaná al llegar a ella. */
.ruta__tramo span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--azul) 0 1.1rem, transparent 1.1rem 1.9rem);
}

.js .ruta.revelar .ruta__tramo span {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1100ms var(--ease-out) 250ms;
}

.js .ruta.revelar[data-visible] .ruta__tramo span {
  clip-path: inset(0 0 0 0);
}

/* ---- Oficina de Chala ---- */
.oficina {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
  max-width: var(--ancho);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: #fff;
  box-shadow: var(--sombra);
}

.oficina__datos {
  padding: 2.2rem 2rem;
}

.oficina__datos .antetitulo {
  margin-bottom: 0.4rem;
}

.oficina__datos h3 {
  margin: 0 0 0.6rem;
  font-size: 1.9rem;
}

.oficina address {
  margin: 0 0 1rem;
  font-style: normal;
  line-height: 1.55;
}

.oficina__horario {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
  color: var(--tinta-2);
}

.oficina__mapa {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
  background: var(--cielo);
}

/* ---- Quiénes somos ---- */
.nosotros {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 3.5rem;
  max-width: var(--ancho);
  margin: 0 auto;
}

.nosotros__texto h2 {
  margin-bottom: 1.2rem;
}

.nosotros__texto p {
  color: var(--tinta-2);
}

/* El video va a su tamaño real (496 px): agrandarlo lo pixelaría. */
.aniversario {
  justify-self: center;
  width: 100%;
  max-width: 31rem;
  margin: 0;
}

.aniversario__marco {
  position: relative;
  overflow: hidden;
  border-radius: var(--radio);
  background: var(--tinta);
  box-shadow: var(--sombra);
}

.aniversario__video {
  width: 100%;
  height: auto;
  aspect-ratio: 496 / 368;
  object-fit: cover;
}

.aniversario figcaption {
  margin-top: 0.7rem;
  color: var(--tinta-2);
  font-size: 0.92rem;
}

/* Pausa y reproducir: lo que se mueve solo se tiene que poder detener. */
.aniversario__control {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgb(15 23 42 / 0.62);
  cursor: pointer;
  transition:
    background-color 150ms ease,
    transform 160ms var(--ease-out);
}

.aniversario__control:active {
  transform: scale(0.94);
}

.aniversario__control::before {
  content: '';
  box-sizing: content-box;
}

.aniversario__control[data-estado='reproduciendo']::before {
  width: 4px;
  height: 14px;
  border-right: 4px solid #fff;
  border-left: 4px solid #fff;
}

.aniversario__control[data-estado='pausado']::before {
  margin-left: 4px;
  border-width: 8px 0 8px 13px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

@media (hover: hover) and (pointer: fine) {
  .aniversario__control:hover {
    background: rgb(15 23 42 / 0.8);
  }
}

/* ---- Preguntas ---- */
.preguntas {
  max-width: var(--ancho);
  margin: 0 auto;
  border-top: 1px solid var(--borde);
}

.preguntas details {
  max-width: 52rem;
  border-bottom: 1px solid var(--borde);
}

.preguntas summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 0.2rem;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  list-style: none;
}

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

/* El «+» gira a «×» al abrir. */
.preguntas summary::after {
  content: '+';
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1.5px solid var(--borde);
  border-radius: 50%;
  color: var(--azul);
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 200ms var(--ease-out);
}

.preguntas details[open] summary::after {
  transform: rotate(45deg);
}

.preguntas details p {
  max-width: 46rem;
  margin: 0 0 1.4rem;
  padding: 0 0.2rem;
  color: var(--tinta-2);
}

/* ---- Contacto ---- */
.contacto {
  padding: 0 var(--margen) 6rem;
}

.contacto__caja {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 4.5rem 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-noche) 100%);
  color: #fff;
  text-align: center;
}

.contacto__caja .antetitulo {
  color: rgb(255 255 255 / 0.8);
}

.contacto__caja h2 {
  margin: 0;
  line-height: 1.15;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.contacto__numero {
  margin: 0.6rem 0 1.9rem;
}

.contacto__numero a {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.contacto__direccion {
  display: block;
  margin: 2rem 0 0;
  color: rgb(255 255 255 / 0.8);
  font-size: 0.95rem;
}

.contacto__direccion .ico {
  display: inline-block;
  margin-right: 0.35rem;
  vertical-align: -0.25em;
}

/* ---- Pie ---- */
.pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem var(--margen) 6.5rem;
  background: var(--azul-noche);
  color: rgb(255 255 255 / 0.75);
  font-size: 0.92rem;
}

.pie__marca {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pie__marca p {
  margin: 0;
}

.pie b {
  color: #fff;
}

.pie__enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.pie a {
  color: #fff;
}

.pie__credito {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.85rem;
}

/* ---- WhatsApp flotante ---- */
.flotante {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px -6px rgb(0 0 0 / 0.35);
  transition: transform 160ms var(--ease-out);
}

.flotante:active {
  transform: scale(0.94);
}

.flotante svg {
  width: 1.9rem;
  height: 1.9rem;
}

/* ---- Aparecer al llegar (web.js pone data-visible, una sola vez) ---- */
.js .revelar {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.js .revelar[data-visible] {
  opacity: 1;
  transform: none;
}

.garantia:nth-child(2),
.servicio:nth-child(2),
.paso:nth-child(2) {
  transition-delay: 80ms;
}

.garantia:nth-child(3),
.paso:nth-child(3) {
  transition-delay: 160ms;
}

/* Los dos autos de la tarjeta llegan desde los costados. */
.js .servicio.revelar .servicio__auto {
  transition: transform 1000ms var(--ease-out) 200ms;
}

.js .servicio.revelar .servicio__auto--ida {
  transform: translateX(-40%);
}

.js .servicio.revelar .servicio__auto--vuelta {
  transform: translateX(40%);
}

.js .servicio.revelar[data-visible] .servicio__auto {
  transform: none;
}

/* ---- Tablet y celular ---- */
@media (max-width: 900px) {
  .cabecera__nav {
    display: none;
  }

  .garantias__lista,
  .servicios,
  .pasos,
  .nosotros {
    grid-template-columns: minmax(0, 1fr);
  }

  .garantia + .garantia {
    border-top: 1px solid var(--borde);
    border-left: 0;
  }

  .oficina {
    grid-template-columns: minmax(0, 1fr);
  }

  .oficina__mapa {
    min-height: 18rem;
  }
}

@media (max-width: 700px) {
  .marca__nombre {
    font-size: 1.05rem;
  }

  .portada {
    padding-top: 6.5rem;
    padding-bottom: 6rem;
  }

  .portada .antetitulo::before,
  .portada .antetitulo::after {
    width: 1.4rem;
  }

  .portada h1 {
    font-size: clamp(2.2rem, 11.5vw, 3.2rem);
  }

  /* En el celular se ve el camino, no el mar: sin destellos. */
  .destello {
    display: none;
  }

  .portada .acciones .boton {
    flex: 1 1 100%;
  }

  .garantias {
    margin-top: -3rem;
  }

  .garantia {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1.1rem 1.1rem;
  }

  .garantia .ico--grande {
    grid-row: span 2;
    margin: 0.1rem 0 0;
  }

  .garantia__titulo {
    font-size: 1.15rem;
  }

  .seccion {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .ruta {
    grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr);
    gap: 0.6rem;
  }

  .servicio h3 {
    font-size: 1.3rem;
  }

  .ruta__punto h3 {
    font-size: 1.3rem;
  }

  .ruta__punto p {
    font-size: 0.85rem;
  }

  .oficina__datos {
    padding: 1.6rem 1.4rem;
  }

  .contacto__caja {
    padding: 3.2rem 1.25rem;
    border-radius: 18px;
  }

  .pie {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Menos movimiento: nada se desplaza; lo que aparece solo se funde ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .destello {
    display: none;
  }

  .js .portada__texto > * {
    animation: fundirse 300ms ease both;
  }

  .js .revelar,
  .js .servicio.revelar .servicio__auto {
    transform: none;
    transition: opacity 250ms ease;
  }

  .js .ruta.revelar .ruta__tramo span {
    clip-path: none;
    transition: none;
  }

  .boton,
  .flotante,
  .aniversario__control,
  .preguntas summary::after {
    transition: none;
  }
}

@keyframes fundirse {
  from {
    opacity: 0;
  }
}

/* Fuentes alojadas en el sitio (OFL), solo el juego latino: Source Serif 4
   para los títulos y Public Sans para el texto. */

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fuentes/public-sans.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fuentes/source-serif-4-italica.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fuentes/source-serif-4.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
