/* =========================================================
   Innovación Inmobiliaria · Home (maqueta synaptik.cc) · v3
   «Lo que se ve desde casa», con los colores de su logo:
   papel crema, tinta negra, noche y el dorado del tejado
   (solo en filetes, el tejado, números pequeños y estados).
   Aire de revista: poco texto, imagen grande, etiquetas en
   versalitas pequeñas y filetes de 1 px.
   Portada a sangre, vistas, obra nueva, recomendados,
   valoración y pie. El buscador vive en una capa.
   Sin bordes entre secciones: la página entera pasa de la
   noche al día (y vuelta) según la sección que se lee.
   Motor y tiempos de dhoce; módulos de Abeto y The Sibarist.
   ========================================================= */

:root {
  /* Su paleta (cabecera y logo de inmobiliariainnovacion.es) */
  --paper: #F5F4EB;
  --paper-2: #EAE8DC;
  --ink: #0B0B0A;
  --ink-2: #5E5C55;                     /* texto secundario sobre papel: 6,1:1 */
  --rule: rgba(11, 11, 10, .14);
  --rule-2: rgba(11, 11, 10, .28);
  --night: #120909;
  --night-2: #1E1515;
  --night-3: #2B2121;
  --cream-2: rgba(245, 244, 235, .64);  /* texto secundario sobre noche: 7,5:1 */
  --rule-d: rgba(245, 244, 235, .14);
  --gold: #A28E61;                      /* 6,2:1 sobre noche; sobre papel solo filetes y detalles */
  --gold-line: #9C885C;                 /* el mismo dorado, 3,1:1 sobre papel: subrayado de los huecos y campos */
  --glass: rgba(18, 9, 9, .5);          /* cabecera sobre el vídeo: la navegación pasa de 4,5:1 */

  /* Tipografía: opción B por defecto (Noto Serif Display + Hanken Grotesk); ?t=a y ?t=c cambian estas variables */
  --display: "Noto Serif Display", Georgia, serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --dw: 300;          /* titulares */
  --dw-h1: 340;       /* h1 */
  --dw-strong: 360;   /* precios y teléfono */
  --ds: 1;            /* factor de tamaño de la display */
  --dt: -.012em;      /* tracking de la display */

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-glide: cubic-bezier(.45, 0, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .1, 1);   /* la ventana de Vistas: arranque suave y llegada muy larga */
  --morph: 1.6s;                             /* lo que tarda la página en pasar de la noche al día */

  --max: 1560px;
  --pad: clamp(16px, 3.2vw, 48px);
  --gap: clamp(10px, 1.3vw, 20px);
  --section-y: clamp(80px, 9vw, 140px);
  --views-y: clamp(64px, 6.6vw, 104px);  /* aire sobre Vistas; el mismo bajo su ventana, hasta Obra nueva */
  --frame: 12px;                        /* margen de la ventana de Vistas */
  --frame-r: clamp(18px, 2vw, 28px);    /* radio exterior de la ventana */
  --head-top: 14px;
  --head-h: 60px;
  /* Loader: el logo real, con la ventana en el centro de la pantalla */
  --logo-w: min(520px, 80vw);
  --win: calc(var(--logo-w) * .0621);
}

html[data-type="a"] {
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --text: "Geist", "Helvetica Neue", Arial, sans-serif;
  --dw: 340; --dw-h1: 380; --dw-strong: 420;
  --ds: 1; --dt: -.018em;
}
html[data-type="c"] {
  --display: "Ibarra Real Nova", Georgia, serif;
  --text: "Geist", "Helvetica Neue", Arial, sans-serif;
  --dw: 400; --dw-h1: 400; --dw-strong: 500;
  --ds: 1.08; --dt: -.01em;
}

@media (max-width: 767px) {
  :root { --frame: 8px; --head-top: 10px; --head-h: 56px; }
}

/* ---------- Noche y día ----------
   Cada sección declara su modo (data-mode); main.js pone en html el de la que
   cruza la línea del 55 % y estos colores se funden en html. Registrados para
   que se animen; todo lo que depende del modo sale de ellos */
@property --bg { syntax: '<color>'; inherits: true; initial-value: #120909; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #F5F4EB; }
@property --fg-2 { syntax: '<color>'; inherits: true; initial-value: rgba(245, 244, 235, .64); }
@property --line { syntax: '<color>'; inherits: true; initial-value: rgba(245, 244, 235, .14); }
/* El hover de los botones de tinta anima este número, no su color: así el color sigue al modo sin retraso */
@property --hov { syntax: '<number>'; inherits: false; initial-value: 0; }

html, html[data-mode="dark"], :root:not(.js) :is(main, body) > [data-mode="dark"] {
  --bg: var(--night); --fg: var(--paper); --fg-2: var(--cream-2); --line: var(--rule-d);
}
html[data-mode="light"], :root:not(.js) :is(main, body) > [data-mode="light"], .search {
  --bg: var(--paper); --fg: var(--ink); --fg-2: var(--ink-2); --line: var(--rule);
}
html {
  transition: --bg var(--morph) var(--ease-glide), --fg var(--morph) var(--ease-glide),
    --fg-2 var(--morph) var(--ease-glide), --line var(--morph) var(--ease-glide);
}
/* El modo de entrada se pone sin fundido */
html.mode-now { transition: none; }
/* Sin JS no hay cambio de modo: cada sección pinta el suyo */
:root:not(.js) :is(main, body) > [data-mode] { background: var(--bg); color: var(--fg); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scrollbar-gutter: stable;
  /* El foco nunca queda debajo de la cabecera fija */
  scroll-padding-top: calc(var(--head-top) + var(--head-h) + 16px);
  scroll-padding-bottom: 32px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  html.has-smooth { scroll-behavior: auto; }
}
html.is-locked, html.menu-open, html.search-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, fieldset, address, figcaption { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
address { font-style: normal; }
h1, h2, h3, h4 { font-weight: 400; }
sup { line-height: 0; }
::selection { background: var(--gold); color: var(--night); }
/* El anillo sigue al modo; las capas fijas que no cambian de modo lo fijan con --focus */
:focus-visible { outline: 2px solid var(--focus, var(--fg)); outline-offset: 3px; }
.hero, .header, .menu, .loader { --focus: var(--paper); }
.header.is-solid { --focus: var(--ink); }
[hidden] { display: none !important; }
/* Destinos de las anclas: reciben el foco sin anillo (el anillo es para los controles) */
main[tabindex="-1"]:focus, section[tabindex="-1"]:focus, footer[tabindex="-1"]:focus, .vphrase__text[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 500; transform: translateY(-180%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Etiquetas, titulares y pies de foto ---------- */
.glyph { width: 9px; height: 9px; flex: none; overflow: visible; --g: var(--gold); }
.label {
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--text); font-size: .68rem; font-weight: 500; line-height: 1.4;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--fg-2);
}

.h2 {
  margin-top: 20px;
  max-width: 16em;
  font-family: var(--display); font-weight: var(--dw);
  font-size: calc(clamp(1.75rem, 1rem + 1.9vw, 2.9rem) * var(--ds));
  line-height: 1.06; letter-spacing: var(--dt);
  text-wrap: balance;
}

.caption {
  margin-top: 12px;
  font-size: .66rem; font-weight: 500; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-2);
}

/* Etiqueta obligatoria de las infografías sobre la foto flotante */
.tag-info {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper); text-shadow: 0 1px 12px rgba(18, 9, 9, .6);
}

/* Etalonaje común de las fotos de la cartera (nunca infografías ni vídeo) */
.ph { filter: saturate(.78) contrast(1.07) sepia(.1) brightness(1.02); }

/* ---------- Botones: píldoras largas; la flecha redonda gira 45° ---------- */
.btn, .cta__label {
  font-family: var(--text); font-size: .9rem; font-weight: 500; letter-spacing: .005em; white-space: nowrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 50px; padding: 0 28px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.btn--sm { height: 40px; padding: 0 20px; font-size: .86rem; }
.btn--glass {
  background: rgba(245, 244, 235, .1); color: var(--paper); border-color: rgba(245, 244, 235, .26);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(245, 244, 235, .22); }

.cta { display: inline-flex; align-items: center; gap: 4px; }
.cta__label {
  display: inline-flex; align-items: center; height: 50px; padding: 0 28px; border-radius: 999px;
  transition: background-color .45s var(--ease-out);
}
.cta__icon {
  display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%;
  transition: transform .7s var(--ease-out), background-color .45s var(--ease-out);
}
.cta__icon .icon { font-size: 1.05rem; }
.cta:hover .cta__icon, .cta:focus-visible .cta__icon { transform: rotate(45deg); }
.cta--light .cta__label, .cta--light .cta__icon { background: var(--paper); color: var(--ink); }
.cta--light:hover .cta__label, .cta--light:hover .cta__icon { background: #fff; }
/* Tinta del modo: negra de día y crema de noche; al señalar se acerca un poco al fondo */
.btn--ink, .cta--ink .cta__label, .cta--ink .cta__icon {
  background: color-mix(in srgb, var(--fg), var(--bg) calc(var(--hov) * 14%));
  color: var(--bg);
}
.btn--ink, .cta--ink .cta__label { transition: --hov .45s var(--ease-out); }
.cta--ink .cta__icon { transition: transform .7s var(--ease-out), --hov .45s var(--ease-out); }
.btn--ink:hover, .cta--ink:hover .cta__label, .cta--ink:hover .cta__icon { --hov: 1; }
/* iOS anteriores a 16.2 no conocen color-mix: sin esto el botón se quedaría sin fondo */
@supports not (color: color-mix(in srgb, red, blue)) {
  .btn--ink, .cta--ink .cta__label, .cta--ink .cta__icon { background: var(--fg); }
}

.icon-btn {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  transition: background-color .35s var(--ease-out), color .35s, border-color .35s;
}
.icon-btn .icon { font-size: 1.05rem; }

/* Enlace de revista: versalitas pequeñas sobre un filete dorado */
.more {
  display: inline-flex; align-items: center; gap: 14px;
  padding-bottom: 8px;
  font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat;
  transition: background-size .6s var(--ease-out), gap .6s var(--ease-out);
}
.more .icon { font-size: 1rem; }
.more:hover { gap: 22px; }

/* =========================================================
   Intro: el logo real sobre crema (el tejado se traza en dorado y
   la palabra sube en negro); después la ventana se abre al vídeo
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 120; overflow: hidden;
  color: var(--ink);
  animation: loader-failsafe 0s linear 5s forwards;
}
/* El crema es la sombra del hueco: cerrado mientras se dibuja el logo; al abrirse, deja ver el vídeo */
.loader__hole {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0; translate: -50% -50%;
  box-shadow: 0 0 0 150vmax var(--paper);
}
.is-loaded .loader__hole { animation: hole-open 1.4s var(--ease-io) .15s both; }
@keyframes hole-open {
  from { width: var(--win); height: var(--win); }
  to { width: calc(100vw + 4px); height: calc(100vh + 4px); }
}
.no-js .loader, :root:not(.js) .loader { display: none; }
.loader__logo {
  position: absolute; width: var(--logo-w);
  left: calc(50% - var(--logo-w) / 2);
  top: calc(50% - var(--logo-w) * .068);   /* el centro de la ventana cae en el centro de la pantalla */
}
.loader__roof { width: 100%; height: auto; overflow: visible; }
.loader__tri {
  fill: var(--gold); fill-opacity: 0;
  stroke: var(--gold); stroke-width: 2.6; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.loader__panes { fill: var(--ink); opacity: 0; }
.loader__word { display: block; margin: .73% 1.25% 0; overflow: hidden; }
.loader__word svg { width: 100%; height: auto; fill: var(--ink); transform: translateY(112%); }

.loader.is-drawing .loader__tri { stroke-dashoffset: 0; fill-opacity: 1; transition: stroke-dashoffset 1.1s var(--ease-io), fill-opacity .7s var(--ease-out) .95s; }
.loader.is-drawing .loader__panes { opacity: 1; transition: opacity .5s var(--ease-out) 1.25s; }
.loader.is-drawing .loader__word svg { transform: none; transition: transform 1s var(--ease-out) .55s; }

/* La ventana se abre: los cristales, el tejado y la palabra se apagan y el hueco crece hasta la pantalla */
.is-loaded .loader__roof, .is-loaded .loader__word { opacity: 0; transition: opacity .4s var(--ease-out) .1s; }
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }

/* =========================================================
   Cabecera: píldora de cristal oscuro sobre el vídeo; crema sólida al bajar
   ========================================================= */
.header {
  position: fixed; z-index: 140;
  top: var(--head-top); left: var(--pad); right: var(--pad);
  pointer-events: none;
  transition: transform .7s var(--ease-out);
}
/* Escondida del todo, también su sombra (sobre crema asomaba una franja) */
.header.is-hidden { transform: translateY(calc(-100% - var(--head-top) - 40px)); }
.menu-open .header, .header:focus-within { transform: none; }
.header__bar {
  pointer-events: auto;
  max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  height: var(--head-h); padding: 0 8px 0 24px; border-radius: 999px;
  background: var(--glass); color: var(--paper);
  border: 1px solid rgba(245, 244, 235, .14);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  transition: background-color .6s var(--ease-out), color .6s var(--ease-out), border-color .6s var(--ease-out), box-shadow .6s var(--ease-out);
  --logo-roof: var(--gold); --logo-win: transparent;
}
.header.is-solid .header__bar {
  background: var(--paper); color: var(--ink); border-color: var(--rule);
  box-shadow: 0 12px 32px -22px rgba(11, 11, 10, .4);
  --logo-win: var(--ink);
}
.menu-open .header .header__bar {
  background: rgba(245, 244, 235, .06); color: var(--paper); border-color: var(--rule-d); box-shadow: none;
  --logo-win: transparent;
}
.brand { display: block; flex: none; }
.brand svg { width: auto; height: 26px; aspect-ratio: 957 / 300; fill: currentColor; }

.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px;
  font-size: .88rem; font-weight: 500; letter-spacing: .005em;
  background: linear-gradient(var(--gold), var(--gold)) 50% calc(100% - 4px) / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out), opacity .3s;
}
.nav a:hover { background-size: calc(100% - 24px) 1px; }
.header__actions { display: flex; align-items: center; gap: 6px; }

/* ES · EN: pequeño; el idioma activo, subrayado en dorado */
.lang { display: flex; align-items: center; gap: 2px; font-size: .68rem; font-weight: 500; letter-spacing: .16em; }
.lang a { padding: 6px 6px 7px; opacity: .86; transition: opacity .3s; }
.lang a[aria-current] { opacity: 1; background: linear-gradient(var(--gold), var(--gold)) 50% calc(100% - 2px) / calc(100% - 12px) 1px no-repeat; }
.lang a:hover { opacity: 1; }
.header .lang { display: none; margin-right: 6px; }

.header__search { border: 1px solid rgba(245, 244, 235, .22); }
.header__search:hover { background: rgba(245, 244, 235, .12); }
.header.is-solid .header__search { border-color: var(--rule-2); }
.header.is-solid .header__search:hover { background: var(--paper-2); }
.header__cta { display: none; background: var(--paper); color: var(--ink); }
.header__cta:hover { background: #fff; }
.header.is-solid .header__cta { background: var(--ink); color: var(--paper); }
.header.is-solid .header__cta:hover { background: #2A2925; }
.menu-open .header .header__cta { background: var(--paper); color: var(--ink); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px 0 18px; border-radius: 999px;
  border: 1px solid rgba(245, 244, 235, .22);
  font-size: .86rem; font-weight: 500;
  transition: border-color .5s var(--ease-out);
}
.header.is-solid .menu-toggle { border-color: var(--rule-2); }
.menu-open .header .menu-toggle { border-color: var(--rule-d); }
.menu-toggle__icon { position: relative; display: block; width: 18px; height: 10px; }
.menu-toggle__icon i {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .6s var(--ease-out), top .6s var(--ease-out);
}
.menu-toggle__icon i:first-child { top: 1.5px; }
.menu-toggle__icon i:last-child { top: 7.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { top: 4.5px; transform: rotate(-45deg); }

@media (min-width: 768px) {
  .header .lang, .header__cta { display: flex; }
}
@media (min-width: 1200px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}

/* =========================================================
   Menú a pantalla completa, sobre noche: un sumario
   ========================================================= */
.menu {
  position: fixed; inset: 0; z-index: 136;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--night); color: var(--paper);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__inner {
  min-height: 100%;
  display: grid; grid-template-rows: 1fr auto; gap: 32px;
  padding-top: calc(var(--head-top) + var(--head-h) + 36px); padding-bottom: 28px;
}
.menu__nav { align-self: center; }
.menu__list li { opacity: 0; transform: translateY(32px); transition: opacity .6s var(--ease-out), transform .9s var(--ease-out); }
.menu.is-open .menu__list li { opacity: 1; transform: none; transition-delay: calc(.32s + var(--i, 0) * 50ms); }
.menu__list a {
  display: flex; align-items: baseline; gap: 22px; width: max-content; max-width: 100%;
  padding: 4px 12px 4px 0;
  font-family: var(--display); font-weight: var(--dw);
  font-size: min(calc(clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem) * var(--ds)), 9vh);
  line-height: 1.12; letter-spacing: var(--dt);
  transition: opacity .4s var(--ease-out), transform .6s var(--ease-out);
}
.menu__num { flex: none; width: 24px; font-family: var(--text); font-size: .7rem; font-weight: 500; letter-spacing: .1em; color: var(--gold); transform: translateY(-1.2em); }
.menu__list:hover a { opacity: .34; }
.menu__list a:hover, .menu__list a:focus-visible { opacity: 1; transform: translateX(10px); }
.menu__preview { display: none; }
.menu__foot {
  display: grid; gap: 10px 24px; align-items: end;
  padding-top: 22px; border-top: 1px solid var(--rule-d);
  font-size: .9rem; color: var(--cream-2);
}
.menu__foot a { color: var(--paper); }
.lang--menu { justify-self: start; }
@media (min-width: 640px) {
  .menu__foot { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
}
@media (min-width: 1024px) {
  .menu__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .menu__nav { grid-column: 1 / span 7; }
  .menu__preview {
    position: relative; overflow: hidden;
    display: block; grid-column: 9 / span 4; align-self: center;
    aspect-ratio: 4 / 5; border-radius: 4px; background: var(--night-3);
    opacity: 0; transform: translateY(24px);
    transition: opacity .8s var(--ease-out) .45s, transform 1.2s var(--ease-out) .45s;
  }
  .menu.is-open .menu__preview { opacity: 1; transform: none; }
  .menu__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease-out), transform 1.4s var(--ease-out); }
  .menu__preview img.is-leaving { opacity: 0; transform: scale(1.06); }
  .menu__foot { grid-column: 1 / -1; }
}

/* =========================================================
   Huecos de las frases (buscador y valoración): palabras
   subrayadas con un filete dorado que abren su lista
   ========================================================= */
.phrase__g { white-space: nowrap; }
.slot { position: relative; display: inline-block; vertical-align: baseline; }
.slot select {
  max-width: 100%; padding: .1em .3em; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--paper);
  font-family: var(--text); font-size: .45em; vertical-align: .3em;
}
.slot.is-enhanced select, .slot.is-enhanced label { display: none; }
.slot__btn {
  display: inline-flex; align-items: baseline; gap: .16em;
  padding: 0 .04em .02em; margin-inline: .04em;
  font: inherit; color: inherit; line-height: 1.1; white-space: nowrap;
  background: linear-gradient(var(--gold-line), var(--gold-line)) 0 100% / 100% 1px no-repeat;
  transition: background-size .4s var(--ease-out);
}
.slot__btn .icon { width: .36em; height: .36em; color: var(--gold-line); stroke-width: 2; transform: translateY(-.1em); transition: transform .5s var(--ease-out); }
.slot__btn:hover, .slot.is-open .slot__btn { background-size: 100% 2px; }
.slot.is-open .slot__btn .icon { transform: translateY(-.1em) rotate(180deg); }
.slot__pop {
  position: absolute; left: 0; top: calc(100% + 12px); z-index: 40;
  min-width: max(100%, 240px); max-height: min(60vh, 440px); overflow-y: auto;
  padding: 8px; border-radius: 4px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -28px rgba(11, 11, 10, .35);
  font-family: var(--text); font-size: .95rem; font-weight: 400; line-height: 1.3; letter-spacing: 0;
  opacity: 0; translate: 0 8px; visibility: hidden;
  transition: opacity .45s var(--ease-out), translate .45s var(--ease-out), visibility 0s linear .45s;
}
.slot.is-open .slot__pop { opacity: 1; translate: 0 0; visibility: visible; transition: opacity .45s var(--ease-out), translate .45s var(--ease-out), visibility 0s; }
.slot__title { display: none; }
.slot__list:focus { outline: none; }
.slot__opt {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 2px;
  cursor: pointer; white-space: nowrap;
  transition: background-color .25s;
}
.slot__lbl { white-space: nowrap; }
.slot__opt sup { margin-left: 4px; font-size: .62rem; color: var(--ink-2); letter-spacing: .04em; vertical-align: .55em; }
.slot__opt:hover, .slot__opt.is-active { background: var(--paper-2); }
.slot__list:focus-visible .slot__opt.is-active { box-shadow: inset 0 0 0 1px var(--ink); }
.slot__opt[aria-selected="true"] { padding-right: 16px; }
.slot__opt[aria-selected="true"]::after { content: ""; flex: none; width: 6px; height: 6px; margin-left: auto; background: var(--gold); }
.slot__opt[aria-selected="true"] .slot__lbl { margin-right: 18px; }
.slot__opt.is-zero { color: var(--ink-2); }

/* Hoja inferior de las opciones (móvil) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 145; background: rgba(18, 9, 9, .42); opacity: 0; transition: opacity .45s var(--ease-out); }
.sheet-backdrop.is-on { opacity: 1; }

/* =========================================================
   Buscador: la frase, el recuento y la referencia, en una capa crema
   ========================================================= */
.search {
  position: fixed; inset: 0; z-index: 150;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.search.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.search__inner {
  min-height: 100%;
  display: grid; grid-template-rows: auto 1fr auto; gap: 28px;
  padding-top: var(--head-top); padding-bottom: 28px;
}
.search__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--head-h); }
.search__close {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px 0 18px; border-radius: 999px;
  border: 1px solid var(--rule-2); font-size: .86rem; font-weight: 500;
  transition: background-color .4s var(--ease-out), color .4s, border-color .4s;
}
.search__close:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search__x { position: relative; display: block; width: 14px; height: 14px; }
.search__x i { position: absolute; left: 0; right: 0; top: 6.5px; height: 1px; background: currentColor; transform: rotate(45deg); }
.search__x i:last-child { transform: rotate(-45deg); }
.search__body { align-self: center; display: grid; gap: clamp(36px, 4.6vw, 64px); }
.search__result {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px;
  padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule);
}
.search__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
/* El cuerpo solo funde (un transform rompería la hoja inferior fija del móvil) */
.search__body { opacity: 0; transition: opacity .5s var(--ease-out); }
.search__foot { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .8s var(--ease-out); }
.search.is-open .search__body { opacity: 1; transition: opacity 1s var(--ease-out) .4s; }
.search.is-open .search__foot { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) .55s, transform 1.2s var(--ease-out) .55s; }

.phrase__text {
  font-family: var(--display); font-weight: var(--dw);
  font-size: calc(clamp(1.75rem, 1rem + 1.95vw, 2.75rem) * var(--ds));
  line-height: 1.5; letter-spacing: var(--dt);
}
.finder__count { display: flex; align-items: baseline; gap: 16px; }
.finder__num {
  font-family: var(--display); font-weight: 300;
  font-size: calc(clamp(3.4rem, 2rem + 4vw, 6rem) * var(--ds)); line-height: .9; letter-spacing: -.03em;
  font-variant-numeric: lining-nums;
}
.finder__unit { font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.finder__none { flex-basis: 100%; max-width: 52ch; font-size: .98rem; line-height: 1.5; color: var(--ink-2); }

/* Por referencia, discreto, al pie de la capa */
.ref {
  display: flex; align-items: center; gap: 6px;
  width: min(100%, 340px); height: 44px;
  background: linear-gradient(var(--rule-2), var(--rule-2)) 0 100% / 100% 1px no-repeat;
  transition: background-image .3s;
}
.ref:focus-within { background-image: linear-gradient(var(--ink), var(--ink)); }
.ref input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font-size: .95rem; }
.ref input::placeholder { color: var(--ink-2); }
.ref__go { display: grid; place-items: center; width: 36px; height: 36px; }
.ref__go .icon { font-size: 1.05rem; }
.ref__msg { font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.ref__msg:empty { display: none; }
.ref__msg a { color: var(--ink); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat; }

/* =========================================================
   Portada: el vídeo a sangre; la ventana del logo se abre hasta llenarla
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
}
.hero__frame {
  position: relative; height: 100%;
  overflow: hidden; isolation: isolate;
  background: var(--night); color: var(--paper);
}
.hero__media { position: absolute; left: 0; right: 0; top: -14%; height: 114%; }
.hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  scale: 1.04;
}
.hero__video { opacity: 0; transition: opacity 1.4s var(--ease-out); }
.hero__video.is-playing { opacity: 1; }
/* Velo: arriba para la cabecera y abajo para el titular */
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 9, 9, .4) 0%, rgba(18, 9, 9, 0) 26%),
    linear-gradient(0deg, rgba(18, 9, 9, .82) 0%, rgba(18, 9, 9, .46) 16%, rgba(18, 9, 9, .16) 34%, rgba(18, 9, 9, 0) 52%);
}

/* La pausa, sola y discreta, bajo la cabecera */
.hero__top {
  position: absolute; z-index: 4;
  top: calc(var(--head-top) + var(--head-h) + 14px); right: var(--pad);
}
.hero__pause {
  width: 32px; height: 32px;
  background: rgba(18, 9, 9, .3); color: rgba(245, 244, 235, .86);
  border: 1px solid rgba(245, 244, 235, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero__pause:hover { background: rgba(18, 9, 9, .62); color: var(--paper); }
.hero__pause .icon { font-size: .9rem; }
.hero__pause .icon--play, .hero__pause.is-paused .icon--pause { display: none; }
.hero__pause.is-paused .icon--play { display: block; }

.hero__main {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.4rem 3rem;
  max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto;
  padding: 0 var(--pad) clamp(30px, 6vh, 60px);
}
.hero__title {
  max-width: 13em;
  font-family: var(--display); font-weight: var(--dw-h1);
  font-size: calc(clamp(2rem, 1.1rem + 2.1vw, 3.05rem) * var(--ds));
  line-height: 1.02; letter-spacing: -.02em;
  text-shadow: 0 1px 24px rgba(18, 9, 9, .25);
}
.hero__title .w { padding-block: .14em; margin-block: -.14em; }
.hero__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hero__actions .cta__label, .hero__actions .btn { height: 54px; padding: 0 clamp(26px, 2.8vw, 42px); }
.hero__actions .cta__icon { width: 54px; height: 54px; }

/* Entrada (solo con JS, antes de .is-loaded). La portada está pintada desde el principio
   debajo del loader; la ventana se abre en el loader, no recortando la portada. */
.js:not(.is-loaded) .hero__poster, .js:not(.is-loaded) .hero__video { scale: 1.14; }
.js:not(.is-loaded) .hero .hero__title .w__i { transform: translate3d(0, 105%, 0); }
.js:not(.is-loaded) .hero__pause, .js:not(.is-loaded) .hero__actions { opacity: 0; transform: translateY(14px); }
.js:not(.is-loaded) .header__bar { opacity: 0; }

.is-loaded .hero__poster, .is-loaded .hero__video { scale: 1.04; transition: scale 2.6s var(--ease-out) .15s, opacity 1.4s var(--ease-out); }
.is-loaded .hero .hero__title .w__i { transform: none; transition: transform 1.2s var(--ease-out); transition-delay: calc(.25s + var(--i, 0) * 60ms); }
.is-loaded .hero__pause, .is-loaded .hero__actions { opacity: 1; transform: none; transition: opacity 1.2s var(--ease-out) 1.3s, transform 1.4s var(--ease-out) 1.3s; }
.is-loaded .header__bar { opacity: 1; transition: opacity 1.2s var(--ease-out) 1.4s, background-color .6s var(--ease-out), color .6s var(--ease-out), border-color .6s var(--ease-out); }
.is-ready .hero__actions { transition: none; }
.is-ready .hero__pause { transition: background-color .35s var(--ease-out), color .35s; }
.is-ready .header__bar { transition: background-color .6s var(--ease-out), color .6s var(--ease-out), border-color .6s var(--ease-out), box-shadow .6s var(--ease-out); }

/* =========================================================
   Vistas: la ventana 2×2 se abre desde la cruz al llegar;
   en reposo, solo la palabra
   ========================================================= */
.views { padding: var(--views-y) 0 var(--frame); }
.views__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px clamp(28px, 4vw, 64px);
  margin-bottom: clamp(24px, 2.6vw, 36px);
}
.views__head .h2 { margin-top: 0; max-width: none; }
.views__window {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px;
  height: clamp(520px, calc(100svh - 160px), 860px);
  margin-inline: var(--frame);
  /* El cristal activo crece poco y muy despacio */
  --big: 1.24fr; --small: .76fr;
  transition: grid-template-columns 2.6s var(--ease-soft), grid-template-rows 2.6s var(--ease-soft);
}
.pane {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  min-width: 0; min-height: 0;
  background: var(--night-2); color: var(--paper);
  --focus: var(--paper);   /* sobre la foto, en los dos modos */
}
.pane--tl { border-radius: var(--frame-r) 6px 6px 6px; }
.pane--tr { border-radius: 6px var(--frame-r) 6px 6px; }
.pane--bl { border-radius: 6px 6px 6px var(--frame-r); }
.pane--br { border-radius: 6px 6px var(--frame-r) 6px; }
/* La ventana se abre: los cuatro cristales a la vez, desde la cruz hacia fuera */
.js .views__window .pane { clip-path: inset(0 0 0 0); transition: clip-path 1.7s cubic-bezier(.65, 0, .25, 1); }
.js .views__window:not(.is-in) .pane--tl { clip-path: inset(100% 0 0 100%); }
.js .views__window:not(.is-in) .pane--tr { clip-path: inset(100% 100% 0 0); }
.js .views__window:not(.is-in) .pane--bl { clip-path: inset(0 0 100% 100%); }
.js .views__window:not(.is-in) .pane--br { clip-path: inset(0 100% 100% 0); }
.pane__img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  scale: 1.04;
  /* El acercamiento del cristal activo va en transform: scale es de la entrada (pane-in) */
  transition: transform 3.2s var(--ease-soft);
}
.js .views__window:not(.is-in) .pane__img { scale: 1.12; }
.js .views__window.is-in .pane__img { animation: pane-in 10.6s linear both; animation-play-state: var(--play, running); }
@keyframes pane-in {
  0% { scale: 1.12; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  24.5% { scale: 1.04; animation-timing-function: cubic-bezier(.33, 0, .2, 1); }
  100% { scale: 1; }
}
.pane__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(18, 9, 9, .78) 0%, rgba(18, 9, 9, .42) 32%, rgba(18, 9, 9, 0) 60%),
    linear-gradient(180deg, rgba(18, 9, 9, .3) 0%, rgba(18, 9, 9, 0) 24%);
}
.pane__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.pane__link:focus-visible { outline-offset: -6px; }
.pane__word {
  position: absolute; z-index: 3; left: clamp(18px, 2vw, 30px); bottom: clamp(16px, 1.9vw, 28px);
  font-family: var(--display); font-weight: var(--dw);
  font-size: calc(clamp(1.9rem, 1.1rem + 1.6vw, 2.8rem) * var(--ds)); line-height: 1; letter-spacing: var(--dt);
  pointer-events: none;
  transform-origin: 0 100%;
  transition: scale 2.4s var(--ease-soft);
}
/* «Ver 24 →» y la referencia: solo en el cristal activo (puntero fino). El activo lo pone
   main.js (data-hot en la ventana, .is-hot en el cristal) y sigue al puntero también
   cuando la página se desliza bajo un ratón quieto; con teclado, :focus-visible */
.pane__more, .pane__src { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .pane__more {
    position: absolute; z-index: 3; right: clamp(18px, 2vw, 30px); bottom: clamp(20px, 2.2vw, 32px);
    display: inline-flex; align-items: center; gap: 12px;
    font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
    pointer-events: none;
    opacity: 0; translate: 0 10px;
    transition: opacity .8s var(--ease-out), translate 1.4s var(--ease-out);
  }
  .pane__more .icon { font-size: 1rem; }
  .pane__src {
    position: absolute; z-index: 3; top: 16px; right: 18px; display: block;
    font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
    color: var(--paper); text-shadow: 0 1px 10px rgba(18, 9, 9, .6);
    opacity: 0; pointer-events: none;
    transition: opacity .8s var(--ease-out);
  }
  .pane.is-hot .pane__src { pointer-events: auto; }
  .views__window[data-hot="tl"], .views__window:has(.pane--tl :focus-visible) { grid-template-columns: var(--big) var(--small); grid-template-rows: var(--big) var(--small); }
  .views__window[data-hot="tr"], .views__window:has(.pane--tr :focus-visible) { grid-template-columns: var(--small) var(--big); grid-template-rows: var(--big) var(--small); }
  .views__window[data-hot="bl"], .views__window:has(.pane--bl :focus-visible) { grid-template-columns: var(--big) var(--small); grid-template-rows: var(--small) var(--big); }
  .views__window[data-hot="br"], .views__window:has(.pane--br :focus-visible) { grid-template-columns: var(--small) var(--big); grid-template-rows: var(--small) var(--big); }
  .pane.is-hot .pane__word, .pane:has(:focus-visible) .pane__word { scale: 1.08; }
  .pane.is-hot .pane__img, .pane:has(:focus-visible) .pane__img { transform: scale(1.035); }
  .pane.is-hot .pane__more, .pane:has(:focus-visible) .pane__more,
  .pane.is-hot .pane__src, .pane:has(:focus-visible) .pane__src { opacity: 1; translate: 0 0; transition-delay: .6s; }
}

/* =========================================================
   Obra nueva: pliego asimétrico de revista. La infografía va a
   sangre por la izquierda; una segunda, pequeña, cruza la columna
   ========================================================= */
/* Sin borde entre las dos: la ventana de Vistas queda con el mismo aire arriba y abajo */
.fresh { padding: calc(var(--views-y) - var(--frame)) 0 calc(var(--section-y) + clamp(40px, 5vw, 80px)); overflow: hidden; }
.fresh__spread {
  --side: max(var(--pad), calc((100vw - var(--max)) / 2));
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-right: var(--side);
}
.fresh__main { position: relative; grid-column: 1 / span 7; grid-row: 1; }
/* Mientras llega la foto, un tono apenas distinto del fondo (de día y de noche) */
.fresh__frame { position: relative; overflow: hidden; background: color-mix(in srgb, var(--fg) 5%, var(--bg)); }
.fresh__main .fresh__frame { height: clamp(460px, 80svh, 780px); }
.fresh__img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; max-width: none; object-fit: cover; object-position: 50% 55%; scale: 1.12; transition: scale 2.6s var(--ease-out); }
.fresh__main.is-in .fresh__img { scale: 1; }
.fresh__main .caption { padding-left: var(--side); }
.fresh__text {
  grid-column: 9 / span 4; grid-row: 1; align-self: center;
}
.fresh__text .h2 { max-width: 9em; }
.fresh__lead { max-width: 34ch; margin-top: 22px; font-size: 1rem; line-height: 1.6; color: var(--fg-2); }
.fresh__price {
  margin: 30px 0 34px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--display); font-weight: var(--dw-strong);
  font-size: calc(clamp(1.5rem, 1.1rem + .9vw, 2rem) * var(--ds)); line-height: 1.1; letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
}
.fresh__from { display: block; margin-bottom: 8px; font-family: var(--text); font-size: .62rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--fg-2); }
.fresh__second {
  grid-column: 7 / span 2; grid-row: 1; align-self: end; z-index: 2;
  margin-bottom: calc(-1 * clamp(48px, 6vw, 96px));
}
/* El paspartú es del color del fondo: separa las dos infografías donde se cruzan */
.fresh__second .fresh__frame { aspect-ratio: 4 / 5; box-shadow: 0 0 0 clamp(8px, .8vw, 12px) var(--bg); }
.fresh__second .caption { width: max-content; max-width: 70vw; }
.fresh__img2 { width: 100%; height: 100%; object-fit: cover; scale: 1.1; transition: scale 2.6s var(--ease-out) .2s; }
.fresh__main.is-in ~ .fresh__second .fresh__img2 { scale: 1; }

/* =========================================================
   Recomendados: la cabecera y el enlace a toda la cartera.
   El escenario lo pinta la variante de ?r= (assets/css/recs-*.css)
   ========================================================= */
.recs { padding: var(--section-y) 0; }
.recs__head { margin-bottom: clamp(40px, 4.4vw, 64px); }
.recs__stage { position: relative; }
.recs .more { margin-top: clamp(36px, 4vw, 56px); }

/* =========================================================
   Valoración: la frase, como una cita de revista a todo el ancho
   ========================================================= */
/* Sin panel propio: el día la enmarca; el aire es el de las demás secciones */
.value { padding: var(--section-y) 0; }
.value__inner { display: grid; gap: clamp(28px, 3.2vw, 48px); container-type: inline-size; }
.vphrase { display: grid; gap: clamp(28px, 3vw, 44px); }
.vphrase__text {
  font-family: var(--display); font-weight: var(--dw);
  font-size: calc(clamp(1.75rem, 1rem + 2.2vw, 3rem) * var(--ds));
  /* La petición crece hasta llegar al margen derecho, como el filete y el botón */
  font-size: calc(max(clamp(1.75rem, 1rem + 2.2vw, 3rem), 4.6cqi) * var(--ds));
  line-height: 1.32; letter-spacing: var(--dt);
  text-wrap: balance;
}
/* La petición en una línea y la llamada en la siguiente */
.vphrase__call { display: block; }
.vfield { display: inline-block; vertical-align: baseline; }
.vfield input {
  width: 6.4em; padding: 0 .04em .02em; margin-inline: .04em;
  border: 0; border-radius: 0; outline: none;
  background: linear-gradient(var(--gold-line), var(--gold-line)) 0 100% / 100% 1px no-repeat;
  font: inherit; color: inherit; line-height: 1.1;
  transition: background-size .4s var(--ease-out);
}
.vfield input::placeholder { color: var(--fg-2); opacity: 1; }
.vfield input:hover, .vfield input:focus { background-size: 100% 2px; }
.vfield input:focus-visible { outline: 2px solid var(--fg); outline-offset: 6px; }
.vfield.is-invalid input { background-image: linear-gradient(var(--fg), var(--fg)); background-size: 100% 2px; }
.vphrase__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.check { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; line-height: 1.5; color: var(--fg-2); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  display: grid; place-content: center; width: 18px; height: 18px; margin: 2px 0 0;
  border: 1px solid var(--fg); border-radius: 0; cursor: pointer;
}
.check input::before { content: ""; width: 10px; height: 10px; background: var(--fg); transform: scale(0); transition: transform .25s var(--ease-out); }
.check input:checked::before { transform: scale(1); }
.check a { color: var(--fg); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat; }
.check.is-invalid input { border-width: 2px; }
.vphrase__msg { min-height: 1.5em; font-size: .95rem; line-height: 1.5; }
.vphrase__msg:empty { display: none; }
/* Enviada: la frase se queda como cita y la llamada pasa a la confirmación */
.vphrase.is-sent .slot__btn { background: none; pointer-events: none; }
.vphrase.is-sent .slot__btn .icon, .vphrase.is-sent .vphrase__foot { display: none; }

/* =========================================================
   Pie sobre noche: el contacto y el logo que se construye
   ========================================================= */
.footer { position: relative; overflow: hidden; padding-top: clamp(40px, 4.4vw, 64px); }
/* El titular al margen izquierdo y el contacto al derecho, como las filas de debajo */
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px var(--gap); align-items: end;
  padding-bottom: clamp(32px, 3vw, 44px); border-bottom: 1px solid var(--line);
}
.footer__title {
  font-family: var(--display); font-weight: var(--dw);
  font-size: calc(clamp(1.75rem, 1rem + 1.9vw, 2.9rem) * var(--ds)); line-height: 1.06; letter-spacing: var(--dt);
}
.footer__contact { display: grid; justify-items: end; gap: 6px; font-size: .98rem; color: var(--fg-2); text-align: right; }
.footer__contact a { color: var(--fg); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.footer__contact a:hover { background-size: 100% 1px; }
.footer__phone {
  margin: 4px 0 2px;
  font-family: var(--display); font-weight: var(--dw-strong);
  font-size: calc(clamp(1.6rem, 1.2rem + 1vw, 2.1rem) * var(--ds)); line-height: 1.15; letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
}
.footer__contact .footer__map {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding-bottom: 6px;
  font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  background-size: 100% 1px;
}
.footer__map .icon { font-size: .95rem; }
.footer__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding: 18px 0; font-size: .86rem; color: var(--fg-2);
}
.footer__star { color: var(--gold); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.footer__nav a { color: var(--fg); font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; padding-bottom: 4px; transition: background-size .6s var(--ease-out); }
.footer__nav a:hover { background-size: 100% 1px; }

.footer__brand { position: relative; padding-top: clamp(32px, 3.4vw, 50px); }
.footer__roof { width: 100%; height: auto; aspect-ratio: 957 / 149; overflow: visible; fill: var(--gold); }
.footer__roof { clip-path: inset(-2px calc(var(--roof, 0) * 50%) -2px calc(var(--roof, 0) * 50%)); }
.footer__word { margin: .73% 1.25% 0; overflow: hidden; }
.footer__word svg { width: 100%; height: auto; fill: var(--fg); }
.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px;
  margin-top: clamp(20px, 1.8vw, 26px); padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--fg-2);
}
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__legal a:hover { color: var(--fg); }

/* Si cartera.js no llega, se esconde lo que dependería de él */
.no-data .pane__more, .no-data .recs__stage { display: none; }

/* =========================================================
   Apariciones (solo con JS)
   ========================================================= */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em; margin-block: -.14em; }
.w__i { display: inline-block; }
.js [data-split] .w__i { transform: translate3d(0, 108%, 0); transition: transform 2s var(--ease-out); transition-delay: calc(var(--i) * 75ms + var(--d, 0ms)); }
.js [data-split].is-in .w__i { transform: none; }
.js [data-reveal] { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 2s var(--ease-out), transform 2.5s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Cursor: punto blanco de 8 px en modo diferencia ---------- */
.cursor { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor .cursor {
  position: fixed; left: 0; top: 0; z-index: 300; display: block;
  width: 0; height: 0; pointer-events: none; mix-blend-mode: difference;
}
.cursor__dot {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; opacity: 0;
  transition: transform .5s var(--ease-out), opacity .3s;
}
.cursor.is-visible .cursor__dot { opacity: 1; }
.cursor.is-hover .cursor__dot { transform: scale(1.9); }
.cursor.is-down .cursor__dot { transform: scale(.7); }
.cursor.is-hover.is-down .cursor__dot { transform: scale(1.4); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1023px) {
  /* La infografía a sangre arriba; debajo, el texto y la segunda imagen, que sube y cruza el borde */
  .fresh { padding-bottom: var(--section-y); }
  .fresh__spread { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding-right: var(--pad); }
  .fresh__main { grid-column: 1 / -1; margin-right: calc(-1 * var(--pad)); }
  .fresh__main .fresh__frame { height: auto; aspect-ratio: 4 / 3; }
  .fresh__main .caption { padding-left: var(--pad); }
  .fresh__text { grid-column: 1; grid-row: 2; align-self: start; padding: clamp(36px, 6vw, 56px) 0 0 var(--pad); }
  .fresh__text .h2 { max-width: 12em; }
  .fresh__second { grid-column: 2; grid-row: 2; align-self: start; margin: clamp(-96px, -9vw, -56px) 0 0; }

  .footer__top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .footer__contact { justify-items: start; text-align: left; }
}

@media (max-width: 767px) {
  .hero { min-height: 540px; }
  /* En vertical el titular sube por encima de los botones apilados: el velo de abajo llega más arriba */
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(18, 9, 9, .42) 0%, rgba(18, 9, 9, 0) 22%),
      linear-gradient(0deg, rgba(18, 9, 9, .86) 0%, rgba(18, 9, 9, .56) 26%, rgba(18, 9, 9, .18) 46%, rgba(18, 9, 9, 0) 60%);
  }
  .hero__main { flex-direction: column; align-items: stretch; gap: 20px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .cta { width: 100%; }
  .hero__actions .cta__label { flex: 1; justify-content: center; height: 52px; }
  .hero__actions .cta__icon { width: 52px; height: 52px; }
  .hero__actions .btn { height: 52px; width: 100%; }
  .header__bar { padding-left: 18px; gap: 8px; }
  .brand { padding-block: 11px; }
  .brand svg { height: 22px; }
  .hero__pause, .header__search { width: 44px; height: 44px; }
  .menu-toggle, .search__close { height: 44px; }
  .label { font-size: .7rem; }
  .caption { font-size: .7rem; }
  .ref input { font-size: 16px; }
  .ref__go { width: 44px; height: 44px; }
  .menu__foot a, .footer__legal a, .footer__nav a { display: inline-block; padding-block: 12px; }
  .lang--menu a { display: grid; place-items: center; min-width: 44px; height: 44px; }

  .views { padding-bottom: var(--frame); }
  .views__window { height: auto; grid-template-rows: auto auto; gap: 4px; }
  .pane { aspect-ratio: 1; }
  .pane__word { font-size: calc(1.6rem * var(--ds)); left: 14px; bottom: 12px; }

  /* Como en el ordenador: la segunda infografía, con su paspartú, cruza la esquina
     de la grande; su pie va a la izquierda y el texto entra debajo de las dos */
  .fresh__spread { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
  .fresh__main .fresh__frame { aspect-ratio: 5 / 4; }
  .fresh__main .caption { max-width: calc(54% - 8px); line-height: 1.6; }
  .fresh__second { grid-column: 2; grid-row: 2; margin: -128px 0 0; }
  .fresh__second .fresh__frame { box-shadow: 0 0 0 6px var(--bg); }
  .fresh__second .caption { max-width: 100%; width: auto; }
  .fresh__text { grid-column: 1 / -1; grid-row: 3; padding-top: 44px; }

  .vphrase__text { line-height: 1.42; }
  .vphrase__foot { flex-direction: column; align-items: stretch; }
  .vphrase__foot .btn { width: 100%; }

  .search__inner { gap: 20px; }
  .phrase__text { line-height: 1.55; }
  .search__result { align-items: flex-start; }
  .search__result .cta { width: 100%; }
  .search__result .cta__label { flex: 1; justify-content: center; }
  .ref { width: 100%; }

  /* Las listas de los huecos se abren como hoja inferior */
  .slot__pop {
    position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; z-index: 146;
    min-width: 0; max-height: 70vh; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 6px;
    translate: 0 24px;
  }
  .slot__title { display: block; margin: 0 4px 14px; font-size: .64rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
  .slot__list { display: flex; flex-wrap: wrap; gap: 8px; }
  .slot__opt { height: 46px; padding: 0 18px; gap: 8px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 1rem; }
  .slot__opt[aria-selected="true"] { padding-right: 18px; background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .slot__opt[aria-selected="true"] sup { color: var(--cream-2); }
  .slot__opt[aria-selected="true"]::after { display: none; }
  .slot__opt[aria-selected="true"] .slot__lbl { margin-right: 0; }

  .footer__row { flex-direction: column; align-items: stretch; }
  /* El menú del pie en dos columnas: sin una palabra suelta en la segunda línea */
  .footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .loader { display: none; }
  .js [data-reveal], .js [data-split] .w__i { opacity: 1; transform: none; }
  .js .views__window .pane { clip-path: none !important; }
  .js .views__window .pane__img { animation: none; scale: 1; transform: none; }
  .views__window { transition: none; }
  /* Noche y día: un fundido corto en lugar del paso lento */
  html { transition-duration: .4s !important; }
}
