/* ==========================================================================
   Finca Condado de Cubillana
   Paleta: cal, pino, noche, piedra, hoja. Tipos: Ibarra Real Nova + Archivo.
   Escala cerrada: 5 tamaños de serif, 2 de interfaz, 4 separaciones + sección.
   ========================================================================== */

@font-face { font-family: "Ibarra"; src: url("/assets/fonts/ibarra-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ibarra"; src: url("/assets/fonts/ibarra-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ibarra"; src: url("/assets/fonts/ibarra-italic-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ibarra"; src: url("/assets/fonts/ibarra-italic-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Paleta */
  --cal: #f2f3ee;
  --cal-2: #e6e9e1;
  --pino: #213a2f;
  --pino-2: #2d4d3f;
  --noche: #0f1b17;
  --piedra: #5f675e;
  --hoja: #b7c7b1;
  --error: #a33a2f;

  /* Tema por defecto: día */
  --bg: var(--cal);
  --fg: var(--pino);
  --muted: var(--piedra);
  --line: rgba(33, 58, 47, 0.16);
  --field-line: rgba(33, 58, 47, 0.22);

  /* Tipos */
  --serif: "Ibarra", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Escala: 5 tamaños de serif + 2 de interfaz. No hay más. */
  --t-display: clamp(3.4rem, 1.2rem + 9.4vw, 11.6rem); /* portada, título de página, llamada final */
  --t-h2: clamp(2.3rem, 1.7rem + 2.6vw, 4.1rem);       /* título de sección */
  --t-h3: clamp(1.7rem, 1.3rem + 1.6vw, 2.8rem);       /* subtítulo, elemento destacado */
  --t-lead: clamp(1.3rem, 1.18rem + 0.55vw, 1.65rem);  /* entradilla */
  --t-body: clamp(1.125rem, 1.06rem + 0.28vw, 1.3rem); /* texto */
  --t-ui: 0.95rem;                                     /* interfaz: menú, botones, campos */
  --t-ui-s: 0.84rem;                                   /* etiquetas, notas, pies */

  /* Espacio */
  --gutter: clamp(1.25rem, 0.6rem + 2.8vw, 4rem);
  --section: clamp(6rem, 4rem + 9vw, 13rem);           /* entre secciones */
  --section-s: clamp(4rem, 3rem + 5vw, 8rem);          /* bandas y bloques internos */
  --head-gap: clamp(2.5rem, 1.6rem + 3.5vw, 4.5rem);   /* cabecera de sección → contenido */
  --s-1: 0.75rem;                                      /* etiqueta → dato */
  --s-2: 1.5rem;                                       /* título → texto */
  --s-3: 2.5rem;                                       /* texto → acciones */
  --header-h: 4.75rem;

  /* Controles */
  --btn-h: 3.25rem;
  --btn-h-s: 2.75rem;
  --radius-field: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: var(--noche);
  --fg: var(--cal);
  --muted: var(--hoja);
  --line: rgba(242, 243, 238, 0.18);
}
[data-theme="pine"] {
  --bg: var(--pino);
  --fg: var(--cal);
  --muted: var(--hoja);
  --line: rgba(242, 243, 238, 0.2);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-smooth .modal iframe { pointer-events: auto; }

body {
  margin: 0;
  background: var(--cal);
  color: var(--pino);
  font-family: var(--serif);
  font-size: var(--t-body);
  line-height: 1.6;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; background-color: var(--ph, transparent); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--hoja); color: var(--noche); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 200;
  padding: 0.75rem 1rem; background: var(--pino); color: var(--cal);
  font-family: var(--sans); font-size: var(--t-ui-s);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { padding-inline: var(--gutter); }
[data-theme] { background: var(--bg); color: var(--fg); }

/* ---------- Tipografía ---------- */
.h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.02em; }
.h3 { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.012em; }
.lead { font-size: var(--t-lead); line-height: 1.45; }
.it { font-style: italic; }
.btn, .link, .nav, .menu-toggle {
  font-family: var(--sans);
  font-stretch: 112%;
  letter-spacing: 0.002em;
}
.muted { color: var(--muted); }
.prose { max-width: 36em; }
.prose p + p { margin-top: 1em; }
.acciones { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* Máscara de líneas para SplitText */
.line-mask { overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ---------- Botones y enlaces ---------- */
.btn {
  --btn-bg: var(--fg);
  --btn-fg: var(--bg);
  --btn-bg-h: color-mix(in srgb, var(--btn-bg) 84%, var(--bg));
  --btn-fg-h: var(--btn-fg);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--btn-h); padding: 0 1.6rem;
  border-radius: 999px;
  background-color: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--t-ui); font-weight: 500; line-height: 1;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
  white-space: nowrap;
}
.btn > span { display: block; }
@media (hover: hover) {
  .btn:hover { background-color: var(--btn-bg-h); color: var(--btn-fg-h); }
}
.btn:active { transform: scale(0.98); }
.btn--sm { height: var(--btn-h-s); padding: 0 1.2rem; }
.btn--light { --btn-bg: var(--cal); --btn-fg: var(--pino); --btn-bg-h: #ffffff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); --btn-bg-h: var(--fg); --btn-fg-h: var(--bg); box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.btn--ghost-light { --btn-bg: rgba(15, 27, 23, 0.28); --btn-fg: var(--cal); --btn-bg-h: var(--cal); --btn-fg-h: var(--pino); box-shadow: inset 0 0 0 1px rgba(242, 243, 238, 0.6); }
.btn--ghost.is-active { --btn-bg: var(--fg); --btn-fg: var(--bg); --btn-bg-h: var(--fg); --btn-fg-h: var(--bg); }

.link {
  display: inline;
  font-size: var(--t-ui); font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  padding-bottom: 0.2em;
  transition: background-size 0.6s var(--ease);
}
@media (hover: hover) {
  .link:hover { background-size: 0% 1px; background-position: 100% 100%; }
}
.link--light { color: var(--cal); }

/* Botón redondo de contorno usado en modales y visor */
.modal__close, .lightbox__close {
  flex: none; height: var(--btn-h-s); padding: 0 1.2rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(242, 243, 238, 0.45);
  font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui); font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}
.modal__close:hover, .lightbox__close:hover { background: var(--cal); color: var(--noche); }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 2rem;
  padding-inline: var(--gutter);
  color: var(--pino);
  transition: color 0.45s var(--ease), height 0.5s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(242, 243, 238, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(33, 58, 47, 0.1);
  opacity: 0; transition: opacity 0.45s var(--ease), background-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.header.is-scrolled { height: 4.1rem; }
.header.is-scrolled::before { opacity: 1; }
.header.on-dark { color: var(--cal); }
.header.on-dark::before { background: rgba(15, 27, 23, 0.86); box-shadow: 0 1px 0 rgba(242, 243, 238, 0.08); }
.header .header__cta { --btn-bg: var(--pino); --btn-fg: var(--cal); }
.header.on-dark .header__cta { --btn-bg: var(--cal); --btn-fg: var(--pino); --btn-bg-h: #ffffff; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; }
.brand__mark { width: 1.05rem; height: 1.5rem; fill: currentColor; }
.brand__name { font-family: var(--serif); font-size: 1.32rem; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(1rem, 2vw, 2.25rem); }
.nav__link { position: relative; font-size: var(--t-ui); padding: 0.5rem 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) {
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
}

.menu-toggle { display: none; margin-left: auto; font-size: var(--t-ui); font-weight: 500; height: var(--btn-h-s); padding: 0 0.25rem; }
.menu-toggle__close { display: none; }
.menu-open .menu-toggle__open { display: none; }
.menu-open .menu-toggle__close { display: inline; }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}
.menu__list { display: grid; gap: 0.35rem; }
.menu__link { display: inline-block; font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.02em; }
.menu__link[aria-current="page"] { font-style: italic; }
.menu__foot { display: grid; gap: 0.4rem; font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui); color: var(--muted); }
.menu__foot a { color: var(--fg); }

@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .menu-open .header { color: var(--cal); }
  .menu-open .header::before { opacity: 0; }
}

/* ---------- Pantalla de carga (solo portada, primera visita) ---------- */
.loader { display: none; }
.is-loading body { overflow: hidden; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--pino); color: var(--cal);
  clip-path: inset(0% 0% 0% 0%);
}
.loader__inner { display: grid; justify-items: center; gap: 1.1rem; }
.loader__mark { width: 1.6rem; height: 2.3rem; fill: currentColor; }
.loader__name { font-family: var(--serif); font-size: var(--t-h3); letter-spacing: -0.01em; line-height: 1; }
.loader__line { position: relative; width: 9rem; height: 1px; margin-top: 0.7rem; background: rgba(242, 243, 238, 0.2); }
.loader__line i { position: absolute; inset: 0; background: var(--cal); transform-origin: left; transform: scaleX(0); }

/* ---------- Imágenes ---------- */
.media { position: relative; overflow: hidden; background: var(--ph, var(--cal-2)); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media--parallax > img { height: 118%; margin-top: -9%; will-change: transform; }

/* Logo de Bodas.net en un solo color (toma el color del texto) */
.logo-bodasnet {
  display: inline-block; width: 6.4rem; height: 1.2rem; flex: none;
  background: currentColor;
  -webkit-mask: url("/assets/img/sellos/bodasnet.svg") no-repeat left center / contain;
  mask: url("/assets/img/sellos/bodasnet.svg") no-repeat left center / contain;
}

/* ---------- Estructura común ---------- */
.section { padding-block: var(--section); }
.section--continua { padding-top: 0; }
.section__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: var(--s-2); margin-bottom: var(--head-gap); }
.section__head > :first-child { grid-column: 1 / span 7; }
.section__head > p { grid-column: 8 / span 5; align-self: end; }
@media (max-width: 860px) {
  .section__head > :first-child, .section__head > p { grid-column: 1 / -1; }
}

/* Cabecera de página interior */
.phero { padding: calc(var(--header-h) + var(--section-s)) 0 var(--head-gap); }
.phero--solo { padding-bottom: 0; }
.phero__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: var(--s-2); align-items: end; }
.phero__title { grid-column: 1 / span 8; font-size: var(--t-display); line-height: 0.88; letter-spacing: -0.035em; }
.phero__lead { grid-column: 9 / span 4; padding-bottom: 0.6rem; }
.phero__media { margin-top: var(--head-gap); height: min(82svh, 56vw); }
@media (max-width: 860px) {
  .phero__title, .phero__lead { grid-column: 1 / -1; }
  .phero__lead { padding-bottom: 0; }
  .phero__media { height: 72vw; }
}

/* Bloque de texto + imagen */
.row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: var(--s-3); align-items: center; padding-block: var(--section-s); }
.row--sola { padding-block: 0; }
.row__media { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
.row__copy { grid-column: 9 / span 4; }
.row--flip .row__media { grid-column: 6 / span 7; order: 2; }
.row--flip .row__copy { grid-column: 1 / span 4; order: 1; }
.row__copy .h2, .row__copy .h3 { margin-bottom: var(--s-2); }
.row__copy p + p { margin-top: 1em; }
@media (max-width: 860px) {
  .row__media, .row--flip .row__media { grid-column: 1 / -1; order: 0; }
  .row__copy, .row--flip .row__copy { grid-column: 1 / -1; order: 1; }
}

/* Dos imágenes en paralelo */
.pareja { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.pareja .media { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .pareja { grid-template-columns: 1fr; } }

/* Datos clave, en prosa */
.datos { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; max-width: 27em; }
.bloque-datos { margin-top: var(--section-s); }

/* ==========================================================================
   INICIO
   ========================================================================== */

/* Portada */
.hero { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; background: var(--noche); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__dim { position: absolute; inset: 0; z-index: 1; background: var(--noche); opacity: 0; pointer-events: none; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: transform, opacity; }
.hero__slide:first-child { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(15, 27, 23, 0.78) 0%, rgba(15, 27, 23, 0.25) 46%, rgba(15, 27, 23, 0) 68%),
    linear-gradient(to bottom, rgba(15, 27, 23, 0.4), rgba(15, 27, 23, 0) 24%);
}
.hero__content {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; align-items: stretch; gap: 2rem;
  padding: 0 var(--gutter) clamp(1.75rem, 4vw, 3.25rem);
  color: var(--cal);
}
.hero__title { align-self: end; font-size: var(--t-display); line-height: 0.86; letter-spacing: -0.035em; }
.hero__title .it { display: block; padding-left: 0.62em; }
/* Columna derecha: la valoración arriba, a la altura del título; texto y botones abajo, en la línea base */
.hero__aside { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-3); width: 26.5rem; padding: 0.6em 0 0.5rem; }
.hero__intro { display: grid; gap: var(--s-2); }
.hero__intro p { max-width: 24rem; font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui); line-height: 1.5; }
.hero__actions { display: flex; gap: 0.75rem; }
.hero__proof { display: inline-flex; align-self: start; align-items: center; gap: 0.75rem; font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); color: var(--cal); }
.hero__proof .logo-bodasnet { width: 5.4rem; height: 1rem; }
@media (hover: hover) { .hero__proof:hover span:last-child { text-decoration: underline; text-underline-offset: 0.2em; } }
/* Por debajo de 1440 px el título no cabe en dos líneas junto a la columna: el bloque pasa debajo, con la valoración a la derecha */
@media (max-width: 1439px) {
  .hero__content { grid-template-columns: 1fr; gap: var(--s-3); }
  .hero__aside { flex-direction: row-reverse; align-items: end; width: auto; gap: var(--s-2) var(--gutter); padding: 0; }
  .hero__proof { align-self: end; padding-bottom: 1rem; }
}
@media (max-width: 760px) {
  .hero__content { gap: var(--s-2); }
  .hero__title .it { padding-left: 0.3em; }
  .hero__aside { flex-direction: column; align-items: stretch; }
  .hero__proof { align-self: start; padding-bottom: 0; }
  .hero__actions { display: grid; }
}

/* Declaración */
.intro { position: relative; z-index: 2; background: var(--cal); padding: var(--section) 0 var(--section-s); }
.intro__text { font-size: var(--t-h2); line-height: 1.12; letter-spacing: -0.018em; max-width: 21em; }
.intro__text .w { opacity: 0.16; }
.reduced .intro__text .w { opacity: 1; }
.intro__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); margin-top: var(--section-s); align-items: start; }
.intro__a { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.intro__b { grid-column: 7 / span 6; margin-top: var(--section-s); aspect-ratio: 3 / 2; }
.intro__note { grid-column: 7 / span 5; margin-top: var(--s-3); }
.intro__note p:first-child { font-size: var(--t-lead); line-height: 1.45; }
.intro__note p + p { margin-top: var(--s-2); }
.intro__note .link { display: inline-block; margin-top: var(--s-3); }
@media (max-width: 760px) {
  .intro__a { grid-column: 1 / span 9; }
  .intro__b { grid-column: 4 / span 9; margin-top: var(--s-3); }
  .intro__note { grid-column: 1 / -1; }
}

/* Del «sí, quiero» al último baile */
.dia { position: relative; background: var(--cal); color: var(--pino); }
.dia__pin { position: relative; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.dia__head {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem;
  padding: calc(var(--header-h) + var(--s-2)) var(--gutter) 0;
}
.dia__title { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.02em; max-width: 13em; }
.dia__sub { margin-top: var(--s-1); font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); color: var(--muted); }
.dia__rail { position: relative; display: flex; gap: clamp(0.75rem, 2vw, 2rem); font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); padding-bottom: 0.9rem; }
.dia__rail button { opacity: 0.45; transition: opacity 0.4s var(--ease); padding: 0.25rem 0; white-space: nowrap; }
.dia__rail button.is-active, .dia__rail button:hover { opacity: 1; }
.dia__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: 0.2; }
.dia__bar i { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(0); }
.dia__track { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; gap: clamp(2rem, 6vw, 7rem); padding: 2rem var(--gutter) 2.5rem; width: max-content; will-change: transform; }
.dia__panel { display: grid; grid-template-columns: auto 22rem; gap: clamp(1.5rem, 3vw, 3rem); align-items: end; height: 100%; max-height: 40rem; }
.dia__media { height: 100%; aspect-ratio: 4 / 3; max-width: 58vw; }
.dia__hour { font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); color: var(--muted); }
.dia__name { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.012em; margin: var(--s-1) 0 var(--s-2); }
.dia__text p:last-child { max-width: 21em; }
.dia__lights { position: absolute; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; }
@media (max-width: 960px) {
  .dia__pin { height: auto; overflow: visible; }
  .dia__head { grid-template-columns: 1fr; padding-top: var(--section); }
  .dia__rail { display: none; }
  .dia__track { width: auto; flex-direction: column; align-items: stretch; gap: var(--section-s); padding-bottom: var(--section); }
  .dia__panel { grid-template-columns: 1fr; height: auto; max-height: none; }
  .dia__media { height: auto; max-width: none; width: 100%; }
  .dia__lights { position: fixed; }
}
/* Sin movimiento (o sin JS): se lee en vertical */
.reduced .dia__pin, html:not(.js) .dia__pin { height: auto; overflow: visible; }
.reduced .dia__head, html:not(.js) .dia__head { grid-template-columns: 1fr; padding-top: var(--section); }
.reduced .dia__rail, html:not(.js) .dia__rail { display: none; }
.reduced .dia__track, html:not(.js) .dia__track { width: auto; flex-direction: column; align-items: stretch; gap: var(--section-s); padding-bottom: var(--section); }
.reduced .dia__panel, html:not(.js) .dia__panel { height: auto; max-height: none; }
.reduced .dia__media, html:not(.js) .dia__media { height: auto; max-width: none; width: 100%; }
.reduced .dia__lights, html:not(.js) .dia__lights { display: none; }
html:not(.js) .aerea__stage { clip-path: none; }
html:not(.js) .aerea__shade { opacity: 1; }

/* Vista aérea */
.aerea { position: relative; height: 100svh; overflow: hidden; background: var(--noche); color: var(--cal); }
.aerea__stage { position: absolute; inset: 0; clip-path: circle(22% at 50% 50%); will-change: clip-path; }
.aerea__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aerea__night { opacity: 0; }
.aerea__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(15, 27, 23, 0.75), rgba(15, 27, 23, 0) 55%); opacity: 0; }
.aerea__copy {
  position: absolute; inset: auto var(--gutter) clamp(2rem, 5vw, 4rem) var(--gutter); z-index: 2;
  display: grid; grid-template-columns: 1fr minmax(0, 24rem); align-items: end; gap: var(--s-2) 2rem;
}
.aerea__title { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.02em; max-width: 11em; text-shadow: 0 2px 40px rgba(15, 27, 23, 0.45); }
.aerea__text { text-shadow: 0 1px 24px rgba(15, 27, 23, 0.6); }
@media (max-width: 760px) { .aerea__copy { grid-template-columns: 1fr; } }

/* Lista de espacios */
.lista { position: relative; padding: var(--section) 0; }
.lista__head { margin-bottom: var(--head-gap); }
.lista__items { border-top: 1px solid var(--line); }
.lista__item { border-bottom: 1px solid var(--line); }
.lista__link {
  position: relative; z-index: 31;
  display: grid; grid-template-columns: 1fr minmax(0, 26rem); align-items: baseline; gap: 2rem;
  padding: clamp(1.1rem, 2vw, 1.6rem) 0;
  transition: color 0.4s var(--ease);
}
.lista__name { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.012em; transition: transform 0.7s var(--ease); }
.lista__desc { color: var(--muted); }
.lista__thumb { display: none; }
.lista__preview {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: clamp(14rem, 22vw, 22rem); aspect-ratio: 4 / 5;
  overflow: hidden; opacity: 0; scale: 0.8;
}
.lista__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s var(--ease); }
.lista__preview img.is-on { opacity: 1; }
@media (hover: hover) and (min-width: 961px) {
  .lista__items:hover .lista__link { color: color-mix(in srgb, var(--fg) 35%, transparent); }
  .lista__items:hover .lista__link:hover { color: var(--fg); }
  .lista__link:hover .lista__name { transform: translateX(1.2rem); }
}
@media (max-width: 960px) {
  .lista__link { grid-template-columns: 5.5rem 1fr; gap: 0.35rem 1.25rem; align-items: center; }
  .lista__thumb { display: block; aspect-ratio: 1; grid-row: span 2; }
  .lista__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .lista__desc { font-size: var(--t-ui); font-family: var(--sans); font-stretch: 112%; line-height: 1.45; }
  .lista__preview { display: none; }
}

/* La familia */
.familia { padding: 0 0 var(--section); }
.familia__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: var(--s-3); align-items: center; }
/* la foto es vertical (2:3): el marco tiene su misma proporción para que no se corte */
.familia__media { grid-column: 1 / span 5; aspect-ratio: 2 / 3; }
.familia__copy { grid-column: 7 / span 6; }
.familia__copy .h2 { margin-bottom: var(--s-2); }
.familia__datos { margin-top: var(--s-3); font-size: var(--t-lead); line-height: 1.45; max-width: 24em; }
@media (max-width: 860px) {
  .familia__media { grid-column: 1 / -1; }
  .familia__copy { grid-column: 1 / -1; }
}

/* Opiniones */
.opiniones { padding: var(--section) 0; overflow: hidden; }
.opiniones__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-2) var(--gutter); }
.opiniones__nota { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.opiniones__rating { display: inline-flex; align-items: center; gap: 0.9rem; font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui); color: var(--cal); }
.opiniones__rating:hover span:last-child { text-decoration: underline; text-underline-offset: 0.2em; }
.opiniones__cintas { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); margin-top: var(--head-gap); }
.cinta { overflow: hidden; }
.cinta__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.cinta__item { padding-inline: clamp(1.5rem, 3vw, 3rem); transition: opacity 0.4s var(--ease); }
.cinta__t { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.015em; white-space: nowrap; }
.cinta__n { margin-top: var(--s-1); font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); color: var(--muted); white-space: nowrap; }
.cinta__sep svg { width: 0.75rem; height: 1.1rem; fill: var(--hoja); opacity: 0.55; }
.cinta:nth-child(2) .cinta__t { font-style: italic; }
@media (hover: hover) {
  .cinta:hover .cinta__item { opacity: 0.4; }
  .cinta:hover .cinta__item:hover { opacity: 1; }
}
.reduced .cinta__track { flex-wrap: wrap; width: auto; row-gap: var(--s-2); padding-inline: var(--gutter); }
.reduced .cinta__t, .reduced .cinta__n { white-space: normal; }

/* Premios */
.premios { padding: var(--section-s) 0; border-bottom: 1px solid var(--line); }
.premios__grid { display: grid; grid-template-columns: minmax(0, 26rem) 1fr; gap: var(--s-3) var(--gutter); align-items: center; }
.premios__text { font-size: var(--t-lead); line-height: 1.45; }
.premios__sellos { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(0.75rem, 1.6vw, 1.5rem); }
.premios__sellos img { width: clamp(4.5rem, 7vw, 6.5rem); height: auto; mix-blend-mode: multiply; background: none; }
@media (max-width: 860px) {
  .premios__grid { grid-template-columns: 1fr; }
  .premios__sellos { justify-content: flex-start; }
}

/* Visitarla sin moverse */
.visita { padding: var(--section) 0; }
.visita__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--gutter); }
.visita__card { position: relative; display: grid; text-align: left; color: var(--cal); width: 100%; overflow: hidden; }
.visita__card .media { display: block; height: 100%; min-height: 100%; }
.visita__card:nth-child(2) .media { aspect-ratio: 4 / 3.95; }
.visita__card .media img { transition: transform 1.4s var(--ease); }
.visita__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: linear-gradient(to top, rgba(15, 27, 23, 0.7), rgba(15, 27, 23, 0));
}
.visita__label strong { font-weight: 400; font-size: var(--t-h3); line-height: 1.1; }
.visita__label span { font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); white-space: nowrap; }
.visita__play {
  position: absolute; z-index: 2; top: 50%; left: 50%;
  width: clamp(5rem, 9vw, 7.5rem); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(242, 243, 238, 0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(242, 243, 238, 0.5);
  font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); color: var(--cal);
  translate: -50% -50%;
  transition: scale 0.6s var(--ease), background-color 0.6s var(--ease);
}
@media (hover: hover) {
  .visita__card:hover .media img { transform: scale(1.05); }
  .visita__card:hover .visita__play { scale: 1.08; background: rgba(242, 243, 238, 0.24); }
}
@media (max-width: 860px) {
  .visita__grid { grid-template-columns: 1fr; }
  .visita__card .media, .visita__card:nth-child(2) .media { aspect-ratio: 4 / 3; height: auto; }
}

/* ---------- Llamada final y pie ---------- */
.cta { position: relative; overflow: hidden; min-height: 92svh; display: flex; align-items: flex-end; }
.cta__media { position: absolute; inset: 0; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 27, 23, 0.92) 0%, rgba(15, 27, 23, 0.45) 55%, rgba(15, 27, 23, 0.3)); }
.cta__img { width: 100%; height: 120%; object-fit: cover; margin-top: -10%; }
.cta__inner { position: relative; z-index: 1; width: 100%; padding-top: var(--section); padding-bottom: var(--section-s); }
.cta__title { font-size: var(--t-display); line-height: 0.88; letter-spacing: -0.035em; }
.cta__text { max-width: 30em; margin-top: var(--s-2); font-size: var(--t-lead); line-height: 1.45; }
.cta__actions { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.footer { padding-top: var(--section-s); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1fr auto 1fr 1fr; gap: var(--s-3) var(--gutter); font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui); line-height: 1.6; }
.footer__h { font-family: var(--sans); font-size: var(--t-ui-s); color: var(--muted); margin-bottom: var(--s-1); }
.footer__addr { margin-bottom: var(--s-1); }
.footer__col p + p { margin-top: 0.35rem; }
.footer__list { display: grid; gap: 0.35rem; }
.footer__list a { transition: opacity 0.3s; }
.footer__list a:hover { opacity: 0.65; }
.footer__mail { white-space: nowrap; }
.footer__proof { display: grid; gap: 0.6rem; justify-items: start; }
.footer__proof:hover span:last-child { text-decoration: underline; text-underline-offset: 0.2em; }
.footer__sellos { display: flex; gap: var(--s-1); margin-top: var(--s-2); }
.footer__sellos img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; background: none; }
.footer__word {
  margin: var(--section-s) 0 0; padding-inline: calc(var(--gutter) * 0.6);
  font-family: var(--serif); font-size: clamp(3.6rem, 14.6vw, 18rem); line-height: 0.84; letter-spacing: -0.045em;
  color: var(--pino-2);
}
.footer__word span { display: block; white-space: nowrap; }
.footer__word span:last-child { text-align: right; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: var(--s-2); padding-top: var(--s-2); padding-bottom: var(--s-2); border-top: 1px solid var(--line); font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); color: var(--muted); }
.footer__legal ul { display: flex; gap: var(--s-2); }
.footer__legal a:hover { color: var(--fg); }
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr auto; }
  .footer__word { font-size: 17vw; }
}
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }
/* en móviles muy estrechos el email baja un tamaño para caber en una línea */
@media (max-width: 350px) { .footer__mail, .menu__foot a { font-size: var(--t-ui-s); } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--noche); }
.modal[hidden] { display: none; }
.modal__bar { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: var(--header-h); padding: 0 var(--gutter); font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui); }
.modal__body { flex: 1; min-height: 0; padding: 0 var(--gutter) var(--gutter); display: grid; place-items: center; }
.modal__body iframe { width: 100%; height: 100%; border: 0; background: #000; }
.modal__body video { width: min(100%, 1120px); max-height: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ==========================================================================
   PÁGINAS INTERIORES
   ========================================================================== */

/* Espacios: capítulos con imagen fija */
.section--capitulos { padding-top: var(--section-s); }
.capitulos { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
.capitulos__sticky { grid-column: 1 / span 7; position: sticky; top: calc(var(--header-h) + 1rem); height: calc(100svh - var(--header-h) - 2rem); align-self: start; }
.capitulos__stack { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--cal-2); }
.capitulos__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); }
.capitulos__stack img.is-first { clip-path: inset(0 0 0 0); }
.capitulos__list { grid-column: 9 / span 4; }
.capitulo { min-height: 82svh; display: flex; flex-direction: column; justify-content: center; padding-block: var(--s-3); }
.capitulo__name { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: var(--s-2); }
.capitulo p + p { margin-top: 1em; }
.capitulo__meta { margin-top: var(--s-2); font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); color: var(--muted); }
.capitulo__img { display: none; }
@media (max-width: 860px) {
  .capitulos__sticky { display: none; }
  .capitulos__list { grid-column: 1 / -1; display: grid; gap: var(--section-s); }
  .capitulo { min-height: 0; padding-block: 0; }
  .capitulo__img { display: block; aspect-ratio: 4 / 3; margin-bottom: var(--s-2); }
}

/* 360 */
.tour { padding-block: var(--section); }
.tour__frame { position: relative; height: min(86svh, 60vw); min-height: 26rem; overflow: hidden; background: var(--noche); }
.tour__frame > img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.tour__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour__start {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: var(--s-1); text-align: center;
  padding: var(--gutter); color: var(--cal);
  background: radial-gradient(ellipse at center, rgba(15, 27, 23, 0.55), rgba(15, 27, 23, 0) 70%);
}
.tour__start strong { font-weight: 400; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.02em; }
.tour__start span { max-width: 28rem; font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui); opacity: 0.85; }
.tour__datos { margin-top: var(--section-s); }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: var(--s-2) 0; text-align: left;
  font-size: var(--t-lead); line-height: 1.3;
}
.faq__icon { flex: none; width: 1.1rem; height: 1.1rem; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform 0.6s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a { height: 0; overflow: hidden; }
.faq__a > div { padding: 0 0 var(--s-2); max-width: 40em; color: var(--muted); }
html:not(.js) .faq__a { height: auto; }

/* Columnas de servicios */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3) var(--gutter); }
.cols h3 { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.012em; margin-bottom: var(--s-1); }
.cols p { color: var(--muted); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* Tira de bodas reales */
.tira-sec { position: relative; padding-top: var(--section); }
.tira-sec__pin { position: relative; }
.tira { display: flex; gap: var(--gutter); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tira::-webkit-scrollbar { display: none; }
.tira__item { flex: none; width: clamp(15rem, 74vw, 22rem); scroll-snap-align: start; }
.tira__item .media { aspect-ratio: 4 / 5; }
.tira-sec__foot { margin-top: var(--s-3); }
.tira-sec__bar { display: none; }
@media (min-width: 961px) {
  .tira-sec { padding-top: 0; }
  .tira-sec__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--header-h); }
  .tira-sec__pin .section__head { margin-bottom: var(--s-3); }
  .tira { overflow: visible; width: max-content; scroll-snap-type: none; will-change: transform; }
  .tira__item { width: auto; }
  .tira__item .media { height: min(50svh, 32rem); aspect-ratio: 4 / 5; }
  .tira-sec__foot { display: flex; align-items: center; gap: 2rem; padding-bottom: 0; }
  .tira-sec__bar { display: block; position: relative; flex: 1; height: 1px; background: var(--line); }
  .tira-sec__bar i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }
  .reduced .tira-sec__pin { height: auto; padding-block: var(--section); }
  .reduced .tira { overflow-x: auto; width: auto; }
}

/* Eventos */
.evento { padding-block: var(--section-s); border-top: 1px solid var(--line); }
.evento:last-child { padding-bottom: var(--section); }
.evento__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: var(--s-3); }
.evento__title { grid-column: 1 / span 5; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.02em; }
.evento__copy { grid-column: 7 / span 6; }
.evento__copy ul { margin-top: var(--s-2); border-top: 1px solid var(--line); }
.evento__copy li { padding: var(--s-1) 0; border-bottom: 1px solid var(--line); }
.evento__media { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; gap: var(--gutter); }
.evento__media .media { aspect-ratio: 16 / 10; }
.evento__media .media:nth-child(2) { aspect-ratio: auto; }
@media (max-width: 860px) {
  .evento__title, .evento__copy { grid-column: 1 / -1; }
  .evento__media { grid-template-columns: 1fr; }
  .evento__media .media:nth-child(2) { aspect-ratio: 4 / 3; }
}

/* Galería */
.galeria-sec { padding-top: var(--head-gap); padding-bottom: var(--section); }
.filtros { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--s-3); }
.filtros .btn { height: var(--btn-h-s); padding: 0 1.15rem; }
.galeria { columns: 3; column-gap: clamp(0.75rem, 1.4vw, 1.25rem); }
.g-item { break-inside: avoid; margin-bottom: clamp(0.75rem, 1.4vw, 1.25rem); }
.g-item[hidden] { display: none; }
.g-item__btn { display: block; width: 100%; overflow: hidden; cursor: zoom-in; background: var(--cal-2); }
.g-item__btn img { width: 100%; aspect-ratio: var(--r); object-fit: cover; -webkit-user-drag: none; user-select: none; transition: transform 1.2s var(--ease), opacity 0.6s var(--ease); }
@media (hover: hover) { .g-item__btn:hover img { transform: scale(1.04); } }
@media (max-width: 1100px) { .galeria { columns: 2; } }
@media (max-width: 560px) { .galeria { columns: 1; } }

.lightbox { position: fixed; inset: 0; z-index: 95; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--noche); color: var(--cal); }
.lightbox[hidden] { display: none; }
.lightbox__top { display: flex; justify-content: flex-end; align-items: center; height: var(--header-h); padding: 0 var(--gutter); }
.lightbox__stage { position: relative; margin: 0 var(--gutter); }
.lightbox__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; user-select: none; -webkit-user-drag: none; }
.lightbox__zone { position: absolute; top: 0; bottom: 0; z-index: 2; width: 50%; outline: none; -webkit-tap-highlight-color: transparent; }
.lightbox__zone--prev { left: 0; cursor: w-resize; }
.lightbox__zone--next { right: 0; cursor: e-resize; }
.lightbox__zone span {
  position: absolute; top: 50%; translate: 0 -50%;
  display: inline-flex; align-items: center; height: var(--btn-h-s); padding: 0 1.2rem; border-radius: 999px;
  background: rgba(15, 27, 23, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui); font-weight: 500;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.lightbox__zone--prev span { left: 1rem; }
.lightbox__zone--next span { right: 1rem; }
.lightbox__zone:hover span, .lightbox__zone:focus-visible span { opacity: 1; }
.lightbox__zone:focus-visible span { box-shadow: 0 0 0 2px var(--cal); }
.lightbox__thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding: var(--s-2) var(--gutter); scrollbar-width: none; }
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumbs button { flex: none; width: 4.75rem; height: 3.4rem; overflow: hidden; opacity: 0.4; outline-offset: 2px; transition: opacity 0.3s var(--ease); }
.lightbox__thumbs button:hover { opacity: 0.8; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; outline: 1px solid var(--cal); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .lightbox__zone span { display: none; } }

/* Contacto */
.contacto { padding: var(--head-gap) 0 var(--section); }
.contacto__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: var(--s-3); align-items: start; }
.contacto__direct { grid-column: 1 / span 4; display: grid; gap: var(--s-2); }
.contacto__direct dt { margin-bottom: 0.25rem; font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); color: var(--muted); }
.contacto__direct dd { font-size: var(--t-lead); line-height: 1.35; }
/* el email en una línea; en móviles muy estrechos se parte tras la @ */
@media (min-width: 381px) { .contacto__mail { white-space: nowrap; } .contacto__mail wbr { display: none; } }
.contacto__direct dd a { background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; }
.contacto__form { grid-column: 6 / span 7; padding: clamp(1.5rem, 3.4vw, 2.75rem); border-radius: 14px; background: var(--cal-2); }
.contacto__form-title { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.012em; }
.contacto__form-intro { margin: var(--s-1) 0 var(--s-3); font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui); color: var(--muted); }
@media (max-width: 960px) {
  .contacto__direct, .contacto__form { grid-column: 1 / -1; }
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) 1rem; }
.form__full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.45rem; align-content: start; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { padding: 0; font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); font-weight: 500; color: var(--fg); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; height: var(--btn-h); padding: 0 1rem;
  font-family: var(--sans); font-stretch: 104%; font-size: 1rem; color: var(--fg);
  background: #fff; border: 1px solid var(--field-line); border-radius: var(--radius-field);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { height: auto; min-height: 8.5rem; padding: 0.85rem 1rem; resize: vertical; line-height: 1.5; }
.field select { padding-right: 2.75rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23213a2f' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(33, 58, 47, 0.45); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pino); box-shadow: 0 0 0 3px rgba(33, 58, 47, 0.14); }
.field input::placeholder, .field textarea::placeholder { color: rgba(33, 58, 47, 0.42); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--error); box-shadow: 0 0 0 3px rgba(163, 58, 47, 0.12); }
.field__error { font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); color: var(--error); }
.field__error:empty { display: none; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; height: var(--btn-h); padding: 0 0.6rem; border-radius: var(--radius-field); background: #fff; border: 1px solid var(--field-line); font-family: var(--sans); font-stretch: 104%; font-size: var(--t-ui-s); text-align: center; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s; }
.chip input:hover + span { border-color: rgba(33, 58, 47, 0.45); }
.chip input:checked + span { background: var(--pino); color: var(--cal); border-color: var(--pino); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(33, 58, 47, 0.2); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); line-height: 1.5; color: var(--fg); cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; flex: none; display: grid; place-content: center; width: 1.3rem; height: 1.3rem; margin: 0; border: 1px solid rgba(33, 58, 47, 0.4); border-radius: 5px; background: #fff; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.check input::after { content: ""; width: 0.65rem; height: 0.38rem; border: solid var(--cal); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 0.2s var(--ease); }
.check input:checked { background: var(--pino); border-color: var(--pino); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible { box-shadow: 0 0 0 3px rgba(33, 58, 47, 0.2); }
.check.is-invalid input { border-color: var(--error); }
.check a { text-decoration: underline; text-underline-offset: 0.2em; }
.form__send { display: grid; gap: var(--s-1); }
.form__send .btn { width: 100%; }
.form__note { font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { grid-column: 1 / -1; padding: 1rem 1.25rem; border-radius: var(--radius-field); background: #fff; font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui); line-height: 1.5; }
.form__status:empty { display: none; }
.form.is-sending .btn { opacity: 0.6; pointer-events: none; }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr 1fr; }
}

/* Cómo llegar */
.llegar { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: var(--s-3); align-items: start; }
.llegar__copy { grid-column: 1 / span 5; }
.llegar__intro { margin-top: var(--s-2); }
.llegar__copy ol { margin-top: var(--s-3); border-top: 1px solid var(--line); counter-reset: paso; }
.llegar__copy li { display: grid; grid-template-columns: 2.25rem 1fr; padding: var(--s-1) 0; border-bottom: 1px solid var(--line); counter-increment: paso; }
.llegar__copy li::before { content: counter(paso); padding-top: 0.3rem; font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); color: var(--muted); }
.llegar__map { grid-column: 7 / span 6; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 2px; background: var(--pino-2); }
.llegar__map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 960px) {
  .llegar__copy, .llegar__map { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .llegar__map { aspect-ratio: 4 / 4.4; } }

/* Textos legales */
.legal { padding: calc(var(--header-h) + var(--section-s)) 0 var(--section); }
.legal__title { max-width: 10em; margin-bottom: var(--head-gap); font-size: var(--t-display); line-height: 0.88; letter-spacing: -0.035em; }
.legal__body { max-width: 44rem; }
.legal__body h2 { margin: var(--s-3) 0 var(--s-1); font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.012em; }
.legal__body p, .legal__body ul { margin-bottom: 1em; }
.legal__body ul { list-style: disc; padding-left: 1.25rem; }
.legal__body a { text-decoration: underline; text-underline-offset: 0.2em; }
.legal__body table { width: 100%; margin: var(--s-1) 0 var(--s-2); border-collapse: collapse; font-family: var(--sans); font-stretch: 112%; font-size: var(--t-ui-s); }
.legal__body th, .legal__body td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

/* ---------- Estados de animación ---------- */
.js [data-split] { visibility: hidden; }
.js [data-split].is-split, .reduced [data-split] { visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero__slide { transform: none !important; }
  .media--parallax > img { height: 100%; margin-top: 0; }
}
