/* ==========================================================================
   TEMPLO — hoja de estilos
   ========================================================================== */

@font-face { font-family: 'Cormorant'; src: url('fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Afrah'; src: url('fonts/afrah-regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: block;
  /* Afrah dibuja mal í, ï, ç y ·: esos caracteres se toman de Cormorant */
  unicode-range: U+0020-007E, U+0131, U+00A0-00B6, U+00B8-00C6, U+00C8-00E6, U+00E8-00EC, U+00EE, U+00F0-00FF, U+2013-2014, U+2018-201E, U+2026; }
@font-face { font-family: 'Jost'; src: url('fonts/jost-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('fonts/jost-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #050404;
  --ink-2: #0c0a08;
  --ink-3: #15120e;
  --ivory: #ede6d8;
  --ivory-dim: rgba(237, 230, 216, .72);
  --muted: #8a8174;
  --brass: #c4a266;
  --brass-soft: #e2c58e;
  --gold-glow: rgba(226, 197, 142, .55);
  --line: rgba(237, 230, 216, .13);
  --line-strong: rgba(236, 230, 218, .32);
  --danger: #d98a7a;

  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Afrah', 'Cormorant', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-slow: cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 1px solid var(--brass-soft); outline-offset: 4px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ivory); color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .2em; text-decoration: none; }
.skip:focus { top: 16px; }

/* Grano de película sobre todo */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 150; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
/* En pantallas táctiles el grano queda quieto: una capa animada del doble de la pantalla frena el scroll en el móvil */
@media (hover: none) { .grain { inset: 0; animation: none; } }

/* ---------- Tipografía y utilidades ---------- */
.kicker {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 0 0 32px; font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: .42em; text-transform: uppercase; color: var(--brass);
}
.kicker::before, .kicker::after { content: ''; width: 36px; height: 1px; background: currentColor; opacity: .55; }
em { font-family: var(--serif); font-weight: 300; font-style: italic; color: var(--ivory-dim); }

.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 34px; border-radius: 999px;
  font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid var(--line-strong); background: transparent; color: var(--ivory);
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ivory);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--ivory); }
.btn--sm { --h: 40px; padding: 0 22px; font-size: 10px; }
.btn--solid { background: var(--brass-soft); color: var(--ink); border-color: var(--brass-soft); }
.btn--solid::before { background: var(--ivory); }
.btn--solid:hover, .btn--solid:focus-visible { border-color: var(--ivory); box-shadow: 0 0 40px rgba(226, 197, 142, .25); }
.btn--ghost { border-color: rgba(226, 197, 142, .45); }
.btn--ghost::before { background: var(--brass-soft); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--brass-soft); }
.btn[disabled] { opacity: .5; cursor: wait; }

/* Revelado al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  transition: background .6s var(--ease), backdrop-filter .6s var(--ease), border-color .6s var(--ease);
  transform: translateZ(0);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-scrolled {
  background: rgba(5, 4, 4, .72); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.site-header__logo img { width: 112px; height: auto; }
.site-header__nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.lang { display: flex; gap: 10px; font-size: 10px; letter-spacing: .3em; }
.lang span { color: var(--brass-soft); }
.lang a { color: var(--muted); text-decoration: none; transition: color .3s; }
.lang a:hover { color: var(--ivory); }
.lang::before { content: ''; order: 1; width: 1px; background: var(--line-strong); }
.lang a { order: 2; }

/* ---------- Pantalla de carga: TEMPLO letra a letra ---------- */
.gate { position: fixed; inset: 0; z-index: 120; overflow: hidden; background: var(--ink); }
html:not(.js) .gate, .gate[hidden], .no-gate .gate { display: none; }
.gate__ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px var(--gutter); text-align: center; }
.gate__word {
  margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(54px, 11vw, 120px); line-height: 1; letter-spacing: .04em;
  color: var(--ivory); white-space: nowrap; transition: transform 1s var(--ease-slow), opacity .7s var(--ease), filter .7s var(--ease);
}
.gate__word span { display: inline-block; text-align: center; color: var(--brass); opacity: .5; }
.gate__word span.is-set { color: var(--ivory); opacity: 1; animation: settle .5s var(--ease) both; text-shadow: 0 0 30px rgba(226, 197, 142, .25); }
@keyframes settle { from { opacity: .35; filter: blur(2px); } to { opacity: 1; filter: none; } }
.gate__place { margin: 22px 0 0; font-size: 10px; letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--brass); opacity: 0; transition: opacity 1.4s .4s var(--ease); }
.gate__whisper { position: absolute; left: 0; right: 0; bottom: max(7vh, 40px); margin: 0; padding: 0 24px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); opacity: 0; transition: opacity 1.4s 1s var(--ease); }
.gate.is-run .gate__place { opacity: .9; }
.gate.is-run .gate__whisper { opacity: 1; }
/* De golpe: la palabra se apaga y aparece el círculo */
.gate.is-gone { opacity: 0; visibility: hidden; transition: opacity .55s var(--ease), visibility 0s .55s; }
.gate.is-gone .gate__word { transform: scale(.92); opacity: 0; filter: blur(6px); }
html.gate-open, html.gate-open body { overflow: hidden; }

/* ---------- Carrete: la portada se desliza hacia la derecha ---------- */
.reel { position: relative; }
.reel__track { position: relative; }
.scene { position: relative; }
.is-reel .reel__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.is-reel .reel__track { display: flex; height: 100%; width: max-content; will-change: transform; }
.is-reel .scene, .is-reel .rituals { flex: none; height: 100%; }
.is-reel .scene { width: 100vw; overflow: hidden; }
.is-reel .rituals { display: flex; position: relative; padding: 0; margin: 0; max-width: none; }
.reel__progress { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 26px; z-index: 80; height: 1px; background: var(--line); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; display: none; }
.is-reel .reel__progress { display: block; }
.reel__progress.is-on { opacity: 1; }
.reel__progress i { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(196, 162, 102, .3), var(--brass-soft)); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px var(--gold-glow); }
.reel__progress i::after { content: ''; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--brass-soft); box-shadow: 0 0 10px 2px var(--gold-glow); }

/* ---------- Hero: el círculo que se abre ---------- */
.hero { height: 100vh; height: 100svh; min-height: 560px; }
.js .hero { height: 220vh; height: 220svh; }
.hero__pin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; }
.js .hero__pin { position: sticky; top: 0; }
.is-reel .hero { height: 100%; min-height: 0; }
.is-reel .hero__pin { position: relative; height: 100%; min-height: 0; }
.hero__orb { position: absolute; inset: 0; }
/* El círculo es una capa redonda que se escala; dentro, el vídeo se escala al revés y queda quieto.
   Así la animación solo mueve capas (no se redibuja nada) y va fluida también en móvil. */
.hero__aperture {
  position: absolute; left: 50%; top: 50%; width: var(--d, 150vmax); height: var(--d, 150vmax);
  margin: calc(var(--d, 150vmax) / -2) 0 0 calc(var(--d, 150vmax) / -2);
  border-radius: 50%; overflow: hidden; background: var(--ink); -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.js .hero__aperture { transform: scale(.3); will-change: transform; }
.hero__view { position: absolute; left: 50%; top: 50%; width: var(--pw, 100vw); height: var(--ph, 100svh); transform: translate(-50%, -50%); }
.js .hero__view { will-change: transform; }
.hero__view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__shade { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(5, 4, 4, .5), rgba(5, 4, 4, .3) 60%, rgba(5, 4, 4, .6) 100%); }
/* Ensō: la pincelada dorada que rodea el círculo y se desvanece al abrirlo (tamaño fijo, se escala por transform) */
.hero__enso { position: absolute; left: 50%; top: 50%; width: var(--ew, calc(27vmin * 4.2)); aspect-ratio: 1; pointer-events: none;
  transform: translate(-50%, -50%); opacity: .92; filter: drop-shadow(0 0 18px rgba(226, 197, 142, .18)); will-change: transform, opacity; }
.hero__enso img { width: 100%; height: 100%; display: block; }
html:not(.js) .hero__enso { display: none; }
.hero__content { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); }
.hero__title {
  margin: 0 auto; max-width: 11ch; font-family: var(--display); font-weight: 400; font-size: clamp(46px, 7.2vw, 118px); line-height: .98; letter-spacing: .01em;
  text-shadow: 0 2px 50px rgba(0,0,0,.55);
}
.hero__sub { margin: 28px 0 0; font-size: 11px; font-weight: 400; text-shadow: 0 0 12px #000, 0 1px 18px #000; letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--brass-soft); line-height: 2.2; text-shadow: 0 1px 18px rgba(0,0,0,.9); }
.hero__scroll {
  position: absolute; z-index: 2; bottom: 34px; left: 50%; transform: translateX(-50%); opacity: var(--so, 1);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 9px; letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--ivory-dim); text-decoration: none;
}
.hero__scroll i { width: 1px; height: 54px; background: linear-gradient(var(--brass-soft), transparent); transform-origin: top; animation: drip 2.6s var(--ease-slow) infinite; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
/* Aparición «de golpe» tras la pantalla de carga */
.js.gate-open .hero__orb, .js.gate-open .hero__content > *, .js.gate-open .hero__scroll { opacity: 0; }
.js.is-open .hero__orb { animation: pop 1.15s cubic-bezier(.16, 1, .3, 1) both; }
.js.is-open .hero__content > * { animation: rise 1.4s .35s var(--ease) both; }
.js.is-open .hero__content > * + * { animation-delay: .6s; }
.js.is-open .hero__scroll { animation: fade-so 1.4s 1.1s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.55); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-so { from { opacity: 0; } to { opacity: var(--so, 1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.closing__media, .apply__img { position: absolute; inset: 0; background: var(--ink); overflow: hidden; }
.closing__media video, .apply__img video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Manifiesto ---------- */
.manifesto { padding: clamp(110px, 18vw, 220px) var(--gutter) clamp(90px, 14vw, 180px); text-align: center; }
.manifesto__inner { max-width: 1100px; margin: 0 auto; }
.is-reel .manifesto { display: grid; place-items: center; padding: var(--header-h) var(--gutter); background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(226, 197, 142, .05), transparent 70%), var(--ink); }
.manifesto__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.08; }
.manifesto__body { max-width: 540px; margin: 44px auto 0; color: var(--ivory-dim); font-size: 15px; line-height: 1.9; }

/* ---------- Rituales ---------- */
.rituals { padding: 0 var(--gutter) clamp(80px, 12vw, 160px); max-width: 1320px; margin: 0 auto; }
.rituals > .kicker { margin-bottom: clamp(56px, 8vw, 110px); }
.is-reel .rituals__kicker { position: absolute; z-index: 3; top: calc(var(--header-h) + 18px); left: 0; width: 100vw; margin: 0; transform: translateX(var(--kx, 0px)); opacity: var(--ko, 1); }
.ritual { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; margin-bottom: clamp(80px, 12vw, 160px); }
.ritual:last-child { margin-bottom: 0; }
.ritual__media { margin: 0; }
.ritual__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 200px 200px 2px 2px; }
.ritual__frame img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, -6%)); will-change: transform; filter: saturate(.9); transition: filter 1.2s var(--ease); }
.ritual:hover .ritual__frame img { filter: saturate(1.05); }
.ritual__text { position: relative; text-align: center; }
.ritual__num {
  display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(90px, 13vw, 190px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(196, 162, 102, .5); margin-bottom: -.18em;
}
.ritual__title { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: .02em; font-size: clamp(34px, 4.2vw, 56px); line-height: 1; position: relative; }
.ritual__line { text-wrap: balance; margin: 22px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; color: var(--ivory-dim); }

@media (min-width: 900px) {
  .ritual { grid-template-columns: repeat(12, 1fr); gap: 0; }
  .ritual__media { grid-column: 2 / span 5; }
  .ritual__text { grid-column: 8 / span 4; text-align: left; }
  .ritual--alt .ritual__media { grid-column: 7 / span 5; grid-row: 1; }
  .ritual--alt .ritual__text { grid-column: 2 / span 4; grid-row: 1; text-align: right; }
  .ritual__title { white-space: nowrap; font-size: clamp(34px, 3.6vw, 52px); }
}
.is-reel .ritual { margin: 0; padding: calc(var(--header-h) + 40px) 0 70px; align-content: center; }
.is-reel .ritual__media { align-self: center; justify-self: center; }
.is-reel .ritual__frame { height: min(68vh, 760px); width: auto; aspect-ratio: 4 / 5; }
.is-reel .ritual__frame img { height: 100%; width: 130%; max-width: none; transform: translateX(calc(-11.5% + var(--d, 0) * -9%)); }
.is-reel .ritual__text { translate: calc(var(--d, 0) * 10vw) 0; }

/* ---------- Galería con linterna ---------- */
.gallery { position: relative; padding: clamp(60px, 10vw, 120px) 0 clamp(80px, 12vw, 160px); background: #050404; overflow: hidden; }
.gallery__line { margin: 0 auto; padding: 0 var(--gutter); max-width: 900px; text-align: center; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(24px, 3vw, 38px); color: var(--ivory-dim); }
.gallery__line--2 { font-family: var(--display); font-style: normal; font-size: clamp(40px, 6vw, 84px); color: var(--ivory); margin-top: clamp(50px, 8vw, 100px); }
.gallery__stage { position: relative; margin-top: clamp(50px, 8vw, 90px); --x: 50%; --y: 40%; --r: 220px; cursor: crosshair; }
.gallery__grid { columns: 2; column-gap: 10px; padding: 0 10px; }
.gallery__grid--lit {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.85) 35%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.85) 35%, transparent 100%);
}
.gallery__grid--dark .tile img { filter: grayscale(1) brightness(.16) contrast(1.1); transition: filter 1s cubic-bezier(.4, 0, .2, 1); }
/* La luz deja encendida la foto por la que pasa; luego se apaga despacio */
.gallery__grid--dark .tile.is-lit img { filter: none; transition: filter .3s var(--ease); }
.tile { break-inside: avoid; margin-bottom: 10px; overflow: hidden; }
.tile img { width: 100%; height: auto; }
.tile--2 img, .tile--4 img { aspect-ratio: 4/5; object-fit: cover; }
.tile--3 img { aspect-ratio: 1; object-fit: cover; }
.gallery__hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; pointer-events: none;
  font-size: 10px; letter-spacing: .5em; text-transform: uppercase; color: var(--ivory); opacity: .75; transition: opacity 1s var(--ease);
  text-shadow: 0 0 20px #000;
}
.gallery.is-touched .gallery__hint { opacity: 0; }
.hint-touch { display: none; }
@media (hover: none) { .hint-pointer { display: none; } .hint-touch { display: inline; } .gallery__stage { --r: 170px; } }
@media (min-width: 700px) { .gallery__grid { columns: 3; } }
@media (min-width: 1100px) { .gallery__grid { columns: 5; column-gap: 14px; padding: 0 14px; } .tile { margin-bottom: 14px; } .gallery__stage { --r: 260px; } }

/* ---------- Cierre ---------- */
.closing { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.closing__shade { position: absolute; inset: 0; background: linear-gradient(180deg, #050404 0%, rgba(5,4,4,.35) 30%, rgba(5,4,4,.55) 70%, var(--ink) 100%); }
.closing__content { position: relative; padding: 0 var(--gutter); }
.closing__title { margin: 0 0 48px; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 86px); line-height: 1.05; text-shadow: 0 2px 50px rgba(0,0,0,.5); }
.closing__note { margin: 26px 0 0; font-size: 10px; letter-spacing: .42em; text-transform: uppercase; color: var(--ivory-dim); }

/* ---------- Cursor: luz ---------- */
.glow, .glow__core { display: none; }
.has-glow .glow, .has-glow .glow__core { display: block; }
.has-glow, .has-glow a, .has-glow button, .has-glow label { cursor: none; }
.has-glow input, .has-glow textarea { cursor: text; }
.has-glow .gallery__stage { cursor: none; }
.glow { position: fixed; left: 0; top: 0; z-index: 140; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(242, 216, 160, .2) 0, rgba(226, 197, 142, .09) 22%, rgba(226, 197, 142, .025) 45%, transparent 66%); transition: opacity .8s var(--ease); }
.glow__core { position: fixed; left: 0; top: 0; z-index: 141; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; pointer-events: none; opacity: 0; background: #f2d8a0; box-shadow: 0 0 12px 3px var(--gold-glow); border: 1px solid transparent;
  transition: opacity .5s, width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, border-color .4s; }
.has-glow.glow-on .glow, .has-glow.glow-on .glow__core { opacity: 1; }
.glow__core.is-hot { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(226, 197, 142, .08); border-color: rgba(226, 197, 142, .55); }
.glow__core.is-text { opacity: 0 !important; }

/* ---------- Pie ---------- */
.site-footer {
  display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 90px var(--gutter) 48px;
  border-top: 1px solid var(--line); text-align: center;
}
.site-footer__logo { width: 170px; height: auto; opacity: .9; }
.site-footer__social { display: flex; gap: 22px; }
.site-footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .4s, background .4s; }
.site-footer__social a:hover { border-color: var(--ivory); background: rgba(236,230,218,.06); }
.site-footer__social svg { width: 17px; height: 17px; fill: none; stroke: var(--ivory); stroke-width: 1.2; stroke-linecap: round; }
.site-footer__social .fill { fill: var(--ivory); stroke: none; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.site-footer__legal a { color: var(--muted); text-decoration: none; transition: color .3s; }
.site-footer__legal a:hover { color: var(--ivory); }
.site-footer__copy { margin: 0; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #5d574f; }

/* ---------- Solicitud ---------- */
.page-apply .site-footer { display: none; }
.apply { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr; }
.apply__side { position: relative; min-height: 54vh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 40px) var(--gutter) 40px; overflow: hidden; }
.apply__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,4,4,.5), rgba(5,4,4,.15) 28%, rgba(5,4,4,.78) 62%, var(--ink)); }
.apply__side-text { position: relative; max-width: 460px; }
.apply__side-text .kicker { justify-content: flex-start; }
.apply__side-text .kicker::before { display: none; }
.apply__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5.5vw, 76px); line-height: 1; }
.apply__intro { margin: 22px 0 0; color: var(--ivory-dim); font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; }
.apply__main { position: relative; display: flex; align-items: center; padding: 48px var(--gutter) 80px; }
@media (min-width: 900px) {
  .apply { grid-template-columns: 42fr 58fr; }
  .apply__side { position: sticky; top: 0; height: 100vh; height: 100svh; padding-bottom: 72px; }
  .apply__img::after { background: linear-gradient(90deg, rgba(5,4,4,.1), rgba(5,4,4,.35) 70%, var(--ink)), linear-gradient(180deg, transparent 40%, rgba(5,4,4,.85)); }
  .apply__main { padding: calc(var(--header-h) + 40px) clamp(40px, 7vw, 120px) 60px; }
}

.form { width: 100%; max-width: 620px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__progress { display: none; align-items: center; gap: 18px; margin-bottom: 56px; }
.form__bar { position: relative; flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.form__bar::after { content: ''; position: absolute; inset: 0; background: var(--brass); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .8s var(--ease); }
.form__count { font-size: 10px; letter-spacing: .3em; color: var(--muted); white-space: nowrap; }
.form__count b { font-weight: 400; color: var(--ivory); }

.q { margin-bottom: 44px; }
.q__label { display: block; margin-bottom: 14px; font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.q__num { display: block; margin-bottom: 12px; font-family: var(--sans); font-size: 10px; letter-spacing: .4em; color: var(--brass); }
.q input, .q textarea {
  width: 100%; padding: 12px 0 14px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent;
  color: var(--ivory); font-family: var(--serif); font-size: 22px; font-weight: 300; line-height: 1.4; resize: none; outline: none;
  transition: border-color .4s;
}
.q textarea { min-height: 54px; field-sizing: content; max-height: 40vh; }
.q input::placeholder, .q textarea::placeholder { color: #4c4740; font-style: italic; }
.q input:focus, .q textarea:focus { border-bottom-color: var(--brass-soft); }
.q.has-error input, .q.has-error textarea { border-bottom-color: var(--danger); }
.q__error { min-height: 1em; margin: 10px 0 0; font-size: 12px; color: var(--danger); letter-spacing: .04em; }
.q input:-webkit-autofill { -webkit-text-fill-color: var(--ivory); transition: background-color 9999s; }

.consent { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 16px; align-items: start; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.consent__box { width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 2px; display: grid; place-items: center; transition: border-color .3s, background .3s; margin-top: 2px; }
.consent__box::after { content: ''; width: 10px; height: 5px; border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .3s var(--ease); }
.consent input:checked + .consent__box { background: var(--ivory); border-color: var(--ivory); }
.consent input:checked + .consent__box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent input:focus-visible + .consent__box { outline: 1px solid var(--brass-soft); outline-offset: 3px; }
.consent__text { font-size: 13px; line-height: 1.7; color: var(--ivory-dim); }
.consent__text a { color: var(--ivory); text-underline-offset: 3px; }
.form__send { margin-top: 36px; }
.form__fail { margin: 18px 0 0; font-size: 13px; color: var(--danger); }
.form__fail:empty { display: none; }
.form__nav { display: none; }

/* Modo paso a paso (con JS) */
.js .form.is-stepper .form__progress { display: flex; }
.js .form.is-stepper .form__steps { display: grid; }
.js .form.is-stepper .q { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s .7s; }
.js .form.is-stepper .q.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }
.js .form.is-stepper .q.is-past { transform: translateY(-24px); }
.js .form.is-stepper .form__nav { display: flex; align-items: center; gap: 24px; margin-top: 44px; min-height: 52px; }
.form__back { background: none; border: 0; color: var(--muted); font: inherit; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; cursor: pointer; padding: 10px 0; }
.form__back:hover { color: var(--ivory); }
.form__hint { margin-left: auto; font-size: 10px; letter-spacing: .2em; color: #5d574f; }
.form.on-final .form__hint, .form.on-final .form__next { display: none; }
@media (hover: none) { .form__hint { display: none; } }

.done { width: 100%; max-width: 520px; text-align: center; margin: 0 auto; outline: none; }
.done__mark { width: 34px; height: auto; margin: 0 auto 32px; fill: none; stroke: var(--brass); stroke-width: 1.2; }
.done.is-in .done__mark { animation: fade-in 1.4s var(--ease) both; }
.done__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6vw, 80px); }
.done__body { margin: 18px 0 44px; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ivory-dim); }

/* ---------- Legales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--header-h) + 80px) var(--gutter) 100px; }
.legal__title { margin: 0 0 48px; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1; }
.legal__body { color: var(--ivory-dim); font-size: 15px; }
.legal__body h2 { margin: 48px 0 12px; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ivory); }
.legal__body a { color: var(--ivory); text-underline-offset: 3px; }
.legal__body dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 28px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal__body dt { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); padding-top: 4px; }
.legal__body dd { margin: 0; }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px var(--gutter); }
.nf__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 76px); }
.nf__sub { margin: 10px 0 44px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .site-header__logo img { width: 92px; }
  .hero__sub { font-size: 9.5px; letter-spacing: .34em; text-indent: .34em; margin-top: 22px; }
  .btn--sm { padding: 0 16px; letter-spacing: .24em; }
  .lang { gap: 8px; }
  .ritual__frame { border-radius: 160px 160px 2px 2px; }
  .legal__body dl { grid-template-columns: 1fr; gap: 4px; }
  .legal__body dd { margin-bottom: 12px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Foco programático (al cruzar la puerta): sin recuadro */
[tabindex="-1"]:focus { outline: none; }

/* «í» en Afrah: se oculta la letra real (que cae en Cormorant) y se dibuja «ı» + «´» de Afrah encima */
.i-acc { position: relative; display: inline-block; width: .195em; -webkit-text-fill-color: transparent; text-indent: 0; }
.i-acc::before, .i-acc::after { position: absolute; top: 0; -webkit-text-fill-color: currentColor; font-family: 'Afrah', serif; pointer-events: none; }
.i-acc::before { content: '\0131'; left: 0; }
.i-acc::after { content: '\00B4'; left: 50%; transform: translateX(-50%); }
