/* Estilos compartidos. Identidad: azul mar.
   Tipografía: Source Serif 4 (titulares y texto largo) + Outfit (interfaz).
   Retícula: 12 columnas, 1200px, medianil 24px. Ritmo vertical: múltiplos de 8px. */

@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
/* Source Serif 4 y Outfit autoalojadas (variables, descargadas de Google Fonts): sin peticiones a terceros. */
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-latin.woff2") format("woff2"); font-weight: 300 600; font-display: swap; 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: "Outfit"; src: url("/fonts/outfit-latin-ext.woff2") format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-latin.woff2") format("woff2"); font-style: normal; font-weight: 300 500; font-display: swap; 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"; src: url("/fonts/source-serif-4-latin-ext.woff2") format("woff2"); font-style: normal; font-weight: 300 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-italic-latin.woff2") format("woff2"); font-style: italic; font-weight: 300 500; font-display: swap; 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"; src: url("/fonts/source-serif-4-italic-latin-ext.woff2") format("woff2"); font-style: italic; font-weight: 300 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #f5f5ee;
  --paper: #ffffff;
  --mist: #e6eef1;
  --ink: #0b1e2d;
  --ink-2: #53687a;
  --line: rgba(11, 30, 45, .14);
  --sea: #0f5c7a;
  --sea-deep: #0a2a3d;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 24px;
  --side: 40px;
  --nav: 72px;
  --inset: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 350; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

/* ── Retícula ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--side); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.c-main { grid-column: 4 / 13; }
.c-text { grid-column: 4 / 10; }

/* ── Tipografía base ── */
.caps { font-family: "Manrope", var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.num { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sea); }
.display { font-family: var(--serif); font-weight: 350; font-size: clamp(40px, 5vw, 72px); line-height: 1.06; letter-spacing: -.015em; }
.display em { font-style: italic; color: var(--sea); }
.lead { font-family: var(--serif); font-style: italic; font-weight: 350; font-size: 20px; line-height: 1.6; color: var(--ink-2); max-width: 34ch; }
.serif-text { font-family: var(--serif); font-size: 19px; line-height: 1.75; }

/* ── Botones ── */
/* Esquinas suaves como las del panel de la portada (18 px), proporcionadas al tamaño del botón. */
.btn { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 400; letter-spacing: .02em; padding: 14px 28px; border-radius: 10px; background: var(--sea); color: #fff; border: 1px solid var(--sea); transition: background .25s, color .25s, border-color .25s; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--sea-deep); border-color: var(--sea-deep); }
.btn--line { background: transparent; color: var(--sea); }
.btn--line:hover { background: var(--sea); color: #fff; border-color: var(--sea); }
.btn--light { background: #fff; color: var(--sea-deep); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.link { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 400; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.link:hover { color: var(--sea); border-color: var(--sea); }

/* ── Nav ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--nav); background: rgba(245,245,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 40px; }
/* Logo: "ALONIA" en la letra del menú (Outfit) y "digital" en la cursiva de los titulares. */
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: .14em; color: var(--sea-deep); white-space: nowrap; transition: opacity .2s; }
.wordmark em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; letter-spacing: 0; color: var(--sea); }
.wordmark:hover { opacity: .7; }
.nav-list { display: flex; gap: 36px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 15px; font-weight: 400; color: var(--ink); }
.nav-list > li { position: relative; }
.nav-list a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; transition: color .2s; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--sea); }
.caret { width: 8px; height: 8px; }
.drop { position: absolute; top: 100%; left: -20px; min-width: 230px; background: var(--paper); border: 1px solid var(--line); padding: 8px 0; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(4px); transition: .2s ease; }
.nav-list > li:hover .drop, .nav-list > li:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: flex; padding: 8px 20px; }
.nav-side { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 400; color: var(--ink); }
.nav-side .btn { padding: 11px 20px; }
.nav-lang span { opacity: .45; }
/* Botón de menú (móvil): dos trazos finos que se cruzan en una X al abrir. */
.menu-btn { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 2px; background: currentColor; transition: top .3s ease, transform .35s cubic-bezier(.4, 0, .2, 1); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.nav.open .menu-btn span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav.open .menu-btn span:last-child { top: 21.5px; transform: rotate(-45deg); }
.menu-btn:focus { outline: none; }
.menu-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.m-only { display: none; }

/* La cabecera es del mismo blanco cálido y liso que la página, sin borde; una línea finísima
   aparece solo al bajar. */
body, .nav, .nav-list { background: var(--bg); }
.nav { backdrop-filter: none; border-bottom-color: transparent; transition: border-color .3s ease; }
.nav.scrolled { border-bottom-color: var(--line); }

/* ── Portada: mar a pantalla completa, titular centrado ── */
.cover { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; color: #fff; padding: calc(var(--nav) + 64px) var(--side) 128px;
  background: linear-gradient(180deg, rgba(10,42,61,.30) 0%, rgba(10,42,61,.45) 55%, rgba(10,42,61,.85) 100%), url("/images/fondo-mar.jpg") center 15% / cover; }
.cover .display { font-size: clamp(44px, 6.6vw, 96px); line-height: 1.04; }
.cover .display em { color: #bfe0ea; }
.cover-down { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); color: #fff; opacity: .7; padding: 8px; transition: opacity .2s, transform .3s; }
.cover-down:hover { opacity: 1; transform: translate(-50%, 3px); }
/* Portada: el titular arriba, centrado, y la nadadora debajo. La foto va en una capa propia
   (::before) para poder recortarla sin recortar el texto. Se oscurecen solo los bordes y una
   sombra suave sostiene el texto. */
.cover { place-items: start center; padding-top: calc(var(--nav) + 9vh); background: none; isolation: isolate; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,42,61,.46) 0%, rgba(10,42,61,.24) 40%, rgba(10,42,61,.18) 70%, rgba(10,42,61,.55) 100%),
    url("/images/fondo-mar.jpg") center / cover no-repeat, #0d3b4f; }
/* La foto (vertical) llena todo el ancho. Se encuadra la franja que va de la luz de la superficie
   (22 % del alto de la foto) a la nadadora (56 %): su punto medio, el 39 %, cae en el centro de la
   portada. Alto de la foto = 1184/864 del ancho = 137vw; el 39 % de eso = 53.4vw. */
@media (min-aspect-ratio: 1/1) {
  .cover::before { background-position: center, center min(0px, calc((100vh + var(--nav) - var(--inset)) / 2 - 53.4vw)); }
}
/* En vertical la foto se agranda (145 % del alto) y arranca bajo la cabecera, para que la
   nadadora quede bajo el texto. */
@media (max-aspect-ratio: 1/1) {
  .cover::before { background-size: cover, auto 145%; background-position: center, center var(--nav); }
}
.cover .display, .cover .mission { text-shadow: 0 2px 28px rgba(6, 28, 42, .55); }
.cover .mission { color: #fff; font-weight: 400; margin-top: 32px; }
.cover-ink { display: none; }

/* Portada y orbe: un panel con margen y esquinas suaves bajo la cabecera (--panel). En escritorio
   se queda así; en móvil la portada tiene además un tramo fijo (sticky) de --hero-run en el que la
   esfera crece hasta ser ese mismo panel. --p va de 0 a 1 y lo calcula assets/nav.js. */
.hero-wrap { --p: 0; --hero-run: 0px; --panel: inset(var(--nav) var(--inset) var(--inset) round 18px); position: relative; height: calc(100vh + var(--hero-run)); }
.hero-wrap > .cover, .hero-wrap > .hero-orb { position: sticky; top: 0; height: 100vh; min-height: 0; margin: 0; overflow: hidden; }
.hero-wrap > .cover::before, .hero-wrap > .hero-orb { clip-path: var(--panel); }
.hero-wrap > .cover { padding-top: calc(var(--nav) + 9vh); }
.hero-wrap > .hero-orb { padding-top: var(--nav); }
@supports (height: 100svh) {
  .hero-wrap { height: calc(100svh + var(--hero-run)); }
  .hero-wrap > .cover, .hero-wrap > .hero-orb { height: 100svh; }
}
@media (max-width: 900px) { :root { --inset: 10px; } }

/* Móvil, la portada como una escena: la página abre en papel con el titular en tinta y, debajo,
   una esfera de agua que solo deja ver a la nadadora; se mueve como agua y crece un poco al bajar,
   sin pausar el scroll. Donde toca el texto, este pasa a blanco.
   Para que vaya extremadamente fluido solo se animan transformaciones (GPU): .sphere es una
   ventana de forma orgánica que escala y gira; .sphere-inner (foto + texto en blanco) hace la
   transformación inversa, así foto y texto quedan quietos. assets/nav.js calcula la geometría:
   el centro es la nadadora (la foto mide 145 % del alto, empieza --lift sobre la cabecera y ella
   está a la mitad de la foto). */
.sphere { display: none; }
@media (max-width: 900px) and (max-aspect-ratio: 1/1) {
  .hero-wrap { --lift: 7vh; }
  @supports (height: 100svh) { .hero-wrap { --lift: 7svh; } }
  .hero-wrap > .cover::before { display: none; }
  /* La portada entera se recorta al panel: la esfera, al crecer, acaba tomando su forma exacta. */
  .hero-wrap > .cover { clip-path: var(--panel); }
  .hero-wrap > .cover .cover-inner { position: absolute; inset: 0; padding: calc(var(--nav) + 6vh) var(--side) 0; }
  .hero-wrap > .cover .cover-inner .display { margin: 0; }
  /* El titular real (h1) sigue ahí para lectores de pantalla; lo que se ve son sus dos copias. */
  .hero-wrap > .cover > .cover-inner:not(.cover-ink) { opacity: 0; }
  .hero-wrap > .cover .cover-ink { display: block; z-index: -2; }
  .cover-ink .display, .cover-ink .mission { text-shadow: none; }
  .cover-ink .display { color: var(--ink); }
  .cover-ink .display em { color: var(--sea); }
  .cover-ink .mission { color: var(--ink-2); }
  .hero-wrap > .cover .cover-down { display: none; }
  .sphere {
    display: block; position: absolute; z-index: -1; overflow: hidden;
    border-radius: 47% 53% 51% 49% / 53% 47% 54% 46%;
    transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden;
  }
  .sphere-inner {
    position: absolute; will-change: transform; backface-visibility: hidden;
    background: linear-gradient(180deg, rgba(10,42,61,.46) 0%, rgba(10,42,61,.24) 40%, rgba(10,42,61,.18) 70%, rgba(10,42,61,.55) 100%),
      url("/images/fondo-mar.jpg") no-repeat, #0d3b4f;
    background-size: cover, auto 145%;
    background-position: center, center calc(var(--nav) - var(--lift));
  }
}
@media (prefers-reduced-motion: reduce) { .hero-wrap { --hero-run: 0px; --p: 1; } }

/* ── Hero partido (subpáginas): texto 7 columnas, imagen 5 ── */
.hero { padding-top: var(--nav); }
.hero .grid { min-height: calc(100vh - var(--nav)); align-items: center; padding-block: 64px; }
.hero-text { grid-column: 1 / 8; display: grid; gap: 32px; align-content: center; }
.hero-text .caps { color: var(--sea); display: flex; gap: 16px; align-items: center; }
.hero-text .caps::before { content: ""; width: 32px; height: 1px; background: var(--sea); }
.hero-actions { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hero-media { grid-column: 8 / 13; position: relative; }
/* Foto limpia, con las mismas esquinas suaves que la portada; sin marco desplazado detrás. */
.hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.hero-media figcaption { position: relative; margin-top: 40px; color: var(--ink-2); }
.hero--page .grid { min-height: 78vh; }
.hero-index { border-top: 1px solid var(--line); }
.hero-index .grid { padding-block: 24px; }
.hero-index a { grid-column: span 4; display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; color: var(--ink-2); transition: color .2s; }
.hero-index a:hover { color: var(--sea); }
.hero-index .num { font-size: 18px; }

/* ── Secciones numeradas ── */
.sec { padding: 128px 0; border-top: 1px solid var(--line); }
.sec--paper { background: var(--paper); }
.head { margin-bottom: 72px; align-items: start; }
.head .caps { grid-column: 1 / 4; color: var(--sea); padding-top: 14px; display: flex; gap: 12px; }
.head .caps b { font-weight: 500; color: var(--ink); }
.head h2 { grid-column: 4 / 11; font-family: var(--serif); font-weight: 350; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.15; letter-spacing: -.01em; }
.head h2 em { font-style: italic; color: var(--sea); }
.body-text { grid-column: 4 / 10; display: grid; gap: 24px; }
.body-text p { font-family: var(--serif); font-size: 20px; line-height: 1.75; text-decoration: underline; text-decoration-color: rgba(15,92,122,.22); text-decoration-thickness: 1px; text-underline-offset: 7px; }
.body-text a { color: var(--sea); }
.body-text a:hover { text-decoration-color: var(--sea); }

/* Tres enlaces en línea: una palabra por área */
.trio { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.trio a { display: flex; justify-content: space-between; align-items: baseline; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 22px; transition: color .2s; }
.trio a span { color: var(--ink-2); font-size: 16px; transition: transform .3s, color .2s; }
.trio a:hover { color: var(--sea); }
.trio a:hover span { color: var(--sea); transform: translateX(4px); }
@media (max-width: 900px) {
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio a { padding: 20px 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .trio a:first-child { border-top: 1px solid var(--line); }
}

/* Filas numeradas con filetes */
.rows { grid-column: 4 / 13; list-style: none; margin: 64px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a, .rows .row { display: grid; grid-template-columns: 64px 1fr 32px; align-items: baseline; padding: 24px 0; transition: color .2s, padding .3s; }
.rows .num { font-size: 18px; }
.rows .t { font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.rows .arrow { text-align: right; color: var(--ink-2); transition: transform .3s; }
.rows a:hover { color: var(--sea); }
.rows a:hover .arrow { transform: translateX(6px); color: var(--sea); }

/* Celdas: rejilla con filetes (capacidades, pilares, método) */
.cells { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { padding: 40px 32px 48px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 16px; align-content: start; min-height: 240px; }
.cell .num { font-size: 20px; }
.cell h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.2; }
.cell p { color: var(--ink-2); }
.cell .caps { color: var(--ink-2); font-size: 11px; }
.sec--paper .cell { background: var(--paper); }

/* ── Antes / Ahora ── */
.showcase { position: relative; border-top: 1px solid var(--line); }
.showcase-stick { position: sticky; top: 0; height: 100vh; padding-top: var(--nav); display: flex; flex-direction: column; justify-content: center; gap: 56px; overflow: hidden; }
.showcase-stick > .wrap { width: 100%; }
.showcase .head { margin-bottom: 0; }
.stage { align-items: center; }
.panel { position: relative; height: min(52vh, 30vw); }
.panel--before { grid-column: 1 / 5; }
.panel--after { grid-column: 9 / 13; }
.panel-label { position: absolute; top: -32px; left: 0; color: var(--ink-2); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.slide.on { opacity: 1; }
.frame { width: 100%; height: 100%; overflow: hidden; background: var(--mist); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--text { display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; font-family: var(--serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; }
.frame--text small { display: block; margin-top: 24px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.frame--dark { background: linear-gradient(180deg, var(--sea), var(--sea-deep)); color: #fff; }
.frame--dark small { color: rgba(255,255,255,.7); }
.frame--dark .pill { align-self: flex-start; margin-top: 24px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 4px; }
.frame--mark { display: grid; place-items: center; }
.frame--mark span { font-family: var(--serif); font-weight: 350; font-size: clamp(64px, 7vw, 112px); letter-spacing: .04em; color: rgba(255,255,255,.92); }
#after .frame--text { background: var(--paper); border-top: 1px solid var(--line); justify-content: space-between; }
#after .frame--text small { margin: 0 0 auto; color: var(--sea); }
.frame--text .pill { align-self: flex-start; margin-top: 24px; font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--sea); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.frame--text .pill:hover { border-color: var(--sea); }
.caption { position: absolute; left: 0; right: 0; top: calc(100% + 16px); font-size: 14px; color: var(--ink-2); }
.names { grid-column: 5 / 9; height: min(52vh, 30vw); position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); }
.names ul { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 50%; transition: transform .7s ease; }
.names li { height: 120px; margin-top: -60px; margin-bottom: 60px; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; opacity: .12; transition: opacity .7s ease; }
.names li.on { opacity: 1; }
.mobile-cases { display: none; }

/* ── Cinta de procesos ── */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; width: max-content; animation: slide-right 70s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.tool { flex: 0 0 280px; margin-right: var(--gutter); aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 100%); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.tool::before { content: attr(data-mark); font-family: var(--serif); font-style: italic; font-size: 22px; color: rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 16px; }
.tool b { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.25; margin-top: auto; }
.tool span { margin-top: 16px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }

/* ── Banda de contraste ── */
.band { background: var(--sea-deep); color: #fff; padding: 128px 0; }
.band .caps { grid-column: 1 / 4; color: rgba(255,255,255,.6); padding-top: 18px; }
.band blockquote { grid-column: 4 / 12; font-family: var(--serif); font-style: italic; font-weight: 350; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.35; }
.band figcaption.caps { grid-column: 4 / 12; margin-top: 40px; padding-top: 0; color: rgba(255,255,255,.6); }

/* ── Clientes ── */
.clients { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.client { display: grid; gap: 16px; }
.client img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.client figure { overflow: hidden; }
.client:hover img { transform: scale(1.02); }
.client-meta { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.client h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; }
.client .caps { color: var(--sea); font-size: 11px; align-self: center; }
.client p { grid-column: 1 / -1; color: var(--ink-2); max-width: 44ch; }

/* ── Cierre ── */
.final { position: relative; color: #fff; background: linear-gradient(90deg, rgba(10,42,61,.88) 0%, rgba(10,42,61,.55) 55%, rgba(10,42,61,.2) 100%), url("/images/fondo-mar.jpg") center 30% / cover; padding: 160px 0; }
.final .caps { grid-column: 1 / 13; color: rgba(255,255,255,.7); margin-bottom: 32px; }
.final h2 { grid-column: 1 / 8; font-family: var(--serif); font-weight: 350; font-size: clamp(36px, 4vw, 56px); line-height: 1.1; }
.final h2 em { font-style: italic; }
.final p { grid-column: 1 / 6; margin: 24px 0 40px; color: rgba(255,255,255,.8); font-size: 17px; }
.final .actions { grid-column: 1 / 13; }

/* ── Formulario ── */
.form { grid-column: 4 / 10; display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--gutter); }
.field { display: grid; gap: 4px; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.field input { font-family: var(--serif); font-size: 20px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; border-radius: 0; outline: none; transition: border-color .2s; width: 100%; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--sea); }
.field--full { grid-column: 1 / -1; }
.field textarea { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; border-radius: 0; outline: none; resize: vertical; min-height: 120px; width: 100%; transition: border-color .2s; }
.field textarea::placeholder { color: var(--ink-2); opacity: .55; font-style: italic; }
.field input[aria-invalid="true"] { border-bottom-color: #a4453a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); }
.direct { grid-column: 10 / 13; display: grid; align-content: start; gap: 16px; padding-left: var(--gutter); border-left: 1px solid var(--line); }
.direct .caps { color: var(--sea); font-size: 11px; margin-bottom: 8px; }
.direct a { font-family: var(--serif); font-size: 18px; transition: color .2s; }
.direct a:hover { color: var(--sea); }

/* ── Footer ── */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding: 80px 0 40px; font-size: 14px; }
.footer .brand { grid-column: 1 / 5; display: grid; gap: 16px; align-content: start; }
.footer-note { color: var(--ink-2); max-width: 30ch; }
.footer .col { grid-column: span 2; }
.footer .col:nth-child(2) { grid-column: 7 / 9; }
.footer h4 { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sea); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); }
.footer a:hover { color: var(--sea); }
.footer-bottom { grid-column: 1 / 13; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 12px; letter-spacing: .04em; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  :root { --side: 32px; }
  .nav-list { gap: 24px; }
  .nav-side .muted, .nav-lang { display: none; }
  .cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --side: 20px; --nav: 64px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > * { grid-column: 1 / -1 !important; }
  .nav-side { margin-left: auto; }
  .nav-side .btn { display: none; }
  .menu-btn { display: block; }
  /* Menú móvil: una hoja a pantalla completa, tres destinos en letra grande y la llamada abajo. */
  .nav.open { border-bottom-color: transparent; }
  .nav-list {
    position: fixed; top: var(--nav); left: 0; right: 0; height: calc(100dvh - var(--nav));
    flex-direction: column; gap: 4px; margin: 0; overflow-y: auto;
    padding: 32px var(--side) calc(32px + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1), visibility .3s;
  }
  .nav.open .nav-list { opacity: 1; visibility: visible; transform: none; }
  .nav-list > li { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
  .nav.open .nav-list > li { opacity: 1; transform: none; }
  .nav.open .nav-list > li:nth-child(1) { transition-delay: .06s; }
  .nav.open .nav-list > li:nth-child(2) { transition-delay: .12s; }
  .nav.open .nav-list > li:nth-child(3) { transition-delay: .18s; }
  .nav-list > li:not(.m-cta) a { font-family: var(--serif); font-size: 32px; font-weight: 350; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); padding: 12px 0; }
  .nav-list > li:not(.m-cta) a[aria-current="page"] { color: var(--sea); }
  .m-only { display: block; }
  .m-cta { margin-top: auto; }
  .m-cta .btn { width: 100%; justify-content: center; font-size: 16px; padding: 17px 24px; }
  html.menu-open { overflow: hidden; }
  .hero .grid { min-height: 0; padding-block: 48px 64px; row-gap: 48px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-index a { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .sec { padding: 88px 0; }
  .head { margin-bottom: 48px; row-gap: 16px; }
  .head .caps { padding-top: 0; }
  .rows { margin-top: 40px; }
  .rows a, .rows .row { grid-template-columns: 48px 1fr 24px; }
  .rows .t { font-size: 19px; }
  .cells, .cells--4 { grid-template-columns: minmax(0, 1fr); }
  .cells { border-left: 0; }
  .cell { min-height: 0; padding: 28px 0; border-right: 0; gap: 8px; }
  .mission { margin-top: 40px; }
  .showcase { height: auto !important; }
  .showcase-stick { position: static; height: auto; padding: 88px 0; display: block; }
  .showcase .head { margin-bottom: 40px; }
  .stage { display: none; }
  .mobile-cases { display: grid; gap: 56px; }
  .tool { flex-basis: 240px; }
  .band { padding: 88px 0; }
  .band blockquote { margin-top: 16px; }
  .clients { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .final { padding: 104px 0; background-position: 60% 30%; }
  .form { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .direct { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 48px; }
  .footer .brand { margin-bottom: 40px; }
  .footer .col { margin-bottom: 32px; }
}
.mcase h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; margin-bottom: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.mcase .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.mcase .frame { aspect-ratio: 1; height: auto; }
.mcase .pair i { display: block; font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.mcase .frame--text { font-size: 16px; padding: 14px; }
.mcase .frame--text small, .mcase .frame--text .pill { display: none; }
.mcase p { font-size: 15px; color: var(--ink-2); margin-top: 12px; }
.mcase p.caps { color: var(--sea); font-size: 11px; margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ── Sin sobretítulos: el título abre la sección y todo arranca en la columna 1 ── */
.title { grid-column: 1 / 10; font-family: var(--serif); font-weight: 350; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 64px; }
.title em { font-style: italic; color: var(--sea); }
.body-text { grid-column: 1 / 8; }
.rows, .trio { grid-column: 1 / 13; }
.form { grid-column: 1 / 8; }
.direct { grid-column: 9 / 13; }
.band blockquote, .band figcaption.caps { grid-column: 1 / 11; }

/* Misión en la portada */
.mission { max-width: 520px; margin: 48px auto 0; font-family: var(--serif); font-style: italic; font-weight: 350; font-size: 20px; line-height: 1.6; color: rgba(255,255,255,.9); }

/* ── Negocios: rejilla de tarjetas ── */
/* 2 + 3: los dos primeros ocupan media fila; el resto, un tercio. */
.biz-grid { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 56px var(--gutter); }
.biz { display: grid; align-content: start; gap: 6px; grid-column: span 2; }
.biz:nth-child(-n+2) { grid-column: span 3; }
.biz-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); margin-bottom: 18px; }
.biz-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.biz:hover .biz-media img { transform: scale(1.03); }
.biz-media--mark { display: grid; place-items: center; background: linear-gradient(160deg, var(--sea), var(--sea-deep)); }
.biz-media--mark span { font-family: var(--serif); font-weight: 350; font-size: 56px; letter-spacing: .04em; color: rgba(255,255,255,.9); }
.biz h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; transition: color .2s; }
a.biz:hover h3 { color: var(--sea); }
.biz .caps { color: var(--sea); font-size: 11px; }
.biz p:last-child { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
@media (max-width: 900px) {
  .title { margin-bottom: 40px; }
  .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
  .biz, .biz:nth-child(-n+2) { grid-column: auto; }
  .mission { margin-top: 32px; font-size: 18px; }
}
@media (max-width: 560px) {
  .biz-grid { grid-template-columns: minmax(0, 1fr); }
}
/* ── Portada de IA: orbe de partículas (assets/ondas.js) ── */
.hero-orb { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; color: #fff; background: var(--sea-deep); overflow: hidden; padding: var(--nav) var(--side) 0; }
/* Página de IA: el orbe es un panel con margen y esquinas suaves bajo la cabecera, sin efectos
   de scroll: la página baja con normalidad. */
header.hero-orb { margin: var(--nav) var(--inset) 0; min-height: calc(100vh - var(--nav) - var(--inset)); padding: 0 var(--side); border-radius: 18px; }
@supports (height: 100svh) { header.hero-orb { min-height: calc(100svh - var(--nav) - var(--inset)); } }
.hero-orb canvas, .band canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-orb-inner { position: relative; z-index: 1; max-width: 560px; }
.hero-orb .display { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.1; }
.hero-orb .display em { color: #bfe0ea; }
.hero-orb .lead { color: rgba(255,255,255,.72); margin: 24px auto 0; font-size: 18px; }

/* Banda oscura con la onda de partículas detrás */
.band { position: relative; overflow: hidden; }
.band .wrap { position: relative; z-index: 1; }
/* ── Cierre: bloque oscuro centrado, mismo azul que la portada; la onda va por debajo del texto ── */
.closing { position: relative; overflow: hidden; background: var(--sea-deep); color: #fff; text-align: center; padding: 144px var(--side) 256px; }
.closing canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.closing-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; display: grid; justify-items: center; }
.closing .display { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.1; }
.closing .display em { color: #bfe0ea; }
.closing .btn { margin-top: 48px; }
.note { grid-column: 1 / 13; margin-top: 32px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--sea); }
@media (max-width: 900px) { .closing { padding: 104px var(--side) 280px; } }

/* ── Ideas sueltas: sin cajas ni números; un filete corto en azul, título y una línea ── */
.features { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px var(--gutter); }
.features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { display: grid; gap: 12px; align-content: start; }
.feature::before { content: ""; width: 32px; height: 2px; background: var(--sea); margin-bottom: 12px; }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.feature p { color: var(--ink-2); max-width: 30ch; }
/* La capacidad que abre la lista (lo que viene ahora): a todo lo ancho y con más voz. */
.feature--lead { grid-column: 1 / -1; }
.feature--lead h3 { font-size: clamp(28px, 2.8vw, 38px); font-weight: 350; line-height: 1.15; }
.feature--lead h3 em { font-style: italic; color: var(--sea); }
.feature--lead p { max-width: 52ch; font-size: 17px; color: var(--ink); }

/* ── Sección centrada: una sola línea con las herramientas ── */
.sec--center { text-align: center; }
.sec--center .title { margin-left: auto; margin-right: auto; }
.tools-line { font-family: var(--serif); font-weight: 350; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.3; color: var(--ink); }
/* Cada nombre va entero con su punto detrás: al partirse la línea, el punto queda al final y
   nunca al principio de la siguiente. */
.tools-line span { white-space: nowrap; }
.tools-line span:not(:last-child)::after { content: "·"; color: var(--sea); padding-left: .4em; }
.sec--center .note { margin-top: 32px; }

@media (max-width: 900px) {
  .features, .features--4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 16px; }
}
/* Móvil: dos columnas compactas en vez de una lista larga; el filete azul se queda, más corto. */
@media (max-width: 560px) {
  .features, .features--4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 20px; }
  .feature { gap: 6px; }
  .feature::before { width: 20px; margin-bottom: 8px; }
  .feature h3 { font-size: 19px; line-height: 1.25; }
  .feature p { font-size: 13.5px; line-height: 1.5; }
  .feature--lead h3 { font-size: 26px; }
  .feature--lead p { font-size: 15px; }
  /* Herramientas: un poco más pequeñas y con más aire entre líneas. */
  .tools-line { font-size: 24px; line-height: 1.5; text-wrap: balance; }
}

/* ── Negocios: antes y ahora, al estilo YC ── */
.showcase .title { margin-bottom: 40px; }
/* Las leyendas van fuera del flujo: se les reserva espacio abajo para que no se salgan. */
.showcase-stick { gap: 0; padding-bottom: 136px; }
.panel { height: min(46vh, 30vw); }
.panel-label {
  top: -36px; left: 0; right: 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px;
  letter-spacing: 0; text-transform: none; color: var(--ink);
}
.showcase .frame { border-radius: 12px; box-shadow: 0 28px 56px -32px rgba(11, 30, 45, .45); }
/* El antes, en gris: como la foto antigua frente a la actual. */
#before .frame img { filter: grayscale(1) contrast(.95); }
.showcase .caption { top: calc(100% + 18px); text-align: center; font-size: 15px; color: var(--ink-2); }
.showcase .caption p { margin: 0; }
/* Lo que se ha hecho en el negocio es lo importante: en la serif de los titulares y en tinta. */
#before .caption { font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--ink); letter-spacing: -.005em; text-wrap: balance; }
.metric { margin-top: 10px !important; font-family: var(--serif); font-size: 16px; color: var(--ink-2); }
.metric b { font-weight: 400; font-size: 30px; color: var(--sea); letter-spacing: -.01em; margin-right: 4px; vertical-align: -3px; }
.names li { opacity: .14; }
.names li.on { opacity: 1; }
.names button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.names li:not(.on) button:hover { color: var(--sea); }
.mcase .metric { text-align: left; }
.mcase .frame { border-radius: 10px; }
.mcase .pair > div:first-child .frame img { filter: grayscale(1); }

/* ── Franja de procesos, como la de fotos de YC ── */
.marquee { border: 0; padding: 0; }
.tool { flex: 0 0 340px; margin-right: 20px; aspect-ratio: auto; padding: 0; background: none; color: var(--ink); display: grid; gap: 6px; align-content: start; }
.tool::before { content: none; }
.tool img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.tool b { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.25; margin: 0; }
.tool span { font-family: "Manrope", var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); opacity: 1; margin: 0; }
@media (max-width: 900px) { .tool { flex-basis: 260px; } }
