/* =============================================================
   Yair E. Vásquez Sánchez · Abogado
   Archetype: Editorial Dark Warm (02) — law-adapted
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

:root {
  --bg:       #0F151C;   /* dark navy */
  --bg-2:     #131C26;
  --bg-3:     #1A2632;
  --bg-card:  #17212C;
  --cream:    #ECEFF3;   /* cool white */
  --cream-2:  #C5CFD9;
  --cream-3:  #7E8C9A;   /* steel grey */
  --accent:   #2C3D4F;   /* azul marino (estructural) */
  --accent-2: #223040;
  --navy-line:#3A4D60;
  --gold:     #E6B22C;   /* dorado de marca */
  --gold-2:   #F2CF6A;
  --line:     rgba(236, 239, 243, .12);
  --line-2:   rgba(236, 239, 243, .06);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1340px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 400; }
em { font-style: italic; }
.mono { font-family: var(--mono); font-style: normal; letter-spacing: -0.02em; }
::selection { background: var(--gold); color: #10161d; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Shared section pieces
   ============================================================= */
.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-right: .7rem; opacity: .7;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.2vw, 3.7rem);
  line-height: 1.02;
  color: var(--cream);
}
.section-title em { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  font-size: .9rem; font-weight: 500; letter-spacing: .01em;
  border-radius: 100px;
  position: relative;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft),
              background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.btn-primary {
  background: var(--gold); color: #14202c; font-weight: 600;
  box-shadow: 0 8px 30px -8px rgba(230, 178, 44, .5);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--gold-2);
  box-shadow: 0 18px 44px -10px rgba(230, 178, 44, .55);
}
.btn-ghost {
  border: 1px solid var(--navy-line);
  color: var(--cream-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-whatsapp {
  background: var(--accent); color: var(--gold); font-weight: 600;
  border: 1px solid var(--navy-line);
  box-shadow: 0 8px 30px -8px rgba(15, 21, 28, .6);
}
.btn-whatsapp:hover { transform: translateY(-3px); background: var(--accent-2); border-color: var(--gold); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .9s var(--ease-out), clip-path 1.1s var(--ease-soft);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.brand-mark--splash { height: 86px; opacity: 0; animation: splashFade .9s var(--ease-out) .1s forwards; }
.splash-word {
  font-family: var(--serif); font-size: 1.3rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); opacity: 0; animation: splashFade .9s var(--ease-out) .35s forwards;
}
.splash-line {
  width: 0; height: 1px; background: var(--gold);
  animation: splashGrow 1.6s var(--ease-soft) .4s forwards;
}
@keyframes splashFade { to { opacity: 1; } }
@keyframes splashGrow { to { width: 120px; } }

/* =============================================================
   6. Custom cursor
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9998;
  pointer-events: none; display: none;
  mix-blend-mode: difference;
  opacity: 0; transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: var(--cream); border-radius: 50%; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px;
  border: 1px solid var(--cream); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 54px; height: 54px; margin: -27px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* =============================================================
   7. Scroll progress
   ============================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: rgba(236, 239, 243, .06); pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform-origin: 0 0; transform: scaleX(0); transition: transform .08s linear;
}

/* =============================================================
   8. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem var(--pad);
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out),
              box-shadow .4s var(--ease-out), padding .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(15, 21, 28, .8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-2);
  padding-block: .8rem;
}
.nav-brand { display: flex; align-items: center; gap: .8rem; margin-right: auto; }
/* ---- Logo principal (archivo logo.png) ---- */
.brand-logo { display: block; width: auto; }
.nav-brand .brand-logo { height: 40px; transition: height .4s var(--ease-out); }
.nav.is-scrolled .brand-logo { height: 34px; }
.brand-logo--splash { height: 74px; opacity: 0; animation: splashFade .9s var(--ease-out) .1s forwards; }
.brand-logo--footer { height: 54px; }
@media (max-width: 539px) {
  .nav-brand .brand-logo { height: 34px; }
  .brand-logo--splash { height: 56px; }
}
/* ---- Brand mark (monograma VY recreado en SVG) ---- */
.brand-mark { display: inline-flex; align-items: center; }
.bm-svg { height: 100%; width: auto; overflow: visible; display: block; }
.bm-v { font-family: var(--serif); font-weight: 600; font-size: 44px; fill: var(--cream-2); }
.bm-y { font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 54px; fill: var(--gold); }
.nav-brand .brand-mark { height: 38px; }
.nav-name {
  font-family: var(--serif); font-size: 1.02rem; font-weight: 600; line-height: 1.1;
  letter-spacing: .03em; color: var(--cream);
}
.nav-name small { display: block; font-family: var(--mono); font-size: .58rem; color: var(--cream-3); font-weight: 400; letter-spacing: .2em; text-transform: uppercase; margin-top: .15rem; }
.nav-links { display: none; gap: 2rem; }
.nav-link { position: relative; font-size: .9rem; color: var(--cream-2); padding: .25rem 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { width: 24px; height: 1.5px; background: var(--cream); transition: transform .35s var(--ease-out), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--serif); font-size: 1.7rem; color: var(--cream); }
.nav-mobile a.btn { font-family: var(--sans); font-size: .95rem; margin-top: 1rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* =============================================================
   9. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-portrait {
  position: absolute; inset: 0; z-index: -3;
  display: flex; justify-content: flex-end; align-items: flex-end;
  pointer-events: none;
}
.hero-portrait img {
  height: 100%; width: auto; max-width: none; object-fit: cover; object-position: top center;
  filter: saturate(.95) contrast(1.03);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}
.hero-portrait-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,21,28,.55) 0%, transparent 28%, transparent 55%, rgba(15,21,28,.96) 100%),
    linear-gradient(90deg, rgba(15,21,28,.92) 0%, rgba(15,21,28,.5) 42%, transparent 72%);
}
@media (max-width: 959px) {
  .hero-portrait { justify-content: center; }
  .hero-portrait img {
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
    opacity: .55;
  }
  .hero-portrait-fade {
    background:
      linear-gradient(180deg, rgba(15,21,28,.6) 0%, rgba(15,21,28,.35) 30%, rgba(15,21,28,.9) 78%, rgba(15,21,28,.99) 100%);
  }
  /* Aire vertical en móvil: el contenido baja y libera la barra del logo */
  .hero {
    justify-content: flex-start;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
}
.hero-mesh {
  position: absolute; inset: -15%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 45% at var(--mesh-x) var(--mesh-y), rgba(44,61,79,.5), transparent 60%),
    conic-gradient(from var(--mesh-angle), rgba(230,178,44,.22), rgba(44,61,79,.18), rgba(34,48,64,.2), rgba(230,178,44,.22));
  filter: blur(90px) saturate(120%);
  opacity: .65; mix-blend-mode: screen;
  animation: meshShift 24s linear infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 28%; --mesh-y: 35%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 72%; --mesh-y: 58%; }
  100% { --mesh-angle: 360deg; --mesh-x: 28%; --mesh-y: 35%; }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
.hero-inner { max-width: var(--maxw); margin-inline: auto; width: 100%; }
.hero-meta {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-2); display: flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem;
}
.hero-meta .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(230,178,44,.6); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(230,178,44,.6); }
  70% { box-shadow: 0 0 0 10px rgba(230,178,44,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,178,44,0); }
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 8.5vw, 6.4rem);
  line-height: .98;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.hero-title em { color: var(--gold); }
.hero-sub {
  max-width: 52ch; font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--cream-2); margin-bottom: 2.6rem;
}
.hero-foot { display: flex; flex-direction: column; gap: 2.2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.2rem); }
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat-num { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--cream); }
.stat-num .mono { font-size: .85em; color: var(--gold); }
.stat-label { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll {
  position: absolute; right: var(--pad); bottom: clamp(2.5rem, 6vw, 5rem);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream-3); writing-mode: vertical-rl; display: none;
}
.hero-scroll::after { content: ""; display: block; width: 1px; height: 40px; background: var(--gold); margin: .8rem auto 0; }
@media (min-width: 960px) {
  .hero-foot { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .hero-scroll { display: block; }
}
/* Móvil: más respiro vertical entre ubicación, logo y slogan */
@media (max-width: 959px) {
  .hero-meta { margin-top: .5rem; margin-bottom: 2.4rem; }
  .hero-title { margin-bottom: 1.9rem; }
  .hero-sub { margin-bottom: 3rem; }
}

/* =============================================================
   10. Marquee
   ============================================================= */
.marquee {
  overflow: hidden; position: relative;
  border-block: 1px solid var(--line);
  padding-block: 1.3rem; background: var(--bg-2);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 2.6rem; white-space: nowrap; will-change: transform; }
.mq-item {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--cream-2);
}
.mq-ico { width: 21px; height: 21px; flex: none; color: var(--gold); }
/* alternancia de contraste mientras se desplaza */
.mq-item:nth-child(even) { color: var(--gold); }
.mq-item:nth-child(even) .mq-ico { color: var(--cream-2); }

/* =============================================================
   10b. Intro — secuencia de scroll (canvas)
   ============================================================= */
.seq { position: relative; height: 360vh; background: var(--bg); }
.seq-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--bg);
}
.seq-canvas {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  background: #05080c;
}
.seq-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(8,12,18,.55) 100%),
    linear-gradient(180deg, rgba(15,21,28,.35) 0%, transparent 22%, transparent 75%, rgba(15,21,28,.65) 100%);
}
.seq-hint {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; font-family: var(--mono); font-size: .7rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--cream-2);
  transition: opacity .5s var(--ease-out);
}
.seq-hint::after { content: ""; display: block; width: 1px; height: 26px; background: var(--gold); margin: .7rem auto 0; }
.seq-hint.is-hidden { opacity: 0; }
.seq-loader {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  background: var(--bg);
  transition: opacity .7s var(--ease-out);
}
.seq-loader.is-done { opacity: 0; pointer-events: none; }
.seq-loader-mark { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold); }
.seq-loader-bar { width: 190px; height: 2px; background: var(--line); overflow: hidden; }
.seq-loader-bar > span { display: block; height: 100%; background: var(--gold); transform-origin: 0 0; transform: scaleX(0); transition: transform .25s var(--ease-out); }
.seq-loader-txt { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3); }

@media (prefers-reduced-motion: reduce) {
  .seq { height: 100vh; }
}

/* =============================================================
   11. Perfil
   ============================================================= */
.perfil { padding: clamp(4.5rem, 10vw, 9rem) var(--pad); max-width: var(--maxw); margin-inline: auto; }
.perfil-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.perfil-figure {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 5;
}
.perfil-figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) brightness(.92); transition: transform 1.2s var(--ease-soft); }
.perfil-figure:hover img { transform: scale(1.05); }
.perfil-figure figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--cream); background: rgba(15,21,28,.65); padding: .4rem .8rem; border-radius: 6px;
  backdrop-filter: blur(6px);
}
.perfil-lead { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; color: var(--cream); margin-bottom: 1.4rem; }
.perfil-lead strong { color: var(--gold); font-weight: 400; }
.perfil-text > p { color: var(--cream-2); margin-bottom: 1.2rem; }
.pillars { display: grid; gap: 1.6rem; margin-top: 2.4rem; }
.pillars li { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.pillar-num { font-size: .8rem; color: var(--gold); display: block; margin-bottom: .5rem; }
.pillars h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); margin-bottom: .35rem; }
.pillars p { font-size: .92rem; color: var(--cream-3); }
@media (min-width: 960px) {
  .perfil-grid { grid-template-columns: 0.92fr 1fr; align-items: center; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
}

/* ---- Stacked cards (efecto display-cards en CSS puro) ---- */
.stack-cards {
  display: grid;
  grid-template-areas: "stack";
  place-items: center;
  min-height: clamp(22rem, 60vw, 30rem);
  perspective: 1400px;
}
.stack-card {
  grid-area: stack;
  --tx: 0rem; --ty: 0rem; --lift: 0rem;
  width: clamp(13rem, 42vw, 17rem);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-3);
  transform: skewY(-7deg) translate(var(--tx), var(--ty)) translateY(var(--lift));
  transition: transform .7s var(--ease-soft), filter .7s var(--ease-out), box-shadow .6s var(--ease-out), border-color .6s;
  filter: grayscale(1) brightness(.82);
  will-change: transform;
}
.stack-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* fan-out positions: back → front */
.stack-card:nth-child(1) { z-index: 1; }
.stack-card:nth-child(2) { --tx: 2.4rem; --ty: 1.7rem; z-index: 2; }
.stack-card:nth-child(3) { --tx: 4.8rem; --ty: 3.4rem; z-index: 3; filter: grayscale(0) brightness(1); }
.stack-card-front { box-shadow: 0 40px 80px -30px rgba(0,0,0,.75); }
.stack-card-front .sc-caption {
  position: absolute; left: .9rem; bottom: .9rem;
  font-family: var(--mono); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); background: rgba(15,21,28,.6); padding: .35rem .7rem; border-radius: 6px;
  backdrop-filter: blur(6px);
}
/* whole deck warms slightly on hover */
.stack-cards:hover .stack-card { filter: grayscale(.2) brightness(.95); }
.stack-cards:hover .stack-card-front { filter: grayscale(0) brightness(1); }
/* hovered card lifts + colorizes + comes forward */
.stack-card:hover {
  --lift: -2.4rem;
  filter: grayscale(0) brightness(1.02) !important;
  z-index: 10;
  border-color: rgba(230, 178, 44, .5);
  box-shadow: 0 50px 90px -28px rgba(0,0,0,.8), 0 0 0 1px rgba(230,178,44,.2);
}
/* credential card */
.stack-card-credential {
  display: flex; flex-direction: column; justify-content: center; gap: .4rem;
  padding: 1.6rem;
  background: linear-gradient(150deg, var(--bg-3), #0c1219);
}
.sc-badge { font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.sc-title { font-family: var(--serif); font-size: 1.35rem; color: var(--cream); }
.sc-num { font-size: 1.6rem; color: var(--gold); }
.sc-foot { font-size: .78rem; color: var(--cream-2); }
@media (max-width: 539px) {
  .stack-card { width: clamp(11rem, 54vw, 13rem); }
  .stack-card:nth-child(2) { --tx: 1.6rem; --ty: 1.2rem; }
  .stack-card:nth-child(3) { --tx: 3.2rem; --ty: 2.4rem; }
}

/* =============================================================
   12. Showcase (áreas) — pinned horizontal
   ============================================================= */
.showcase { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--bg-2); position: relative; }
.showcase-head { padding-inline: var(--pad); max-width: var(--maxw); margin-inline: auto; margin-bottom: 2.8rem; }
.showcase-hint { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--gold); margin-top: 1rem; }
.showcase-viewport { overflow: hidden; }
.showcase-track {
  display: flex; gap: 1.4rem; padding-inline: var(--pad);
  width: max-content;
}
.showcase.is-pinned .showcase-track { padding-inline: var(--pad); }
/* Móvil/tablet: deslizar con el dedo (scroll horizontal nativo) */
@media (max-width: 1023px) {
  .showcase-viewport {
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding-inline: var(--pad);
    overscroll-behavior-x: contain;
  }
  .showcase-viewport::-webkit-scrollbar { display: none; }
  .showcase-track { padding-right: var(--pad); }
  .area-card { scroll-snap-align: center; }
}
.area-card {
  position: relative; isolation: isolate; overflow: hidden;
  width: clamp(280px, 80vw, 380px);
  min-height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.2rem;
  display: flex; flex-direction: column;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .55s var(--ease-soft), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.area-media { position: absolute; inset: 0; z-index: 0; }
.area-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.42);
  transition: filter .7s var(--ease-out), transform 1.1s var(--ease-soft);
}
.area-card:hover .area-media img { filter: grayscale(0) brightness(.62); transform: scale(1.06); }
.area-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,21,28,.5) 0%, rgba(15,21,28,.82) 56%, rgba(15,21,28,.96) 100%);
}
.area-card > .area-n, .area-card > h3, .area-card > p, .area-card > .area-tag { position: relative; z-index: 2; }
.area-card:hover {
  transition-duration: .15s;
  border-color: rgba(230,178,44,.4);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(230,178,44,.15);
}
.area-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(230,178,44,.16), transparent 65%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.area-card:hover::before { opacity: 1; }
.area-n {
  font-family: var(--serif); font-style: italic; font-size: 3.2rem; color: var(--cream-3);
  line-height: 1; margin-bottom: auto; opacity: .9;
}
.area-card:hover .area-n { color: var(--gold); }
.area-card h3 {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; color: var(--cream);
  margin: 2rem 0 1rem;
}
.area-card p { font-size: .95rem; color: var(--cream-3); }
.area-tag {
  margin-top: 1.6rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: .5rem;
}
.area-tag::before { content: ""; width: 18px; height: 1px; background: var(--gold); }

/* =============================================================
   13. Trayectoria
   ============================================================= */
.trayectoria { padding: clamp(4.5rem, 10vw, 9rem) var(--pad); max-width: var(--maxw); margin-inline: auto; }
.tray-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.tray-subtitle {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.timeline li { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-2); }
.timeline .tl-year { font-family: var(--mono); font-size: .85rem; color: var(--gold); padding-top: .2rem; }
.timeline h4 { font-family: var(--serif); font-size: 1.15rem; color: var(--cream); margin-bottom: .25rem; font-weight: 400; }
.timeline .tl-inst { font-size: .85rem; color: var(--cream-3); }
.badges { display: grid; gap: .8rem; margin-bottom: 2rem; }
.badges li {
  display: flex; align-items: flex-start; gap: .8rem;
  font-size: .92rem; color: var(--cream-2);
  padding: .9rem 1.1rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px;
}
.badges li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: .15rem; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 28%, transparent 30%),
    var(--accent);
  box-shadow: inset 0 0 0 1px rgba(230,178,44,.4);
}
.tray-figure {
  border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  transition: transform .6s var(--ease-soft), box-shadow .6s var(--ease-out), border-color .6s;
}
.tray-figure img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.8);
  transition: filter .7s var(--ease-out), transform 1.1s var(--ease-soft);
}
.tray-figure:hover {
  transform: translateY(-6px);
  border-color: rgba(230,178,44,.4);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.7);
}
.tray-figure:hover img { filter: grayscale(0) brightness(.95); transform: scale(1.04); }
.tray-extra { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2.5rem; border-top: 1px solid var(--line); }
.tray-courses { font-family: var(--serif); font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--cream-2); max-width: 75ch; }
@media (min-width: 960px) {
  .tray-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   13b. Galería coverflow
   ============================================================= */
.gallery { padding: clamp(4rem, 9vw, 8rem) 0 clamp(4.5rem, 9vw, 8rem); background: var(--bg-2); overflow: hidden; }
.gallery-head { padding-inline: var(--pad); max-width: var(--maxw); margin-inline: auto; }
.gallery-hint { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--gold); margin-top: 1rem; }

.coverflow {
  position: relative;
  perspective: 1500px;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  touch-action: pan-y;
  user-select: none;
}
.coverflow-stage {
  position: relative;
  height: clamp(20rem, 56vw, 30rem);
  transform-style: preserve-3d;
}
.cf-item {
  position: absolute; top: 0; left: 50%;
  width: clamp(13rem, 34vw, 21rem);
  aspect-ratio: 3 / 4;
  margin: 0;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
  cursor: pointer;
  will-change: transform, opacity, filter;
  transition: transform .7s var(--ease-soft), opacity .7s var(--ease-out), filter .7s var(--ease-out), box-shadow .7s var(--ease-out);
  transform: translateX(-50%);
}
.cf-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; }
.cf-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1rem 1rem;
  font-family: var(--serif); font-size: 1.15rem; color: var(--cream);
  background: linear-gradient(0deg, rgba(15,21,28,.85), transparent);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.cf-item.is-active { box-shadow: 0 50px 100px -34px rgba(0,0,0,.85), 0 0 0 1px rgba(230,178,44,.22); cursor: default; }
.cf-item.is-active figcaption { opacity: 1; }

.cf-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 50;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.8rem; line-height: 1; color: var(--cream);
  background: rgba(23,33,44,.75); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .35s var(--ease-out), border-color .35s, transform .35s var(--ease-out);
}
.cf-nav:hover { background: var(--accent); border-color: var(--accent); }
.cf-prev { left: clamp(.5rem, 3vw, 3rem); }
.cf-next { right: clamp(.5rem, 3vw, 3rem); }
.cf-prev:hover { transform: translateY(-50%) translateX(-3px); }
.cf-next:hover { transform: translateY(-50%) translateX(3px); }

.cf-caption {
  text-align: center; margin-top: 1.8rem;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  min-height: 1.2em;
}
.cf-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.2rem; }
.cf-dots button {
  width: 8px; height: 8px; border-radius: 50%; padding: 0;
  background: rgba(236,239,243,.25); transition: width .35s var(--ease-out), background-color .35s;
}
.cf-dots button.is-active { width: 26px; border-radius: 6px; background: var(--gold); }

@media (max-width: 539px) {
  .cf-nav { width: 44px; height: 44px; font-size: 1.5rem; }
}

/* =============================================================
   14. Contacto
   ============================================================= */
.contacto { position: relative; padding: clamp(4.5rem, 10vw, 9rem) var(--pad); overflow: hidden; isolation: isolate; }
.contacto-bg { position: absolute; inset: 0; z-index: -2; }
.contacto-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.5); }
.contacto-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,21,28,.92), rgba(15,21,28,.8)), radial-gradient(60% 60% at 80% 20%, rgba(44,61,79,.3), transparent 70%);
}
.contacto-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
}
.contacto-text { color: var(--cream-2); margin: 1.4rem 0 2rem; max-width: 44ch; }
.contacto-list { display: grid; gap: 1.3rem; margin-bottom: 2.2rem; }
.contacto-list li { display: flex; flex-direction: column; gap: .25rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.ci-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.contacto-list a, .contacto-list span:not(.ci-label) { font-size: 1.05rem; color: var(--cream); transition: color .3s; }
.contacto-list a:hover { color: var(--gold); }

.contacto-form-wrap { position: relative; }
.cta-form {
  background: rgba(23, 33, 44, .7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: grid; gap: 1.1rem;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft);
}
.cta-form.is-sent { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.5rem 1rem .6rem; border: 1px solid var(--line);
  background: rgba(15,21,28,.4); color: var(--cream); border-radius: 10px;
  font-family: var(--sans); font-size: .95rem; resize: vertical;
  transition: border-color .3s var(--ease-out), background-color .3s;
}
.field textarea { min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(15,21,28,.6); }
.field label {
  position: absolute; left: 1rem; top: 1.1rem; pointer-events: none; color: var(--cream-3);
  font-size: .95rem; transition: all .25s var(--ease-out);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .45rem; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.cta-submit { width: 100%; margin-top: .4rem; overflow: hidden; }
.cta-form-spinner, .cta-form-check { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px; border: 1.5px solid rgba(236,239,243,.3);
  border-top-color: var(--cream); border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form-check path { stroke: var(--cream); stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cta-form.is-sent-check .cta-form-check { opacity: 1; }
.cta-form.is-sent-check .cta-form-check path { transition: stroke-dashoffset .55s var(--ease-out); stroke-dashoffset: 0; }
.form-note { font-size: .76rem; color: var(--cream-3); text-align: center; }

.cta-success {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .8rem; padding: 2rem;
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .8s var(--ease-out) .2s, transform .9s var(--ease-soft) .2s;
}
.cta-success.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.success-icon { width: 54px; height: 54px; }
.success-icon path { stroke: var(--gold); stroke-width: 2; fill: none; }
.cta-success h3 { font-family: var(--serif); font-size: 1.7rem; color: var(--cream); }
.cta-success p { color: var(--cream-2); max-width: 32ch; }

@media (min-width: 960px) { .contacto-inner { grid-template-columns: 1fr 1fr; align-items: start; } }

/* =============================================================
   15. Footer
   ============================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) var(--pad); }
.footer-inner { max-width: var(--maxw); margin-inline: auto; display: grid; gap: 2rem; align-items: center; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.footer-tp small { font-family: var(--mono); letter-spacing: .12em; font-size: .68rem; color: var(--cream-3); }
.brand-mark--footer { height: 50px; }
.footer-brand p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; letter-spacing: .02em; }
.footer-brand small { font-family: var(--mono); letter-spacing: .12em; font-size: .68rem; }
.footer-brand small { color: var(--cream-3); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { font-size: .9rem; color: var(--cream-2); transition: color .3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { font-size: .78rem; color: var(--cream-3); line-height: 1.6; }
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: 1fr auto 1fr; }
  .footer-nav { justify-content: center; }
  .footer-legal { text-align: right; }
}

/* =============================================================
   15b. Pixel hero (más áreas)
   ============================================================= */
.pixhero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 76vh; display: grid; place-items: center; text-align: center;
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  background: var(--bg);
}
.pix-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .5; }
.pix-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, transparent 0%, var(--bg) 76%);
}
.pix-inner { position: relative; z-index: 2; max-width: var(--maxw); }
.pix-title {
  font-size: clamp(2.4rem, 8.5vw, 6rem); line-height: .95; letter-spacing: -0.03em;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .15em .3em;
  margin: 1rem 0 1.5rem;
}
.pix-w {
  color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(110deg, var(--cream) 0%, var(--cream) 42%, var(--gold-2) 50%, var(--cream) 58%, var(--cream) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 6px 26px rgba(230,178,44,.12));
  animation: pixShimmer 7s linear infinite;
}
.pix-sans { font-family: var(--sans); font-weight: 800; }
.pix-serif { font-family: var(--serif); font-style: italic; font-weight: 500; }
.pix-dot { color: var(--gold); font-family: var(--serif); }
@keyframes pixShimmer { from { background-position: 250% 0; } to { background-position: -50% 0; } }
.pix-sub { max-width: 60ch; margin: 0 auto 2.2rem; color: var(--cream-2); font-size: clamp(1rem, 1.6vw, 1.18rem); }

/* =============================================================
   15c. CTA cinematográfico (accidente / fotomultas)
   ============================================================= */
.cta-cine {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 86vh; display: grid; place-items: center; text-align: center;
  padding: clamp(4rem, 10vw, 9rem) var(--pad);
  background: var(--bg-2);
}
.cine-bg { position: absolute; inset: 0; z-index: 0; }
.cine-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .3; filter: grayscale(.18) brightness(.52) saturate(1.15); }
.cine-grid {
  position: absolute; inset: 0;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(236,239,243,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236,239,243,.045) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
}
.cine-aurora {
  position: absolute; left: 50%; top: 50%; width: 80vw; height: 58vh; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; filter: blur(80px);
  background: radial-gradient(circle at 50% 50%, rgba(230,178,44,.16) 0%, rgba(44,61,79,.14) 42%, transparent 70%);
  animation: cineBreathe 8s ease-in-out infinite alternate;
}
.cta-deudas { background: var(--bg); }
.cta-deudas .cine-aurora { background: radial-gradient(circle at 50% 50%, rgba(44,61,79,.24) 0%, rgba(230,178,44,.12) 42%, transparent 70%); }
@keyframes cineBreathe {
  from { transform: translate(-50%, -50%) scale(1); opacity: .6; }
  to   { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
.cine-word {
  position: absolute; left: 50%; bottom: -1vh; transform: translateX(-50%); z-index: 0;
  font-family: var(--sans); font-weight: 900; font-size: 24vw; line-height: .75; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(236,239,243,.05);
  background: linear-gradient(180deg, rgba(236,239,243,.07) 0%, transparent 58%);
  -webkit-background-clip: text; background-clip: text;
  white-space: nowrap; pointer-events: none; user-select: none;
}
.cine-inner { position: relative; z-index: 2; max-width: 920px; }
.cine-title {
  font-family: var(--serif); font-size: clamp(2rem, 5.6vw, 4rem); line-height: 1.05; margin: 1rem 0 1.3rem;
  color: var(--cream);
  background: linear-gradient(180deg, var(--cream) 0%, color-mix(in srgb, var(--cream) 55%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 26px rgba(0,0,0,.55));
}
.cine-sub { max-width: 52ch; margin: 0 auto 2.4rem; color: var(--cream-2); font-size: clamp(1.02rem, 1.7vw, 1.25rem); }
.cine-sub em { color: var(--gold); font-style: italic; }
.cine-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cine-pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: 1rem 2rem; border-radius: 100px;
  font-weight: 600; font-size: .95rem; color: var(--cream); will-change: transform;
  background: linear-gradient(145deg, rgba(236,239,243,.06), rgba(236,239,243,.02));
  border: 1px solid rgba(236,239,243,.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6), inset 0 1px 1px rgba(236,239,243,.1);
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.cine-pill:hover { background: linear-gradient(145deg, rgba(236,239,243,.12), rgba(236,239,243,.04)); border-color: rgba(230,178,44,.4); }
.cine-pill-primary { background: var(--gold); color: #14202c; border-color: transparent; box-shadow: 0 14px 34px -12px rgba(230,178,44,.5); }
.cine-pill-primary:hover { background: var(--gold-2); border-color: transparent; }
.magnetic-inner { display: inline-flex; align-items: center; gap: inherit; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .pix-w { animation: none; }
  .cine-aurora { animation: none; }
}

/* =============================================================
   15d. Celular (cabecera, footer, flotante) + Limelight nav
   ============================================================= */
.nav-phone {
  display: none; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .01em; color: var(--cream-2);
  padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 100px;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), background-color .3s;
}
.nav-phone svg { width: 16px; height: 16px; color: var(--gold); }
.nav-phone:hover { color: var(--cream); border-color: var(--gold); }
@media (min-width: 1120px) { .nav-phone { display: inline-flex; } }
.nav-mobile-phone { font-family: var(--mono) !important; font-size: 1.05rem !important; color: var(--gold) !important; letter-spacing: .05em; }

.footer-phone {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .2rem;
  font-family: var(--mono); font-size: .92rem; color: var(--gold); transition: color .3s;
}
.footer-phone svg { width: 16px; height: 16px; }
.footer-phone:hover { color: var(--gold-2); }

/* Limelight: foco que resalta el ítem activo del menú */
.nav-links { position: relative; }
.nav-limelight {
  position: absolute; top: -13px; left: 0; width: 34px; height: 4px; border-radius: 0 0 8px 8px;
  background: var(--gold); box-shadow: 0 0 18px 2px var(--gold);
  opacity: 0; pointer-events: none;
  transition: left .4s var(--ease-out), width .4s var(--ease-out), opacity .4s var(--ease-out);
}
.nav-limelight.is-on { opacity: 1; }
.nav-limelight::after {
  content: ""; position: absolute; left: -45%; top: 4px; width: 190%; height: 48px;
  clip-path: polygon(8% 100%, 28% 0, 72% 0, 92% 100%);
  background: linear-gradient(to bottom, rgba(230,178,44,.33), transparent);
  pointer-events: none;
}

/* Botón flotante de WhatsApp */
.fab-wa {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 300;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25D366;
  box-shadow: 0 12px 30px -6px rgba(37,211,102,.55), 0 4px 12px rgba(0,0,0,.35);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  animation: fabPulse 2.8s ease-out infinite;
}
.fab-wa svg { width: 33px; height: 33px; }
.fab-wa:hover { transform: scale(1.08) translateY(-2px); }
@keyframes fabPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5), 0 12px 30px -6px rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0), 0 12px 30px -6px rgba(37,211,102,.55); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 12px 30px -6px rgba(37,211,102,.55); }
}

/* =============================================================
   15e. Borde de gradiente dorado animado (ventanas de información)
   ============================================================= */
@property --grad-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.area-card::after, .cta-form::after, .tray-figure::after, .stack-card-front::after {
  content: ""; position: absolute; inset: 0; z-index: 6; border-radius: inherit; padding: 1.6px;
  background: conic-gradient(from var(--grad-angle),
    #584827 0%, #c7a03c 30%, #f9de90 42%, #c7a03c 52%, #584827 62%, #c7a03c 82%, #f9de90 92%, #584827 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  animation: gradRotate 6s linear infinite;
}
.cta-form { position: relative; }
@keyframes gradRotate { to { --grad-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .fab-wa { animation: none; }
  .area-card::after, .cta-form::after, .tray-figure::after, .stack-card-front::after { animation: none; }
}

/* =============================================================
   16. Reveal
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
/* defensive: split-text elements never invisible */
.reveal[data-split] { opacity: 1; transform: none; }

.is-ready { }

/* =============================================================
   17. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .hero-meta .dot { animation: none; }
}
