/* ONDA · Magia · Liquid glass. Agua profunda, turquesa y arena; minúsculas grandes y suaves.
   Cristal líquido: en Chromium (html.cromo, lo pone main.js) refracción con filtros SVG (#refraccion…) en backdrop-filter;
   en Safari y Firefox, blur(18px) saturate(160%). Firma: la lente recorre el titular con el scroll y lo dobla.
   Sin JS todo se ve: la lente queda quieta sobre «agua». */
/* recorte (scripts/fuentes-miniwebs.py): 111 caracteres de esta miniweb; el resto, de la fuente completa */
@font-face { font-family: "Archivo Onda"; src: url("/estilos/magia/fuentes/archivo-var-latin.recorte.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0020-005B, U+005D, U+005F-007D, U+00AB, U+00B0, U+00B2, U+00B7, U+00BB, U+00C1, U+00C9, U+00CD, U+00D1, U+00D3, U+00DA, U+00E1, U+00E9, U+00ED, U+00F1, U+00F3, U+00FA, U+2013, U+2026; }
@font-face { font-family: "Archivo Onda"; src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+000D, U+005C, U+005E, U+007E, U+00A0-00AA, U+00AC-00AF, U+00B1, U+00B3-00B6, U+00B8-00BA, U+00BC-00C0, U+00C2-00C8, U+00CA-00CC, U+00CE-00D0, U+00D2, U+00D4-00D9, U+00DB-00E0, U+00E2-00E8, U+00EA-00EC, U+00EE-00F0, U+00F2, U+00F4-00F9, U+00FB-00FF, U+0102, U+0131, U+0152-0153, U+02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2009, U+2014, U+2018-201A, U+201C-201E, U+2022, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; }
/* recorte (scripts/fuentes-miniwebs.py): 111 caracteres de esta miniweb; el resto, de la fuente completa */
@font-face { font-family: "Hanken Onda"; src: url("/estilos/magia/fuentes/hanken-grotesk-var-latin.recorte.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0020-005B, U+005D, U+005F-007D, U+00AB, U+00B0, U+00B2, U+00B7, U+00BB, U+00C1, U+00C9, U+00CD, U+00D1, U+00D3, U+00DA, U+00E1, U+00E9, U+00ED, U+00F1, U+00F3, U+00FA, U+2013, U+2026; }
@font-face { font-family: "Hanken Onda"; src: url("/assets/fonts/hanken-grotesk-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+005C, U+005E, U+007E, U+00A0-00AA, U+00AC-00AF, U+00B1, U+00B3-00B6, U+00B8-00BA, U+00BC-00C0, U+00C2-00C8, U+00CA-00CC, U+00CE-00D0, U+00D2, U+00D4-00D9, U+00DB-00E0, U+00E2-00E8, U+00EA-00EC, U+00EE-00F0, U+00F2, U+00F4-00F9, U+00FB-00FF, U+0102, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2014, U+2018-201A, U+201C-201E, U+2022, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+2215; }

:root {
  --abismo: #06232B; --abismo-2: #0A3039; --hondo: #03161B; --turquesa: #2FB5B0; --turquesa-tinta: #0E6B6A;
  --perla: #EEF3F2; --perla-2: #C9D6D4; --arena: #E6D8C3; --arena-2: #CDBB9F;
  --vidrio: rgba(6, 35, 43, .62); --vidrio-borde: rgba(238, 243, 242, .26);
  --lado: 16px; --aire: 104px;
  --titular: "Archivo Onda", "Helvetica Neue", Arial, sans-serif;
  --texto: "Hanken Onda", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --anillo: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .12), inset 0 0 24px rgba(47, 181, 176, .14);
}
@media (min-width: 640px) { :root { --lado: 32px; --aire: 136px; } }
@media (min-width: 1100px) { :root { --lado: 64px; --aire: 168px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--abismo); color: var(--perla); font: 400 16px/1.6 var(--texto); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ol, dl, dd { margin: 0; padding: 0; }
ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--arena); outline-offset: 3px; border-radius: 999px; }
::selection { background: var(--turquesa); color: var(--hondo); }

.filtros { position: absolute; width: 0; height: 0; overflow: hidden; }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -80px; z-index: 40; padding: 12px 18px; background: var(--perla); color: var(--abismo); border-radius: 999px; }
.saltar:focus { top: 12px; }

.eti { font: 400 13px/1.2 var(--texto); letter-spacing: .3em; text-transform: lowercase; color: var(--perla-2); }
.ejemplo { display: inline-block; font-size: 12px; letter-spacing: .04em; color: var(--perla-2); }
.titulo { font: 300 clamp(44px, 7.4vw, 112px)/.92 var(--titular); font-stretch: 108%; letter-spacing: -.045em; text-wrap: balance; }

/* Enlace con subrayado que se dibuja */
.enlace { position: relative; display: inline-flex; align-items: center; min-height: 44px; font: 400 18px/1 var(--texto); letter-spacing: .01em; }
.enlace::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform-origin: 100% 50%; transition: transform .2s var(--ease); }
@media (hover: hover) { .enlace:hover::after { animation: redibujo .8s var(--ease) forwards; } }
@keyframes redibujo { 0% { transform: scaleX(1); transform-origin: 100% 50%; } 45% { transform: scaleX(0); transform-origin: 100% 50%; } 46% { transform-origin: 0 50%; } 100% { transform: scaleX(1); transform-origin: 0 50%; } }
.enlace--peq { font-size: 16px; }
.enlace--oscuro { color: var(--abismo); }

/* ── Cristal ─────────────────────────────────────────── */
.cristal, .cristal-liquido, .dock, .pildora {
  background: var(--vidrio); border: 1px solid var(--vidrio-borde); box-shadow: var(--anillo);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.cromo .cristal, .cromo .cristal-liquido, .cromo .dock { backdrop-filter: url(#refraccion-suave) saturate(150%); }

/* ── Dock: el menú fijo, abajo en el centro ───────────── */
.dock {
  position: fixed; z-index: 30; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); translate: -50% 0;
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(6, 35, 43, .8);
}
.dock a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; border-radius: 999px; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.dock__marca { width: 44px; color: var(--turquesa); }
.dock__marca svg { width: 26px; height: 26px; }
.dock__enlace { padding: 0 10px; font-size: 16px; color: var(--perla); }
.dock__enlace[aria-current="true"] { background: rgba(238, 243, 242, .16); }
@media (hover: hover) { .dock__enlace:hover { background: rgba(238, 243, 242, .1); } }
.dock__accion { padding: 0 14px; margin-left: 4px; font-size: 16px; font-weight: 600; background: var(--perla); color: var(--abismo); }
@media (hover: hover) { .dock__accion:hover { background: var(--arena); } }
@media (min-width: 640px) { .dock { gap: 4px; padding: 6px; } .dock__enlace { padding: 0 18px; font-size: 16px; } .dock__accion { padding: 0 22px; font-size: 16px; } }
@media (max-width: 359px) { .dock__enlace { padding: 0 8px; font-size: 14px; } .dock__accion { padding: 0 12px; font-size: 14px; } .dock__marca { width: 40px; min-width: 40px; } }

/* ── 1 · Hero ────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: clip; min-height: max(100svh, 640px);
  display: grid; grid-template-rows: auto 1fr auto; padding: 24px var(--lado) 104px;
}
.fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--hondo); }
.fondo__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
/* el dibujo baja un 6 % para que el horizonte quede por debajo del titular; arriba continúa el mismo color de cielo */
.fondo__dibujo { position: absolute; left: 0; top: 6%; width: 100%; height: 100%; }
@media (max-width: 760px) and (orientation: portrait) {
  /* en vertical, el dibujo se ve entero de alto y se desplaza para que el sol entre en pantalla */
  .fondo__dibujo { top: -2%; width: auto; aspect-ratio: 1600 / 1000; left: 62%; translate: -66% 0; max-width: none; }
  .hero { padding-bottom: 92px; }
  .hero__escena { align-self: start; padding-top: 48px; }
}
/* con la foto real (villa blanca y piscina) el velo es más denso en la franja del titular: medido 4,3–5,6:1 en su zona más clara a 390, 1440 y 1920 (titular grande: mínimo 3:1) */
.fondo__velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 22, 27, .66) 0%, rgba(3, 22, 27, .64) 54%, rgba(3, 22, 27, .32) 66%, rgba(3, 22, 27, 0) 80%); }
@media (max-width: 760px) and (orientation: portrait) { .fondo__velo { background: linear-gradient(180deg, rgba(3, 22, 27, .68) 0%, rgba(3, 22, 27, .66) 50%, rgba(3, 22, 27, .32) 62%, rgba(3, 22, 27, 0) 74%); } }
.luz { position: absolute; display: block; border-radius: 9999px; pointer-events: none; will-change: transform; }
.luz--a { width: 60vmax; height: 60vmax; left: -18vmax; top: 18%; background: radial-gradient(closest-side, rgba(47, 181, 176, .22), rgba(47, 181, 176, 0)); }
.luz--b { width: 46vmax; height: 46vmax; right: -10vmax; top: 30%; background: radial-gradient(closest-side, rgba(230, 216, 195, .2), rgba(230, 216, 195, 0)); }
.luz--c { width: 36vmax; height: 24vmax; left: 30%; bottom: -6vmax; background: radial-gradient(closest-side, rgba(127, 224, 218, .2), rgba(127, 224, 218, 0)); }

.hero__cabeza { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.hero__marca { font: 300 30px/1 var(--titular); font-stretch: 112%; letter-spacing: -.02em; }
.hero__eti { font-size: 13px; letter-spacing: .26em; color: var(--perla-2); }

.hero__escena { position: relative; align-self: center; padding: 40px 0 32px; }
.hero__titulo { position: relative; font: 300 clamp(84px, 21vw, 150px)/.84 var(--titular); font-stretch: 112%; letter-spacing: -.055em; color: var(--perla); }
.hero__linea { display: block; }
.palabra { display: inline-block; }
@media (min-width: 900px) { .hero__titulo { font-size: clamp(120px, 12.6vw, 252px); } }

.lente {
  position: absolute; z-index: 2; left: -2%; top: 6px; width: clamp(150px, 46vw, 470px); aspect-ratio: 1; border-radius: 9999px;
  background: rgba(238, 243, 242, .04); border: 1px solid rgba(238, 243, 242, .42);
  box-shadow: inset 0 3px 1px rgba(255, 255, 255, .5), inset 0 -2px 1px rgba(255, 255, 255, .18), inset 0 0 40px rgba(47, 181, 176, .22), 0 40px 80px -30px rgba(2, 12, 15, .7);
  /* sin refracción (Safari, Firefox o sin JS): cristal esmerilado leve, para que el titular se siga leyendo detrás */
  -webkit-backdrop-filter: blur(3px) saturate(160%) brightness(1.06); backdrop-filter: blur(3px) saturate(160%) brightness(1.06);
  pointer-events: none; will-change: transform;
}
@media (min-width: 900px) { .lente { width: clamp(260px, 28vw, 520px); left: 4%; top: -4%; } }
.cromo .lente { backdrop-filter: url(#refraccion) brightness(1.06); }
.lente__brillo { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 26%), radial-gradient(circle at 74% 84%, rgba(127, 224, 218, .26), rgba(127, 224, 218, 0) 34%); }

.hero__pie { display: grid; gap: 14px; justify-items: start; }
.hero__pie > .enlace { padding: 0 22px; border-radius: 999px; background: rgba(6, 35, 43, .76); border: 1px solid var(--vidrio-borde); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.hero__pie > .enlace::after { left: 22px; right: 22px; bottom: 11px; }
.hero__ficha { max-width: 460px; padding: 18px 22px 16px; border-radius: 24px; }
.hero__lede { font-size: 17px; line-height: 1.5; }
.hero__datos { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--vidrio-borde); font-size: 15px; color: var(--perla); }
.hero__datos .ejemplo { color: var(--perla); }
.hero__datos b { font: 300 26px/1 var(--titular); font-stretch: 112%; color: var(--perla); font-variant-numeric: tabular-nums; margin-right: 2px; }
@media (min-width: 900px) {
  .hero__pie { grid-template-columns: auto auto; justify-content: space-between; align-items: end; }
  .hero__lede { font-size: 18px; }
}

/* ── Secciones ───────────────────────────────────────── */
section[id] { scroll-margin-top: 0; }
.cabeza { display: grid; gap: 18px; max-width: 1500px; margin: 0 auto 56px; }
.cabeza__txt { max-width: 46ch; font-size: 17px; color: var(--perla-2); }
/* en escritorio, flex con salto: el antetítulo ocupa la fila entera y titular y texto comparten la segunda (mismo aspecto que la rejilla) */
@media (min-width: 1000px) { .cabeza { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 18px; } .cabeza .eti { flex: 0 0 100%; } .cabeza .titulo { flex: 1 1 0; min-width: 0; } .cabeza .cabeza__txt { flex: 0 1 40ch; } }

/* 2 · Villas */
.villas { position: relative; isolation: isolate; overflow: clip; padding: var(--aire) var(--lado); background: var(--abismo); }
.agua { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.agua__lineas { position: absolute; inset: 0; width: 100%; height: 100%; }
.luz--d { width: 70vmax; height: 50vmax; left: -20vmax; top: 10%; background: radial-gradient(closest-side, rgba(47, 181, 176, .26), rgba(47, 181, 176, 0)); }
.luz--e { width: 50vmax; height: 50vmax; right: -14vmax; bottom: -10vmax; background: radial-gradient(closest-side, rgba(230, 216, 195, .16), rgba(230, 216, 195, 0)); }

.tarjetas { display: grid; gap: 22px; max-width: 1500px; margin: 0 auto; }
@media (min-width: 1000px) { .tarjetas { grid-template-columns: repeat(3, 1fr); gap: 28px; } .tarjeta:nth-child(2) { translate: 0 48px; } }
.cristal-liquido { position: relative; border-radius: 32px; padding: 10px; background: rgba(8, 44, 52, .5); transition: scale .2s var(--ease), border-color .2s ease; }
@media (hover: hover) { .cristal-liquido:hover { scale: 1.015; border-color: rgba(238, 243, 242, .5); } }
.lamina { border-radius: 24px; overflow: hidden; aspect-ratio: 400 / 250; background: var(--abismo-2); }
.lamina svg { width: 100%; height: 100%; }
.tarjeta__pie { display: grid; gap: 14px; padding: 18px 12px 8px; }
.tarjeta__nombre { font: 300 34px/1 var(--titular); font-stretch: 108%; letter-spacing: -.03em; }
.tarjeta__datos { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 22px; }
.tarjeta__datos dt { font-size: 12px; letter-spacing: .12em; color: var(--perla-2); }
.tarjeta__datos dd { font: 300 22px/1.2 var(--titular); font-stretch: 108%; font-variant-numeric: tabular-nums; }
.nota { max-width: 1500px; margin: 72px auto 0; font-size: 13px; color: var(--perla-2); }

/* 3 · Detrás del cristal (banda clara) */
.detalle { padding: var(--aire) var(--lado); background: var(--perla); color: var(--abismo); }
.cabeza--clara .eti { color: var(--turquesa-tinta); }
.cabeza--clara .cabeza__txt { color: #2A4A50; }
.detalle__cuerpo { display: grid; gap: 40px; max-width: 1500px; margin: 0 auto; }
@media (min-width: 1000px) { .detalle__cuerpo { grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: stretch; } .claves { align-content: center; } }
/* en pantallas muy anchas el corte es más alto que las tres claves: se reparten a lo alto para cuadrar arriba y abajo */
@media (min-width: 1600px) { .claves { align-content: space-between; } }
.corte { padding: 10px; border: 1px solid rgba(6, 35, 43, .14); border-radius: 32px; background: #F8FAF9; }
.corte__lamina { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 800 / 500; }
.corte__lamina svg { width: 100%; height: 100%; }
/* fill sigue a color: el rótulo se mide y se pinta con el mismo color */
.corte__rotulo { font: 500 22px var(--texto); color: var(--abismo); fill: currentColor; }
@media (max-width: 640px) { .corte__rotulo { font-size: 30px; } }
.lupa {
  position: absolute; left: 63%; top: 71%; width: 26%; aspect-ratio: 1; translate: -50% -50%; border-radius: 9999px;
  border: 1.5px solid rgba(6, 35, 43, .55); background: rgba(238, 243, 242, .06);
  box-shadow: inset 0 3px 1px rgba(255, 255, 255, .8), inset 0 0 26px rgba(47, 181, 176, .35), 0 18px 36px -14px rgba(6, 35, 43, .45);
  -webkit-backdrop-filter: saturate(170%) contrast(1.08); backdrop-filter: saturate(170%) contrast(1.08);
  pointer-events: none; will-change: transform;
}
.cromo .lupa { backdrop-filter: url(#refraccion-lupa); }
.corte__pie { display: grid; gap: 2px 20px; padding: 14px 8px 4px; font-size: 16px; color: #2A4A50; }
.corte__pie b { font: 300 30px/1 var(--titular); font-stretch: 108%; color: var(--abismo); margin-right: 4px; }
.corte__pie .ejemplo { color: #3D5A5F; }
@media (min-width: 760px) { .corte__pie { grid-template-columns: 1fr auto; align-items: center; } .corte__pie .ejemplo { grid-column: 1; } .corte__pie .enlace { grid-column: 2; grid-row: 1 / span 2; } }

.claves { display: grid; gap: 6px; }
.clave { border-top: 1px solid rgba(6, 35, 43, .16); padding: 6px 0 18px; }
.clave__boton { display: flex; align-items: baseline; gap: 16px; width: 100%; min-height: 56px; padding: 8px 0; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 14px; }
.clave__num { font: 500 16px/1 var(--texto); color: var(--turquesa-tinta); font-variant-numeric: tabular-nums; }
.clave__nombre { position: relative; font: 300 clamp(30px, 3.4vw, 44px)/1 var(--titular); font-stretch: 108%; letter-spacing: -.035em; }
.clave__nombre::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--turquesa-tinta); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s var(--ease); }
.clave__boton[aria-pressed="true"] .clave__nombre::after { transform: scaleX(1); }
@media (hover: hover) { .clave__boton:hover .clave__nombre::after { transform: scaleX(1); } }
.clave__boton:focus-visible { outline-color: var(--abismo); }
.clave__txt { max-width: 46ch; padding-left: 34px; font-size: 16px; color: #2A4A50; }

/* 4 · El dato */
.dato { display: grid; justify-items: center; gap: 22px; padding: var(--aire) var(--lado); text-align: center; background: var(--hondo); }
.luz__cifra { font: 200 clamp(150px, 34vw, 440px)/.8 var(--titular); font-stretch: 112%; letter-spacing: -.06em; font-variant-numeric: tabular-nums; color: var(--arena); }
.luz__frase { max-width: 26ch; text-wrap: balance; font: 300 clamp(26px, 3.4vw, 44px)/1.1 var(--titular); font-stretch: 108%; letter-spacing: -.03em; }
.luz__frase span { color: var(--perla-2); }
.meses { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(4px, 1.2vw, 14px); width: min(100%, 980px); margin-top: 20px; }
.mes { display: grid; grid-template-rows: auto 160px auto; justify-items: center; gap: 8px; }
.mes__n { font: 400 13px/1 var(--texto); color: var(--perla-2); font-variant-numeric: tabular-nums; }
.mes__barra { position: relative; display: block; width: 100%; max-width: 44px; height: 100%; border-radius: 999px; background: rgba(238, 243, 242, .1); overflow: hidden; }
.mes__sol { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 999px; background: linear-gradient(180deg, var(--arena), var(--arena-2)); transform-origin: 50% 100%; }
.mes:nth-child(1) .mes__sol { height: 71%; }
.mes:nth-child(2) .mes__sol { height: 75%; }
.mes:nth-child(3) .mes__sol { height: 77%; }
.mes:nth-child(4) .mes__sol { height: 83%; }
.mes:nth-child(5) .mes__sol { height: 90%; }
.mes:nth-child(6) .mes__sol { height: 97%; }
.mes:nth-child(7) .mes__sol { height: 100%; }
.mes:nth-child(8) .mes__sol { height: 97%; }
.mes:nth-child(9) .mes__sol { height: 90%; }
.mes:nth-child(10) .mes__sol { height: 77%; }
.mes:nth-child(11) .mes__sol { height: 83%; }
.mes:nth-child(12) .mes__sol { height: 84%; }
.mes__nombre { font-size: 12px; letter-spacing: .06em; color: var(--perla-2); }
@media (max-width: 640px) { .mes { grid-template-rows: auto 120px auto; } .mes__n { font-size: 12px; } }
.luz__leyenda { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 22px; font-size: 14px; color: var(--perla-2); font-variant-numeric: tabular-nums; }
.punto { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 9999px; background: rgba(238, 243, 242, .3); vertical-align: -1px; }
.punto--sol { background: var(--arena); }

/* 5 · Visita */
.visita { position: relative; isolation: isolate; overflow: clip; padding: var(--aire) var(--lado) calc(var(--aire) + 20px); background: var(--abismo); }
.fondo--visita { background: radial-gradient(120% 80% at 50% 110%, #0E4A50 0%, var(--abismo) 60%); }
.luz--f { width: 64vmax; height: 64vmax; left: -16vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(47, 181, 176, .3), rgba(47, 181, 176, 0)); }
.luz--g { width: 54vmax; height: 54vmax; right: -16vmax; top: 20%; background: radial-gradient(closest-side, rgba(230, 216, 195, .22), rgba(230, 216, 195, 0)); }
.luz--h { width: 40vmax; height: 40vmax; left: 30%; bottom: -16vmax; background: radial-gradient(closest-side, rgba(127, 224, 218, .22), rgba(127, 224, 218, 0)); }
.olas { position: absolute; inset: -4% -8%; width: 116%; height: 108%; }
.visita__in { display: grid; justify-items: center; gap: 26px; max-width: 1100px; margin: 0 auto; text-align: center; }
.titulo--grande { font-size: clamp(52px, 9vw, 150px); }
.visita__txt { max-width: 44ch; font-size: 17px; color: var(--perla-2); }
.visita__txt .ejemplo { display: block; margin-top: 4px; }
.pildora {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 88px; margin-top: 12px;
  padding: 0 clamp(36px, 6vw, 80px); border-radius: 999px; cursor: pointer; background: rgba(6, 35, 43, .5); border-color: rgba(238, 243, 242, .5);
  box-shadow: inset 0 3px 1px rgba(255, 255, 255, .5), inset 0 -2px 1px rgba(255, 255, 255, .16), inset 0 0 40px rgba(47, 181, 176, .3);
  font: 300 clamp(30px, 5.4vw, 68px)/1 var(--titular); font-stretch: 108%; letter-spacing: -.035em; color: var(--perla);
  transition: scale .2s var(--ease), background-color .2s ease;
}
.cromo .pildora { backdrop-filter: url(#refraccion) saturate(150%); }
@media (hover: hover) { .pildora:hover { scale: 1.03; background-color: rgba(6, 35, 43, .38); } }
.pildora:focus-visible { outline: 2px solid var(--arena); outline-offset: 6px; }
.aviso { min-height: 1.6em; font-size: 16px; color: var(--arena); }

/* Pie */
.pie { display: grid; gap: 8px; justify-items: center; padding: 48px var(--lado) calc(110px + env(safe-area-inset-bottom)); background: var(--hondo); text-align: center; font-size: 16px; color: var(--perla-2); }
.pie__marca { font: 300 26px/1 var(--titular); font-stretch: 112%; color: var(--perla); }
@media (max-width: 359px) { .hero__eti { font-size: 12px; letter-spacing: .14em; } .hero__lede { font-size: 16px; } }
@media (max-height: 720px) and (max-width: 760px) { .hero__escena { padding-top: 16px; } .hero__ficha { padding: 14px 18px 12px; } }

/* pulsar: 0,97 (norma común del kit) */
.pildora:active { transform: scale(.97); }

/* Glosario y enlaces legales del pie */
.pie__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.pie__legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--perla); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (hover: hover) { .pie__legal a:hover { color: var(--arena); } }
