:root {
  --bg: #13120E;
  --bg-panel: #1B1A14;
  --ink: #F7F4EC;
  --ink-soft: #B6B2A4;
  --ink-faint: #7C7867;
  --orange: #EA6420;
  --teal: #2E9273;
  --mustard: #EBB23E;
  --card-ink: #14130F;
  --radius: 20px;
  --max-w: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Top strip ---------- */
.top-strip {
  background: var(--bg-panel);
  border-bottom: 1px solid rgba(247,244,236,0.08);
}
.top-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}
.platform-icons { display: flex; gap: 8px; }
.platform-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(247,244,236,0.08);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.top-strip-note { font-size: 0.8rem; color: var(--ink-faint); font-weight: 600; }

/* ---------- Main nav ---------- */
header.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(19, 18, 14, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(247,244,236,0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--max-w); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: clamp(1rem, 4.2vw, 1.2rem); white-space: nowrap; }
.logo .num { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links .caret { font-size: 0.7em; margin-left: 4px; opacity: 0.6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 980px; font-weight: 800; font-size: 0.9rem;
  cursor: pointer; border: 2px solid transparent; white-space: nowrap;
  transition: transform 100ms ease-out, box-shadow 150ms ease-out;
}
.btn-primary { background: var(--orange); color: var(--card-ink); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(234,100,32,0.35); }
.btn-primary:active { transform: scale(0.96); }
.btn-dark { background: var(--card-ink); color: var(--ink); }
.btn-dark:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.btn-dark:active { transform: scale(0.96); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger — hidden on desktop, shown only under the nav-links breakpoint */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 150ms ease, opacity 150ms ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(247,244,236,0.06);
}
header.site-nav.menu-open .mobile-nav { display: flex; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .nav-actions .btn-primary { padding: 9px 14px; font-size: 0.78rem; }
}

@media (max-width: 380px) {
  .nav-inner { padding: 14px 16px; gap: 8px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-primary { padding: 8px 12px; font-size: 0.7rem; }
  .logo { font-size: 0.85rem; }
}

/* ---------- Hero carousel ---------- */
.hero-carousel-wrap { padding: 28px 0 0; }
.hero-carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 24px 12px; margin: 0 -24px;
  scrollbar-width: thin;
}
.hero-slide {
  flex: 0 0 min(1080px, 94vw);
  scroll-snap-align: start;
  border-radius: 32px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  color: var(--card-ink);
}
.hero-slide.c-orange { background: var(--orange); }
.hero-slide.c-teal { background: var(--teal); color: var(--ink); }
.hero-slide.c-mustard { background: var(--mustard); }

.hero-slide .slide-copy { max-width: 54%; position: relative; z-index: 2; }

.hero-slide .tag {
  display: inline-block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; background: rgba(20,19,15,0.14); padding: 6px 14px; border-radius: 980px;
  margin-bottom: 22px;
}
.hero-slide.c-teal .tag { background: rgba(247,244,236,0.16); }

.hero-slide h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 14px;
}
.hero-slide .guest { font-weight: 700; margin: 0 0 24px; opacity: 0.85; }

/* Bleeds off the card's own edge, like Masters of Scale's guest photos —
   sized generously now so a real photo later has room to breathe. */
.hero-avatar {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; font-weight: 800;
  background: rgba(20,19,15,0.14);
  border: 3px solid rgba(20,19,15,0.18);
  z-index: 1;
}
.hero-slide.c-teal .hero-avatar { background: rgba(247,244,236,0.14); border-color: rgba(247,244,236,0.25); }

@media (max-width: 760px) {
  .hero-slide { padding: 40px 32px; min-height: 480px; }
  .hero-slide .slide-copy { max-width: 100%; }
  .hero-avatar { width: 220px; height: 220px; right: -40px; bottom: -40px; font-size: 3rem; opacity: 0.9; }
}

.carousel-dots { display: flex; gap: 8px; justify-content: center; padding: 18px 0 0; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(247,244,236,0.2); }
.carousel-dots span.active { background: var(--orange); width: 22px; border-radius: 6px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.panel { background: var(--bg-panel); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin: 0 0 36px;
}
.section-tag { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
.section-head .see-all { font-weight: 700; color: var(--orange); font-size: 0.92rem; }
.section-head .see-all:hover { text-decoration: underline; }

/* ---------- Card grids (episodes / historias / herramientas share this) ---------- */
/* Capped track size + justify-content:center so an uneven last row
   (e.g. 5 cards in 4 columns, or 8 in 3) centers instead of the leftover
   card(s) stretching to fill the remaining row width. */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 320px)); gap: 20px; justify-content: center; }

.mock-card {
  border-radius: var(--radius);
  padding: 26px;
  color: var(--card-ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 230px;
}
.mock-card.c-orange { background: var(--orange); }
.mock-card.c-teal { background: var(--teal); color: var(--ink); }
.mock-card.c-mustard { background: var(--mustard); }

.mock-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  background: rgba(20,19,15,0.14);
}
.mock-card.c-teal .mock-avatar { background: rgba(247,244,236,0.16); }

.mock-card .mock-icon { width: 40px; height: 40px; }

.mock-card h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; margin: 0; line-height: 1.25; }
.mock-card p { font-size: 0.9rem; margin: 0; opacity: 0.85; line-height: 1.45; }
.mock-card .mock-meta { margin-top: auto; font-size: 0.78rem; font-weight: 700; opacity: 0.7; display: flex; align-items: center; gap: 8px; }
.mock-card .mock-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tools-note {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: -20px 0 36px;
}

/* ---------- Alianzas split panel ---------- */
.split-panel {
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}
.split-panel .side { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.split-panel .side.a { background: var(--mustard); color: var(--card-ink); }
.split-panel .side.b { background: var(--teal); color: var(--ink); }
.split-panel h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.split-panel p { margin: 0 0 22px; opacity: 0.9; }
.split-panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-weight: 700; }

@media (max-width: 760px) { .split-panel { grid-template-columns: 1fr; } }

/* ---------- Newsletter / waitlist panel ---------- */
.newsletter-panel {
  background: var(--orange);
  color: var(--card-ink);
  border-radius: 28px;
  padding: 56px;
  text-align: center;
}
.newsletter-panel h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 14px; }
.newsletter-panel p { margin: 0 0 30px; opacity: 0.85; font-size: 1.05rem; }

.waitlist-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.waitlist-form input[type="email"] {
  flex: 1 1 240px; padding: 14px 18px; border-radius: 980px; border: 2px solid rgba(20,19,15,0.18);
  background: rgba(247,244,236,0.6); font-size: 0.95rem; font-family: inherit; color: var(--card-ink); outline: none;
}
.waitlist-form input[type="email"]::placeholder { color: rgba(20,19,15,0.5); }
.waitlist-form input[type="email"]:focus { border-color: var(--card-ink); }
.form-note { font-size: 0.82rem; opacity: 0.7; margin-top: 14px; }
.form-status { font-size: 0.88rem; margin-top: 10px; min-height: 1.2em; font-weight: 700; }

/* Honeypot — off-screen, not display:none (some bots skip hidden inputs but still fill display:none ones oddly; this is the more reliable trap) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.turnstile-slot {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  min-height: 1px;
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid rgba(247,244,236,0.08); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--ink-faint); }
