/* ─────────────────────────────────────────
   La Frau Dive Center
   La página es un perfil de inmersión: superficie → fondo → superficie.
   ───────────────────────────────────────── */

:root {
  /* agua */
  --abyss: #020f14;
  --deep: #05222b;
  --sea: #083642;
  --shallow: #0c4a57;
  --lagoon: #5fd8cc;
  --foam: #e6f4f1;
  --mist: rgba(230, 244, 241, 0.72);
  --line: rgba(230, 244, 241, 0.16);

  /* superficie */
  --sand: #f3ecdd;
  --sand-2: #e8dec9;
  --ink: #0a1d23;
  --ink-2: #44575c;
  --ink-line: rgba(10, 29, 35, 0.14);
  --teal: #0b6b6f;

  /* acento: el blanco y negro del logo */
  --white: #fff;
  --black: #0a0f11;

  --font-display: "Fraunces", "Cooper Black", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --pad: clamp(76px, 11vw, 152px);
  --r: 18px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--foam);
  background: var(--deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--white); color: var(--black); }
.surface ::selection { background: var(--black); color: var(--white); }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
p { text-wrap: pretty; }

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
th { font-weight: inherit; text-align: left; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }
.surface :focus-visible, .nav:not(.is-stuck) :focus-visible { outline-color: var(--black); }

.sprite { position: absolute; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--white); color: var(--black); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: var(--pad); position: relative; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--flip { transform: scaleX(-1); }

/* ───────── Tipografía ───────── */

.h2, .hero__title, .manifesto__statement, .contact__title, .h3, .exp__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 { font-size: clamp(2.3rem, 5.4vw, 4.5rem); line-height: 1; font-weight: 700; }
.h3 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.05; font-weight: 700; }
.h3--xl { font-size: clamp(2.2rem, 4.6vw, 3.75rem); }

.h2 em, .h3 em, .hero__title em, .manifesto__statement em, .contact__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--lagoon);
}
.surface .h2 em { color: var(--teal); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 18px;
}
.surface .eyebrow { color: var(--teal); }

.section__head { margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
}
.section__aside { max-width: 34ch; color: var(--ink-2); }

/* ───────── Botones y enlaces ───────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  height: 52px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 0.94rem; }
.btn--lg { height: 60px; padding: 0 30px; font-size: 1.06rem; }

.btn--solid { background: var(--white); color: var(--black); }
.btn--solid:focus-visible { outline-color: var(--black); outline-offset: -5px; }
/* Sobre la luz de superficie del hero la barra va en negro; al fijarse, en blanco. */
.nav:not(.is-stuck) .btn--solid { background: var(--black); color: var(--white); }
.nav:not(.is-stuck) .btn--solid:focus-visible { outline-color: var(--white); }
.btn--ghost { background: rgba(255, 255, 255, 0.08); color: var(--foam); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.btn--ink { background: var(--black); color: var(--white); }

.link {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; text-decoration: none;
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.link .icon { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: #dfe9e7; }
  .nav:not(.is-stuck) .btn--solid:hover { background: #253237; }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
  .btn--ink:hover { background: #253237; }
  .link:hover .icon { transform: translateX(4px); }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 13px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ───────── Navegación ───────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
.nav.is-stuck {
  background: rgba(5, 34, 43, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  display: flex; align-items: center; gap: 28px;
  height: 100%;
  width: min(100% - var(--gutter) * 2, 1400px); margin-inline: auto;
}
.nav__logo { display: block; flex: none; margin-right: auto; }
.nav__logo img { height: 34px; width: auto; filter: brightness(0.12); transition: filter 300ms ease; }
.nav.is-stuck .nav__logo img { filter: none; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--ink);
  padding-block: 8px; opacity: 0.86;
  transition: opacity 160ms ease, color 300ms ease;
}
.nav.is-stuck .nav__links a { color: var(--foam); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; transition: transform 160ms var(--ease-out); }
.nav__toggle:active { transform: scale(0.96); }
.nav__toggle-bars, .nav__toggle-bars::before {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 240ms var(--ease-out), background-color 300ms ease;
}
.nav.is-stuck .nav__toggle-bars, .nav.is-stuck .nav__toggle-bars::before { background: var(--foam); }
.nav__toggle-bars { top: 17px; }
.nav__toggle-bars::before { content: ""; left: 0; top: 8px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(-8px) rotate(-90deg); }

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { opacity: 1; }
}

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  background: var(--deep);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), display 240ms allow-discrete;
}
.menu[hidden] { display: none; opacity: 0; transform: translateY(-6px); transition-duration: 150ms; }
@starting-style { .menu { opacity: 0; transform: translateY(-10px); } }
.menu__links { display: grid; gap: 4px; }
.menu__links a {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100;
  font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  text-decoration: none; padding-block: 6px;
}
.menu__links a { transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.menu__links a:nth-child(1) { transition-delay: 40ms; }
.menu__links a:nth-child(2) { transition-delay: 75ms; }
.menu__links a:nth-child(3) { transition-delay: 110ms; }
.menu__links a:nth-child(4) { transition-delay: 145ms; }
.menu__links a:nth-child(5) { transition-delay: 180ms; }
.menu__links a:nth-child(6) { transition-delay: 215ms; }
@starting-style { .menu:not([hidden]) .menu__links a { opacity: 0; transform: translateY(12px); } }
.menu__meta { color: var(--mist); font-size: 0.95rem; }
.menu-open { overflow: hidden; }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { gap: 10px; }
  .nav__logo img { height: 30px; }
}

/* ───────── Profundímetro ───────── */

.gauge {
  position: fixed; right: 22px; top: 50%; z-index: 30;
  height: 168px; margin-top: -84px;
  color: #fff; mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0; transition: opacity 200ms ease;
}
.gauge.is-on { opacity: 1; transition-duration: 300ms; }
.gauge__track { position: absolute; right: 4px; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.4); }
.gauge__track::before, .gauge__track::after {
  content: ""; position: absolute; left: -3px; width: 7px; height: 1px; background: rgba(255, 255, 255, 0.6);
}
.gauge__track::before { top: 0; }
.gauge__track::after { bottom: 0; }
.gauge__dot {
  position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: #fff;
  will-change: transform;
}
.gauge__read {
  position: absolute; right: 18px; top: 0;
  display: grid; justify-items: end; gap: 1px;
  white-space: nowrap; line-height: 1.1;
  will-change: transform;
}
.gauge__num { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.gauge__zone { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
@media (max-width: 1679px) { .gauge__zone { display: none; } }
@media (max-width: 1499px) { .gauge { display: none; } }

/* ───────── Hero ─────────
   El vídeo es vertical (una foto del centro animada). En escritorio ocupa la
   derecha y su borde izquierdo se funde con una franja del propio fotograma,
   estirada a lo ancho: el agua continúa sin costura detrás del texto. */

.hero {
  --hero-zoom: 142.2%;   /* alto del vídeo respecto al panel 4:5 */
  --hero-y: 55%;
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  background: #0a6a86 url("assets/img/hero-strip.webp") 50% var(--hero-y) / 100% var(--hero-zoom) no-repeat;
}
.hero__video {
  position: absolute; top: 0; right: 0;
  height: 100%; width: auto; aspect-ratio: 4 / 5; max-width: 58vw;
  object-fit: cover; object-position: 50% var(--hero-y);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
  mask-image: linear-gradient(to right, transparent 0%, #000 38%);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(115% 85% at 0% 78%, rgba(3, 40, 56, 0.78) 0%, rgba(3, 40, 56, 0.42) 46%, rgba(3, 40, 56, 0) 72%),
    linear-gradient(to bottom, rgba(12, 74, 87, 0) 62%, rgba(12, 74, 87, 0.8) 90%, var(--shallow) 100%);
}

.hero__content { align-self: end; padding-block: 48px clamp(36px, 6vh, 72px); }
.hero__eyebrow { color: var(--foam); }
.hero__title {
  font-size: clamp(3.2rem, 9.4vw, 8.5rem);
  line-height: 0.9; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.hero__title em { display: block; font-weight: 600; }
.hero__lead { max-width: 46ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--foam); margin-bottom: clamp(24px, 3vw, 36px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(230, 244, 241, 0.24);
}
.hero__facts li { display: grid; gap: 2px; padding: 20px 20px 28px 0; }
.hero__facts li + li { padding-left: 24px; border-left: 1px solid rgba(230, 244, 241, 0.24); }
.hero__facts strong { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 1rem; }
.hero__facts span { font-size: 0.9rem; color: var(--mist); }
.icon--star { width: 1em; height: 1em; }

.hero__pause {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 16px);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(2, 15, 20, 0.36); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.hero__pause:active { transform: scale(0.96); }
.hero__pause .icon { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .hero__pause:hover { background: rgba(2, 15, 20, 0.6); } }

/* Portátiles estrechos: el titular no debe tocar la cara. */
@media (min-width: 1024px) and (max-width: 1279px) { .hero__title { font-size: 8.2vw; } }

/* Tablet y móvil: el vídeo arriba, a todo el ancho, y el texto debajo de la cara. */
@media (max-width: 1023px) {
  .hero { --hero-h: min(74svh, 680px); display: block; min-height: 0; padding-top: 0; }
  .hero__media { background: linear-gradient(to bottom, #05597a 0, #05597a var(--hero-h), var(--shallow) 100%); }
  .hero__video {
    left: 0; right: auto; width: 100%; max-width: none; height: var(--hero-h); aspect-ratio: auto;
    object-position: 50% 46%;
    -webkit-mask-image: linear-gradient(to bottom, #000 56%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 56%, transparent 100%);
  }
  .hero__media::after {
    background: linear-gradient(to bottom, rgba(5, 89, 122, 0) 30%, rgba(5, 89, 122, 0.55) 52%, rgba(5, 89, 122, 0) 80%);
    height: var(--hero-h); bottom: auto;
  }
  .hero__content { padding-top: min(45svh, 430px); }
}
@media (max-width: 760px) {
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts li { padding: 14px 12px 14px 0; }
  .hero__facts li + li { padding-left: 0; border-left: 0; }
  .hero__facts li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(230, 244, 241, 0.24); }
  .hero__facts li:nth-child(n + 3) { border-top: 1px solid rgba(230, 244, 241, 0.24); }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ───────── Columna de agua ───────── */

.water {
  background: linear-gradient(
    to bottom,
    var(--shallow) 0%,
    var(--sea) 16%,
    var(--deep) 38%,
    var(--abyss) 60%,
    #01090c 78%,
    var(--deep) 100%
  );
}

.water .section + .section { padding-top: calc(var(--pad) * 0.45); }
.water .wrecks, .water .night { padding-top: calc(var(--pad) * 0.2) !important; }

/* Filosofía */
.manifesto__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 5vw, 72px) 32px; align-items: end; }
.manifesto__text { grid-column: 1 / span 8; }
.manifesto__statement { font-size: clamp(2rem, 4.7vw, 4rem); line-height: 1.04; font-weight: 600; }
.manifesto__figure { grid-column: 9 / -1; }
.manifesto__figure img { border-radius: var(--r); width: 100%; }
.manifesto__points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.manifesto__points li { padding-top: 22px; border-top: 1px solid var(--line); }
.manifesto__n { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; color: var(--lagoon); margin-bottom: 14px; }
.manifesto__points h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.45rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.manifesto__points p { color: var(--mist); max-width: 38ch; }

@media (max-width: 900px) {
  .manifesto__text, .manifesto__figure { grid-column: 1 / -1; }
  .manifesto__figure { max-width: 420px; }
  .manifesto__points { grid-template-columns: 1fr; gap: 24px; }
}

/* Experiencias */
.exp__media { overflow: hidden; border-radius: var(--r); background: var(--sea); }
.exp__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.exp__num { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lagoon); }
.exp__title { font-size: 1.6rem; line-height: 1.1; font-weight: 700; }
.exp__text { color: var(--mist); }
.exp__price { font-weight: 600; }
.exp__price span { font-weight: 400; color: var(--mist); }

.exp--lead {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4.5vw, 64px); align-items: center;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.exp--lead .exp__body { display: grid; gap: 18px; justify-items: start; }
.exp--lead .exp__title { font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1; }
.exp--lead .exp__text { font-size: 1.1rem; max-width: 40ch; }
.exp__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 10px; }
.price { display: grid; line-height: 1.1; }
.price__num { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 3.25rem; font-weight: 700; letter-spacing: -0.02em; }
.price__note { font-size: 0.86rem; color: var(--mist); }

.exps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.exps__grid .exp { display: grid; gap: 10px; align-content: start; justify-items: start; }
.exps__grid .exp__media { width: 100%; margin-bottom: 10px; }
.exps__grid .exp__text { font-size: 0.98rem; }
.exps__grid .link { margin-top: 4px; }

@media (max-width: 1100px) { .exps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .exp--lead { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .exps__grid { grid-template-columns: 1fr; } }

/* Fondos */
.depth { display: flex; align-items: baseline; gap: 8px; color: var(--lagoon); margin-bottom: 14px; line-height: 0.8; }
.depth__n { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: clamp(4.5rem, 10vw, 9rem); font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.depth__u { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; }

.site__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.site__copy { display: grid; gap: 18px; }
.site__copy > p:not(.depth):not(.note) { color: var(--mist); font-size: 1.1rem; max-width: 44ch; }
.site__figure img { width: 100%; border-radius: var(--r); }

.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); margin-bottom: 4px; }
.facts dd { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.note { padding-left: 18px; border-left: 2px solid var(--lagoon); color: var(--mist); font-size: 0.98rem; max-width: 46ch; }
.note strong { color: var(--foam); }

.wrecks__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.wrecks__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.wrecks__figure figcaption, .base__photo figcaption, .team__photo figcaption { margin-top: 10px; font-size: 0.84rem; color: var(--mist); }
.wrecks__copy { display: grid; gap: 18px; }
.wrecks__copy > p:not(.depth) { color: var(--mist); font-size: 1.1rem; max-width: 52ch; }

.manifest { margin-top: 10px; }
.manifest tr { border-top: 1px solid var(--line); }
.manifest tr:last-child { border-bottom: 1px solid var(--line); }
.manifest th, .manifest td { padding: 15px 16px 15px 0; vertical-align: baseline; }
.manifest th { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.manifest td { color: var(--mist); font-size: 0.98rem; }
.manifest__d { text-align: right; white-space: nowrap; padding-right: 0 !important; font-variant-numeric: tabular-nums; color: var(--lagoon) !important; font-weight: 600; }

.callout { display: grid; gap: 10px; justify-items: start; margin-top: 14px; padding: clamp(22px, 3vw, 30px); border-radius: var(--r); background: rgba(230, 244, 241, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.callout h4 { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
.callout p { color: var(--mist); max-width: 54ch; }

.night__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.night__copy { display: grid; gap: 18px; }
.night__copy .eyebrow { margin-bottom: 0; }
.night__lead { font-size: 1.2rem; color: var(--foam); max-width: 34ch; }
.pull { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.pull blockquote { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-style: italic; font-size: 1.3rem; line-height: 1.35; max-width: 34ch; }
.pull figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--mist); }
.night__figs { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.night__fig img { width: 100%; border-radius: var(--r); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.night__fig--a { grid-column: 1 / span 9; grid-row: 1; }
.night__fig--b { grid-column: 7 / -1; grid-row: 1; margin-top: 52%; }

@media (max-width: 900px) {
  .site__grid, .wrecks__grid, .night__grid { grid-template-columns: 1fr; }
  .site__figure { order: -1; }
  .wrecks__figure { max-width: 460px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .manifest th { white-space: normal; }
}
@media (max-width: 560px) {
  .manifest tr { display: grid; grid-template-columns: 1fr auto; padding-block: 12px; }
  .manifest th, .manifest td { padding: 0; }
  .manifest td:not(.manifest__d) { grid-column: 1 / -1; grid-row: 2; margin-top: 2px; }
}

/* Vida marina */
.life { padding-bottom: calc(var(--pad) + 8px); }
.life__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.life__nav { display: flex; gap: 10px; margin-bottom: clamp(36px, 5vw, 64px); }
.round {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(230, 244, 241, 0.3);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, opacity 200ms ease;
}
.round:not([disabled]):active { transform: scale(0.96); }
.round[disabled] { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .round:not([disabled]):hover { background: rgba(230, 244, 241, 0.1); } }

.rail {
  --rail-h: clamp(250px, 34vw, 430px);
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  display: flex; gap: 20px;
  padding-inline: var(--edge);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail__item { flex: none; width: calc(var(--rail-h) * var(--ar)); scroll-snap-align: start; }
.rail__item--sq { --ar: 1; }
.rail__item--ls { --ar: 1.3333; }
.rail__item--pt { --ar: 0.8; }
.rail__item img { width: 100%; height: var(--rail-h); object-fit: cover; border-radius: var(--r); background: var(--sea); }
.rail__item p { display: grid; gap: 3px; margin-top: 14px; }
.rail__item strong { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.rail__item span { font-size: 0.92rem; line-height: 1.45; color: var(--mist); }

@media (max-width: 700px) { .life__nav { display: none; } }

/* ───────── Superficie ───────── */

.surface { background: var(--sand); color: var(--ink); }
.surface .section + .section { padding-top: 0; }

/* Cursos */
.tabs__list {
  position: relative; display: inline-flex; padding: 5px; border-radius: 999px;
  background: rgba(10, 29, 35, 0.07);
  max-width: 100%;
}
.tabs__tab {
  position: relative; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; color: var(--ink); white-space: nowrap;
  transition: transform 160ms var(--ease-out);
}
.tabs__tab:active { transform: scale(0.97); }
.tabs__list--over {
  position: absolute; inset: 0; z-index: 1; display: flex;
  background: var(--ink); pointer-events: none;
  clip-path: inset(5px 100% 5px 5px round 999px);
  transition: clip-path 260ms var(--ease-out);
}
.tabs__list--over .tabs__tab { color: var(--sand); }
.tabs__panel { margin-top: clamp(20px, 3vw, 36px); transition: opacity 200ms ease; }
@starting-style { .tabs__panel:not([hidden]) { opacity: 0; } }
/* Con teclado no se anima: el cambio debe sentirse inmediato. */
[data-instant] .tabs__list--over, [data-instant] .tabs__panel { transition-duration: 0ms; }

.rates thead th {
  padding: 0 16px 12px 0;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.rates tbody tr { border-top: 1px solid var(--ink-line); }
.rates tbody tr:last-child { border-bottom: 1px solid var(--ink-line); }
.rates tbody th, .rates td { padding: 20px 16px 20px 0; vertical-align: baseline; }
.rates tbody th { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.35rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.rates tbody th span { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 0.88rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.rates td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rates .rates__p { text-align: right; padding-right: 0; }
.rates td.rates__p { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.rates .is-featured th::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--black);
  margin-right: 10px; transform: translateY(-3px);
}

.courses__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(28px, 4vw, 44px); }
.courses__foot p { max-width: 48ch; color: var(--ink-2); }

@media (max-width: 820px) {
  .tabs__list { display: flex; }
  .tabs__tab { flex: 1; padding: 0 10px; font-size: 0.92rem; }
  .rates thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rates tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; padding-block: 18px; }
  .rates tbody th, .rates td { padding: 0; }
  .rates tbody th { grid-column: 1; }
  .rates td.rates__p { grid-column: 2; grid-row: 1; }
  .rates td:not(.rates__p) { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; font-size: 0.94rem; white-space: normal; }
  .rates td:not(.rates__p)::before { content: attr(data-l); color: var(--ink-2); }
}

/* El centro */
.base__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; }
.base__photo img { width: 100%; height: clamp(240px, 34vw, 440px); object-fit: cover; border-radius: var(--r); }
.base__photo figcaption { color: var(--ink-2); }
.perks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; margin-top: clamp(28px, 4vw, 52px); }
.perks li { padding-top: 20px; border-top: 1px solid var(--ink-line); }
.perks h3, .causes strong { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.35rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.perks h3 { margin-bottom: 8px; }
.perks p { color: var(--ink-2); max-width: 36ch; }

@media (max-width: 900px) {
  .base__grid { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; gap: 24px; } }

/* Equipo */
.team__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.team__photo img { width: 100%; border-radius: var(--r); }
.team__photo figcaption { color: var(--ink-2); }
.team__copy { display: grid; gap: 18px; }
.team__copy .eyebrow { margin-bottom: 0; }
.team__lead { font-size: 1.2rem; max-width: 46ch; }
.team__copy > p:not(.eyebrow):not(.team__lead) { color: var(--ink-2); max-width: 54ch; }
.causes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.causes li { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink-line); }
.causes strong { font-size: 1.15rem; }
.causes span { font-size: 0.94rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .team__grid { grid-template-columns: 1fr; }
  .team__photo { max-width: 480px; }
}
@media (max-width: 640px) { .causes { grid-template-columns: 1fr; } }

/* Reseñas */
.reviews { padding-bottom: var(--pad); }
.score { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.score__n { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 3.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.score__meta { display: grid; gap: 4px; font-size: 0.92rem; color: var(--ink-2); }
.score__stars { display: flex; gap: 2px; color: var(--black); }
.score__stars .icon { width: 18px; height: 18px; }

.quotes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r); background: var(--sand-2); }
.quote blockquote { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.22rem; line-height: 1.35; font-weight: 500; letter-spacing: -0.005em; }
.quote figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.92rem; font-weight: 600; }
.tag { padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.7; }
.quote--lead { grid-column: 1 / span 7; grid-row: 1 / span 2; background: var(--deep); color: var(--foam); }
.quote--lead blockquote { font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.quote:nth-child(2), .quote:nth-child(3) { grid-column: 8 / -1; }
.quote:nth-child(4) { grid-column: 1 / span 5; }
.quote:nth-child(5) { grid-column: 6 / -1; }

@media (max-width: 900px) {
  .quotes { grid-template-columns: 1fr; }
  .quote, .quote--lead, .quote:nth-child(n) { grid-column: 1; grid-row: auto; }
}

/* ───────── Contacto ───────── */

.contact { background: linear-gradient(to bottom, var(--deep), var(--abyss)); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: stretch; }
.contact__title {
  font-size: clamp(3rem, 8vw, 7rem); line-height: 0.92; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.contact__title em { font-weight: 600; }
.contact__lead { font-size: 1.15rem; color: var(--mist); max-width: 42ch; margin-bottom: 30px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(36px, 5vw, 56px); }
.contact__list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.contact__list dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lagoon); margin-bottom: 6px; }
.contact__list dd { line-height: 1.45; }
.contact__list a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact__map { display: grid; grid-template-rows: 1fr auto; gap: 14px; justify-items: start; }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--r); background: var(--sea); }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 480px) { .contact__list { grid-template-columns: 1fr; } }

/* ───────── Pie ───────── */

.footer { background: var(--abyss); padding-block: 56px calc(40px + env(safe-area-inset-bottom)); }
.footer__inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.footer__logo { width: min(210px, 52vw); height: auto; }
.footer__tag { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-style: italic; font-size: 1.2rem; color: var(--mist); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 10px; }
.footer__links a { display: inline-flex; align-items: center; gap: 7px; padding-block: 8px; font-size: 0.95rem; font-weight: 500; text-decoration: none; opacity: 0.86; transition: opacity 160ms ease; }
.footer__legal { margin-top: 8px; font-size: 0.82rem; color: rgba(230, 244, 241, 0.55); }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { opacity: 1; } }

/* ───────── WhatsApp flotante (móvil) ───────── */

.fab {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 35;
  display: none; align-items: center; justify-content: center; gap: 10px;
  height: 54px; border-radius: 999px;
  background: var(--white); color: var(--black);
  font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px rgba(2, 15, 20, 0.35), 0 0 0 1px rgba(10, 15, 17, 0.12);
  opacity: 0; transform: translateY(100%); pointer-events: none;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; transition-duration: 260ms; }
.fab:focus-visible { outline-color: var(--black); outline-offset: -5px; }
.fab.is-on:active { transform: scale(0.97); transition-duration: 120ms; }
@media (max-width: 760px) {
  .fab { display: flex; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ───────── Aparición al hacer scroll ───────── */

.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* Las fotos grandes se descubren de arriba abajo, como al bajar.
   El recorte va en la imagen, no en el elemento observado: un objetivo
   recortado del todo no cuenta como visible para IntersectionObserver. */
.js .reveal--clip { opacity: 1; transform: none; }
.js .reveal--clip img { clip-path: inset(0 0 100% 0 round var(--r)); }
.js .reveal--clip.is-in img {
  clip-path: inset(0 0 0 0 round var(--r));
  transition: clip-path 900ms var(--ease-out);
}

/* Entrada del hero: una sola vez por visita. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
.hero__content > * { animation: rise 800ms var(--ease-out) backwards; }
.hero__content > :nth-child(1) { animation-delay: 100ms; }
.hero__content > :nth-child(2) { animation-delay: 170ms; }
.hero__content > :nth-child(3) { animation-delay: 240ms; }
.hero__content > :nth-child(4) { animation-delay: 310ms; }
.hero__facts { animation: fade 800ms ease 480ms backwards; }

/* Movimiento reducido: se quedan los fundidos, se va el desplazamiento. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal--clip { transform: none; opacity: 0; }
  .js .reveal.is-in, .js .reveal--clip.is-in { opacity: 1; transition: opacity 300ms ease; transition-delay: 0ms; }
  .js .reveal--clip img, .js .reveal--clip.is-in img { clip-path: none; transition: none; }
  .hero__content > * { animation-name: fade; animation-duration: 300ms; }
  .tabs__list--over { transition: none; }
  .menu, .menu[hidden], .menu__links a, .fab, .fab.is-on { transition-property: opacity; }
  .btn:active, .round:active, .tabs__tab:active, .hero__pause:active, .nav__toggle:active, .fab.is-on:active { transform: none; }
}
