/* ═══════════════════════════════════════════════════════════
   EcomRises VSL Page — styles.css
   Archetype: Editorial Dark Warm (adaptado a VSL)
   Palette: near-black warm / cream / gold
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #0C0A08;
  --bg-2:      #141009;
  --bg-card:   #1C1510;
  --cream:     #F2EBDA;
  --cream-2:   #DDD2BC;
  --cream-3:   #8B7E68;
  --gold:      #C49A5B;
  --gold-2:    #D4B070;
  --gold-dark: #8A6B35;
  --line:      rgba(242, 235, 218, 0.10);
  --line-2:    rgba(242, 235, 218, 0.06);

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);

  --nav-h: 72px;
  --container: 960px;
  --container-narrow: 680px;
  --radius: 4px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ── GRAIN ───────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grainShift 0.12s steps(1) infinite;
}

@keyframes grainShift {
  0%  { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(3%, 1%); }
  30% { transform: translate(-1%, 4%); }
  40% { transform: translate(4%, -2%); }
  50% { transform: translate(-3%, 2%); }
  60% { transform: translate(2%, -4%); }
  70% { transform: translate(-4%, 1%); }
  80% { transform: translate(1%, 3%); }
  90% { transform: translate(3%, -1%); }
}

/* ── CONTAINER ───────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── REVEAL ANIMATIONS ───────────────────────────────────── */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

/* Safety: if JS fails, content is visible after 4s */
.reveal-fade, .reveal-up {
  animation: revealSafety 0.01s 4s forwards;
}

@keyframes revealSafety {
  to { opacity: 1; transform: none; }
}

.reveal-fade.is-visible {
  opacity: 1;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 2.5rem;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(12, 10, 8, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--gold-dark);
  border-radius: 100px;
  color: var(--gold);
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(196, 154, 91, 0.06);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

@media (hover: hover) {
  .btn-pill:hover {
    background: rgba(196, 154, 91, 0.14);
    border-color: var(--gold);
    color: var(--gold-2);
  }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-h);
  padding-inline: 2rem;
  overflow: hidden;
}

/* Animated mesh gradient */
.hero-mesh {
  position: absolute;
  inset: -30% -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(196, 154, 91, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(139, 80, 30, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(196, 154, 91, 0.06) 0%, transparent 60%);
  filter: blur(60px);
  animation: meshDrift 18s ease-in-out infinite;
  pointer-events: none;
}

@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  33%       { transform: scale(1.08) rotate(3deg) translateY(-2%); }
  66%       { transform: scale(0.96) rotate(-2deg) translateY(3%); }
}

/* Gold glow bottom */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-eyebrow {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  transition-delay: 0.1s;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--cream);
  text-wrap: balance;
  transition-delay: 0.2s;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--cream-2);
}

.hero-sub {
  font-family: var(--ff-body);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  color: var(--cream-3);
  max-width: 580px;
  line-height: 1.8;
  transition-delay: 0.35s;
}

/* Scroll CTA */
.hero-scroll-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream-3);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition-delay: 0.5s;
  margin-top: 1rem;
}

.hero-scroll-cta svg {
  animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

@media (hover: hover) {
  .hero-scroll-cta:hover { color: var(--gold); }
  .hero-scroll-cta:hover svg { color: var(--gold); }
}

/* ── VIDEO SECTION ───────────────────────────────────────── */
.video-section {
  padding-block: 6rem 5rem;
}

.video-intro {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--cream);
  text-wrap: balance;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--cream-2);
}

/* Video wrapper — 16:9 ratio */
.video-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow:
    0 0 0 1px rgba(196, 154, 91, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(196, 154, 91, 0.04);
  transition-delay: 0.15s;
  /* Aspect ratio container */
  aspect-ratio: 16 / 9;
}

/* Variante para VSL vertical (9:16) — centrado, altura contenida */
.video-wrapper--vertical {
  aspect-ratio: 9 / 16;
  max-width: min(400px, 90vw);
  margin-left: auto;
  margin-right: auto;
}

.video-wrapper--vertical .video-iframe {
  object-fit: cover;
  background: #000;
}

/* Gold glow on the wrapper */
.video-wrapper::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(196, 154, 91, 0.15) 0%, transparent 50%, rgba(196, 154, 91, 0.06) 100%);
  pointer-events: none;
  z-index: 2;
}

/* iframe / video when embedded */
.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* Placeholder (before video is embedded) */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.45) saturate(0.7);
  transition: filter 0.4s;
}

@media (hover: hover) {
  .video-placeholder:hover .video-thumb {
    filter: brightness(0.55) saturate(0.8);
  }
  .video-placeholder:hover .play-ring {
    transform: scale(1.12);
  }
}

.video-play-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  color: var(--cream);
}

.play-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(196, 154, 91, 0.5);
  background: rgba(12, 10, 8, 0.6);
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease-out);
}

.play-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(196, 154, 91, 0.15);
  animation: ringPulse 2.8s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0; transform: scale(1.4); }
}

.video-play-btn svg {
  position: relative;
  z-index: 1;
  margin-left: 4px; /* optical centering for play icon */
  color: var(--gold);
}

.video-label {
  position: absolute;
  bottom: 1.2rem;
  left: 1.4rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-duration {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(12, 10, 8, 0.7);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(196, 154, 91, 0.2);
  backdrop-filter: blur(4px);
}

.video-placeholder-text {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cream-3);
  opacity: 0.6;
}

.video-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.video-note {
  text-align: center;
  margin-top: 2rem;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: var(--cream-3);
  font-style: italic;
  transition-delay: 0.3s;
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-inline: 2rem;
  max-width: var(--container);
  margin: 2rem auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.divider-glyph {
  color: var(--gold-dark);
  font-size: 0.9rem;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  padding-block: 5rem 7rem;
}

.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta-eyebrow {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.cta-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--cream);
  text-wrap: balance;
}

.cta-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--cream-2);
}

.cta-sub {
  font-family: var(--ff-body);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 300;
  color: var(--cream-3);
  max-width: 520px;
  line-height: 1.8;
}

/* Detail items */
.cta-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.cta-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--cream-2);
  font-weight: 300;
}

.detail-icon {
  color: var(--gold);
  font-size: 0.5rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── THE BIG CTA BUTTON ──────────────────────────────────── */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.1rem 2.8rem;
  background: var(--gold);
  color: var(--bg);
  border-radius: 6px;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
  box-shadow:
    0 0 0 1px rgba(196, 154, 91, 0.3),
    0 8px 24px rgba(196, 154, 91, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.4);
  margin-top: 0.5rem;
}

/* Shimmer sweep */
.btn-cta-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shimmerSweep 3s ease-in-out infinite;
}

@keyframes shimmerSweep {
  0%   { transform: translateX(-100%); }
  60%, 100% { transform: translateX(150%); }
}

@media (hover: hover) {
  .btn-cta:hover {
    background: var(--gold-2);
    transform: translateY(-2px);
    box-shadow:
      0 0 0 1px rgba(212, 176, 112, 0.4),
      0 16px 40px rgba(196, 154, 91, 0.3),
      0 4px 8px rgba(0, 0, 0, 0.4);
  }
  .btn-cta:active {
    transform: translateY(0);
  }
}

.btn-cta svg {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

@media (hover: hover) {
  .btn-cta:hover svg {
    transform: translateX(4px);
  }
}

.cta-footnote {
  font-size: 0.78rem;
  color: var(--cream-3);
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.6;
  filter: brightness(0.8);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--cream-3);
  opacity: 0.5;
}

.footer-email a {
  font-size: 0.78rem;
  color: var(--cream-3);
  opacity: 0.6;
  transition: color 0.2s, opacity 0.2s;
}

@media (hover: hover) {
  .footer-email a:hover {
    color: var(--gold);
    opacity: 1;
  }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav {
    padding-inline: 1.25rem;
  }

  .nav-logo img {
    height: 28px;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .hero-sub {
    font-size: 0.92rem;
  }

  .video-section {
    padding-block: 4rem 3.5rem;
  }

  .cta-section {
    padding-block: 3.5rem 5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .video-play-btn {
    width: 60px;
    height: 60px;
  }

  .video-play-btn svg {
    width: 24px;
    height: 24px;
  }

  .btn-cta {
    padding: 1rem 2rem;
    font-size: 0.92rem;
    width: 100%;
    justify-content: center;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .nav-cta { display: none; }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .section-divider {
    padding-inline: 1.25rem;
  }
}

/* ── REDUCED MOTION — ONLY INTRUSIVE ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  /* Kill only the intrusive loops */
  .grain { animation: none; }
  .hero-mesh { animation: none; }
  @keyframes ringPulse { 0%, 100% { opacity: 0.6; transform: scale(1); } }
  .btn-cta-shimmer { animation: none; }
  .hero-scroll-cta svg { animation: none; }

  /* Preserve: hover transitions, reveals, scroll CTA hover */
  html { scroll-behavior: auto; }
}
