/* =============================================================
   VISIONARIA — Cinematic Dark · oro + verde
   ============================================================= */

/* 1. Tokens
   ============================================================= */
:root {
  --bg:        #08090b;   /* casi negro, tibio */
  --bg-2:      #0d0f12;
  --bg-3:      #14171b;   /* card */
  --cream:     #f3ecdd;   /* texto sobre oscuro, nunca #fff */
  --cream-2:   #cfc7b6;
  --cream-3:   #8a8473;   /* metadatos */
  --gold:      #d9b25a;
  --gold-2:    #b8934a;
  --green:     #b6ff3a;   /* acento Visionaria, uso medido */
  --line:      rgba(243, 236, 221, 0.12);

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

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);

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

/* 2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; 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; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.015em; font-weight: 600; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* 3. Utilities
   ============================================================= */
.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: 600;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  margin-top: 1rem;
  color: var(--cream);
}
.section-title em, .hero-title em, .cta-title em, .manifesto-text em {
  font-style: italic;
  color: var(--gold);
}

/* 4. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .4s var(--ease-out), background .4s var(--ease-out), box-shadow .4s var(--ease-out), color .4s var(--ease-out);
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1407;
  box-shadow: 0 10px 30px -8px rgba(217, 178, 90, .5);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(217, 178, 90, .65); }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-lg { padding: 1.15rem 2.4rem; font-size: 1.05rem; }

/* 5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .8s var(--ease-out), visibility .8s;
}
.splash-eye { width: 150px; opacity: .9; mix-blend-mode: screen; animation: splashPulse 1.6s var(--ease-soft) infinite; }
.splash.is-hidden { opacity: 0; visibility: hidden; }
@keyframes splashPulse {
  0%, 100% { transform: scale(1); opacity: .55; filter: drop-shadow(0 0 0 rgba(217,178,90,0)); }
  50%      { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 22px rgba(217,178,90,.55)); }
}
/* Red de seguridad: si el JS no corre, el splash se va solo */
.splash { animation: splashAutoHide 0s linear 4.5s forwards; }
@keyframes splashAutoHide { to { opacity: 0; visibility: hidden; } }

/* 6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem var(--pad);
  transition: background .5s var(--ease-out), padding .5s var(--ease-out), border-color .5s;
  border-bottom: 1px solid transparent;
  /* Degradado sutil arriba para legibilidad del menú (el logo ya es transparente) */
  background: linear-gradient(180deg, rgba(8,9,11,.5) 0%, rgba(8,9,11,.2) 60%, transparent 100%);
}
.nav.scrolled {
  background: rgba(8, 9, 11, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: .8rem; padding-bottom: .8rem;
}
.nav-brand { display: flex; align-items: center; }
/* Tu logo real, grande y limpio (sin brillos ni agregados) */
.nav-logo { height: 104px; width: 104px; object-fit: contain; transition: height .5s var(--ease-out), width .5s var(--ease-out); }
.nav.scrolled .nav-logo { height: 78px; width: 78px; }
.nav-links { display: flex; align-items: center; gap: clamp(.8rem, 2.2vw, 1.5rem); }
.nav-links a { font-size: .82rem; color: var(--cream-2); transition: color .3s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold); color: var(--gold) !important;
  padding: .5rem 1.1rem; border-radius: 999px;
  transition: background .3s, color .3s !important;
}
.nav-cta:hover { background: var(--gold); color: var(--bg) !important; }

/* 7. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--pad) 5rem;
  overflow: hidden;
  /* fondo de respaldo mientras el video carga */
  background:
    radial-gradient(ellipse at 60% 40%, rgba(217,178,90,.12), transparent 60%),
    var(--bg);
}
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .42;                 /* el ojo va al fondo, no domina */
  filter: saturate(.95) contrast(1.0) brightness(.85);
}
.hero-tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,9,11,.94) 0%, rgba(8,9,11,.7) 48%, rgba(8,9,11,.55) 100%),
    linear-gradient(0deg, var(--bg) 4%, transparent 46%);
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 60% 50%, transparent 26%, rgba(8,9,11,.62) 72%, rgba(8,9,11,.96) 100%);
}
.grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 3; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 8.5vw, 6rem);
  line-height: 1.02;
  margin: 1.3rem 0 1.4rem;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(0,0,0,.6);
}
.hero-sub { max-width: 30rem; color: var(--cream-2); font-size: clamp(1rem, 2.2vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 999px;
  display: grid; place-items: start center; padding-top: 7px;
}
.hero-scroll span { width: 3px; height: 8px; border-radius: 2px; background: var(--gold); animation: scrollDot 1.8s var(--ease-soft) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* 8. Reveal (solo si hay JS — sin JS, todo visible)
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* 9. Manifiesto
   ============================================================= */
.manifesto { max-width: 760px; margin: 0 auto; padding: clamp(2.8rem, 6vw, 4.5rem) var(--pad); text-align: center; }
.manifesto .kicker { display: block; margin-bottom: 1rem; }
.manifesto-text { font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.85rem); line-height: 1.35; color: var(--cream); font-weight: 500; }

/* 10. Productos
   ============================================================= */
.productos { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.1rem 1.9rem 2.3rem;
  transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s;
  transform-style: preserve-3d;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(217,178,90,.14), transparent 60%);
  opacity: 0; transition: opacity .5s;
}
.card:hover { border-color: rgba(217,178,90,.45); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.card:hover::after { opacity: 1; }
.card-glyph {
  display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.2rem;
  font-size: 1.6rem; color: var(--gold);
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(217,178,90,.06);
}
.card-title { font-size: 1.32rem; color: var(--cream); margin-bottom: .7rem; }
.card-title span { color: var(--cream-3); font-weight: 400; font-size: .92rem; font-family: var(--mono); letter-spacing: .02em; }
.card-desc { color: var(--cream-2); font-size: .98rem; }

/* 10b. Planes (pricing)
   ============================================================= */
.planes { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.planes-sub { margin-top: 1rem; color: var(--cream-2); font-size: 1.05rem; }
.planes-grid { display: grid; grid-template-columns: 1fr; gap: 1.3rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: 22px;
  padding: 2.2rem 1.9rem;
  transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s;
  transform-style: preserve-3d;
}
.plan:hover { border-color: rgba(217,178,90,.4); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.plan-destacado {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 30px 60px -30px rgba(217,178,90,.5);
  background: linear-gradient(180deg, #1b1810, var(--bg-2));
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1407;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: 999px; white-space: nowrap;
}
.plan-head { border-bottom: 1px solid var(--line); padding-bottom: 1.3rem; margin-bottom: 1.3rem; }
.plan-name { font-family: var(--serif); font-size: 1.9rem; color: var(--cream); }
.plan-tag { color: var(--cream-3); font-size: .92rem; margin-top: .2rem; }
.plan-price { margin-top: 1rem; display: flex; align-items: baseline; gap: .35rem; }
.plan-amount { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--gold); }
.plan-period { color: var(--cream-3); font-size: 1rem; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.8rem; }
.plan-feats li { position: relative; padding-left: 1.7rem; color: var(--cream-2); font-size: .97rem; }
.plan-feats li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}
.plan-feats li b { color: var(--cream); font-weight: 600; }
.plan-cta { width: 100%; margin-top: auto; }

/* 11. Proceso
   ============================================================= */
.proceso { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.pasos { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1.4rem; counter-reset: none; }
.paso { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.paso-num { font-family: var(--mono); font-size: .9rem; color: var(--green); letter-spacing: .1em; }
.paso-title { font-family: var(--serif); font-size: 1.6rem; margin: .6rem 0 .5rem; color: var(--cream); }
.paso-desc { color: var(--cream-2); max-width: 32ch; }

/* 12. Stats
   ============================================================= */
.stats {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--pad);
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; text-align: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4rem); color: var(--gold); line-height: 1; }
.stat-num-sm { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.1; }
.stat-label { display: block; margin-top: .7rem; color: var(--cream-2); font-size: .95rem; }

/* 13. CTA
   ============================================================= */
.cta { position: relative; text-align: center; padding: clamp(5rem, 14vw, 10rem) var(--pad); overflow: hidden; }
.cta-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 700px; max-width: 120vw;
  background: radial-gradient(circle, rgba(217,178,90,.16), transparent 60%);
  filter: blur(40px); pointer-events: none;
}
.cta .kicker { display: block; margin-bottom: 1.2rem; }
.cta-title { position: relative; font-family: var(--serif); font-size: clamp(2.1rem, 6.5vw, 4.2rem); color: var(--cream); }
.cta-sub { position: relative; max-width: 34rem; margin: 1.4rem auto 2.4rem; color: var(--cream-2); font-size: 1.1rem; }
.cta .btn { position: relative; }

/* 14. Footer
   ============================================================= */
.footer { padding: 3.5rem var(--pad) 2.5rem; text-align: center; border-top: 1px solid var(--line); }
.footer-brand { display: inline-flex; align-items: center; justify-content: center; }
.footer-logo { height: 96px; width: auto; mix-blend-mode: screen; }
.footer-tag { color: var(--gold); font-style: italic; font-family: var(--serif); margin-top: .2rem; }
.footer-info { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: center; margin: 1.6rem 0 1rem; color: var(--cream-2); font-size: .95rem; }
.footer-info a:hover { color: var(--gold); }
.footer-copy { color: var(--cream-3); font-size: .82rem; }

/* 15. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
  .pasos { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .hero { padding-top: 8rem; }
  .hero-tint { background:
    linear-gradient(90deg, rgba(8,9,11,.9) 0%, rgba(8,9,11,.45) 50%, transparent 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 32%); }
  .planes-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .nav-links { gap: .9rem; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* 16. Reduced-motion — solo lo intrusivo (Windows lo trae activado)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .splash-eye, .hero-scroll span { animation: none; }
  html { scroll-behavior: auto; }
}
