/* ============================================================
   CruiseInRide — Claymorfismo oscuro (design system compartido)
   ============================================================ */
:root {
  /* paleta base */
  --bg: #000;               /* fondo principal: negro puro */
  --bg-deep: #000;          /* fondo profundo (footer, contrastes) */
  --surface: #181c23;       /* superficie "arcilla" (tarjetas, botones) */
  --surface-hi: #22272f;    /* superficie más clara (hover, destacados) */
  --ink: #eceef2;           /* texto principal */
  --ink-soft: rgba(236, 238, 242, .62);
  --ink-faint: rgba(236, 238, 242, .38);

  /* dorados de marca */
  --gold: #d4af37;
  --gold-light: #f5d77a;
  --gold-deep: #a8862a;

  /* sombras clay: highlight interior arriba + sombra interior abajo
     + sombra exterior difusa = volumen "arcilla" esponjoso */
  --nm-dark: rgba(0, 0, 0, .42);
  --nm-light: rgba(255, 255, 255, .09);
  --nm-raised:
    inset 2px 2px 5px rgba(255, 255, 255, .09),
    inset -6px -6px 12px rgba(0, 0, 0, .38),
    10px 14px 28px rgba(0, 0, 0, .42);
  --nm-raised-sm:
    inset 1px 1px 3px rgba(255, 255, 255, .09),
    inset -4px -4px 8px rgba(0, 0, 0, .35),
    6px 8px 16px rgba(0, 0, 0, .38);
  --nm-pressed:
    inset 6px 6px 12px rgba(0, 0, 0, .48),
    inset -3px -3px 8px rgba(255, 255, 255, .05);
  --nm-pressed-sm:
    inset 4px 4px 8px rgba(0, 0, 0, .45),
    inset -2px -2px 5px rgba(255, 255, 255, .05);

  --radius: 26px;
  --radius-sm: 18px;
  --radius-lg: 36px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* utilidades clay reutilizables */
.nm-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--nm-raised);
  border: none;
}
.nm-pressed {
  background: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--nm-pressed);
  border: none;
}

/* ---------------- header (transparente en hero, glass al scroll) ---------------- */
.cruise-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 40px);
  gap: 10px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid transparent;
  transition:
    background .65s cubic-bezier(.22, 1, .36, 1),
    backdrop-filter .65s cubic-bezier(.22, 1, .36, 1),
    -webkit-backdrop-filter .65s cubic-bezier(.22, 1, .36, 1),
    box-shadow .65s cubic-bezier(.22, 1, .36, 1),
    border-color .65s cubic-bezier(.22, 1, .36, 1);
}

.cruise-header.ch-scrolled {
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  border-bottom-color: rgba(212, 175, 55, .18);
}

.ch-logo { display: inline-flex; align-items: center; }
.ch-logo img { height: 40px; width: auto; display: block; }

/* menu centrado en la barra: se saca del flujo para que no lo descoloquen
   el ancho del logo ni el del grupo de la derecha */
.ch-nav {
  display: flex;
  gap: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ch-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  transition: opacity .25s ease;
}

.ch-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: width .35s cubic-bezier(.22, 1, .36, 1);
}

.ch-nav a:hover { opacity: .72; }

.ch-nav a[aria-current="page"] { color: #fff; }
.ch-nav a[aria-current="page"]::after { width: 56%; }

.ch-actions { display: flex; align-items: center; gap: 4px; }

.ch-lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  transition: opacity .25s ease;
}
.ch-lang svg { width: 19px; height: 19px; }
.ch-lang:hover { opacity: .72; }

/* iniciar sesion: mismo peso que el menu */
.ch-login {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  transition: opacity .25s ease;
}
.ch-login:hover { opacity: .72; }

/* registrarse: pastilla blanca solida, el unico elemento con relleno */
.ch-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(145deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  border-radius: 12px;
  padding: 13px 28px;
  margin-left: 8px;
  transition: filter .25s ease, transform .25s ease;
}
.ch-signup:hover { filter: brightness(1.07); }
.ch-signup:active { transform: scale(.97); }

.ch-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  /* sin círculo: solo las 3 rayas */
  background: none;
  border: none;
  border-radius: 0;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
}
.ch-burger span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--gold-light);
  transition: transform .3s, opacity .3s;
}

/* el CTA del menú móvil no existe en escritorio */
.ch-nav__cta { display: none; }

@media (max-width: 768px) {
  .cruise-header { padding: 12px 16px; }
  .ch-login { display: none; }
  /* registro fuera de la barra (vive dentro del menú), idioma a la
     izquierda y logo más pequeño centrado */
  .ch-signup { display: none; }
  .ch-actions { margin-left: auto; }
  .ch-lang { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
  .ch-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .ch-logo img { height: 30px; }
  .ch-nav .ch-nav__cta {
    display: block;
    margin: 12px 0 6px;
    text-align: center;
    background: linear-gradient(145deg, #f2d577, #d4af37 55%, #b8922c);
    color: #241c05;
    font-weight: 800;
    padding: 13px 16px;
    border-radius: 14px;
  }
  .ch-lang { padding: 10px 6px; }
  .ch-signup { padding: 10px 18px; font-size: 14px; }
  .ch-burger { display: flex; }
  /* menú a pantalla completa (diseño tipo app): enlaces grandes centrados
     sobre fondo oscuro difuminado + pastilla blanca al final. Va con
     z-index negativo dentro del header para que logo/idioma/X queden encima */
  .ch-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(26px, 5.5vh, 52px);
    padding: 80px 24px 60px;
    background: rgba(3, 4, 7, .9);
    backdrop-filter: blur(26px) saturate(1.3);
    -webkit-backdrop-filter: blur(26px) saturate(1.3);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
  }
  .ch-nav a {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.3px;
    padding: 4px 10px;
    text-align: center;
  }
  .ch-nav a::after { display: none; }
  .ch-nav .ch-nav__cta {
    margin: 22px 0 0;
    background: linear-gradient(145deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
    color: #241c05;
    font-size: 17px;
    font-weight: 800;
    padding: 17px 40px;
    border-radius: 16px;
  }
  body.ch-open .ch-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  body.ch-open { overflow: hidden; }
  /* con el menú abierto el header suelta su vidrio: si conserva el
     backdrop-filter se convierte en "containing block" del menú fijo y
     lo aplasta contra la barra (los enlaces quedan flotando sin fondo) */
  body.ch-open .cruise-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom-color: transparent;
    transition: none;
  }
  body.ch-open .ch-burger { background: none; }
  body.ch-open .ch-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.ch-open .ch-burger span:nth-child(2) { opacity: 0; }
  body.ch-open .ch-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Compensar el header fijo cuando la sección inicial no es full-screen */
body:not(.has-hero) main, body:not(.has-hero) > section:first-of-type {
  padding-top: 96px;
}

/* ---------------- footer creativo: ruta ejecutiva ---------------- */
.cruise-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(212, 175, 55, .10);
  padding: 0;
  /* nada del footer (línea SVG, textos largos) debe generar scroll lateral */
  overflow-x: hidden;
  overflow-x: clip;
}
.cf-stop { min-width: 0; }

.cf-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.cf-hero__copy img { height: 44px; }
.cf-hero__copy p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
  margin: 18px 0 0;
}
.cf-hero__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f2d577, #d4af37 55%, #b8922c);
  color: #241c05;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease;
}
.cf-hero__cta:hover { transform: translateY(-2px); filter: brightness(1.05); }

.cf-route {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
/* curva que une las 4 paradas: el viewBox mide 1000x40 y la caja 40px de alto,
   asi que 1 unidad = 1px en vertical. Los anclajes de las bezier caen en el
   centro de cada circulo (x = 125, 375, 625, 875, y = 20) y entre ellos las
   ondas cambian de amplitud y de posicion de cresta para que no se lea
   simetrica. top:5px sube esa mitad a los 25px, que es donde queda el centro
   de los circulos de 50px. */
.cf-route__line {
  position: absolute;
  top: 5px;
  left: 24px;
  right: 24px;
  height: 40px;
  overflow: visible;
  fill: none;
  stroke: rgba(212, 175, 55, .55);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
/* trazado progresivo: el path lleva pathLength="1000", asi que el dash va de
   1000 (oculto) a 0 (dibujado) sin depender de la longitud real. Solo se oculta
   si home.js pudo poner .cf-route--anim; sin JS la linea sale ya dibujada. */
.cf-route__line path { stroke-dasharray: 1000; stroke-dashoffset: 0; }
.cf-route--anim .cf-route__line path { stroke-dashoffset: 1000; }
.cf-route--anim.is-lit .cf-route__line path {
  /* trazado pausado y elegante, sin arranque brusco */
  animation: cf-route-draw 5.2s cubic-bezier(.33, .05, .2, 1) forwards;
}
@keyframes cf-route-draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-route--anim .cf-route__line path { stroke-dashoffset: 0; animation: none; }
}
.cf-route__stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.cf-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.cf-stop__dot {
  width: 50px; height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  color: #0a0b0e;
  /* sombra sobre el relleno del circulo; el borde se deja igual.
     Los inset van suaves porque ahora el fondo es blanco. */
  box-shadow: 0 7px 18px rgba(0, 0, 0, .55),
              inset 0 1px 0 rgba(255, 255, 255, .9),
              inset 0 -7px 14px rgba(0, 0, 0, .13);
}
.cf-stop__dot svg { width: 21px; height: 21px; }
/* los iconos son masa solida en el color del texto (currentColor) con un unico
   detalle dorado: relleno sobre la masa oscura o trazo calado dentro de ella */
.cf-stop__dot .ico-gold { fill: var(--gold); }
.cf-stop__dot .ico-gold-line { fill: none; stroke: var(--gold-light); }
.cf-stop__dot--pulse {
  border-color: #fff;
  animation: pulse-gold 2.2s infinite;
}
/* el pulso arrastra tambien la sombra del relleno, o parpadearia al animarse */
@keyframes pulse-gold {
  0% {
    box-shadow: 0 7px 18px rgba(0, 0, 0, .55),
                inset 0 1px 0 rgba(255, 255, 255, .9),
                inset 0 -7px 14px rgba(0, 0, 0, .13),
                0 0 0 0 rgba(255, 255, 255, .35);
  }
  70% {
    box-shadow: 0 7px 18px rgba(0, 0, 0, .55),
                inset 0 1px 0 rgba(255, 255, 255, .9),
                inset 0 -7px 14px rgba(0, 0, 0, .13),
                0 0 0 12px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 7px 18px rgba(0, 0, 0, .55),
                inset 0 1px 0 rgba(255, 255, 255, .9),
                inset 0 -7px 14px rgba(0, 0, 0, .13),
                0 0 0 0 rgba(255, 255, 255, 0);
  }
}
.cf-stop small {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cf-stop strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 2px 10px rgba(0, 0, 0, .6);
}

.cf-bottom {
  border-top: 1px solid rgba(236, 238, 242, .06);
}
.cf-bottom__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cf-bottom__links {
  display: flex;
  gap: 28px;
}
.cf-bottom__links a {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
}
.cf-bottom__links a:hover { color: var(--gold-light); }
.cf-bottom__social {
  display: flex;
  gap: 14px;
}
.cf-bottom__social a {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 50%;
  color: #fff;
  background: rgba(212, 175, 55, .08);
  transition: color .2s ease, border-color .2s ease, transform .2s ease, background .2s ease;
}
.cf-bottom__social a svg { width: 18px; height: 18px; }
.cf-bottom__social a:hover { color: var(--gold-light); border-color: var(--gold); background: rgba(212, 175, 55, .18); transform: translateY(-2px); }
.cf-bottom__copy {
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: .04em;
  margin: 0;
}

@media (max-width: 960px) {
  .cf-hero { flex-direction: column; align-items: flex-start; padding: 56px 24px 40px; }
  .cf-bottom__inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .cf-bottom__copy { width: 100%; order: 3; }
}
/* la "ruta" de contacto se queda horizontal con su línea dorada también en
   teléfonos, igual que en escritorio, solo que en miniatura */
@media (max-width: 640px) {
  .cf-route { padding: 0 12px 46px; }
  .cf-route__line { left: 12px; right: 12px; top: -1px; }
  .cf-route__stops { gap: 12px 6px; }
  .cf-stop { gap: 7px; }
  .cf-stop__dot { width: 38px; height: 38px; }
  .cf-stop__dot svg { width: 16px; height: 16px; }
  .cf-stop small { font-size: 7.5px; letter-spacing: .08em; }
  .cf-stop strong { font-size: 10px; overflow-wrap: anywhere; }
  .cf-bottom__links { flex-wrap: wrap; justify-content: center; gap: 18px 24px; }
}

/* ---------------- boton flotante de WhatsApp ---------------- */
.wa-fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 1200;                 /* por encima del header fijo (1000) */
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* el aro fino vive debajo del degradado (::before): solo se ve al acoplarse */
  border: 1.5px solid rgba(212, 175, 55, .3);
  background: transparent;
  color: #14110a;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55),
              inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1),
              box-shadow .35s ease, opacity .25s ease, color .35s ease;
}
/* degradado dorado en capa propia para poder fundirlo al acoplarse al footer */
.wa-fab::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  z-index: -1;
  transition: opacity .35s ease;
}
.wa-fab svg { width: 28px; height: 28px; display: block; }
/* acoplado junto a las redes del footer: mismo diseño de aro que fb/ig
   (la posición/escala la pone home.js con transform) */
.wa-fab--docked { color: var(--gold-light); box-shadow: none; }
.wa-fab--docked::before { opacity: 0; }
/* círculo WhatsApp real de la fila de redes (idéntico a fb/ig): invisible
   hasta que el botón flotante termina su vuelo y le cede el sitio */
.cf-wa-static { visibility: hidden; }
.cf-wa-static.is-in { visibility: visible; }
.wa-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .6),
              inset 0 1px 0 rgba(255, 255, 255, .5);
}
.wa-fab:active { transform: scale(.95); }
/* con el menu movil abierto estorba: se aparta */
body.ch-open .wa-fab { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .wa-fab { width: 52px; height: 52px; }
  .wa-fab svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab, .wa-fab:hover { transition: none; transform: none; }
}
