/* C.J., I.A.P. · negro y dorado institucional */
@font-face { font-family: "Cormorant"; src: url("/assets/fonts/cormorant-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/assets/fonts/cormorant-latin-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --black: #070707;
  --ink: #0d0d0d;
  --ink-2: #141311;
  --line: rgba(212, 175, 55, .16);
  --line-soft: rgba(255, 255, 255, .07);
  --gold: #d4af37;
  --gold-hi: #f6e19a;
  --gold-mid: #e2bf55;
  --gold-lo: #9c7a22;
  --gold-grad: linear-gradient(115deg, #8f6d1c 0%, #d4af37 22%, #f8e7a8 45%, #d9b443 62%, #a27f24 82%, #e7c867 100%);
  --text: #ece6d8;
  --muted: #a49d8c;
  --radius: 22px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 17px/1.7 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; color: #fbf7ec; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); text-wrap: balance; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
em { font-style: italic; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.gold-text {
  background: var(--gold-grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s linear infinite;
}
@keyframes sheen { to { background-position: -220% 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 600 .76rem/1 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

/* Barra de progreso */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--gold-grad); box-shadow: 0 0 12px rgba(212, 175, 55, .7); }

/* Entrada */
.intro { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: var(--black); }
.js .intro { display: grid; animation: intro-out .6s .6s var(--ease) forwards; }
.intro img { width: 150px; opacity: 0; animation: intro-in .8s var(--ease) forwards; filter: drop-shadow(0 0 30px rgba(212, 175, 55, .45)); }
@keyframes intro-in { from { opacity: 0; transform: scale(.85); filter: blur(8px); } to { opacity: 1; transform: none; filter: drop-shadow(0 0 30px rgba(212, 175, 55, .45)); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* Botones */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font: 700 .86rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; isolation: isolate; overflow: hidden;
  transform: translate(var(--mx), var(--my)); transition: transform .35s var(--ease), box-shadow .35s, background .35s, color .35s, border-color .35s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { color: #120e02; background: var(--gold-grad); background-size: 200% 100%; box-shadow: 0 10px 34px -10px rgba(212, 175, 55, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .65) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--gold:hover { box-shadow: 0 16px 44px -10px rgba(212, 175, 55, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--ghost { color: var(--gold-hi); border-color: rgba(212, 175, 55, .45); background: rgba(10, 10, 10, .35); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(212, 175, 55, .12); border-color: var(--gold); }
.btn--block { width: 100%; }

/* Encabezado */
.top { position: fixed; inset: 0 0 auto; z-index: 50; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.top.is-solid, html:not(.js) .top { background: rgba(7, 7, 7, .78); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: auto; filter: drop-shadow(0 0 10px rgba(212, 175, 55, .35)); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt b { font: 700 1.15rem/1 var(--caps); letter-spacing: .08em; color: var(--gold-hi); }
.brand__txt small { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a:not(.btn) { position: relative; font-size: .86rem; font-weight: 500; color: #d8d1c0; transition: color .3s; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav > a:not(.btn):hover, .nav > a.is-active { color: var(--gold-hi); }
.nav > a:not(.btn):hover::after, .nav > a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: 12px 18px; font-size: .76rem; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--gold-hi); transition: transform .35s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero
   Escritorio: fondo atmosférico (haz de luz + polvo dorado) y la foto real de la recepción
   dentro de un arco; el escudo de la pared queda centrado en la cúpula, sin duplicarlo.
   Tablet y móvil: la foto pasa a ser el fondo con parallax (adaptado de 21st.dev "Davincho Hero-1"). */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; background: radial-gradient(900px 700px at 74% 42%, rgba(212, 175, 55, .13), transparent 62%), radial-gradient(700px 500px at 0% 100%, rgba(212, 175, 55, .05), transparent 60%), var(--black); }
.hero__media { position: absolute; inset: -12% 0 0; display: none; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; transform: translate3d(0, var(--py, 0px), 0) scale(1.08); animation: kenburns 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns { from { scale: 1; } to { scale: 1.08; } }
.hero__light { position: absolute; top: -10%; right: 4%; width: min(62vw, 900px); height: 125%; pointer-events: none; transform-origin: 50% 0; animation: sway 16s ease-in-out infinite alternate;
  background: conic-gradient(from 180deg at 50% 0%, transparent 156deg, rgba(246, 225, 154, .09) 166deg, transparent 174deg, rgba(246, 225, 154, .06) 183deg, transparent 192deg, rgba(246, 225, 154, .05) 200deg, transparent 210deg);
  -webkit-mask: radial-gradient(70% 80% at 50% 0%, #000 30%, transparent 85%); mask: radial-gradient(70% 80% at 50% 0%, #000 30%, transparent 85%); }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.hero__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--black) 0%, transparent 22%); }
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hero__title { font-size: clamp(3rem, 7vw, 6.2rem); font-weight: 400; line-height: .98; margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(110%); animation: rise 1.2s var(--ease) forwards; }
.js .hero__title .line:nth-child(1) > span { animation-delay: .85s; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .97s; }
.js .hero__title .line:nth-child(3) > span { animation-delay: 1.09s; }
@keyframes rise { to { transform: none; } }
.hero__title em { font-weight: 500; }
.hero__lead { max-width: 560px; font-size: 1.12rem; color: #cfc7b4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero__actions--center { justify-content: center; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.hero__chips li { padding: 8px 14px 8px 30px; position: relative; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: #d9d1bd; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.hero__chips li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* Arco con la foto de la recepción. Proporción 7:10 -> la cúpula es un semicírculo exacto (50% del ancho = 35% del alto). */
.hero__visual { position: relative; margin: 0; display: grid; justify-items: center; }
.arch { position: relative; width: min(420px, 100%); aspect-ratio: 7 / 10; transform: perspective(1100px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .6s var(--ease); }
.arch__win { position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: #111;
  border-radius: 50% 50% 22px 22px / 35% 35% 22px 22px; border: 1px solid rgba(212, 175, 55, .6);
  box-shadow: 0 50px 100px -40px #000, 0 0 80px -24px rgba(212, 175, 55, .45); }
/* La imagen mide 195% del alto del arco y se desplaza para que el escudo de la pared (76% / 22% de la foto) quede centrado en la cúpula. */
.arch__win img { position: absolute; top: -20%; left: 50%; height: 195%; width: auto; max-width: none; transform-origin: 76% 24%; transform: translate3d(-76%, var(--py, 0px), 0); animation: kenburns 18s ease-in-out infinite alternate; will-change: transform; }
.arch__win::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7, 7, 7, .96) 0%, rgba(7, 7, 7, .78) 9%, transparent 21%), linear-gradient(0deg, rgba(7, 7, 7, .85) 0%, rgba(7, 7, 7, .15) 38%, transparent 60%), radial-gradient(60% 35% at 50% 24%, rgba(246, 225, 154, .12), transparent 70%); }
.arch__win::after { content: ""; position: absolute; inset: 12px; z-index: 2; border: 1px solid rgba(246, 225, 154, .35); border-radius: 50% 50% 14px 14px / 34.4% 34.4% 14px 14px; pointer-events: none; }
.arch__orbit { position: absolute; left: -9%; top: -6.3%; width: 118%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(212, 175, 55, .28); animation: spin 48s linear infinite; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent 62%); mask: linear-gradient(180deg, #000 30%, transparent 62%); }
.arch__orbit::before { content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 16px 4px rgba(246, 225, 154, .7); }
.arch__orbit--2 { left: -16%; top: -11.2%; width: 132%; border-style: dashed; border-color: rgba(212, 175, 55, .16); animation-duration: 70s; animation-direction: reverse; }
.arch__orbit--2::before { display: none; }
.arch__tag { position: relative; z-index: 3; margin-top: -26px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px; background: rgba(10, 10, 10, .88); border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: 0 20px 40px -20px #000; }
.arch__tag b { font: 600 .72rem/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); }
.arch__tag span { font-size: .8rem; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(212, 175, 55, .5); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } }

/* Cinta */
.ribbon { border-block: 1px solid var(--line); background: linear-gradient(90deg, #0b0a07, #14110a, #0b0a07); overflow: hidden; padding: 20px 0; }
.ribbon__track { display: flex; gap: 34px; width: max-content; align-items: center; animation: marquee 38s linear infinite; }
.ribbon span { font: italic 500 1.6rem/1 var(--serif); color: #e9dcb4; white-space: nowrap; }
.ribbon i { font-style: normal; color: var(--gold); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Secciones */
.section { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.section--tight { padding: clamp(70px, 9vw, 110px) 0; }
.section--dark { background: radial-gradient(900px 500px at 15% 0%, rgba(212, 175, 55, .06), transparent 60%), var(--ink); border-block: 1px solid var(--line-soft); }
.head { max-width: 780px; margin-bottom: 56px; }
.head h2 { margin-bottom: 20px; }
.head p { color: var(--muted); font-size: 1.08rem; }
.head--center { text-align: center; margin-inline: auto; }
.head--center .eyebrow::after { content: ""; width: 34px; height: 1px; background: linear-gradient(270deg, transparent, var(--gold)); }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 56px; background: linear-gradient(180deg, rgba(212, 175, 55, .05), transparent); }
.stat { padding: 32px 28px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 500 clamp(2.6rem, 4.6vw, 3.6rem)/1 var(--caps); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Tarjetas con brillo que sigue al cursor (inspirado en 21st.dev "Interactive Bento Grid") */
.glow {
  --x: 50%; --y: 50%; --o: 0;
  position: relative; border-radius: var(--radius); padding: 36px 32px; isolation: isolate;
  background: linear-gradient(180deg, #121110, #0b0b0a); border: 1px solid var(--line-soft);
  transition: transform .5s var(--ease), border-color .5s;
}
.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1; opacity: var(--o); transition: opacity .5s;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(246, 225, 154, .95), rgba(212, 175, 55, .35) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: var(--o); transition: opacity .5s; pointer-events: none;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(212, 175, 55, .12), transparent 60%); }
.glow:hover { transform: translateY(-4px); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillars h3 { margin-bottom: 14px; font-size: 2rem; }
.pillars p { color: var(--muted); margin: 0; }
.pillars__num { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; border-radius: 50%; border: 1px solid rgba(212, 175, 55, .45); font: 600 .95rem/1 var(--caps); color: var(--gold-hi); }

/* Enfoque */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split__media { position: relative; margin: 0; }
.frame { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(246, 225, 154, .35); border-radius: 16px; pointer-events: none; }
.frame img { width: 100%; height: 115%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.frame__tag { position: absolute; right: -22px; bottom: 36px; display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: 999px; background: rgba(10, 10, 10, .85); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: .82rem; color: #e8dfc7; box-shadow: 0 20px 40px -20px #000; }
.frame__tag img { width: 36px; }
.split__copy h2 { margin-bottom: 24px; }
.split__copy > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: #ddd5c2; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--gold); background: radial-gradient(circle, var(--gold) 0 3px, transparent 4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--gold-hi); border-bottom: 1px solid rgba(212, 175, 55, .4); transition: gap .3s var(--ease), border-color .3s; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link-arrow:hover { gap: 16px; border-color: var(--gold-hi); }

/* Tu camino de recuperación: línea dorada que se llena con el scroll y foto fija que cambia por paso */
.journey__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.journey__media { position: sticky; top: 120px; }
.journey__frame { position: relative; aspect-ratio: 4 / 4.6; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: #111; box-shadow: 0 40px 80px -40px #000; }
.journey__frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(246, 225, 154, .3); border-radius: 16px; pointer-events: none; }
.journey__frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(7, 7, 7, .75), transparent 45%); pointer-events: none; }
.journey__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); filter: saturate(.85); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.journey__frame img.is-on { opacity: 1; transform: none; }
.journey__count { position: absolute; z-index: 2; left: 30px; bottom: 26px; font: 500 1rem/1 var(--caps); letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.journey__count b { font-size: 2.6rem; font-weight: 500; color: var(--gold-hi); letter-spacing: .04em; }
.journey__steps { --fill: 1; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 5vw, 64px); }
.journey__steps::before, .journey__steps::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--line); }
.journey__steps::after { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); box-shadow: 0 0 14px rgba(212, 175, 55, .6); transform-origin: 50% 0; transform: scaleY(var(--fill)); }
.js .journey__steps { --fill: 0; }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 26px; align-items: start; }
.step__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(212, 175, 55, .45); background: var(--black); font: 600 .95rem/1 var(--caps); color: var(--gold); font-variant-numeric: tabular-nums; transition: background .5s var(--ease), color .5s, box-shadow .5s, border-color .5s; }
.step__body { padding-top: 8px; }
.step h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }
.step__img { display: none; }
.step__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-weight: 600; color: var(--gold-hi); border-bottom: 1px solid rgba(212, 175, 55, .4); }
.step__link:hover { border-color: var(--gold-hi); }
.step.is-on .step__dot { background: var(--gold-grad); color: #120e02; border-color: transparent; box-shadow: 0 0 0 6px rgba(212, 175, 55, .12), 0 0 30px -4px rgba(212, 175, 55, .8); }
.step h3 { transition: color .5s var(--ease); }
.js .step:not(.is-on) h3 { color: #bdb6a6; }

/* Manifiesto: las palabras se encienden al hacer scroll */
.manifesto { position: relative; padding: clamp(100px, 14vw, 180px) 0; overflow: hidden; background: radial-gradient(800px 420px at 50% 50%, rgba(212, 175, 55, .08), transparent 70%), var(--black); }
.manifesto__in { max-width: 1040px; text-align: center; }
.manifesto .eyebrow::after { content: ""; width: 34px; height: 1px; background: linear-gradient(270deg, transparent, var(--gold)); }
.manifesto__text { margin: 0 auto; font: 400 clamp(2rem, 4.4vw, 3.6rem)/1.18 var(--serif); color: #fbf7ec; letter-spacing: -.005em; }
.manifesto__text em { color: var(--gold-hi); }
.manifesto__text .w { transition: color .5s var(--ease), opacity .5s var(--ease), text-shadow .5s; }
.js .manifesto__text .w { opacity: .28; }
.js .manifesto__text .w.is-lit { opacity: 1; }
.manifesto__text .w--gold { color: var(--gold-hi); font-style: italic; }
.js .manifesto__text .w--gold.is-lit { text-shadow: 0 0 28px rgba(212, 175, 55, .45); }
.mottos { margin-top: 56px; }
.mottos__label { margin: 0 0 16px; font: 600 .72rem/1 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.mottos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mottos li { padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; font: italic 500 1.25rem/1.2 var(--serif); color: #e9dcb4; background: linear-gradient(180deg, rgba(212, 175, 55, .07), transparent); }

/* Terapias */
.therapies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.therapy h3 { margin: 22px 0 10px; }
.therapy p { color: var(--muted); margin: 0; font-size: .97rem; }
.therapy__icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: radial-gradient(circle at 30% 20%, rgba(246, 225, 154, .25), rgba(212, 175, 55, .06)); border: 1px solid rgba(212, 175, 55, .35); transition: transform .6s var(--ease), box-shadow .6s; }
.therapy__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.therapy:hover .therapy__icon { transform: rotate(-6deg) scale(1.08); box-shadow: 0 0 30px -4px rgba(212, 175, 55, .6); }

/* Programas */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.program { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #0f0e0c; border: 1px solid var(--line-soft); transition: transform .6s var(--ease), border-color .6s, box-shadow .6s; }
.program:hover { transform: translateY(-8px); border-color: rgba(212, 175, 55, .45); box-shadow: 0 30px 60px -30px rgba(212, 175, 55, .35); }
.program__img { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; }
.program__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0f0e0c 2%, transparent 55%); }
.program__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.program:hover .program__img img { transform: scale(1.07); }
.program__body { padding: 6px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.program__tag { align-self: flex-start; margin-bottom: 14px; padding: 7px 13px; border-radius: 999px; font-family: var(--caps); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #120e02; background: var(--gold-grad); }
.program h3 { font-size: 2rem; margin-bottom: 12px; }
.program p { color: var(--muted); font-size: .96rem; }
.program__where { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem !important; color: var(--gold) !important; letter-spacing: .04em; }
.program--feature { border-color: rgba(212, 175, 55, .4); }

/* Servicios incluidos */
.includes { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.includes__copy { position: sticky; top: 120px; }
.includes__copy h2 { margin-bottom: 20px; }
.includes__copy p { color: var(--muted); }
.includes__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.includes__list li { padding: 30px 28px; background: #0a0a09; transition: background .4s; }
.includes__list li:hover { background: #12100b; }
.includes__list b { display: block; font: 600 1.35rem/1.2 var(--serif); color: var(--gold-hi); margin-bottom: 8px; }
.includes__list span { color: var(--muted); font-size: .92rem; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.gallery__item { display: block; position: relative; padding: 0; border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; cursor: zoom-in; background: #111; font: inherit; color: inherit; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.9) brightness(.85); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent 50%); opacity: .8; transition: opacity .5s; }
.gallery__item span { position: absolute; z-index: 1; left: 18px; bottom: 16px; font: 500 1.25rem/1.2 var(--serif); color: #fff6dc; text-align: left; transform: translateY(6px); transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); filter: saturate(1.05) brightness(1); }
.gallery__item:hover span { transform: none; color: var(--gold-hi); }
.gallery__item:hover, .gallery__item:focus-visible { border-color: rgba(212, 175, 55, .5); }
.gallery__item:focus-visible img { transform: scale(1.08); filter: saturate(1.05) brightness(1); }
.gallery__item::before { content: ""; position: absolute; inset: 10px; z-index: 1; border: 1px solid rgba(246, 225, 154, .5); border-radius: 12px; opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.gallery__item:hover::before, .gallery__item:focus-visible::before { opacity: 1; transform: none; }
.g-a { grid-column: span 1; grid-row: span 2; }
.g-b { grid-column: span 2; }
.g-c { grid-row: span 2; }
.g-d { grid-column: span 1; }
.g-e { grid-column: span 1; }
.g-f { grid-column: span 2; }
.g-f img { object-position: 50% 68%; }
.g-g { grid-column: span 2; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--text); }
.lightbox[open] { display: grid; place-items: center; animation: fade .35s var(--ease); }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); backdrop-filter: blur(10px); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 80vh; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 80px -20px #000; }
.lightbox figcaption { margin-top: 14px; font: italic 500 1.4rem/1.2 var(--serif); color: var(--gold-hi); }
.lightbox__close, .lightbox__nav { position: fixed; border: 1px solid var(--line); background: rgba(0, 0, 0, .6); color: var(--gold-hi); border-radius: 50%; width: 52px; height: 52px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav { top: 50%; margin-top: -26px; }
.lightbox__prev { left: 22px; } .lightbox__next { right: 22px; }
@keyframes fade { from { opacity: 0; } }

/* CTA */
.cta { position: relative; padding: clamp(110px, 14vw, 170px) 0; overflow: hidden; text-align: center; border-block: 1px solid var(--line); }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) brightness(.35) sepia(.4); }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7, 7, 7, .55), rgba(7, 7, 7, .95) 75%); }
.cta__in { position: relative; max-width: 820px; }
.cta__crest { width: 88px; margin: 0 auto 28px; filter: drop-shadow(0 0 24px rgba(212, 175, 55, .5)); animation: float 6s ease-in-out infinite; }
.cta h2 { margin-bottom: 22px; }
.cta p { color: #cfc7b4; font-size: 1.1rem; max-width: 600px; margin-inline: auto; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
.contact .head { margin-bottom: 36px; }
.sites { display: grid; gap: 16px; }
.site { padding: 26px 28px; }
.site h3 { font-size: 1.45rem; margin-bottom: 8px; color: var(--gold-hi); }
.site p { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.site__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site__links a { font-weight: 600; font-size: .9rem; color: #f0e6c8; border-bottom: 1px solid rgba(212, 175, 55, .35); transition: color .3s, border-color .3s; }
.site__links a:hover { color: var(--gold-hi); border-color: var(--gold-hi); }
.form { padding: 40px 36px; position: sticky; top: 110px; }
.form h3 { font-size: 2.2rem; margin-bottom: 8px; }
.form__note { color: var(--muted); font-size: .88rem; margin-bottom: 26px; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; margin-bottom: 8px; font-family: var(--caps); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .3s, background .3s, box-shadow .3s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(212, 175, 55, .05); box-shadow: 0 0 0 3px rgba(212, 175, 55, .35); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__error { color: #f0b37a; font-size: .9rem; }

/* Pie */
.foot { padding: 60px 0 40px; background: #050505; border-top: 1px solid var(--line); }
.foot__in { display: grid; gap: 28px; }
.foot__brand { display: flex; align-items: center; gap: 18px; }
.foot__brand img { width: 64px; }
.foot__brand b { display: block; font: 600 1.35rem/1.2 var(--serif); color: var(--gold-hi); }
.foot__brand span { color: var(--muted); font-size: .85rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: #cfc7b4; }
.foot__nav a:hover { color: var(--gold-hi); }
.foot__copy { margin: 0; padding-top: 24px; border-top: 1px solid var(--line-soft); color: #948c7d; font-size: .8rem; }

/* Botón flotante */
.fab { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); box-shadow: 0 14px 30px -8px rgba(212, 175, 55, .7); transform: scale(0); transition: transform .5s var(--ease); }
.fab svg { width: 24px; height: 24px; fill: none; stroke: #120e02; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: ping 2.4s ease-out infinite; }
.fab.is-on { transform: scale(1); }
@keyframes ping { to { transform: scale(1.7); opacity: 0; } }

/* Aparición al hacer scroll (solo con JS) */
.js .reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .hero .reveal { transition-delay: calc(1.1s + var(--d, 0s)); }

/* Responsivo */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 84px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 26px; background: rgba(7, 7, 7, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .4s, visibility .5s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; }
  .burger { display: block; }
  .top { background: rgba(7, 7, 7, .78); backdrop-filter: blur(16px); }
  .hero { background: var(--black); }
  /* La foto se amplía y se ancla a la izquierda (vitrina iluminada): el escudo de la pared queda fuera de cuadro y no compite con el titular. */
  .hero__media { display: block; right: auto; width: max(100%, 185vw); }
  .hero__img { object-position: 0% 30%; transform-origin: 0% 30%; }
  .hero__light, .hero__visual { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__veil { background: linear-gradient(90deg, rgba(7, 7, 7, .9) 0%, rgba(7, 7, 7, .72) 100%), linear-gradient(0deg, var(--black) 0%, transparent 35%), radial-gradient(600px 400px at 80% 20%, rgba(212, 175, 55, .08), transparent 70%); }
  .journey__grid { grid-template-columns: 1fr; }
  .journey__media { display: none; }
  .step__img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 20px; }
  .therapies, .pillars, .programs { grid-template-columns: 1fr 1fr; }
  .programs .program:last-child { grid-column: span 2; }
  .split, .includes, .contact { grid-template-columns: 1fr; }
  .includes__copy, .form { position: static; }
  .frame__tag { right: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery { grid-auto-flow: dense; }
  .g-b, .g-f, .g-g { grid-column: span 2; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 36px); }
  .hero { padding-top: 110px; }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .step__dot { width: 44px; height: 44px; font-size: .8rem; }
  .journey__steps::before, .journey__steps::after { left: 22px; top: 22px; }
  .mottos li { font-size: 1.1rem; padding: 10px 18px; }
  /* Galería como tira de cine deslizable */
  .gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -18px; padding: 4px 18px 14px; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; }
  .gallery__item { flex: 0 0 78%; height: 380px; scroll-snap-align: center; }
  .gallery__item.g-b, .gallery__item.g-d, .gallery__item.g-g { flex-basis: 88%; height: 260px; align-self: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .therapies, .pillars, .programs, .includes__list, .field-row { grid-template-columns: 1fr; }
  .programs .program:last-child { grid-column: auto; }
  .glow { padding: 30px 24px; }
  .gallery__item span { font-size: 1.05rem; left: 12px; bottom: 10px; }
  .brand__txt small { display: none; }
  .lightbox__nav { top: auto; bottom: 22px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .js .hero__title .line > span { transform: none; }
  .hero__dust, .hero__light { display: none; }
  .js .journey__steps { --fill: 1; }
  .js .manifesto__text .w { opacity: 1; }
  .js .step:not(.is-on) h3 { color: #fbf7ec; }
}

/* Datos legales, enlaces del formulario y página de aviso de privacidad */
.foot__legal { margin: 0; color: #a49d8c; font-size: .82rem; line-height: 1.6; }
.form__note a, .legal a { color: var(--gold-hi); border-bottom: 1px solid rgba(212, 175, 55, .4); }
.form__note a:hover, .legal a:hover { border-color: var(--gold-hi); }
.legal { max-width: 820px; padding-top: 140px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.7rem; margin: 40px 0 12px; color: var(--gold-hi); }
.legal p, .legal li { color: #cfc7b4; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal__date { color: var(--muted); font-size: .9rem; }
.legal__back { display: inline-block; margin-top: 48px; }
