/* ============================================
   Esteban Club — réplica de Kajabi
   Colores y tipografías extraídos del original.
   ============================================ */

:root {
  --bg: #000000;
  --bg-card: #0e0e10;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);
  --accent: #2D18B8;
  --accent-light: #918BEE;
  --accent-hover: #3a23d6;
  --radius: 14px;
  --maxw: 1240px;
  --font-head: 'Fira Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}

.accent { color: var(--accent); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .25s ease, box-shadow .25s ease;
  border: none;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(45, 24, 184, 0.4);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-lg {
  padding: 18px 40px;
  font-size: 16px;
  border-radius: 10px;
}

/* ============ NAV ============ */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 48px; width: auto; }
.nav-actions { display: flex; gap: 14px; }
.nav-actions .btn { padding: 12px 26px; font-size: 13px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.7)),
    url("../img/hero-bg.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  will-change: transform;
}
.hero-content { position: relative; max-width: 1000px; }
.hero-title {
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

/* ============ SECTIONS ============ */
.section-title {
  text-align: center;
  padding: 80px 24px 40px;
  /* divider removed for seamless black */
}
.section-title h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: 0.02em;
}

.story {
  padding: 80px 24px;
  /* divider removed for seamless black */
}
.story-section-title {
  text-align: center;
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 60px;
  letter-spacing: 0.02em;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: center;
}
.story-img-right .story-grid > .story-text { order: 0; }
.story-img-right .story-grid > .story-image { order: 1; }
.story-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  object-fit: cover;
}
.story-text h3 {
  font-size: 36px;
  margin-bottom: 16px;
}
.story-text p {
  margin-bottom: 14px;
  color: var(--text-muted);
}

/* ============ CTA MID ============ */
.cta-mid {
  text-align: center;
  padding: 100px 24px;
  /* divider removed for seamless black */
}
.cta-mid h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

/* ============ FEATURES ============ */
.features {
  padding: 100px 24px;
  /* divider removed for seamless black */
  text-align: center;
}
.features h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: 12px;
}
.features-subtitle {
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--text);
  font-size: 18px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: center;
}
.features-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
.features-list {
  list-style: none;
  text-align: left;
}
.features-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  font-weight: 700;
  font-size: 16px;
}
.features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

/* ============ PRICING ============ */
.pricing {
  padding: 100px 24px;
  /* divider removed for seamless black */
  text-align: center;
}
.pricing h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: 60px;
  letter-spacing: 0.01em;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 30px;
  justify-content: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 50px 36px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(145,139,238,0.25); }
.plan-featured {
  border-color: rgba(145,139,238,0.35);
  box-shadow: 0 30px 80px rgba(45,24,184,0.18);
}
.plan-title {
  color: var(--accent);
  font-size: 22px;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.plan-price {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}
.plan-cycle {
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-size: 14px;
  margin-bottom: 30px;
}
.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
  flex: 1;
}
.plan-features li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-weight: 700;
  font-size: 15px;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}
.plan-cta { align-self: stretch; }

/* ============ FAQ ============ */
.faq {
  padding: 80px 24px 100px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  color: #161e2a;
  border-radius: var(--radius);
  margin-bottom: 16px;
  padding: 20px 28px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  padding-right: 36px;
  outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--accent-light);
  transition: transform .25s ease;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-top: 18px; color: #2a2f3a; line-height: 1.7; font-weight: 400; }
.faq-answer p { margin-bottom: 12px; font-weight: 400; }
.faq-answer strong { font-weight: 700; }

/* ============ FOOTER ============ */
.footer {
  background: #000;
  /* divider removed for seamless black */
  padding: 40px 24px 16px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo img { height: 40px; }
.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-nav a { color: var(--text); }
.footer-nav a:hover { color: var(--accent-light); }
.footer-copy { color: var(--text-muted); }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1),
              transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .nav { padding: 16px 20px; }
  .nav-logo img { height: 38px; }
  .nav-actions .btn { padding: 10px 18px; font-size: 12px; }
  .story { padding: 60px 20px; }
  .story-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .story-img-right .story-grid > .story-text { order: 1; }
  .story-img-right .story-grid > .story-image { order: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan { padding: 36px 24px 32px; }
  .hero { padding: 130px 20px 80px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn-lg { padding: 16px 32px; font-size: 14px; }
  .features-list li, .plan-features li { font-size: 14px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
