/* ============================================================================
   NAUTICAL DIVE SERVICE — sistema de diseño
   ----------------------------------------------------------------------------
   Rediseño completo (v4). La versión anterior era navy #0A1628 + dorado #C8A44E
   + Playfair Display: una paleta que NO salía del negocio — era el default que
   propuso DeepSeek y que además calcaba el sitio SaaS que ya tienen. Se botó.

   PALETA: medida con PIL sobre las 7 fotos reales del sitio (cuantización
   adaptativa, ver _originals/build_assets.py y palette_measured.json). Las siete
   fotos coinciden en lo mismo: abismo azul, teal y cyan. Cero dorado.
       abismo   #010718 #021443 #000106   -> --abyss / --deep
       teal     #199494 #16777c #294540   -> --teal
       cyan     #0a9bc0 #3f9dbf #01c9fd   -> --aqua / --cyan
       espuma   #cafeff #92dff7           -> --foam

   ACENTOS (tres, cada uno con una regla y una procedencia):
     --brass #b38c57  LATÓN DEL LOGO. Medido sobre assets/logo.webp filtrando por
       saturación (promedio #a6804f; cuantizado #a17a49 #ab8452 #b38c57 #bf9b6c).
       CORRECCIÓN a la v4: allí se botó el dorado por "no salir del negocio". Era
       falso — el logo real del negocio es un casco de buzo de LATÓN sobre azul
       marino. El dorado sí es su color de marca; lo que no salía de ningún lado
       era el #C8A44E de DeepSeek. Uso: numeración, filetes y sellos. Solo sobre
       fondos oscuros: sobre --foam da 2.68:1.
     --cyan  #5fd3e6   EL AGUA. Acción: botones, enlaces, énfasis. Pasa en todo.
     --flag  #e0002b   BANDERA DE BUZO. Reservado a EMERGENCIA y nada más — ya no
       es decoración general. Solo relleno con blanco encima (4.99:1), nunca texto.

   REGLA DE COLOR, verificada con _originals/contrast.py (no a ojo):
   el rojo NO pasa AA como texto sobre ningún fondo del sitio (3.80:1 sobre
   --abyss en el mejor caso). Por eso el rojo es SOLO relleno gráfico con texto
   blanco encima (4.99:1). El acento tipográfico es --cyan, que pasa sobre los
   cuatro fondos oscuros. Si añades un color nuevo, corre el script otra vez.

   TIPOS: Instrument Serif (display) + Space Grotesk (UI/texto). Ninguna usada
   en otro demo del proyecto.
   ============================================================================ */

:root {
  /* escala de profundidad */
  --abyss:  #02121c;
  --deep:   #05202e;
  --mid:    #0a3040;
  --slate:  #123a4a;
  --teal:   #116a73;
  --aqua:   #2fa8c0;
  --cyan:   #5fd3e6;
  --foam:   #e2f2f4;
  --mist:   #9fbcc6;
  --brass:  #b38c57;
  --flag:   #e0002b;
  --wa:     #25d366;

  /* texto sobre secciones claras (verificado: 13.6:1 y 5.47:1 sobre --foam) */
  --ink:      #06222e;
  --ink-soft: #35606b;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --pad:   clamp(3.5rem, 8vw, 7rem);
  --slant: 3.5vw;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--deep);
  color: var(--foam);
  line-height: 1.65;
  overflow-x: hidden;
}

/* height:auto es obligatorio — el atributo height del HTML gana sobre el CSS
   si no se anula, y las fotos salen con el alto del atributo, no el del layout. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cyan); color: var(--abyss);
  padding: 0.75rem 1.25rem; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- TIPOGRAFÍA ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--cyan); }

.sec-head { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

.sec-label {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem;
}
.sec-num {
  font-variant-numeric: tabular-nums;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--brass);
}
.sec-title { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
.sec-sub { margin-top: 1.1rem; font-size: 1.02rem; color: var(--mist); max-width: 620px; }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.6rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

/* Primario = cyan con tinta oscura encima (10.8:1). El rojo NO sirve de botón
   con texto claro; ver la nota de color arriba. */
.btn-primary { background: var(--cyan); color: var(--abyss); }
.btn-primary:hover { background: #7ee2f2; }

.btn-ghost { background: transparent; color: var(--foam); border-color: rgba(226,242,244,0.35); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-ink { background: var(--ink); color: var(--foam); }
.btn-ink:hover { background: var(--teal); }

/* Rojo de bandera: relleno con blanco encima (4.99:1) — el único uso permitido */
.btn-flag { background: var(--flag); color: #fff; }
.btn-flag:hover { background: #ff1a41; }

.btn-whatsapp { background: var(--wa); color: var(--abyss); }
.btn-whatsapp:hover { background: #3ae57c; }

.btn-block { width: 100%; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 0.85rem 0;
  background: rgba(2,18,28,0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(2,18,28,0.94);
  border-bottom-color: rgba(95,211,230,0.16);
  padding: 0.55rem 0;
}

.header-inner { display: flex; align-items: center; gap: 1.25rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; margin-right: auto; }
/* El logo es un sello de 117px nativos (x3 al exportar). No pasa de 46px en
   pantalla: por encima de eso el texto del aro se empasta. */
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
@media (min-width: 940px) { .brand-mark { width: 46px; height: 46px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.16rem; color: var(--foam); }
.brand-tagline {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mist);
}

.desktop-nav { display: none; align-items: center; gap: 1.6rem; }
.desktop-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.86rem; font-weight: 500; color: var(--foam);
  transition: color 0.2s;
}
.desktop-nav a:hover { color: var(--cyan); }

.desktop-nav .nav-book {
  color: var(--cyan);
  padding: 0.35rem 1rem; min-height: 44px;
  border: 1px solid rgba(95,211,230,0.4); border-radius: 2px;
}
.desktop-nav .nav-book:hover { background: rgba(95,211,230,0.12); border-color: var(--cyan); }

.btn-phone-desktop {
  display: none; align-items: center; gap: 0.45rem; min-height: 44px;
  padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 600;
  color: var(--foam); border-left: 1px solid rgba(226,242,244,0.2);
  transition: color 0.2s;
}
.btn-phone-desktop:hover { color: var(--cyan); }

.menu-toggle {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: none; cursor: pointer; z-index: 110;
}
.menu-toggle-bar {
  display: block; width: 22px; height: 2px; background: var(--foam);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.menu-toggle.active .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer móvil — entra por la DERECHA, igual que el botón que lo abre */
.mobile-nav {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; z-index: 105;
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 5.5rem 1.75rem 2rem;
  background: var(--abyss); border-left: 1px solid rgba(95,211,230,0.16);
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.mobile-nav.active { right: 0; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 46px;
  font-size: 0.98rem; font-weight: 500; color: var(--foam);
  border-bottom: 1px solid rgba(226,242,244,0.08);
}
.mobile-nav a:hover { color: var(--cyan); }
.mobile-nav-call { color: var(--cyan) !important; font-weight: 700; border-bottom: none !important; margin-top: 0.75rem; }

.nav-overlay {
  position: fixed; inset: 0; z-index: 101;
  background: rgba(2,18,28,0.7); opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }

@media (min-width: 940px) {
  .desktop-nav, .btn-phone-desktop { display: flex; }
  .menu-toggle, .mobile-nav { display: none; }
}

/* ---------- BARRA DE ACCIONES MÓVIL ---------- */
.mobile-action-bar {
  display: flex; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 99;
  background: rgba(2,18,28,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(95,211,230,0.16);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar-btn {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; min-height: 56px; padding: 0.5rem 0.3rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--foam); transition: color 0.2s;
}
.action-call { color: var(--foam); }
.action-whatsapp { color: var(--wa); }
.action-book { color: var(--cyan); }
/* La acción principal lleva una franja arriba */
.action-book::before {
  content: ''; position: absolute; top: 0; left: 22%; width: 56%; height: 2px;
  background: var(--cyan);
}

@media (min-width: 940px) { .mobile-action-bar { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 7rem;
  background: var(--abyss);
  overflow: hidden;
}

.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(1.04) contrast(1.03);
}
/* En vertical el hero es mucho más alto que 16:9 y el recorte centrado deja al buzo
   fuera de cuadro: solo se ve casco incrustado y no se entiende la escena. El buzo
   vive en el ~72% horizontal, así que el encuadre se corre hacia él. */
@media (max-width: 720px) {
  .hero-img { object-position: 74% 46%; }
}

.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(2,18,28,0.74) 0%, rgba(2,18,28,0.30) 30%, rgba(2,18,28,0.82) 78%, var(--abyss) 100%),
    linear-gradient(92deg, rgba(2,18,28,0.90) 0%, rgba(2,18,28,0.62) 38%, rgba(2,18,28,0.12) 78%, rgba(2,18,28,0.02) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  padding-top: 3rem; padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 1200px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding-left: 0.9rem; border-left: 2px solid var(--brass);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--foam); margin-bottom: 1.4rem;
}
.hero-headline {
  font-size: clamp(2.6rem, 7.6vw, 5.4rem);
  max-width: 15ch;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--foam);
  max-width: 54ch; margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-note { margin-top: 1.1rem; font-size: 0.82rem; color: var(--mist); }

/* Franja de credenciales al pie del hero */
.creds {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(95,211,230,0.2);
  background: rgba(2,18,28,0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.creds-inner {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.cred { font-size: 0.78rem; color: var(--mist); line-height: 1.35; }
.cred b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 1.35rem; color: var(--cyan); letter-spacing: -0.01em;
}
@media (min-width: 760px) {
  .creds-inner { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services {
  padding: var(--pad) 0;
  background: linear-gradient(180deg, var(--abyss) 0%, var(--deep) 40%, var(--mid) 100%);
}

.svc-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 620px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc {
  display: flex; flex-direction: column;
  background: rgba(2,18,28,0.5);
  border: 1px solid rgba(159,188,198,0.16);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.svc:hover { border-color: rgba(95,211,230,0.5); transform: translateY(-3px); }

.svc-pic { position: relative; overflow: hidden; background: var(--abyss); }
.svc-pic img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2,0,0.2,1);
}
.svc:hover .svc-pic img { transform: scale(1.045); }

/* El número va en la bandera de buzo: cuadro rojo, esquina blanca en diagonal.
   Blanco sobre el rojo da 4.99:1 — el número es legible; el rojo como TEXTO no. */
.svc-num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--abyss); background: var(--brass);
}

/* Solo la tarjeta que enseña un trabajo suyo lo dice. Las demás no reclaman nada. */
.svc-real {
  position: absolute; right: 0.6rem; bottom: 0.6rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--abyss); background: var(--cyan);
}

.svc-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.svc-name { font-size: 1.5rem; margin-bottom: 0.6rem; }
.svc-desc { font-size: 0.9rem; color: var(--mist); margin-bottom: 1.25rem; }
.svc-price {
  margin-top: auto; padding-top: 0.9rem;
  border-top: 1px solid rgba(159,188,198,0.16);
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist);
}
.svc-price b {
  font-family: var(--serif); font-weight: 400; font-size: 1.75rem;
  letter-spacing: -0.01em; color: var(--cyan); text-transform: none;
}
.svc-price span { text-transform: none; letter-spacing: 0; }

.stock-note {
  margin-top: 1.75rem; font-size: 0.76rem; color: var(--mist); opacity: 0.85;
  text-align: center; font-style: italic;
}

/* ============================================================
   PRECIOS — la única sección en agua clara. Es literal: la
   sección que habla de transparencia es la que está iluminada.
   El borde superior en diagonal repite la franja de la bandera.
   ============================================================ */
.pricing {
  position: relative; z-index: 1;
  margin-top: calc(var(--slant) * -1);
  padding: calc(var(--pad) + var(--slant)) 0 var(--pad);
  background: var(--foam);
  color: var(--ink);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
/* el latón no contrasta sobre --foam (2.68:1): en las secciones claras el filete es teal */
.pricing .sec-num, .quotes .sec-num { border-bottom-color: var(--teal); }
.pricing .sec-label { color: var(--teal); }
.pricing .sec-sub { color: var(--ink-soft); }
.pricing h2 em { color: var(--teal); }

.tables { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .tables { grid-template-columns: 1.35fr 1fr; } }

.table-card {
  background: #fff;
  border: 1px solid rgba(6,34,46,0.10);
  border-radius: 3px;
  padding: 1.4rem 1.25rem 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-title {
  font-size: 1.35rem; color: var(--ink); margin-bottom: 0.9rem;
  padding-left: 0.65rem; border-left: 3px solid var(--teal);
}

.ptable { width: 100%; font-size: 0.9rem; min-width: 430px; }
.ptable thead th {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-soft); text-align: left;
  padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(6,34,46,0.18);
}
.ptable thead th:nth-child(2) { text-align: right; }
.ptable tbody td {
  padding: 0.85rem 0.75rem; color: var(--ink);
  border-bottom: 1px solid rgba(6,34,46,0.08);
}
.ptable tbody tr:last-child td { border-bottom: none; }
.ptable tbody tr:hover td { background: rgba(17,106,115,0.05); }

.price-cell {
  text-align: right; white-space: nowrap;
  font-weight: 700; color: var(--teal) !important;
}
.book-cell { text-align: right; width: 1%; white-space: nowrap; }

.row-book {
  min-height: 44px; padding: 0.4rem 0.95rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); background: transparent;
  border: 1px solid rgba(17,106,115,0.4); border-radius: 2px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.row-book:hover { background: var(--ink); border-color: var(--ink); color: var(--foam); }

.pricing-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 1.5rem; margin-top: 2.5rem; text-align: center;
}
.pricing-foot p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   ÁREA DE SERVICIO
   ============================================================ */
.area { padding: var(--pad) 0; background: var(--mid); }

.marinas {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid rgba(159,188,198,0.18);
}
@media (min-width: 700px) { .marinas { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
@media (min-width: 1050px) { .marinas { grid-template-columns: repeat(3, 1fr); } }

.marinas li {
  position: relative;
  padding: 1rem 0 1rem 1.6rem;
  font-size: 1.02rem;
  border-bottom: 1px solid rgba(159,188,198,0.18);
}
.marinas li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 9px; height: 9px; margin-top: -4px;
  background: var(--cyan); transform: rotate(45deg);
}

.area-foot { margin-top: 2rem; font-size: 0.95rem; color: var(--mist); }

/* ============================================================
   CONFIANZA
   ============================================================ */
.trust { padding: var(--pad) 0; background: var(--deep); }

.trust-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-item {
  padding: 1.6rem 1.5rem;
  background: rgba(2,18,28,0.45);
  border: 1px solid rgba(159,188,198,0.14);
  border-top: 2px solid var(--teal);
  border-radius: 2px;
}
.trust-k {
  display: block; font-family: var(--serif); font-size: 1.05rem;
  color: var(--cyan); margin-bottom: 0.6rem;
}
.trust-item h3 { font-size: 1.32rem; margin-bottom: 0.55rem; }
.trust-item p { font-size: 0.88rem; color: var(--mist); }

.trust-emergency {
  display: flex; flex-direction: column; align-items: flex-start;
  border-top-color: var(--flag);
  background: rgba(224,0,43,0.07);
}
.trust-flag { display: block; line-height: 0; margin-bottom: 0.85rem; }
.trust-emergency .btn { margin-top: 1.1rem; }

/* ============================================================
   TESTIMONIOS — segunda sección en agua clara
   ============================================================ */
.quotes {
  position: relative; z-index: 1;
  margin-top: calc(var(--slant) * -1);
  padding: calc(var(--pad) + var(--slant)) 0 var(--pad);
  background: var(--foam); color: var(--ink);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.quotes .sec-label { color: var(--teal); }
.quotes h2 em { color: var(--teal); }

.quote-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 760px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }

.quote {
  display: flex; flex-direction: column;
  padding: 2rem 1.6rem 1.6rem;
  background: #fff;
  border: 1px solid rgba(6,34,46,0.10);
  border-radius: 3px;
  position: relative;
}
/* La comilla es la diagonal de la bandera otra vez, no un glifo de comilla */
.quote::before {
  content: ''; position: absolute; top: 0; left: 1.6rem;
  width: 42px; height: 5px; background: var(--teal);
}
.quote blockquote {
  flex: 1;
  font-family: var(--serif); font-size: 1.28rem; line-height: 1.4;
  color: var(--ink); margin-bottom: 1.4rem;
}
.quote figcaption {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding-top: 1rem; border-top: 1px solid rgba(6,34,46,0.12);
}
.quote-name { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.quote-boat {
  font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}

/* ============================================================
   RESERVA O COTIZA
   ============================================================ */
.contact { padding: var(--pad) 0; background: var(--mid); }
.contact .sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.contact .sec-label { justify-content: center; }
.contact .sec-sub { margin-left: auto; margin-right: auto; }

.path-switch {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  max-width: 920px; margin: 0 auto 2rem;
}
@media (min-width: 720px) { .path-switch { grid-template-columns: 1fr 1fr; } }

.path {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem;
  text-align: left; padding: 1.5rem;
  background: rgba(2,18,28,0.45);
  border: 1px solid rgba(159,188,198,0.18);
  border-radius: 3px; cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.path:hover { border-color: rgba(95,211,230,0.5); transform: translateY(-2px); }

.path-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 0.5rem;
  color: var(--cyan);
  background: rgba(95,211,230,0.10);
  border: 1px solid rgba(95,211,230,0.3);
  transition: background 0.25s ease, color 0.25s ease;
}
.path-kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--cyan);
}
.path-title { font-family: var(--serif); font-size: 1.55rem; color: var(--foam); line-height: 1.15; }
.path-desc { font-size: 0.87rem; color: var(--mist); }

.path.is-active { background: rgba(95,211,230,0.10); border-color: var(--cyan); }
.path.is-active .path-icon { background: var(--cyan); color: var(--abyss); }
.path.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: -1px;
  width: 14px; height: 14px;
  background: rgba(2,18,28,0.55);
  border-right: 1px solid var(--cyan); border-bottom: 1px solid var(--cyan);
  transform: translate(-50%, 50%) rotate(45deg);
}

.path-panel {
  max-width: 920px; margin: 0 auto; padding: 2rem;
  background: rgba(2,18,28,0.55);
  border: 1px solid rgba(95,211,230,0.22);
  border-radius: 3px;
}
.path-panel[hidden] { display: none; }
.path-panel:focus { outline: none; }
@media (max-width: 560px) { .path-panel { padding: 1.25rem; } }

.picked-service {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  margin-bottom: 1.25rem; padding: 0.7rem 1rem;
  font-size: 0.86rem; color: var(--foam);
  background: rgba(95,211,230,0.10);
  border: 1px solid rgba(95,211,230,0.3);
  border-left: 3px solid var(--brass);
}
.picked-service[hidden] { display: none; }
.picked-service b { color: var(--cyan); font-weight: 700; }
.picked-note { color: var(--mist); }

/* TidyCal: la caja reserva su altura antes de que el iframe async resuelva */
.tidycal-wrap {
  position: relative; min-height: 700px;
  background: rgba(2,18,28,0.5);
  border: 1px solid rgba(159,188,198,0.16);
  border-radius: 3px; overflow: hidden;
}
.tidycal-embed { display: block; width: 100%; min-height: 700px; border: 0; }

.tidycal-skeleton {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; padding: 2rem 1.5rem; text-align: center; pointer-events: none;
}
.tidycal-skeleton a { pointer-events: auto; color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.tidycal-skeleton.is-hidden { opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s; }
.tidycal-spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(95,211,230,0.2); border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tidycal-loading-text { font-size: 0.9rem; color: var(--foam); }
.tidycal-loading-alt { font-size: 0.8rem; color: var(--mist); max-width: 340px; }

.panel-foot { margin-top: 1.25rem; font-size: 0.8rem; color: var(--mist); text-align: center; }

/* Formulario */
.wa-form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 520px; margin: 0 auto; }
.form-intro { font-size: 0.9rem; color: var(--mist); }
.form-foot { font-size: 0.78rem; color: var(--mist); text-align: center; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group[hidden] { display: none; }
.form-group label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--foam);
}
.label-why { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--mist); }

.form-group select {
  min-height: 48px; padding: 0.8rem 2.5rem 0.8rem 1rem;
  font-family: var(--sans); font-size: 0.95rem; color: var(--foam);
  background-color: rgba(2,18,28,0.8);
  border: 1px solid rgba(159,188,198,0.3); border-radius: 2px;
  outline: none; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235fd3e6' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
  transition: border-color 0.2s ease;
}
.form-group select:focus { border-color: var(--cyan); }

.contact-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.75rem 1rem; max-width: 920px; margin: 2rem auto 0;
}
.contact-method {
  display: inline-flex; align-items: center; gap: 0.7rem; min-height: 48px;
  padding: 0.7rem 1.1rem; font-size: 0.92rem; font-weight: 500; color: var(--foam);
  background: rgba(2,18,28,0.5);
  border: 1px solid rgba(159,188,198,0.18); border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-method:hover { border-color: var(--cyan); color: var(--cyan); }
.contact-method svg { flex-shrink: 0; color: var(--cyan); }

.contact-emergency {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; font-weight: 500; color: var(--mist);
}
.emergency-dot {
  width: 8px; height: 8px; flex-shrink: 0; background: var(--flag);
  transform: rotate(45deg);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding: var(--pad) 0 2rem; background: var(--abyss); color: var(--mist); font-size: 0.88rem; }

.foot-top {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(159,188,198,0.14);
}
@media (min-width: 760px) { .foot-top { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }

.foot-mark { width: 64px; height: 64px; margin-bottom: 1rem; }
.foot-company { font-family: var(--serif); font-size: 1.4rem; color: var(--foam); margin-bottom: 0.4rem; }
.foot-desc { max-width: 34ch; }

.foot-col h4 {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem;
}
.foot-col li { margin-bottom: 0.15rem; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; transition: color 0.2s; }
.foot-col a:hover { color: var(--cyan); }

.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-top: 1.75rem; font-size: 0.8rem;
}
.foot-copy { color: var(--mist); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.42s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.49s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.56s; }

/* ---------- COMPENSAR LA BARRA FIJA EN MÓVIL ---------- */
@media (max-width: 939px) {
  body { padding-bottom: 56px; }
}

/* ---------- FOCO ---------- */
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}

::selection { background: var(--cyan); color: var(--abyss); }

/* ---------- MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
