/* ══════════════════════════════════════════════════════════════════════
   HOME.CSS — Premium Homepage
   Base design system from comprar.css + premium homepage-specific styles
   ══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════
   1. CSS VARIABLES (from comprar.css)
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --obsidiana: #0B0A0D;
  --obsidiana-light: #100c14;
  --obsidiana-surface: #1a1920;
  --dorado: #F7B500;
  --dorado-soft: #c8a96e;
  --dorado-texto: #E0C07B;
  --dorado-border: rgba(224, 192, 123, 0.55);
  --texto-claro: #FBF5E5;
  --texto-muted: rgba(251, 245, 229, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --section-padding: 6rem 1.5rem;
  --transition: 0.3s ease;
}


/* ═══════════════════════════════════════════════════════════════════
   2. RESET
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--dorado-texto);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover { color: var(--dorado); opacity: 1; }


/* ═══════════════════════════════════════════════════════════════════
   3. WARM DARK THEME (from comprar.css)
   ═══════════════════════════════════════════════════════════════════ */
body {
  background-color: var(--obsidiana);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(247, 181, 0, 0.16), transparent 32%),
    radial-gradient(circle at 82% 74%, rgba(230, 168, 70, 0.22), transparent 42%),
    radial-gradient(circle at 50% 120%, rgba(114, 78, 26, 0.2), transparent 40%),
    linear-gradient(160deg, rgba(12, 8, 18, 0.97), rgba(15, 10, 18, 0.94));
  background-blend-mode: screen, screen, soft-light, normal;
  background-attachment: fixed;
  color: var(--texto-claro);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding);
}

.hidden { display: none !important; }


/* ═══════════════════════════════════════════════════════════════════
   4. TYPOGRAPHY (from comprar.css)
   ═══════════════════════════════════════════════════════════════════ */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dorado-texto);
  line-height: 1.25;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); margin-bottom: 0.5rem; }

.section-label {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dorado-soft);
  margin-bottom: 1rem;
}


/* ═══════════════════════════════════════════════════════════════════
   5. SECTION BACKGROUNDS (from comprar.css)
   ═══════════════════════════════════════════════════════════════════ */
.section-dark-a {
  background:
    radial-gradient(circle at 30% 50%, rgba(247, 181, 0, 0.08), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(120, 82, 32, 0.12), transparent 35%),
    linear-gradient(170deg, #0e0c12 0%, #100c14 50%, #0b0a0d 100%);
}

.section-dark-b {
  background:
    radial-gradient(circle at 60% 30%, rgba(255, 196, 119, 0.06), transparent 35%),
    linear-gradient(170deg, #0b0a0d 0%, #0e0c12 50%, #0b0a0d 100%);
}

.section-dark-c {
  background:
    radial-gradient(circle at 50% 20%, rgba(247, 181, 0, 0.1), transparent 40%),
    radial-gradient(circle at 30% 80%, rgba(120, 82, 32, 0.15), transparent 35%),
    linear-gradient(170deg, #100c14 0%, #0e0c12 50%, #0b0a0d 100%);
}


/* ═══════════════════════════════════════════════════════════════════
   6. GLASS CARD (from comprar.css)
   ═══════════════════════════════════════════════════════════════════ */
.glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(224, 192, 123, 0.35);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow:
    0 0 60px rgba(247, 181, 0, 0.15),
    0 0 120px rgba(247, 181, 0, 0.06),
    0 0 20px rgba(200, 169, 110, 0.1);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  border-color: rgba(224, 192, 123, 0.55);
  box-shadow:
    0 0 80px rgba(247, 181, 0, 0.2),
    0 0 140px rgba(247, 181, 0, 0.08),
    0 0 30px rgba(200, 169, 110, 0.15);
}


/* ═══════════════════════════════════════════════════════════════════
   7. CTA BUTTONS (from comprar.css)
   ═══════════════════════════════════════════════════════════════════ */
.cta-btn {
  display: inline-block;
  background: linear-gradient(120deg, #ffd873, #f7b500);
  color: #0c0a0f;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.4px;
  padding: 1.05rem 2.8rem;
  border-radius: 999px;
  border: 1px solid var(--dorado-border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), 0 0 16px rgba(247, 181, 0, 0.08);
}

.cta-btn:hover {
  background: linear-gradient(120deg, #ffe7a3, #f7b500);
  border-color: rgba(224, 192, 123, 0.85);
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 22px rgba(247, 181, 0, 0.35);
  color: #0c0a0f;
}

.cta-btn:active { transform: translateY(-1px) scale(0.99); }

.cta-large { font-size: 1.1rem; padding: 1.15rem 3rem; }

.cta-outline {
  background: transparent;
  color: var(--dorado-texto);
  border: 2px solid rgba(224, 192, 123, 0.4);
  box-shadow: none;
}

.cta-outline:hover {
  border-color: rgba(224, 192, 123, 0.65);
  background: rgba(224, 192, 123, 0.08);
  transform: translateY(-1px);
  color: var(--dorado-texto);
  box-shadow: none;
}

/* Hero CTA pulsing glow */
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 16px 38px rgba(0,0,0,0.28), 0 0 16px rgba(247,181,0,0.08); }
  50% { box-shadow: 0 16px 38px rgba(0,0,0,0.28), 0 0 32px rgba(247,181,0,0.28); }
}

.hero-cta-primary { animation: cta-glow 3s ease-in-out infinite; }
.hero-cta-primary:hover { animation: none; }


/* ═══════════════════════════════════════════════════════════════════
   8. LANGUAGE SWITCHER (from comprar.css)
   ═══════════════════════════════════════════════════════════════════ */
.lang-switcher {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.lang-switch-btn {
  background: none;
  border: none;
  color: var(--texto-muted);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.lang-switch-btn:hover { color: var(--dorado-texto); }
.lang-switch-btn.is-active { color: var(--dorado); font-weight: 600; }
.lang-switch-sep { color: rgba(251, 245, 229, 0.25); }


/* ═══════════════════════════════════════════════════════════════════
   9. REVEAL ANIMATIONS (from comprar.css)
   ═══════════════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }
[data-reveal-delay="6"] { transition-delay: 0.6s; }


/* ═══════════════════════════════════════════════════════════════════
   ══════════════════════════════════════════════════════════════════
   HOMEPAGE SECTIONS
   ══════════════════════════════════════════════════════════════════
   ═══════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════
   10. HERO
   ═══════════════════════════════════════════════════════════════════ */
.section-hero {
  background-color: var(--obsidiana);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

.section-hero::before {
  content: '';
  position: absolute;
  inset: -16% -6%;
  background:
    radial-gradient(circle at 48% 32%, rgba(255, 202, 120, 0.32), transparent 40%),
    radial-gradient(circle at 60% 60%, rgba(255, 174, 94, 0.3), transparent 42%),
    radial-gradient(circle at 40% 80%, rgba(247, 181, 0, 0.24), transparent 50%);
  filter: blur(4px) saturate(1.1);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.section-hero::after {
  content: '';
  position: absolute;
  inset: -16% -6%;
  background:
    radial-gradient(ellipse at 50% 95%, rgba(255, 202, 120, 0.3), transparent 48%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  z-index: 0;
  pointer-events: none;
}

/* Mobile-first hero (matches comprar's approach) */
.section-hero .section-inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--dorado-texto);
  margin-bottom: 0.5rem;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-kicker {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--dorado-soft);
}

.hero-sub {
  color: var(--texto-muted);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 0.5rem;
}

.home-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
  order: 3;
}

.hero-visual {
  order: 2;
  text-align: center;
}

.hero-mockup {
  width: clamp(200px, 50vw, 380px);
  max-width: 100%;
  margin: 0 auto;
  filter:
    drop-shadow(0px 20px 60px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 40px rgba(247, 181, 0, 0.1));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-block;
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--dorado-texto);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  transition: border-color var(--transition);
}

.hero-badge:hover {
  border-color: rgba(224, 192, 123, 0.4);
}


/* ═══════════════════════════════════════════════════════════════════
   11. SOCIAL PROOF STRIP (from comprar.css)
   ═══════════════════════════════════════════════════════════════════ */
.section-stats {
  border-top: 1px solid rgba(200, 169, 110, 0.12);
  border-bottom: 1px solid rgba(200, 169, 110, 0.12);
}

.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--dorado);
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  color: var(--texto-muted);
  font-weight: 400;
}

.stat-divider {
  color: var(--dorado-soft);
  font-size: 1.8rem;
  opacity: 0.4;
  line-height: 1;
}


/* ═══════════════════════════════════════════════════════════════════
   12. WHAT IS THIS
   ═══════════════════════════════════════════════════════════════════ */
.home-what-inner {
  max-width: 720px;
  margin: 0 auto;
}

.home-what-inner p {
  margin-bottom: 1.5rem;
  line-height: 1.85;
  color: var(--texto-muted);
}

.home-what-inner p strong {
  color: var(--dorado-texto);
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════════
   13. TESTIMONIAL
   ═══════════════════════════════════════════════════════════════════ */
.home-testimonial-inner {
  max-width: 900px;
  margin: 0 auto;
}

.pull-quote {
  text-align: center;
  padding: 1.5rem 1.25rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: visible;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--dorado);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}

.pull-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.7;
  color: var(--texto-claro);
}

.testimonial-video {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.testimonial-caption strong {
  display: block;
  color: var(--dorado-texto);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.testimonial-caption p {
  font-size: 0.9rem;
  color: var(--texto-muted);
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════
   14. FORK SECTION
   ═══════════════════════════════════════════════════════════════════ */
.home-fork-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.fork-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.fork-card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 181, 0, 0.5);
  box-shadow:
    0 0 80px rgba(247, 181, 0, 0.15),
    0 0 30px rgba(200, 169, 110, 0.1);
}

.fork-card h3 {
  color: var(--dorado-texto);
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.fork-card p {
  flex: 1;
  margin-bottom: 1.5rem;
  line-height: 1.65;
  color: var(--texto-muted);
  font-size: 0.95rem;
}

.fork-card .cta-btn { align-self: flex-start; }


/* ═══════════════════════════════════════════════════════════════════
   15. FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.home-footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(200, 169, 110, 0.15);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.home-footer::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--dorado-texto), transparent);
  margin: 0 auto 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--texto-muted);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-links a { opacity: 0.5; transition: opacity var(--transition); }
.footer-links a:hover { opacity: 1; }

.footer-lang {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}


/* ═══════════════════════════════════════════════════════════════════
   16. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* ── All phones (max-width: 767px) ── */
@media (max-width: 767px) {
  :root { --section-padding: 4rem 1.5rem; }

  /* Hero: natural height, not forced 100vh */
  .section-hero { min-height: auto; }
  .section-hero .section-inner {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  /* Hero layout: text → mockup → CTAs */
  .hero-text { order: 1; text-align: center; }
  .hero-visual { order: 2; }
  .home-cta-group {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-mockup {
    width: 42vw;
    max-width: 200px;
  }

  /* Smaller, subtler CTAs on mobile */
  .cta-btn {
    font-size: 0.85rem;
    padding: 0.65rem 1.4rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 8px rgba(247, 181, 0, 0.06);
  }
  .cta-large {
    font-size: 0.88rem;
    padding: 0.7rem 1.4rem;
  }
  .hero-cta-primary { animation: none; }

  /* Pull quote breathing room */
  .pull-quote::before { font-size: 3.5rem; top: -0.25rem; left: 0.5rem; }

  /* Stats strip */
  .stats-strip { gap: 1rem; padding: 2.5rem 1.5rem; }
  .stat-divider { font-size: 1.2rem; }

  /* Hero sub tighter on mobile */
  .hero-sub {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* Glass cards — more inner padding for breathing room */
  .glass-card { padding: 2rem 1.5rem; }
  .fork-card { padding: 1.75rem 1.5rem; }
}

/* ── Small mobile (max-width: 480px) ── */
@media (max-width: 480px) {
  :root { --section-padding: 3.5rem 1.25rem; }

  .section-hero .section-inner {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-mockup {
    width: 45vw;
    max-width: 180px;
  }

  .hero-badges { gap: 0.5rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.3rem 0.75rem; }

  .stats-strip { gap: 0.75rem; padding: 2rem 1rem; }
  .stat-divider { font-size: 1rem; }
  .stat-number { font-size: clamp(1.8rem, 8vw, 2.5rem); }

  .glass-card { padding: 1.5rem 1.25rem; }
  .fork-card { padding: 1.5rem 1.25rem; }
}

/* ── Tablet+ (min-width: 768px) — switch hero to 2-column ── */
@media (min-width: 768px) {
  .section-hero .section-inner {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem 3rem;
    align-items: center;
  }

  /* Desktop: text spans row 1 col 1, visual spans both rows col 2, CTAs row 2 col 1 */
  .hero-text { grid-column: 1; grid-row: 1; order: unset; text-align: left; }
  .hero-visual { grid-column: 2; grid-row: 1 / 3; order: unset; }
  .home-cta-group { grid-column: 1; grid-row: 2; order: unset; flex-direction: row; }

  .hero-mockup {
    width: clamp(260px, 45vw, 380px);
  }

  .testimonial-video {
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
  }

  .home-fork-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .pull-quote { padding: 2.5rem 3rem; margin-bottom: 3rem; }

  .glass-card { padding: 2.5rem 2rem; }
}

/* ── Desktop (min-width: 1024px) ── */
@media (min-width: 1024px) {
  .hero-grid { gap: 4rem; }
  .hero-mockup { width: 380px; }
}

/* ── Large desktop (min-width: 1440px) ── */
@media (min-width: 1440px) {
  .hero-grid { gap: 5rem; }
  .hero-mockup { width: 420px; }
}
