/* =========================================================
   La Fermina — Salón de Fiestas y Eventos
   Dirección visual: "una noche en La Fermina"
   Verde noche · champagne · crema
   ========================================================= */

:root {
  --night: #080402;
  --forest: #1e130d;
  --moss: #4a2f29;
  --cream: #f3ebdd;
  --paper: #fbf6ee;
  --ink: #17130f;
  --gold: #cfa65c;
  --gold-2: #ecd39c;
  --gold-dark: #9a6f2c;

  --cream-70: rgba(243, 235, 221, .72);
  --cream-15: rgba(243, 235, 221, .15);
  --ink-60: rgba(23, 19, 15, .62);
  --ink-15: rgba(23, 19, 15, .14);

  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --radius: clamp(14px, 1.4vw, 22px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }

img, picture, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

.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; }

/* ---------- utilidades de texto partido ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .12em; margin: -.06em -.02em -.12em; }
.wi { display: inline-block; will-change: transform; }
.c { display: inline-block; will-change: transform; }

.tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.tag span {
  display: inline-grid; place-items: center; min-width: 2.4em; height: 2.4em; padding: 0 .6em;
  border: 1px solid currentColor; border-radius: 999px; letter-spacing: .05em;
}

.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 11vw, 11.5rem);
  line-height: .92;
  letter-spacing: -.045em;
  font-variation-settings: "opsz" 144;
}
.h-display em { font-style: italic; color: var(--gold); }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.link-line:hover { background-size: 100% 1px; }
.link-line svg { width: 1em; height: 1em; }

/* ---------- botones ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 28px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; letter-spacing: .01em; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  transform: translateY(102%); transition: transform .65s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--sm { padding: 12px 20px; font-size: .85rem; }
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold::before { background: var(--cream); }
.btn--ghost { border: 1px solid rgba(243, 235, 221, .38); color: var(--cream); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--night); border-color: var(--cream); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark::before { background: var(--gold); }
.btn--dark:hover { color: var(--ink); }
.btn__icon { width: 18px; height: 18px; flex: none; transition: transform .6s var(--ease); }
.btn:hover .btn__icon:not(.btn__icon--lead) { transform: translateX(4px); }
.btn__icon--lead { fill: currentColor; width: 20px; height: 20px; }

.roll { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3; vertical-align: middle; }
.roll > span { display: block; transition: transform .65s var(--ease); }
.roll > span::after { content: attr(data-text); display: block; }
.btn:hover .roll > span, .nav__cta:hover .roll > span { transform: translateY(-50%); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--cream); color: var(--night);
  clip-path: inset(0 0 0 0);
}
.loader__mark { width: min(62vw, 520px); height: auto; overflow: visible; color: var(--night); }
.loader__meta {
  position: absolute; left: var(--gutter); bottom: calc(var(--gutter) + 6px);
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
}
.loader__count {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) - 10px);
  font-family: var(--serif); font-weight: 300; line-height: .8;
  font-size: clamp(4rem, 13vw, 11rem); letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.loader__count small { font-size: .3em; vertical-align: top; margin-left: .1em; }
@media (max-width: 767px) { .loader__meta { bottom: auto; top: calc(var(--gutter) + 10px); font-size: .62rem; } }
.loader__bar {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
}

/* ---------- capas globales ---------- */
.progress {
  position: fixed; top: 0; left: 0; z-index: 120; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0); transform-origin: left;
}
.grain {
  position: fixed; inset: 0; z-index: 150; width: 100%; height: 100%;
  pointer-events: none; opacity: .065;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 51px -61px; }
  60% { background-position: -19px -88px; } 80% { background-position: 73px 41px; } 100% { background-position: 0 0; }
}

.cursor { position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; display: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor__ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1px solid rgba(207, 166, 92, .7);
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .5s var(--ease), border-color .5s;
}
.cursor__label {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--night); opacity: 0; transform: scale(.6);
  transition: opacity .3s, transform .5s var(--ease);
}
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(207, 166, 92, .14); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold); border-color: var(--gold); }
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-label .cursor__dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* ---------- navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--gutter);
  transition: color .5s var(--ease);
}
.nav { isolation: isolate; }
.nav::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(8, 4, 2, .88), rgba(8, 4, 2, 0));
  opacity: 0; transition: opacity .5s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav--light::before { background: linear-gradient(rgba(243, 235, 221, .94), rgba(243, 235, 221, 0)); }
body.menu-open .nav::before { opacity: 0; }
.nav__logo { display: block; line-height: 0; }
.nav__mark { display: block; width: auto; height: 46px; aspect-ratio: 2112 / 1024; color: currentColor; overflow: visible; }
.nav__links {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(8, 4, 2, .38); border: 1px solid rgba(243, 235, 221, .12);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  transition: background-color .5s, border-color .5s;
}
.nav__links a {
  position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px;
  font-size: .84rem; font-weight: 500; transition: color .4s;
}
.nav__links a.is-active { color: var(--night); }
.nav__pill {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0;
  border-radius: 999px; background: var(--gold); opacity: 0;
}
.nav--light { color: var(--ink); }
.nav--light .nav__links { background: rgba(251, 246, 238, .6); border-color: var(--ink-15); }
.nav--light .burger span { background: var(--ink); }

.burger { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; background: rgba(8, 4, 2, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--cream-15); }
.burger span { position: absolute; left: 14px; width: 20px; height: 1.5px; background: var(--cream); transition: transform .6s var(--ease), background-color .4s; }
.burger span:first-child { top: 20px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav--light .burger { background: rgba(251, 246, 238, .6); border-color: var(--ink-15); }
body.menu-open .nav { color: var(--cream); }
body.menu-open .burger span { background: var(--cream); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--forest);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 40px; visibility: hidden;
  clip-path: circle(0px at calc(100% - 40px) 40px);
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 6px 0;
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 11vw, 4rem); line-height: 1.1; letter-spacing: -.03em;
  border-bottom: 1px solid var(--cream-15);
}
.menu__links small { font-family: var(--sans); font-size: .72rem; color: var(--gold); letter-spacing: .1em; }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; color: var(--cream-70); }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 420px) { .nav__cta { display: none; } }

/* ---------- HERO ---------- */
.hero { position: relative; z-index: 2; }
.hero__pin {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: var(--night);
}
.hero__frame {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: circle(0px at 50% 50%);
  will-change: clip-path;
}
.hero__zoom, .hero__slides { position: absolute; inset: 0; }
.hero__slides { transform: scale(1.15); }
.hero__slide { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__slide.is-active { z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(closest-side at 50% 50%, rgba(8, 4, 2, .58), rgba(8, 4, 2, .38) 70%, rgba(8, 4, 2, .2)),
    linear-gradient(180deg, rgba(8, 4, 2, .35) 0%, rgba(8, 4, 2, 0) 30%, rgba(8, 4, 2, 0) 70%, rgba(8, 4, 2, .6) 100%);
}
.hero__cover { position: absolute; inset: 0; background: var(--night); }
.hero__veil { position: absolute; inset: 0; background: var(--night); opacity: 0; }
.hero__pin::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--glow, 1);
  background: radial-gradient(60% 55% at 50% 48%, rgba(207, 166, 92, .10), rgba(8, 4, 2, 0) 70%);
}
.hero__dust { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero__brush { position: absolute; z-index: 2; pointer-events: none; will-change: transform; }
.hero__brush svg { display: block; width: 100%; height: 100%; }
.hero__brush--tr { top: 0; right: 0; width: clamp(150px, 26vw, 440px); aspect-ratio: 560 / 700; }
.hero__brush--bl { left: 0; bottom: 0; width: clamp(150px, 24vw, 420px); aspect-ratio: 620 / 680; }

.hero__center {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--gutter);
}
.hero__eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: clamp(10px, 2vh, 24px);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}
.hero__title { display: block; line-height: 0; margin: 0; }
.emblem {
  display: block; width: min(50vw, 72vh); height: auto; overflow: visible; will-change: transform;
}
.emblem__word { color: var(--cream); }
.emblem__ring { fill: none; stroke: url(#goldStroke); stroke-linecap: round; }
.emblem__dust circle { fill: url(#dustGlow); animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.emblem__sub {
  fill: var(--cream); font-family: var(--sans); font-weight: 500;
  font-size: 92px; letter-spacing: 62px;
}

.hero__side { display: none; }
.hero__side--off {
  position: absolute; right: var(--gutter); top: 50%; z-index: 3;
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  font-size: .68rem; letter-spacing: .3em; color: var(--cream-70);
}
.hero__side span { display: inline-block; }

.hero__bottom {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 6vh, 64px); z-index: 4;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  pointer-events: none;
}
.hero__bottom > * { pointer-events: auto; }
.hero__bottom { justify-content: flex-end; }
.hero__bottom .hero__text { text-align: right; }
.hero__bottom { flex-direction: column; align-items: flex-end; gap: 18px; }
.hero__bottom .hero__ctas { flex-direction: row; }
.hero__text { max-width: 30ch; font-size: clamp(.95rem, 1.1vw, 1.08rem); color: var(--cream-70); line-height: 1.55; }
.hero__ctas { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.hero__cue {
  position: absolute; left: 50%; bottom: clamp(20px, 4vh, 40px); z-index: 3; transform: translateX(-50%);
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream);
}
.hero__cue-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__cue i { position: relative; display: block; width: 1px; height: 46px; background: rgba(243, 235, 221, .25); overflow: hidden; }
.hero__cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--gold-2);
  animation: cue 2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

.hero__dots { position: absolute; left: var(--gutter); top: 50%; z-index: 3; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.hero__dot { position: relative; display: block; width: 2px; height: 34px; background: rgba(243, 235, 221, .2); overflow: hidden; }
.hero__dot i { position: absolute; inset: 0; background: var(--gold); transform: scaleY(0); transform-origin: top; }

.hero__words {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  display: grid; place-items: center;
}
.hero__words span {
  grid-area: 1 / 1; opacity: 0; text-align: center; padding: 0 var(--gutter);
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(3rem, 10vw, 10.5rem); line-height: .95; letter-spacing: -.04em;
  text-shadow: 0 10px 60px rgba(0, 0, 0, .35);
}

@media (max-width: 767px) {
  .hero__center { --em: min(96vw, 50vh); justify-content: flex-start; padding-top: calc(42.5vh - var(--em) / 2); }
  @supports (height: 1svh) { .hero__center { --em: min(96vw, 50svh); padding-top: calc(42.5svh - var(--em) / 2); } }
  .hero__eyebrow { position: absolute; top: 11svh; top: 11vh; left: 0; right: 0; font-size: .64rem; letter-spacing: .24em; }
  .emblem { width: var(--em); }
  .nav__mark { height: 40px; }
  .hero__side, .hero__dots { display: none; }
  .hero__brush--tr { width: 40vw; top: -4vh; }
  .hero__brush--bl { width: 38vw; opacity: .55; }
  .hero__cue { display: none; }
  .hero__bottom { flex-direction: column; align-items: center; text-align: center; bottom: max(20px, env(safe-area-inset-bottom)); gap: 18px; }
  .hero__text, .hero__bottom .hero__text { font-size: .92rem; max-width: 34ch; text-align: center; }
  .hero__ctas { flex-direction: row; align-items: center; justify-content: center; width: 100%; }
  .hero__ctas .btn { padding: 14px 18px; font-size: .84rem; }
  .hero__ctas .btn__icon { display: none; }
  .hero__words span { font-size: 15vw; }
}

/* ---------- MANIFIESTO ---------- */
.manifesto {
  position: relative; z-index: 1; overflow-x: clip;
  padding: clamp(120px, 24vh, 260px) var(--gutter) clamp(120px, 22vh, 240px);
  text-align: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .74rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.kicker__spark { width: 18px; height: 18px; fill: var(--gold); }
.manifesto__text {
  position: relative; z-index: 2;
  max-width: 17ch; margin: clamp(24px, 4vh, 48px) auto 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.3rem, 6vw, 6.4rem); line-height: 1.02; letter-spacing: -.035em;
}
.manifesto__text em { color: var(--gold-2); }
.float-img {
  position: absolute; z-index: 1; overflow: hidden;
  width: clamp(110px, 13vw, 230px); aspect-ratio: 3 / 4;
  border-radius: 999px 999px 14px 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}
.float-img img { width: 100%; height: 100%; object-fit: cover; }
.float-img--a { left: 6vw; top: 12%; }
.float-img--b { right: 7vw; top: 30%; width: clamp(120px, 15vw, 260px); border-radius: 14px 14px 999px 999px; }
.float-img--c { left: 14vw; bottom: 4%; width: clamp(90px, 10vw, 180px); aspect-ratio: 1; border-radius: 50%; }
@media (max-width: 767px) {
  .float-img { opacity: .55; }
  .float-img--a { left: -24px; top: 4%; width: 96px; }
  .float-img--b { right: -20px; top: auto; bottom: 6%; width: 110px; }
  .float-img--c { display: none; }
}

/* ---------- CINTAS ---------- */
.tapes { position: relative; z-index: 2; height: clamp(170px, 26vh, 300px); overflow: hidden; margin: -2vh 0; }
.tape {
  position: absolute; left: -6%; width: 112%; top: 50%; padding: clamp(12px, 1.6vw, 22px) 0;
  white-space: nowrap; overflow: hidden;
}
.tape--a { z-index: 2; background: var(--gold); color: var(--night); transform: translateY(-50%) rotate(-3.5deg); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.tape--b { background: var(--moss); color: var(--cream); transform: translateY(-50%) rotate(3deg); }
.tape__track { display: inline-flex; will-change: transform; }
.tape__item {
  display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); padding-right: clamp(18px, 2.4vw, 40px);
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 3.2rem); line-height: 1.1; letter-spacing: -.02em;
}
.tape__item svg { width: .55em; height: .55em; fill: currentColor; flex: none; }
.tape--b .tape__item svg { fill: var(--gold); }

/* ---------- SERVICIOS ---------- */
.services { position: relative; z-index: 1; background: var(--night); }
.services__head {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 4vw;
  padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(20px, 3vh, 40px);
}
.services__head .h-display { margin-top: 18px; }
.services__intro { justify-self: end; max-width: 30ch; font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.45; color: var(--cream-70); }

.garland { position: relative; height: clamp(90px, 13vw, 200px); margin-bottom: 3vh; }
.garland__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.garland__wire { fill: none; stroke: rgba(236, 211, 156, .5); stroke-width: 1.8; stroke-dasharray: 1; stroke-dashoffset: 1; }
.bulb { position: absolute; width: 0; height: 0; }
.bulb::before { content: ""; position: absolute; left: -.5px; top: 0; width: 1px; height: 12px; background: rgba(236, 211, 156, .5); }
.bulb i {
  position: absolute; left: -6px; top: 11px; width: 12px; height: 16px;
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: #3a2a20; transition: background-color .25s, box-shadow .6s;
}
.bulb.is-on i {
  background: #fff3cf;
  box-shadow: 0 0 10px 2px rgba(255, 226, 160, .9), 0 0 36px 12px rgba(243, 198, 107, .32);
  animation: flicker 1s linear both;
}
.bulb:nth-child(3n) i { --tint: 1; }
.bulb:nth-child(3n).is-on i { background: #ffd9b8; box-shadow: 0 0 10px 2px rgba(255, 200, 160, .9), 0 0 36px 12px rgba(233, 160, 120, .3); }
@keyframes flicker { 0% { opacity: .3; } 10% { opacity: 1; } 18% { opacity: .35; } 30% { opacity: 1; } 42% { opacity: .6; } 55%, 100% { opacity: 1; } }
@media (max-width: 767px) { .bulb { transform: scale(.7); } }

.services__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.services__track { display: flex; align-items: center; gap: 8vw; padding: 0 8vw 0 var(--gutter); will-change: transform; }
.svc { flex: none; display: grid; grid-template-columns: auto minmax(280px, 25vw); align-items: end; gap: 3.4vw; }
.svc__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  height: 66vh; width: 44vw; background: var(--forest);
}
.svc--portrait .svc__media { width: calc(66vh * .7); }
.svc__media img { position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover; }
.svc__num {
  display: block; font-family: var(--serif); font-weight: 300; line-height: .8;
  font-size: clamp(5rem, 9vw, 9.5rem); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(207, 166, 92, .75);
}
.svc__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.8vw, 2.9rem); line-height: 1.02; letter-spacing: -.03em; margin: 22px 0 16px; }
.svc__desc { color: var(--cream-70); font-size: .98rem; line-height: 1.65; max-width: 42ch; }

.svc-end { flex: none; width: min(52vw, 760px); padding-right: 4vw; }
.svc-end__title {
  margin: 24px 0 36px;
  font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 6.5vw, 7rem); line-height: .95; letter-spacing: -.045em;
}
.svc-end__title em { color: var(--gold); }

.services__progress {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 5vh, 48px);
  display: flex; align-items: center; gap: 22px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-70);
}
.services__count { font-variant-numeric: tabular-nums; }
.services__count b { color: var(--gold); font-weight: 600; }
.services__line { position: relative; flex: 1; height: 1px; background: var(--cream-15); }
.services__bar { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }

@media (max-width: 899px) {
  .services__head { grid-template-columns: 1fr; gap: 24px; }
  .services__intro { justify-self: start; }
  .services__pin { height: auto; display: block; overflow: visible; padding: 2vh 0 14vh; }
  .services__track { flex-direction: column; align-items: stretch; gap: 12vh; padding: 0 var(--gutter); }
  .svc { grid-template-columns: 1fr; gap: 26px; }
  .svc__media, .svc--portrait .svc__media { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .svc--portrait .svc__media { aspect-ratio: 4 / 5; }
  .svc__media img { left: 0; width: 100%; }
  .svc__num { font-size: 4.6rem; }
  .svc-end { width: 100%; padding: 0; }
  .services__progress { display: none; }
}

/* ---------- curvas de transición ---------- */
.curve { position: absolute; left: 0; bottom: 100%; width: 100%; height: clamp(50px, 9vw, 140px); margin-bottom: -1px; pointer-events: none; }

/* ---------- TESTIMONIOS ---------- */
.testi { position: relative; z-index: 2; background: var(--cream); color: var(--ink); }
.testi .curve path { fill: var(--cream); }
.testi .tag { color: var(--gold-dark); }
.testi .h-display { color: var(--ink); }
.testi__pin {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 5vw;
  padding: clamp(90px, 12vh, 140px) var(--gutter) clamp(60px, 8vh, 100px);
}
.testi__head .h-display { margin: 18px 0 22px; font-size: clamp(3.2rem, 8.4vw, 9rem); }
.testi__intro { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--ink-60); max-width: 28ch; margin-bottom: 34px; }
.testi__stack { position: relative; height: min(560px, 72vh); }
.tcard {
  position: absolute; left: 50%; top: 50%; width: min(540px, 100%);
  translate: -50% -50%;
  display: flex; flex-direction: column; gap: 26px;
  padding: clamp(28px, 3vw, 46px); border-radius: clamp(20px, 2vw, 30px);
  box-shadow: 0 40px 80px -40px rgba(23, 19, 15, .45), 0 2px 0 rgba(255, 255, 255, .4) inset;
  will-change: transform;
}
.tcard--paper { background: var(--paper); color: var(--ink); }
.tcard--forest { background: var(--forest); color: var(--cream); }
.tcard--gold { background: var(--gold); color: var(--ink); }
.tcard__quote { width: 46px; height: 34px; fill: var(--gold); }
.tcard--gold .tcard__quote { fill: var(--ink); }
.tcard__text { font-family: var(--serif); font-weight: 300; font-size: clamp(1.25rem, 1.75vw, 1.7rem); line-height: 1.32; letter-spacing: -.015em; }
.tcard__who { display: flex; align-items: center; gap: 14px; }
.tcard__who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: rgba(0, 0, 0, .1); }
.tcard__who b { display: block; font-weight: 600; font-size: .98rem; }
.stars { display: flex; gap: 3px; margin-top: 4px; }
.stars svg { width: 15px; height: 15px; fill: var(--gold); }
.tcard--gold .stars svg { fill: var(--ink); }

@media (max-width: 899px) {
  .testi__pin { grid-template-columns: 1fr; gap: 48px; }
  .testi__stack { height: auto; display: flex; flex-direction: column; gap: 18px; }
  .tcard { position: relative; left: auto; top: auto; translate: none; width: 100%; }
}

/* ---------- GALERÍA ---------- */
.gallery { position: relative; z-index: 3; background: var(--night); }
.gallery .curve path { fill: var(--night); }
.gz { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.gz__grid {
  position: absolute; left: 50%; top: 50%; width: 94vw; height: 94vh;
  margin: -47vh 0 0 -47vw;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2vh 2vw;
  transform-origin: 50% 50%; will-change: transform;
}
.gz__tile { position: relative; overflow: hidden; border-radius: 6px; background: var(--forest); }
.gz__tile img { width: 100%; height: 100%; object-fit: cover; }
.gz__tile--center::after { content: ""; position: absolute; inset: 0; background: rgba(8, 4, 2, .38); }
.gz__title {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.gz__title .tag { color: var(--gold-2); }
.gz__h {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(4.4rem, 17vw, 18rem); line-height: .9; letter-spacing: -.055em; margin-top: 14px;
  text-shadow: 0 12px 60px rgba(0, 0, 0, .35);
}

.wall { padding: clamp(70px, 12vh, 140px) var(--gutter) clamp(110px, 16vh, 180px); }
.wall__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(30px, 6vh, 64px); }
.wall__intro { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.6vw, 4.6rem); line-height: 1; letter-spacing: -.035em; max-width: 14ch; }
.wall__intro em { color: var(--gold); }
.wall__count { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-70); white-space: nowrap; }
.wall__count b { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }

.masonry { display: flex; gap: clamp(10px, 1.5vw, 22px); align-items: flex-start; }
.masonry__col { flex: 1; display: flex; flex-direction: column; gap: clamp(10px, 1.5vw, 22px); min-width: 0; }
.m-item {
  position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--radius);
  background: var(--forest); cursor: zoom-in;
}
.m-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; }
.m-item:hover img { transform: scale(1.06); }
.m-item__plus {
  position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); color: var(--night); font-size: 1.4rem; line-height: 1;
  transform: scale(0); transition: transform .6s var(--ease);
}
.m-item:hover .m-item__plus, .m-item:focus-visible .m-item__plus { transform: scale(1); }
.wall__more { display: flex; justify-content: center; margin-top: clamp(40px, 7vh, 70px); }
.wall__more[hidden] { display: none; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 250; visibility: hidden; }
.lb.is-open { visibility: visible; }
.lb__bg { position: absolute; inset: 0; background: rgba(8, 4, 2, .94); opacity: 0; }
.lb__img { position: fixed; top: 0; left: 0; transform-origin: 0 0; border-radius: 8px; object-fit: cover; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); user-select: none; -webkit-user-drag: none; }
.lb__ui { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.lb.is-open .lb__ui { pointer-events: none; }
.lb__ui > * { pointer-events: auto; }
.lb__count { position: absolute; left: var(--gutter); top: 26px; font-size: .8rem; letter-spacing: .2em; color: var(--cream-70); font-variant-numeric: tabular-nums; }
.lb__btn {
  position: absolute; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cream);
  border: 1px solid var(--cream-15); background: rgba(8, 4, 2, .5);
  transition: background-color .4s, color .4s;
}
.lb__btn:hover { background: var(--cream); color: var(--night); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { right: var(--gutter); top: 14px; }
.lb__prev { left: var(--gutter); top: 50%; margin-top: -27px; }
.lb__next { right: var(--gutter); top: 50%; margin-top: -27px; }
@media (max-width: 767px) {
  .lb__prev, .lb__next { top: auto; bottom: 26px; margin: 0; }
  .lb__prev { left: calc(50% - 64px); }
  .lb__next { right: calc(50% - 64px); }
}

/* ---------- CONTACTO ---------- */
.contact {
  position: relative; z-index: 4; background: var(--cream); color: var(--ink);
  padding: clamp(110px, 16vh, 190px) var(--gutter) clamp(90px, 14vh, 160px);
}
.contact .curve path { fill: var(--cream); }
.contact .tag { color: var(--gold-dark); }
.contact__title { margin-top: 20px; max-width: 12ch; }
.contact__title em { color: var(--gold-dark); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6vw; margin-top: clamp(50px, 9vh, 100px); align-items: start; }
.contact__intro { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--ink-60); max-width: 36ch; margin-bottom: 30px; line-height: 1.55; }
.ci { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--ink-15); }
.ci:last-child { border-bottom: 1px solid var(--ink-15); }
.ci__label { font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); padding-top: .55em; }
.ci__value { font-family: var(--serif); font-size: clamp(1.35rem, 1.9vw, 1.8rem); line-height: 1.2; letter-spacing: -.02em; }
a.ci__value svg { width: .8em; height: .8em; }
.ci__sub { color: var(--ink-60); font-size: .95rem; margin-top: 4px; }
.ci__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-weight: 600; font-size: .9rem; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(23, 19, 15, .06); font-size: .82rem; font-weight: 600; }
.status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #9a9a9a; }
.status.is-open i { background: #3aa65b; }
.status.is-open i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.form-shell { position: relative; }
.form { display: grid; gap: 30px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.field { position: relative; }
.field::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold-dark);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field input, .field textarea {
  width: 100%; display: block; border: 0; border-bottom: 1px solid rgba(23, 19, 15, .28); border-radius: 0;
  background: transparent; color: inherit; outline: none;
  font: inherit; font-size: 1.12rem; padding: 26px 0 12px;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; padding-top: 14px; }
.field textarea::placeholder { color: rgba(23, 19, 15, .38); }
.field label {
  position: absolute; left: 0; top: 26px; pointer-events: none;
  font-size: 1.12rem; color: var(--ink-60); transform-origin: left top;
  transition: transform .5s var(--ease), color .4s;
}
.field label i { color: var(--gold-dark); font-style: normal; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.68); color: var(--gold-dark); }
.field--area label { position: static; display: block; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #b6452c; }
.form__error { color: #b6452c; font-weight: 600; font-size: .92rem; }
.btn--submit { justify-self: start; padding: 20px 40px; font-size: 1rem; }
.btn--submit.is-sending { pointer-events: none; opacity: .7; }
.form__success {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 26px;
}
.form__success[hidden] { display: none; }
.form__check { width: 84px; height: 84px; fill: none; stroke: var(--gold-dark); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form__success-text { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.1; letter-spacing: -.03em; max-width: 18ch; }
.form__success-alt { color: var(--ink-60); font-size: .95rem; }
.form__success-alt a, .form__again { color: var(--ink); font-weight: 600; font: inherit; font-weight: 600; cursor: pointer; }

.map { margin-top: clamp(60px, 10vh, 120px); border-radius: var(--radius); overflow: hidden; height: clamp(280px, 46vh, 460px); background: #e4dccd; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.25) contrast(1.05); }

@media (max-width: 899px) {
  .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .form__row { grid-template-columns: 1fr; }
  .ci { grid-template-columns: 1fr; gap: 6px; }
  .btn--submit { justify-self: stretch; }
}

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 200; visibility: hidden; color: var(--ink); }
.modal.is-open { visibility: visible; }
.modal__bg { position: absolute; inset: 0; background: var(--cream); clip-path: circle(0px at 50% 50%); }
.modal__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.modal__panel { position: relative; width: min(760px, 100%); margin: 0 auto; padding: clamp(80px, 12vh, 120px) var(--gutter) 60px; }
.modal__close {
  position: fixed; top: 18px; right: var(--gutter); width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--cream); z-index: 2;
  transition: transform .6s var(--ease);
}
.modal__close:hover { transform: rotate(90deg); }
.modal__close svg { width: 22px; height: 22px; }
.modal .tag { color: var(--gold-dark); }
.modal__title { margin: 18px 0 18px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .95; letter-spacing: -.045em; }
.modal__title em { color: var(--gold-dark); }
.modal__intro { color: var(--ink-60); font-size: 1.05rem; max-width: 52ch; margin-bottom: 40px; }
.modal__intro a { color: var(--ink); font-weight: 600; }

/* ---------- PIE ---------- */
.footer { position: relative; z-index: 5; background: var(--night); color: var(--cream); padding: clamp(100px, 14vh, 160px) var(--gutter) 26px; }
.footer .curve path { fill: var(--night); }
.footer__top { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6vw; align-items: start; }
.footer__q { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 6rem); line-height: .95; letter-spacing: -.045em; margin-bottom: 34px; }
.footer__q em { color: var(--gold); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--cream-70); font-size: .95rem; }
.footer__cols a { color: var(--cream); }
.footer__label { font-size: .7rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.footer__mega {
  display: flex; justify-content: center; overflow: hidden; white-space: pre;
  margin-top: clamp(60px, 10vh, 120px);
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: 18.6vw; line-height: .9; letter-spacing: -.06em; color: var(--gold);
  padding-bottom: .1em;
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--cream-15); font-size: .82rem; color: var(--cream-70);
}
.footer__credit a { color: var(--cream); font-weight: 600; }
.footer__top-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); font-weight: 600; }
.footer__top-link svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.footer__top-link:hover svg { transform: translate(2px, -2px); }
@media (max-width: 899px) {
  .footer__top { grid-template-columns: 1fr; gap: 56px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- WhatsApp flotante ---------- */
.fab {
  position: fixed; right: var(--gutter); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 95;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--night);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55);
  transform: scale(0);
}
body.menu-open .fab { opacity: 0; pointer-events: none; }
.fab svg { width: 28px; height: 28px; fill: currentColor; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold); animation: ping 2.4s var(--ease) infinite; }

/* ---------- móvil: menos repintado durante el scroll ---------- */
@media (max-width: 767px) {
  .grain { display: none; }
  .emblem__dust circle { animation: none; }
}

/* ---------- movimiento reducido / sin JS de animación ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__cue i::after, .fab::before, .status.is-open i::after, .bulb.is-on i, .emblem__dust circle { animation: none; }
  .loader { display: none; }
}
.no-motion .loader { display: none; }
.no-motion .hero__frame { clip-path: none; }
.no-motion .hero__cover { display: none; }
.no-motion .hero__slides { transform: none; }
.no-motion .fab { transform: none; }
.no-motion .garland__wire { stroke-dashoffset: 0; }
.no-motion .services__pin { height: auto; overflow-x: auto; padding: 4vh 0 10vh; }
.no-motion .services__progress { display: none; }
.no-motion .testi__stack { height: auto; display: flex; flex-direction: column; gap: 18px; }
.no-motion .tcard { position: relative; left: auto; top: auto; translate: none; width: 100%; }
.no-motion .gz__h { font-size: clamp(3rem, 8vw, 8rem); }
