/* ALTAMAR · Estilo Asombro (cinemático scroll). Marca inventada de XCENDE. */
/* recorte (scripts/fuentes-miniwebs.py): 111 caracteres de esta miniweb; el resto, de la fuente completa */
@font-face { font-family: "Archivo Altamar"; src: url("/estilos/asombro/fuentes/archivo-latin-estrecha-wdth62-75-wght100-600.recorte.woff2") format("woff2"); font-weight: 100 600; font-stretch: 62% 75%; font-display: swap; unicode-range: U+0020-005B, U+005D, U+005F-007D, U+00B2, U+00B7, U+00BF, U+00C1, U+00C9, U+00CD, U+00D1, U+00D3, U+00D7, U+00DA, U+00E1, U+00E9, U+00ED, U+00F1, U+00F3, U+00FA, U+2013, U+20AC, U+2212; }
@font-face { font-family: "Archivo Altamar"; src: url("/assets/estilos/fuentes/archivo-latin-estrecha-wdth62-75-wght100-600.woff2") format("woff2"); font-weight: 100 600; font-stretch: 62% 75%; font-display: swap; unicode-range: U+000D, U+005C, U+005E, U+007E, U+00A0-00B1, U+00B3-00B6, U+00B8-00BE, U+00C0, U+00C2-00C8, U+00CA-00CC, U+00CE-00D0, U+00D2, U+00D4-00D6, U+00D8-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+2026, U+2032-2033, U+2039-203A, U+2044, U+2122, U+2191, U+2193, 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 Altamar"; src: url("/estilos/asombro/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+00B2, U+00B7, U+00BF, U+00C1, U+00C9, U+00CD, U+00D1, U+00D3, U+00D7, U+00DA, U+00E1, U+00E9, U+00ED, U+00F1, U+00F3, U+00FA, U+2013, U+20AC, U+2212; }
@font-face { font-family: "Hanken Altamar"; 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-00B1, U+00B3-00B6, U+00B8-00BE, U+00C0, U+00C2-00C8, U+00CA-00CC, U+00CE-00D0, U+00D2, U+00D4-00D6, U+00D8-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+2026, U+2039-203A, U+2044, U+2122, U+2215; }

:root {
  --noche: #0B1620;
  --abismo: #050B10;
  --arena: #E8DCC8;
  --arena-2: #BDB2A0;
  --espuma: #A9D6E5;
  --linea: rgba(232, 220, 200, .16);
  --tinta-clara: #0B1620;
  --tinta-clara-2: #4A463F;
  --espuma-oscura: #2C5566;
  --f-cine: "Archivo Altamar", "Arial Narrow", sans-serif;
  --f-texto: "Hanken Altamar", system-ui, sans-serif;
  --m: clamp(16px, 5.2vw, 80px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--noche);
  color: var(--arena);
  font: 400 17px/1.6 var(--f-texto);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--espuma); outline-offset: 3px; }

.saltar { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 12px 18px; background: var(--arena); color: var(--abismo); border-radius: 999px; text-decoration: none; font-weight: 600; }
.saltar:focus { top: 16px; }

/* ---------- Barra ---------- */
.barra {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--m) 14px;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.js .barra { position: fixed; }
.barra--solida { background: #050B10; border-bottom-color: var(--linea); }
.marca {
  font-family: var(--f-cine); font-stretch: 75%; font-weight: 300; text-transform: uppercase;
  font-size: 18px; letter-spacing: .42em; text-decoration: none; color: var(--arena);
  min-height: 44px; display: inline-flex; align-items: center;
}
.pildora {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  font: 500 15px/1.2 var(--f-texto); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pildora--vidrio { color: var(--arena); border: 1px solid rgba(232, 220, 200, .55); background: rgba(5, 11, 16, .4); }
.pildora--vidrio:hover { background: var(--arena); color: var(--abismo); border-color: var(--arena); }
.pildora--clara { border: 0; background: var(--arena); color: var(--abismo); font-size: 17px; font-weight: 600; padding: 18px 30px; }
.pildora--clara:hover { background: var(--espuma); }
.flecha { transition: transform .2s var(--ease); }
.pildora:hover .flecha { transform: translate(2px, -2px); }

/* ---------- Hero: la escena ---------- */
.hero { position: relative; background: var(--abismo); }
.escena-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.tramo { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.vista {
  position: absolute; inset: 0; overflow: hidden; background: var(--abismo);
  --u: max(calc(100vw / 1600), calc(100vh / 1000));
  --fx: 930; --fy: 556;            /* punto de llegada: la terraza de la planta media */
  --pan-x: 0; --pan-y: 0;          /* encuadre base */
  --vx: 130; --vy: -30;            /* la cámara recoloca la terraza al acercarse */
  --p: 0;
}
.vista--k2 { --p: .5; }
.vista--k3 { --p: 1; }

.camara {
  position: absolute; inset: 0;
  transform: translate(calc((var(--pan-x) + var(--vx) * var(--p)) * var(--u)), calc((var(--pan-y) + var(--vy) * var(--p)) * var(--u)))
}
.capa {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  transform-origin: calc(50% + (var(--fx) - 800) * var(--u)) calc(50% + (var(--fy) - 500) * var(--u));
  transform: scale(calc(1 / (1 - var(--p) * var(--c))));
}
.capa--cielo { --c: .05; }
.capa--lejos { --c: .16; }
.capa--mar { --c: .42; }
.capa--casa { --c: .68; }
.capa--cerca { --c: .93; opacity: clamp(0, calc(1 - var(--p) * 2.6), 1); }
.capa--aire { --c: .68; opacity: calc(.35 + var(--p) * .65); }
.vista__foto { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* En vertical se abre el plano: la caja del mundo (1600 × 1000) es más ancha que la pantalla y deja ver el cielo y el mar que sobran */
@media (max-aspect-ratio: 1/1) {
  .vista { --u: calc(100vw / 740); --pan-x: -40; --pan-y: -110; --vx: -30; --vy: -110; }
  .camara { inset: auto; left: 50%; top: 50%; width: calc(100vw * 1600 / 740); height: calc(100vw * 1000 / 740); margin: calc(100vw * -500 / 740) 0 0 calc(100vw * -800 / 740); }
  .capa { overflow: visible; }
  .capa--casa, .capa--aire { --c: .6; }
}.vista:has(.vista__foto) .camara { display: none; }
/* En vertical, <picture> sirve k1-m, k2-m y k3-m (900 × 1600), ya recortadas hacia la casa: encuadre centrado */
/* viñeta y velo para leer el texto (contraste medido sobre el velo) */
.vista::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(5, 11, 16, .9) 0%, rgba(5, 11, 16, .62) 26%, rgba(5, 11, 16, 0) 54%),
    linear-gradient(to bottom, rgba(5, 11, 16, .55) 0%, rgba(5, 11, 16, 0) 16%),
    radial-gradient(130% 95% at 50% 42%, rgba(5, 11, 16, 0) 58%, rgba(5, 11, 16, .6) 100%);
}
@media (min-aspect-ratio: 1/1) {
  .vista::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: clamp(.2, calc(var(--p) * 1.5), 1);
    background: linear-gradient(to right, rgba(5, 11, 16, .84) 0%, rgba(5, 11, 16, .66) 30%, rgba(5, 11, 16, 0) 56%);
  }
}

.frase {
  position: relative; z-index: 2; width: 100%; max-width: 980px;
  padding: 120px var(--m) clamp(64px, 11vh, 120px);
}
.frase__ante {
  display: flex; align-items: center; gap: 14px;
  font: 500 13px/1.3 var(--f-texto); letter-spacing: .24em; text-transform: uppercase; color: var(--espuma);
  margin-bottom: 18px;
}
.frase__ante .tnum { color: var(--arena); letter-spacing: .12em; }
.frase__ante .tnum::after { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--espuma); vertical-align: middle; margin-left: 14px; }
.frase__titulo {
  font-family: var(--f-cine); font-stretch: 62%; font-weight: 200; text-transform: uppercase;
  font-size: clamp(50px, 7.2vw, 128px); line-height: .88; letter-spacing: .004em;
}
@media (max-width: 380px) { .frase__titulo { font-size: 46px; } }
.frase__titulo em { font-style: normal; font-weight: 300; color: var(--espuma); }
.frase__texto { margin-top: 22px; max-width: 34ch; font-size: clamp(17px, 1.35vw, 20px); color: var(--arena); }   /* opacidad 1 (kit): el texto siempre entero */
.frase .enlace { margin-top: 14px; }
.hero__progreso, .hero__pista { display: none; }

/* Modo cine (JS + movimiento): una sola escena fijada, las frases se relevan */
.cine .hero { height: 100vh; height: 100svh; overflow: hidden; }
.cine .tramo { position: absolute; inset: 0; min-height: 0; pointer-events: none; }
.cine .tramo .frase a { pointer-events: auto; }
.cine .tramo--2 .vista, .cine .tramo--3 .vista { display: none; }
.cine .hero__progreso { display: block; position: absolute; left: var(--m); right: var(--m); bottom: 28px; height: 1px; background: var(--linea); z-index: 3; }
.cine .hero__progreso i { display: block; height: 100%; background: var(--espuma); transform-origin: 0 50%; transform: scaleX(0); }
.cine .hero__pista {
  display: flex; align-items: center; gap: 12px; position: absolute; right: var(--m); bottom: 44px; z-index: 3;
  font: 500 12px/1 var(--f-texto); letter-spacing: .22em; text-transform: uppercase; color: var(--arena);
}
.cine .hero__pista i { width: 1px; height: 28px; background: var(--espuma); }
@media (max-width: 640px) { .cine .hero__pista { display: none; } }

/* ---------- Secciones ---------- */
.banda { padding: clamp(96px, 13vw, 184px) var(--m); position: relative; }
.cont { max-width: 1320px; margin-inline: auto; }
.ante { font: 500 13px/1.3 var(--f-texto); letter-spacing: .24em; text-transform: uppercase; color: var(--espuma); }
.titulo {
  font-family: var(--f-cine); font-stretch: 66%; font-weight: 250; text-transform: uppercase;
  font-size: clamp(46px, 7.6vw, 120px); line-height: .9; margin: 18px 0 26px; letter-spacing: .005em;
}
.titulo em { font-style: normal; font-weight: 300; color: var(--espuma); }
.entradilla { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--arena-2); max-width: 40ch; }
.nota { margin-top: 28px; font-size: 14px; color: var(--arena-2); }
.cab { margin-bottom: clamp(48px, 7vw, 96px); }
@media (min-width: 980px) {
  /* Dos bloques que casan arriba y abajo: titular a la izquierda; a la derecha, el antetítulo arriba y la entradilla en su base */
  .cab--doble { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto 1fr; gap: 0 clamp(48px, 6vw, 112px); align-items: start; }
  .cab--doble .titulo { grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .cab--doble .ante { grid-column: 2; grid-row: 1; }
  .cab--doble .entradilla { grid-column: 2; grid-row: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; margin-top: 16px; border-top: 1px solid var(--linea); padding-bottom: .2em; }
  .acabados .cab--doble .entradilla { border-top-color: rgba(11, 22, 32, .2); }
}

.enlace {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--arena);
  font-weight: 500; letter-spacing: .01em;
  background:
    linear-gradient(var(--espuma), var(--espuma)) 0 calc(100% - 10px) / 0 1px no-repeat,
    linear-gradient(var(--linea), var(--linea)) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size .2s var(--ease), color .2s var(--ease);
}
.enlace:hover, .enlace:focus-visible { background-size: 100% 1px, 100% 1px; color: var(--espuma); }

/* Residencias */
.residencias { background: var(--noche); }
.res { display: grid; gap: 56px; }
@media (min-width: 980px) {
  /* El corte ocupa el alto de la lista: el dibujo se apoya abajo (el mar casa con el último borde) y el acantilado sube */
  .res { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 112px); align-items: stretch; }
  .corte { display: grid; grid-template-rows: 1fr auto; }
  .corte .corte__dibujo svg { height: 100%; }
}
.corte { border: 1px solid var(--linea); padding: clamp(16px, 2.4vw, 32px); }
.corte__dibujo { position: relative; container-type: inline-size; }
.corte svg { width: 100%; height: auto; }
.nivel { fill: rgba(169, 214, 229, .05); stroke: rgba(232, 220, 200, .4); stroke-width: 1.2; transition: fill .2s var(--ease), stroke .2s var(--ease); }
.corte[data-activo="atico"] .nivel--atico, .corte[data-activo="villa"] .nivel--villa, .corte[data-activo="jardin"] .nivel--jardin { fill: rgba(169, 214, 229, .28); stroke: var(--espuma); }
/* Cotas medidas desde abajo (el dibujo se apoya abajo): (520 − y) / 400 del ancho */
.corte__cota { position: absolute; font-size: 12px; letter-spacing: .08em; color: var(--arena-2); }
.corte__cota--a { bottom: 64.5cqw; left: 0; }
.corte__cota--v { bottom: 43.5cqw; left: 0; }
.corte__cota--j { bottom: 25cqw; left: 0; }
.corte__cota--m { bottom: 9.75cqw; left: 6%; transform: translateY(100%); color: var(--espuma); text-transform: uppercase; letter-spacing: .2em; }
.corte__cota--a, .corte__cota--v, .corte__cota--j { transform: translateY(-30%); padding-left: 10%; }
.corte figcaption, .mapa figcaption { margin-top: 16px; font-size: 13px; color: var(--arena-2); }

.res__lista { border-bottom: 1px solid var(--linea); }
.res__fila {
  display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; padding: 32px 12px 28px 0;
  border-top: 1px solid var(--linea); transition: background-color .2s var(--ease);
}
@media (min-width: 640px) { .res__fila { grid-template-columns: 72px 1fr; padding: 40px 16px 34px 0; } }
.res__fila:focus-within { background: rgba(169, 214, 229, .04); }
.res__n { font: 500 13px/1 var(--f-texto); letter-spacing: .16em; color: var(--espuma); padding-top: 14px; }
.res__nombre {
  font-family: var(--f-cine); font-stretch: 62%; font-weight: 200; text-transform: uppercase;
  font-size: clamp(52px, 6.4vw, 96px); line-height: .9; letter-spacing: .01em;
  transition: letter-spacing .2s var(--ease);
}
.res__fila:focus-within .res__nombre { letter-spacing: .04em; }
.res__texto { margin-top: 12px; color: var(--arena-2); max-width: 44ch; }
.res__datos { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 8px clamp(20px, 3vw, 44px); margin-top: 22px; }
.res__datos dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--arena-2); }
.res__datos dd { font-family: var(--f-cine); font-stretch: 75%; font-weight: 300; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.res__pie { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin-top: 16px; }
.res__precio { color: var(--arena-2); }
.res__precio b { color: var(--arena); font-weight: 600; }

/* El lugar */
.lugar { background: var(--abismo); }
.lugar__rejilla { display: grid; gap: 56px; }
@media (min-width: 980px) {
  /* El plano ocupa el alto del texto: se apoya abajo (costa y cala) y la tierra sigue hacia el norte */
  .lugar__rejilla { grid-template-columns: 7fr 5fr; gap: clamp(48px, 6vw, 112px); align-items: stretch; }
  .mapa { display: grid; grid-template-rows: 1fr auto; }
  .mapa .mapa__dibujo svg { height: 100%; }
}
.mapa { border: 1px solid var(--linea); padding: clamp(12px, 1.8vw, 24px); }
.mapa__dibujo { position: relative; container-type: inline-size; }
.mapa svg { width: 100%; height: auto; }
/* Rótulos medidos desde abajo (el plano se apoya abajo): (480 − y) / 640 del ancho */
.mapa__rotulo { position: absolute; font-size: 12px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--arena); white-space: nowrap; transform: translateY(100%); }
.mapa__rotulo--marca { left: 79%; bottom: 33cqw; color: var(--espuma); font-weight: 600; }
.mapa__rotulo--cala { left: 55%; bottom: 33cqw; }
.mapa__rotulo--cota { left: 86.5%; bottom: 14.625cqw; color: var(--espuma); font-weight: 600; letter-spacing: .06em; }
.mapa__rotulo--n { left: 90.5%; bottom: 59.25cqw; }
.mapa__rotulo--escala { left: 23.5%; bottom: 7.8cqw; letter-spacing: .06em; }
.mapa__rotulo--mar { left: 6%; bottom: 13.5cqw; color: var(--espuma); }
.mapa__rotulo--camino { left: 63%; bottom: 37.5cqw; transform: translateX(-50%) translateY(-160%); color: var(--arena-2); }
@media (max-width: 520px) { .mapa__rotulo--camino { display: none; } .mapa__rotulo--marca { left: 74%; } }
.camino { stroke-dasharray: 1; stroke-dashoffset: 0; }
.cifras { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--linea); }
.cifras div { display: grid; grid-template-columns: minmax(104px, 36%) 1fr; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.cifras dt { white-space: nowrap; font-family: var(--f-cine); font-stretch: 70%; font-weight: 250; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; text-transform: uppercase; color: var(--espuma); }
.cifras dd { color: var(--arena-2); }

/* Acabados (banda clara) */
.acabados { background: var(--arena); color: var(--tinta-clara); }
.acabados .ante { color: var(--espuma-oscura); }
.acabados .titulo em { color: var(--espuma-oscura); }
.acabados .entradilla { color: var(--tinta-clara-2); }
.muestras { display: grid; gap: 48px; }
@media (min-width: 760px) { .muestras { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); } }
.muestra__tex { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid rgba(11, 22, 32, .2); }
.muestra__tex svg { width: 100%; height: 100%; }
.muestra__luz {
  position: absolute; inset: -10% -60%; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 246, 228, 0) 35%, rgba(255, 246, 228, .26) 50%, rgba(255, 246, 228, 0) 65%);
  transform: translateX(-30%);
}
.muestra figcaption { padding-top: 22px; }
.muestra__nombre { font-family: var(--f-cine); font-stretch: 66%; font-weight: 300; text-transform: uppercase; font-size: clamp(40px, 4vw, 56px); line-height: .95; }
.muestra figcaption > p:not(.muestra__dato) { margin-top: 10px; color: var(--tinta-clara-2); max-width: 32ch; }
.muestra__dato { margin-top: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.muestra__dato span { font-weight: 400; color: var(--tinta-clara-2); }
.acabados .enlace {
  color: var(--tinta-clara);
  background:
    linear-gradient(var(--tinta-clara), var(--tinta-clara)) 0 calc(100% - 10px) / 0 1px no-repeat,
    linear-gradient(rgba(11, 22, 32, .25), rgba(11, 22, 32, .25)) 0 calc(100% - 10px) / 100% 1px no-repeat;
}
.acabados .enlace:hover, .acabados .enlace:focus-visible { background-size: 100% 1px, 100% 1px; color: var(--espuma-oscura); }
.acabados :focus-visible { outline-color: var(--espuma-oscura); }

/* Visita */
.visita { position: relative; background: var(--abismo); padding: clamp(120px, 16vw, 220px) var(--m) clamp(120px, 14vw, 200px); overflow: hidden; }
.visita__horizonte { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60%; max-width: none; opacity: .9; }
.visita__cont { position: relative; }
.titulo--final { font-size: clamp(54px, 9.4vw, 156px); font-stretch: 62%; font-weight: 200; line-height: .86; }
.visita__accion { margin-top: 44px; display: grid; justify-items: start; gap: 18px; }
.aviso { min-height: 1.6em; color: var(--espuma); font-size: 16px; max-width: 44ch; }

/* Pie */
.pie { background: var(--abismo); border-top: 1px solid var(--linea); padding: 28px var(--m) max(28px, env(safe-area-inset-bottom)); }
.pie__cont { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.pie p { font-size: 14px; color: var(--arena-2); max-width: 60ch; }
.pie__extra { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--linea); }
.pie__legal { display: flex; flex-wrap: wrap; gap: 0 28px; }
.pie__legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--arena); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--linea); transition: text-decoration-color .2s var(--ease), color .2s var(--ease); }
.pie__legal a:hover { color: var(--espuma); text-decoration-color: var(--espuma); }
/* Móvil: lectura y controles a 16 px; los rótulos (antetítulos, cotas, números) siguen pequeños */
@media (max-width: 640px) {
  .pildora { font-size: 16px; }
  .nota { font-size: 16px; }
  .corte__cota { color: var(--arena); }
}
@media (max-width: 400px) {
  .res__datos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res__datos dt { letter-spacing: .1em; }
}

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