/* ═══════════════════════════════════════════════
   BUILGENT DEMO V2 — Cinematic Sales Deck
   Patrón HyperFrame premium + cursor + tilt + parallax
   ═══════════════════════════════════════════════ */

:root {
  --bg: #07090d;
  --bg-soft: #0d1118;
  --bg-deep: #04060a;

  --panel: rgba(255, 248, 238, 0.055);
  --panel-strong: rgba(255, 248, 238, 0.10);
  --panel-hover: rgba(255, 248, 238, 0.13);
  --panel-thick: rgba(255, 248, 238, 0.18);

  --text: #f6f0e8;
  --muted: rgba(246, 240, 232, 0.72);
  --muted-soft: rgba(246, 240, 232, 0.52);
  --muted-faint: rgba(246, 240, 232, 0.34);

  --gold: #c09a59;
  --gold-bright: #d8b478;
  --gold-deep: #8b6d40;
  --gold-soft: rgba(192, 154, 89, 0.2);
  --gold-glow: rgba(192, 154, 89, 0.35);
  --gold-glow-strong: rgba(216, 180, 120, 0.55);

  --blue: rgba(112, 139, 214, 0.16);
  --navy: #0d1f3a;
  --navy-deep: #060b18;

  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.42);
  --shadow-deep: 0 50px 140px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 30px 100px rgba(192, 154, 89, 0.18);

  --radius: 30px;
  --radius-sm: 16px;
  --radius-lg: 42px;
  --max: 1180px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none; /* cursor custom abajo */
}
@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor, .cursor-glow { display: none; }
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: none; }
img, video { display: block; max-width: 100%; }

/* ═══════ CURSOR PREMIUM ═══════ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 280ms var(--ease-out), height 280ms var(--ease-out);
}
.cursor.is-hover {
  width: 56px; height: 56px;
  background: transparent;
  border: 1px solid var(--gold);
  mix-blend-mode: normal;
}
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  transition: opacity 400ms;
  will-change: transform;
}

/* ═══════ FONDO ATMOSFÉRICO ═══════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 15% 12%, rgba(192,154,89,0.10), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(99,123,198,0.09), transparent 22%),
    radial-gradient(circle at 50% 110%, rgba(192,154,89,0.05), transparent 30%),
    linear-gradient(180deg, #06080c 0%, #0b0f16 50%, #060911 100%);
  pointer-events: none;
}
.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/></svg>");
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: -1;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -3%); }
  20% { transform: translate(-8%, 2%); }
  30% { transform: translate(5%, -4%); }
  40% { transform: translate(7%, 5%); }
  50% { transform: translate(-3%, 8%); }
  60% { transform: translate(-7%, -2%); }
  70% { transform: translate(8%, 5%); }
  80% { transform: translate(3%, -7%); }
  90% { transform: translate(-5%, 3%); }
}
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.45;
  animation: drift 22s var(--ease-in-out) infinite alternate;
  will-change: transform;
}
.ambient--a { width: 600px; height: 600px; top: 4%; left: -12%; background: rgba(192,154,89,0.20); }
.ambient--b { width: 700px; height: 700px; top: 40%; right: -18%; background: rgba(99,123,198,0.14); animation-delay: -7s; }
.ambient--c { width: 480px; height: 480px; bottom: 6%; left: 22%; background: rgba(216,180,120,0.12); animation-delay: -14s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, -50px) scale(1.15); }
}

/* ═══════ TOP NAV ═══════ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: rgba(7, 9, 13, 0.55);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
}
.topnav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.topnav__logo {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow-strong);
  animation: glow-pulse 2.4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 14px var(--gold-glow); }
  50% { box-shadow: 0 0 28px var(--gold-glow-strong); }
}
.topnav__tag {
  color: var(--muted-faint);
  font-weight: 300;
  font-style: italic;
  font-family: var(--font-display);
}
.topnav__progress {
  font-family: 'Inter', monospace;
  font-size: 13px;
  letter-spacing: 0.10em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.topnav__step {
  color: var(--gold);
  font-weight: 700;
}
.topnav__sep, .topnav__total {
  color: var(--muted-faint);
}
.topnav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  padding: 9px 18px;
  border: 1px solid var(--stroke-strong);
  border-radius: 100px;
  background: var(--panel);
  transition: all 240ms var(--ease-out);
  font-weight: 500;
  will-change: transform;
}
.topnav__cta:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  box-shadow: 0 0 24px var(--gold-glow);
}
.topnav__cta svg { transition: transform 240ms; }
.topnav__cta:hover svg { transform: translateX(3px); }

/* ═══════ SCENE BASE ═══════ */
main { padding-top: 70px; }
.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  overflow: hidden;
}
.scene__inner {
  width: min(var(--max), 100%);
  position: relative;
  z-index: 2;
}
.scene__inner--narrow { max-width: 880px; }
.scene__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.scene__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,9,13,0.45), rgba(7,9,13,0.78));
  z-index: 1;
}

/* ═══════ TYPO ═══════ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.kicker__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: glow-pulse 2.4s ease-in-out infinite;
}
.kicker__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold-bright);
}

.hero__title,
.title-mega {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.04;
  color: var(--text);
}
.hero__title {
  font-size: clamp(48px, 6.5vw, 92px);
  margin-bottom: 38px;
}
.title-mega {
  font-size: clamp(40px, 5.2vw, 68px);
  margin-bottom: 32px;
}
.title-mega--xl {
  font-size: clamp(56px, 7vw, 96px);
}
.hero__title em,
.title-mega em {
  font-style: italic;
  color: var(--gold);
}
.gold-glow {
  font-style: italic;
  color: var(--gold);
  text-shadow:
    0 0 30px var(--gold-glow),
    0 0 60px rgba(192, 154, 89, 0.2);
}
.lead {
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 40px;
  font-weight: 300;
}
.lead strong { color: var(--text); font-weight: 500; }

/* ═══════ SLIDE 1 · HERO CINEMÁTICO ═══════ */
.hero {
  min-height: 100vh;
  padding: 100px 36px 60px;
  align-items: flex-end;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.45) saturate(0.85);
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,9,13,0.55) 0%, rgba(7,9,13,0.30) 30%, rgba(7,9,13,0.85) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(192,154,89,0.18), transparent 60%);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.hero__scanline {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 3px
  );
}
.hero__inner {
  position: relative;
  z-index: 3;
  width: min(var(--max), 100%);
}

.line {
  display: block;
  overflow: hidden;
}
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotate(2deg);
  transition:
    opacity 800ms var(--ease-out),
    transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms + 200ms);
  margin-right: 0.22em;
}
.word.italic { font-style: italic; }
.word.gold { color: var(--gold); }
.word.glow {
  text-shadow: 0 0 30px var(--gold-glow), 0 0 60px rgba(192,154,89,0.2);
}
.hero.is-ready .word {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.hero__sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}
.meta-pill {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 18px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  backdrop-filter: blur(14px);
}
.meta-pill__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-faint);
  margin-bottom: 2px;
}
.meta-pill__value {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-soft);
  padding: 8px 0;
  transition: color 280ms;
}
.hero__scroll:hover { color: var(--gold); }
.hero__scroll-line {
  width: 40px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.hero__scroll svg {
  animation: bounce 2.4s ease-in-out infinite;
  color: var(--gold);
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ═══════ MARQUEE (en hero borde inferior) ═══════ */
.marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  overflow: hidden;
  padding: 16px 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 64px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee__track span { flex-shrink: 0; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════ SLIDE 2 · SERGIO ═══════ */
.scene--sergio .scene__bg--sergio {
  background:
    linear-gradient(105deg, rgba(7,9,13,0.65) 0%, rgba(7,9,13,0.35) 60%, rgba(7,9,13,0.85) 100%),
    url('./media/sergio-office.jpg') center/cover,
    radial-gradient(ellipse at 75% 70%, rgba(99,123,198,0.15), transparent 50%),
    linear-gradient(135deg, #0a1024, #060911, #0d1f3a);
}
.scene--sergio .scene__veil {
  background: radial-gradient(circle at center, transparent 30%, rgba(4,6,10,0.6));
}

.call-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 36px;
  background: var(--panel-thick);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  margin: 56px 0 72px;
  max-width: 620px;
  position: relative;
  box-shadow: var(--shadow-deep), 0 0 60px rgba(192,154,89,0.08);
  transform-style: preserve-3d;
  transition: transform 480ms var(--ease-out);
}
.call-card__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--bg);
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 40px var(--gold-glow);
}
.call-card__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: pulse-out 2.4s ease-out infinite;
}
.call-card__pulse--2 { animation-delay: 1.2s; }
@keyframes pulse-out {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}
.call-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-faint);
  margin-bottom: 6px;
}
.call-card__status {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}
.call-card__name {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 6px;
  color: var(--text);
}
.call-card__role {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 16px;
}
.call-card__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.call-card__wave span {
  display: inline-block;
  width: 2px;
  background: var(--gold);
  border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
  opacity: 0.7;
}
.call-card__wave span:nth-child(odd) { height: 60%; }
.call-card__wave span:nth-child(even) { height: 100%; }
.call-card__wave span:nth-child(3n) { height: 40%; }
.call-card__wave span:nth-child(5n) { height: 80%; }
.call-card__wave span:nth-child(7n) { height: 50%; }
.call-card__wave span:nth-child(11n) { height: 90%; }
.call-card__wave span { animation-delay: calc(var(--n, 0) * 60ms); }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.big-statement {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--muted);
  margin-top: 24px;
}
.big-statement__strong {
  color: var(--text);
  margin-top: 12px;
}

/* ═══════ SLIDE 3 · TIMELINE STICKY (DOLOR) ═══════ */
.timeline-story {
  position: relative;
  height: 360vh;
}
.timeline-stage {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.timeline-bg-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s var(--ease-in-out), transform 6s var(--ease-out);
  transform: scale(1.08);
}
.bg-layer.active {
  opacity: 1;
  transform: scale(1);
}
/* placeholders cinematic gradients (reemplazar con imágenes generadas) */
.bg-layer--pain1 {
  background-image:
    linear-gradient(135deg, rgba(7,9,13,0.7), rgba(13,31,58,0.65)),
    url('./media/pain-overworked.jpg'),
    radial-gradient(ellipse at 30% 70%, #2a1e0c, #08060a 70%);
  background-blend-mode: normal, multiply, normal;
}
.bg-layer--pain2 {
  background-image:
    linear-gradient(135deg, rgba(7,9,13,0.6), rgba(13,31,58,0.7)),
    url('./media/pain-chaos.jpg'),
    radial-gradient(ellipse at 70% 30%, #1a1a2e, #06080c 70%);
  background-blend-mode: normal, multiply, normal;
}
.bg-layer--pain3 {
  background-image:
    linear-gradient(135deg, rgba(7,9,13,0.65), rgba(8,11,16,0.75)),
    url('./media/pain-vacation.jpg'),
    radial-gradient(ellipse at 50% 50%, #2c1f0f, #060911 70%);
  background-blend-mode: normal, multiply, normal;
}
.timeline-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,9,13,0.4), rgba(7,9,13,0.5) 50%, rgba(7,9,13,0.78));
  pointer-events: none;
}
.timeline-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 36px;
}
.timeline-phases {
  position: relative;
  min-height: 320px;
  margin-top: 48px;
}
.phase {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out);
  pointer-events: none;
}
.phase.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.phase__num {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 160px);
  line-height: 1;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  text-shadow: 0 0 60px var(--gold-glow);
}
.phase .title-mega {
  margin-bottom: 24px;
}
.phase__desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 580px;
  font-weight: 300;
}

.timeline-rail {
  position: absolute;
  right: 36px; top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.timeline-rail__progress {
  position: relative;
  width: 1px;
  height: 200px;
  background: var(--stroke-strong);
  overflow: hidden;
}
.timeline-rail__progress::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: var(--p, 0%);
  background: var(--gold);
  transition: height 240ms;
  box-shadow: 0 0 14px var(--gold-glow);
}
.timeline-rail__dots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted-faint);
  transition: all 280ms;
}
.dot.active {
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow-strong);
  transform: scale(1.4);
}

/* ═══════ SLIDE 4 · CASAIA LIVE ═══════ */
.scene--casaia {
  padding: 100px 32px;
}
.casaia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}
.metric-card {
  padding: 22px 26px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  transition: all 380ms var(--ease-out);
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
}
.metric-card:hover {
  background: var(--panel-hover);
  border-color: var(--gold-soft);
  transform: translateY(-3px);
}
.metric-card--accent {
  background: linear-gradient(135deg, var(--gold-soft), transparent);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(192,154,89,0.12);
}
.metric-card__num {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.metric-card__unit {
  font-size: 28px;
  color: var(--gold-bright);
}
.metric-card--accent .metric-card__num { color: var(--gold-bright); }
.metric-card__label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}
.casaia-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  transition: all 280ms var(--ease-out);
  will-change: transform;
}
.casaia-cta:hover {
  background: var(--gold-bright);
  box-shadow: 0 0 30px var(--gold-glow-strong);
}

/* iPhone 3D real con video */
.phone-3d {
  position: relative;
  width: 320px;
  margin: 0 auto;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 480ms var(--ease-out);
}
.phone-3d__frame {
  background: linear-gradient(145deg, #1f1f24, #0a0a0c);
  border-radius: 44px;
  padding: 14px 10px;
  box-shadow:
    var(--shadow-deep),
    0 0 80px rgba(192,154,89,0.12),
    inset 0 1px 1px rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.phone-3d__notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #050505;
  border-radius: 0 0 18px 18px;
  z-index: 5;
}
.phone-3d__screen {
  background: #000;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 19.5;
}
.phone-3d__video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.phone-3d__overlay-top,
.phone-3d__overlay-bottom {
  position: absolute;
  left: 0; right: 0;
  z-index: 4;
  padding: 44px 14px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.phone-3d__overlay-bottom {
  bottom: 0; top: auto;
  padding: 14px 14px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
}
.ig-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ig-bar__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid white;
}
.ig-bar__handle {
  display: flex;
  flex-direction: column;
  color: white;
  font-size: 12px;
}
.ig-bar__handle strong { font-weight: 600; }
.ig-bar__handle span { font-size: 10px; opacity: 0.8; }
.ig-actions {
  display: flex;
  gap: 16px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.phone-3d__reflection {
  position: absolute;
  inset: 0;
  border-radius: 44px;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255,255,255,0.06) 50%,
    transparent 70%);
}
.phone-3d__caption {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-display);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: glow-pulse 1.6s ease-in-out infinite;
}

/* Feed strip (carrusel scrollable horizontal) */
.feed-strip {
  margin-top: 80px;
}
.feed-strip__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-faint);
  margin-bottom: 20px;
  text-align: center;
}
.feed-strip__track {
  display: flex;
  gap: 16px;
  padding: 4px 0 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
.feed-strip__track::-webkit-scrollbar { display: none; }
.feed-strip__track img {
  flex-shrink: 0;
  width: 180px;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  scroll-snap-align: start;
  border: 1px solid var(--stroke);
  transition: all 320ms var(--ease-out);
}
.feed-strip__track img:hover {
  transform: translateY(-6px) scale(1.04);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px var(--gold-glow);
}

/* ═══════ SLIDE 5 · STEPS CINEMATIC ═══════ */
.steps-cinematic {
  list-style: none;
  margin-top: 64px;
  position: relative;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  margin-bottom: 16px;
  backdrop-filter: blur(14px);
  transition: all 420ms var(--ease-out);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-soft), transparent 50%);
  opacity: 0;
  transition: opacity 480ms;
  pointer-events: none;
}
.step:hover {
  transform: translateY(-4px);
  background: var(--panel-hover);
  border-color: var(--gold-soft);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.step:hover::before { opacity: 0.7; }
.step__num-wrap {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step__num {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
}
.step__num-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold), transparent);
  margin-top: 12px;
}
.step--final .step__num { color: var(--gold-bright); text-shadow: 0 0 30px var(--gold-glow); }
.step__body {
  flex: 1;
  position: relative;
  z-index: 1;
}
.step__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.step__title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.step__time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--muted-soft);
}
.step__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
  max-width: 720px;
}
.step__desc em { color: var(--gold); font-style: italic; }
.step__desc strong { color: var(--text); font-weight: 500; }

/* ═══════ CASAIA SUBLINE + FEED MOCKUP (slide 4 personalizado por sector) ═══════ */
.casaia-subline {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 24px);
  font-style: italic;
  line-height: 1.45;
  color: var(--muted);
  margin: -16px 0 40px;
  max-width: 720px;
  font-weight: 400;
}
.casaia-subline strong {
  color: var(--gold-bright);
  font-style: normal;
  font-weight: 600;
}

.feed-strip__track--mock {
  gap: 14px;
  padding: 6px 4px 24px;
}
.feed-strip__track--mock .feed-mock-card {
  flex-shrink: 0;
  width: 200px;
  height: 280px;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  transition: all 380ms var(--ease-out);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.feed-mock-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.feed-mock-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 30px var(--gold-glow);
  border-color: var(--gold);
}
.feed-mock-card__type {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  align-self: flex-start;
  backdrop-filter: blur(8px);
}
.feed-mock-card__icon {
  font-size: 56px;
  line-height: 1;
  align-self: center;
  margin: auto 0;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}
.feed-mock-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.97);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-weight: 500;
}
.feed-mock-card__brand {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
  font-weight: 600;
}
/* Gradients por tipo */
.feed-mock-card--navy { background: linear-gradient(135deg, #1e3a5f, #0d1f3a, #061224); }
.feed-mock-card--gold { background: linear-gradient(135deg, #c09a59, #8b6d40, #4d3a1f); }
.feed-mock-card--sage { background: linear-gradient(135deg, #4a6b54, #2e4234, #16231b); }
.feed-mock-card--amber { background: linear-gradient(135deg, #c4724a, #7a4528, #3e2114); }
.feed-mock-card--wine { background: linear-gradient(135deg, #6b2c3e, #3e1a25, #1f0d14); }

@media (max-width: 540px) {
  .feed-strip__track--mock .feed-mock-card { width: 160px; height: 230px; padding: 14px; }
  .feed-mock-card__icon { font-size: 44px; }
  .feed-mock-card__title { font-size: 14px; }
}

/* ═══════ SECTOR EXAMPLE (inyectado al final del slide 5) ═══════ */
.sector-example {
  margin-top: 56px;
  padding: 40px 44px;
  background:
    linear-gradient(135deg, var(--gold-soft) 0%, rgba(99,123,198,0.04) 60%, transparent 100%),
    var(--panel-strong);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}
.sector-example::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold), transparent);
}
.sector-example__header {
  margin-bottom: 24px;
}
.sector-example__tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 14px;
  font-weight: 600;
}
.sector-example__tag strong {
  color: var(--text);
  font-weight: 700;
}
.sector-example__headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.sector-example__points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
.sector-example__points li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  padding-left: 22px;
  position: relative;
  font-weight: 300;
}
.sector-example__points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}
@media (max-width: 760px) {
  .sector-example { padding: 28px 24px; }
  .sector-example__points { grid-template-columns: 1fr; }
}

/* ═══════ SLIDE 6 · PRICING ═══════ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 56px 0 40px;
}
.pricing-card {
  position: relative;
  padding: 40px 36px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  transition: all 380ms var(--ease-out);
  transform-style: preserve-3d;
  overflow: hidden;
}
.pricing-card:hover {
  background: var(--panel-hover);
  transform: translateY(-6px);
}
.pricing-card--feature {
  background: linear-gradient(135deg, var(--gold-soft) 0%, rgba(99,123,198,0.05) 100%);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.pricing-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, transparent 40%, var(--gold-glow) 70%, transparent);
  opacity: 0;
  transition: opacity 480ms;
  pointer-events: none;
}
.pricing-card--feature:hover .pricing-card__glow { opacity: 0.5; }
.pricing-card__badge {
  position: absolute;
  top: -14px; right: 28px;
  padding: 6px 16px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 6px 20px var(--gold-glow-strong);
}
.pricing-card__head {
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 24px;
  margin-bottom: 28px;
  position: relative;
}
.pricing-card__name {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.pricing-card__tag {
  font-size: 13px;
  color: var(--muted);
}
.pricing-card__nums {
  display: flex;
  gap: 36px;
  margin-bottom: 32px;
  align-items: baseline;
}
.price-block {
  display: flex;
  flex-direction: column;
}
.price-block__amount {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.price-block--monthly .price-block__amount {
  font-size: 36px;
  color: var(--text);
}
.price-block__label {
  font-size: 12px;
  color: var(--muted-soft);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.pricing-card__features {
  list-style: none;
}
.pricing-card__features li {
  padding: 12px 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-card__features li:last-child { border: none; }
.pricing-card__features li strong { color: var(--text); font-weight: 500; }

.founder-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--gold-soft), transparent);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
  transition: all 380ms var(--ease-out);
}
.founder-banner:hover {
  box-shadow: 0 20px 60px rgba(192,154,89,0.2);
}
.founder-banner__icon {
  font-size: 38px;
  color: var(--gold);
  filter: drop-shadow(0 0 14px var(--gold-glow-strong));
}
.founder-banner__title {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
}
.founder-banner__title strong { color: var(--gold); font-weight: 600; }
.founder-banner__sub {
  font-size: 13px;
  color: var(--muted);
}
.founder-banner__sub strong { color: var(--gold-bright); font-weight: 600; }
.founder-banner__pulse {
  position: absolute;
  right: 32px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold-glow);
  animation: pulse-out 2.4s ease-out infinite;
}
.pricing-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--muted-soft);
  font-style: italic;
  font-family: var(--font-display);
}

/* ═══════ SLIDE 7 · CTA FINAL ═══════ */
.scene--cta .scene__bg--cta {
  background:
    linear-gradient(180deg, rgba(7,9,13,0.65) 0%, rgba(7,9,13,0.45) 40%, rgba(7,9,13,0.92) 100%),
    url('./media/cta-dawn.jpg') center/cover,
    radial-gradient(ellipse at 50% 30%, rgba(192,154,89,0.22), transparent 50%),
    linear-gradient(180deg, #0a0a14, #050608);
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 56px 0 80px;
}
.cta-card {
  position: relative;
  padding: 36px 30px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  transition: all 380ms var(--ease-out);
  overflow: hidden;
  will-change: transform;
}
.cta-card:hover {
  transform: translateY(-8px);
  background: var(--panel-hover);
  border-color: var(--stroke-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.cta-card--primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep));
  color: var(--bg);
  border-color: var(--gold);
  box-shadow: 0 24px 60px rgba(192,154,89,0.3);
}
.cta-card--primary:hover {
  box-shadow: 0 40px 100px rgba(192,154,89,0.45);
}
.cta-card__bg-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 40%);
  opacity: 0;
  transition: opacity 480ms;
  pointer-events: none;
}
.cta-card--primary:hover .cta-card__bg-glow { opacity: 1; }
.cta-card__icon {
  margin-bottom: 20px;
  color: currentColor;
  opacity: 0.9;
}
.cta-card__icon svg {
  width: 32px; height: 32px;
}
.cta-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.cta-card__desc {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 28px;
  flex: 1;
  opacity: 0.85;
  font-weight: 300;
}
.cta-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-top: 1px solid currentColor;
  padding-top: 18px;
  opacity: 0.85;
}
.cta-card__action svg { transition: transform 240ms; }
.cta-card:hover .cta-card__action svg { transform: translateX(4px); }
.cta-card--primary .cta-card__action {
  border-top-color: rgba(0,0,0,0.2);
}

.footer {
  text-align: center;
  padding-top: 60px;
  border-top: 1px solid var(--stroke);
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
}
.footer__logo {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow-strong);
}
.footer__signature {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 12px;
}
.footer__signature em {
  color: var(--gold);
  font-style: italic;
}
.footer__line {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0;
}
.footer__line--small {
  font-size: 12px;
  color: var(--muted-soft);
  margin-top: 16px;
}
.footer__line a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(192,154,89,0.3);
  text-underline-offset: 3px;
}
.footer__line a:hover { text-decoration-color: var(--gold); }

/* ═══════ REVEAL ANIMATIONS ═══════ */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity, filter;
  transition:
    opacity 900ms var(--ease-out),
    transform 1000ms var(--ease-out),
    filter 800ms var(--ease-out);
  transition-delay: calc(var(--delay, 0) * 1ms);
}
[data-reveal="fade-up"] { transform: translateY(32px); }
[data-reveal="fade-right"] { transform: translateX(-32px); }
[data-reveal="zoom-fade"] { transform: scale(0.94); filter: blur(8px); }
[data-reveal="mask-up"] {
  transform: translateY(60%);
  clip-path: inset(0 0 100% 0);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
  clip-path: inset(0 0 0 0);
}

/* ═══════ TILT 3D ═══════ */
[data-tilt], [data-tilt-strong] {
  transform-style: preserve-3d;
  transition: transform 480ms var(--ease-out);
  will-change: transform;
}

/* ═══════ MAGNETIC ═══════ */
.magnetic, .magnetic-card {
  will-change: transform;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1100px) {
  .casaia-grid { gap: 32px; }
  .pricing-grid { gap: 18px; }
  .cta-grid { gap: 16px; }
  .timeline-rail { display: none; }
}

@media (max-width: 880px) {
  .scene { padding: 60px 20px; }
  .hero { padding: 80px 20px 40px; }
  .topnav { padding: 14px 18px; }
  .topnav__cta { display: none; }
  .topnav__brand { font-size: 13px; }
  .topnav__tag { display: none; }

  .pricing-grid,
  .casaia-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .casaia-grid__right { order: -1; }
  .phone-3d { width: 280px; }

  .pricing-card { padding: 32px 24px; }
  .pricing-card__nums { gap: 24px; flex-wrap: wrap; }

  .call-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 28px 24px;
  }

  .step { gap: 20px; padding: 24px 20px; }
  .step__num-wrap { width: 56px; }
  .step__num { font-size: 32px; }

  .hero__meta { gap: 8px; }
  .meta-pill { padding: 8px 14px; }
  .meta-pill__value { font-size: 13px; }

  .marquee__track { font-size: 14px; gap: 40px; }
}

@media (max-width: 540px) {
  .hero__title { font-size: clamp(38px, 11vw, 56px); }
  .title-mega { font-size: clamp(30px, 8vw, 44px); }
  .title-mega--xl { font-size: clamp(40px, 10vw, 60px); }
  .phase__num { font-size: clamp(64px, 18vw, 100px); }
  .metric-card__num { font-size: 40px; }
  .price-block__amount { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
