/* ═══════════════════════════════════════════
   BLEX ACADEMY – style.css  v2
   ═══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --blue:        #29ABE2;
  --blue-dark:   #0e90cc;
  --orange:      #ffa115;
  --orange-dark: #e68a0d;
  --dark:        #333333;
  --charcoal:    #1a1a1a;
  --silver:      #C0B8B8;
  --white:       #ffffff;
  --bg:          #0d0d0d;
  --card-bg:     #141414;
  --border:      rgba(255,255,255,0.07);
  --glow:        rgba(41,171,226,0.35);
  --glow-sm:     rgba(41,171,226,0.18);
  --glow-orange: rgba(255,161,21,0.35);
  --green-wa:    #25D366;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --t: 0.25s ease;
}

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

body {
  font-family:'Lato', sans-serif;
  background:var(--bg);
  color:var(--white);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

/* ── NOISE ── */
body::before {
  content:'';
  position:fixed; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events:none; z-index:9999; opacity:.35;
}

/* ── ICON HELPERS ── */
.icon-xs { width:14px; height:14px; display:inline-flex; align-items:center; flex-shrink:0; }
.icon-sm { width:18px; height:18px; display:inline-flex; align-items:center; flex-shrink:0; }
.icon-md { width:22px; height:22px; display:inline-flex; align-items:center; flex-shrink:0; }
.icon-lg { width:28px; height:28px; display:inline-flex; align-items:center; flex-shrink:0; }

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(90deg, var(--blue) 0%, #7dd3f8 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.highlight { color:var(--blue); }

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 48px;
  background:rgba(13,13,13,0.88);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(41,171,226,0.12);
  transition:padding var(--t), box-shadow var(--t);
}
nav.scrolled {
  padding:9px 48px;
  box-shadow:0 6px 40px rgba(0,0,0,0.55);
}

.logo-wrap { display:flex; align-items:center; gap:12px; text-decoration:none; }

.nav-logo-img {
  width:40px; height:40px;
  object-fit:contain;
  image-rendering:crisp-edges;
}

.logo-text  { font-size:17px; font-weight:700; color:var(--white); letter-spacing:.4px; }
.logo-sub   { font-size:9px; color:var(--silver); letter-spacing:2px; text-transform:uppercase; }

nav ul { list-style:none; display:flex; gap:32px; }
nav ul li a {
  color:#bbb; text-decoration:none;
  font-size:13px; font-weight:600; letter-spacing:.5px;
  transition:color var(--t);
  position:relative; padding-bottom:2px;
}
nav ul li a::after {
  content:''; position:absolute; bottom:0; left:0; right:0;
  height:1px; background:var(--blue);
  transform:scaleX(0); transform-origin:left;
  transition:transform var(--t);
}
nav ul li a:hover { color:var(--white); }
nav ul li a:hover::after,
nav ul li a.active::after { transform:scaleX(1); }
nav ul li a.active { color:var(--white); }

.nav-cta {
  display:flex; align-items:center; gap:6px;
  background:var(--orange); color:#fff; text-decoration:none;
  padding:9px 20px; border-radius:var(--r-sm);
  font-size:13px; font-weight:700; letter-spacing:.4px;
  box-shadow:0 0 20px var(--glow-orange);
  transition:transform var(--t), box-shadow var(--t);
}
.nav-cta:hover { transform:translateY(-1px); box-shadow:0 0 32px var(--glow-orange); }

.nav-hamburger {
  display:none; flex-direction:column; gap:5px;
  background:transparent; border:none; cursor:pointer; padding:4px;
}
.nav-hamburger span {
  display:block; width:24px; height:2px;
  background:var(--white); border-radius:2px;
  transition:transform var(--t), opacity var(--t);
}
.nav-hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity:0; }
.nav-hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height:100vh;
  display:flex; align-items:center;
  padding:110px 64px 80px;
  position:relative; overflow:hidden;
}

.hero-grid {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(41,171,226,0.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(41,171,226,0.055) 1px,transparent 1px);
  background-size:60px 60px;
  animation:gridMove 22s linear infinite;
}
@keyframes gridMove { from{transform:translateY(0)} to{transform:translateY(60px)} }

.hero-glow {
  position:absolute; top:20%; left:30%; transform:translateX(-50%);
  width:700px; height:700px;
  background:radial-gradient(circle,rgba(41,171,226,0.13) 0%,transparent 70%);
  pointer-events:none;
}

/* Two-column layout */
.hero-layout {
  position:relative; z-index:2;
  max-width:1280px; margin:0 auto; width:100%;
  display:grid; grid-template-columns:1fr 1fr;
  gap:72px; align-items:center;
}

/* Left */
.hero-content {}

.hero-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(41,171,226,0.1);
  border:1px solid rgba(41,171,226,0.35);
  color:var(--blue);
  padding:6px 16px; border-radius:50px;
  font-size:11px; font-weight:700; letter-spacing:2px;
  text-transform:uppercase; margin-bottom:28px;
  animation:fadeUp .6s ease both;
}

.hero h1 {
  font-size:clamp(2.8rem,5vw,5.5rem);
  font-weight:900;
  line-height:1.05;
  letter-spacing:-2px;
  animation:fadeUp .7s ease .1s both;
}

.hero-sub {
  font-size:17px; color:#999;
  margin:22px 0 36px;
  max-width:460px; line-height:1.75;
  animation:fadeUp .7s ease .2s both;
}

.hero-btns {
  display:flex; gap:14px; flex-wrap:wrap;
  animation:fadeUp .7s ease .3s both;
}

.hero-stats {
  display:flex; align-items:center; gap:0;
  margin-top:52px;
  animation:fadeUp .7s ease .4s both;
}

.stat { text-align:center; padding:0 28px; }
.stat:first-child { padding-left:0; }
.stat-divider { width:1px; height:40px; background:rgba(255,255,255,0.1); }

.stat-num {
  font-size:2rem; font-weight:900; color:var(--blue);
  display:inline-block;
}
.stat-plus { font-size:2rem; font-weight:900; color:var(--blue); }
.stat-lbl {
  display:block; font-size:11px; color:#666;
  letter-spacing:1.5px; text-transform:uppercase; margin-top:2px;
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Right – hero visual */
.hero-visual {
  position:relative;
  display:flex; align-items:center; justify-content:center;
  animation:fadeUp .8s ease .2s both;
}

.hero-img-frame {
  position:relative; z-index:2;
  width:100%; max-width:520px;
  border-radius:var(--r-xl);
  overflow:hidden;
  border:1px solid rgba(41,171,226,0.25);
  box-shadow:0 0 80px rgba(41,171,226,0.15), 0 40px 80px rgba(0,0,0,0.6);
}

.hero-img {
  display:block; width:100%; height:auto;
  object-fit:cover;
  aspect-ratio:4/3;
  filter:brightness(.9) saturate(1.1);
  transition:transform .6s ease;
}
.hero-img-frame:hover .hero-img { transform:scale(1.03); }

.hero-img-overlay {
  position:absolute; inset:0;
  background:linear-gradient(180deg,transparent 50%,rgba(13,13,13,0.7) 100%);
  pointer-events:none;
}

/* Floating pill cards */
.hero-pill {
  position:absolute; z-index:3;
  display:flex; align-items:center; gap:10px;
  background:rgba(13,13,13,0.85);
  backdrop-filter:blur(10px);
  border:1px solid rgba(41,171,226,0.25);
  border-radius:50px;
  padding:10px 16px;
  box-shadow:0 8px 32px rgba(0,0,0,0.4);
  animation:floatPill 4s ease-in-out infinite;
}
.hero-pill strong { display:block; font-size:13px; font-weight:700; }
.hero-pill small  { font-size:10px; color:#888; }
.hero-pill .icon-sm { color:var(--blue); }
.hero-pill--tl { top:-18px; left:-18px; animation-delay:0s; }
.hero-pill--br { bottom:-18px; right:-18px; animation-delay:2s; }

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

/* Deco rings */
.deco-ring {
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(41,171,226,0.15);
  pointer-events:none;
}
.deco-ring-1 { width:500px; height:500px; animation:spin 28s linear infinite; }
.deco-ring-2 { width:620px; height:620px; border-color:rgba(41,171,226,0.07); animation:spin 40s linear infinite reverse; }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display:inline-flex; align-items:center; gap:7px;
  background:var(--blue); color:#fff;
  border:none; padding:14px 30px;
  border-radius:var(--r-md);
  font-family:'Exo 2',sans-serif;
  font-size:14px; font-weight:700; cursor:pointer;
  box-shadow:0 0 28px rgba(41,171,226,0.35);
  transition:transform var(--t), box-shadow var(--t);
  text-decoration:none;
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 0 48px rgba(41,171,226,0.5); }

.btn-ghost {
  display:inline-flex; align-items:center; gap:7px;
  background:transparent; color:#ddd;
  border:1px solid rgba(255,255,255,0.18);
  padding:14px 28px; border-radius:var(--r-md);
  font-family:'Exo 2',sans-serif;
  font-size:14px; font-weight:600; cursor:pointer;
  transition:border-color var(--t), color var(--t), background var(--t);
  text-decoration:none;
}
.btn-ghost:hover { border-color:var(--blue); color:var(--white); background:rgba(41,171,226,0.06); }

/* Hero CTA: Keep orange for main action */
.hero-btns .btn-primary {
  background:var(--orange); 
  box-shadow:0 0 28px var(--glow-orange);
}
.hero-btns .btn-primary:hover {
  box-shadow:0 0 48px var(--glow-orange);
}

.btn-whatsapp {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:13px;
  background:linear-gradient(135deg,#25D366 0%,#1aab52 100%);
  border:none; border-radius:var(--r-md);
  color:#fff; font-family:'Exo 2',sans-serif;
  font-size:14px; font-weight:700; cursor:pointer;
  text-decoration:none;
  transition:transform var(--t), box-shadow var(--t);
}
.btn-whatsapp:hover { transform:translateY(-1px); box-shadow:0 8px 28px rgba(37,211,102,0.35); }
.btn-whatsapp--lg { width:auto; padding:16px 40px; font-size:16px; border-radius:var(--r-md); }

/* ── FLOATING WHATSAPP ── */
@keyframes pulse {
  0%, 100% { transform:scale(1); }
  50% { transform:scale(1.08); }
}

.whatsapp-float {
  position:fixed; bottom:24px; right:24px; z-index:999;
  display:flex; align-items:center; justify-content:center;
  background:transparent; color:#fff; text-decoration:none;
  padding:0;
  border-radius:50%;
  font-size:13px; font-weight:700;
  box-shadow:none;
  transition:all var(--t);
}
.whatsapp-float:hover {
  animation:pulse 2s ease-in-out infinite;
}
.wa-logo { width:50px; height:50px; flex-shrink:0; object-fit:contain; }
.wa-text { display:none; }

/* Mobile: show icon + text */
@media (max-width:640px) {
  .whatsapp-float {
    padding:12px 16px;
    font-size:12px;
  }
  .wa-text { display:inline; }
}

/* ═══════════════════════════════════════════
   SECTION COMMONS
═══════════════════════════════════════════ */
section { padding:100px 64px; }

.section-label {
  font-family:'Space Mono',monospace;
  font-size:11px; letter-spacing:3px;
  color:var(--blue); text-transform:uppercase; margin-bottom:14px;
}
.section-title {
  font-size:clamp(2rem,3.5vw,3rem);
  font-weight:900; letter-spacing:-1px; margin-bottom:14px;
}
.section-sub { color:#777; font-size:16px; max-width:520px; line-height:1.75; }

/* ═══════════════════════════════════════════
   COURSES
═══════════════════════════════════════════ */
.courses { background:var(--bg); padding-top:80px; }
.courses-header { text-align:center; margin-bottom:64px; }
.courses-header .section-sub { margin:0 auto; }

.courses-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(330px,1fr));
  gap:24px;
  max-width:1200px; margin:0 auto;
}

/* ── Card ── */
.course-card {
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  overflow:hidden;
  position:relative;
  opacity:0; transform:translateY(28px);
  transition:opacity .5s ease, transform .5s ease, border-color .3s, box-shadow .3s;
}
.course-card.visible { opacity:1; transform:translateY(0); }
.course-card:hover {
  border-color:rgba(41,171,226,0.38);
  box-shadow:0 20px 60px rgba(41,171,226,0.1);
  transform:translateY(-5px) !important;
}

/* Thumbnail */
.thumb {
  width:100%; aspect-ratio:16/9;
  position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}

.thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(1) saturate(1.1); /* ← normal por defecto */
  transition: transform .5s ease, filter .3s;
}

.course-card:hover .thumb-img,
.course-card-enhanced:hover .thumb-img {
  transform: scale(1.06);
  filter: brightness(.45) saturate(1.2); /* ← oscuro al hover */
}

/* Fallback gradient (when no image) */
.thumb-fallback {
  position:absolute; inset:0;
}

/* Course name overlay on thumbnail */
.thumb-title-overlay {
  position:relative; z-index:3;
  text-align:center; padding:0 16px;
}
.thumb-title-overlay .course-name-big {
  font-size:22px; font-weight:900; color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,0.8);
  letter-spacing:-0.5px; line-height:1.2;
}
.thumb-title-overlay .course-Profesor {
  font-size:11px; color:rgba(255,255,255,0.7);
  letter-spacing:1px; text-transform:uppercase; margin-top:4px;
}

.thumb-icon-wrap {
  position:absolute; bottom:12px; left:14px; z-index:4;
  width:36px; height:36px;
  background:rgba(13,13,13,0.75);
  border:1px solid rgba(41,171,226,0.35);
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  color:var(--blue);
}

.thumb-badge {
  position:absolute; top:12px; right:12px; z-index:4;
  background:var(--blue); color:#fff;
  font-size:10px; font-weight:700; letter-spacing:1px;
  padding:4px 10px; border-radius:4px; text-transform:uppercase;
  display:flex; align-items:center; gap:4px;
}
.thumb-badge.hot { background:#e05c00; }

.discount-badge {
  position:absolute; top:12px; left:12px; z-index:4;
  background:#e53e3e; color:#fff;
  font-size:12px; font-weight:900;
  padding:4px 10px; border-radius:4px;
}

/* Card body */
.card-body { padding:18px 20px 20px; }

.card-category {
  font-family:'Space Mono',monospace;
  font-size:10px; font-weight:700; letter-spacing:2px;
  color:var(--blue); text-transform:uppercase; margin-bottom:6px;
}
.card-title { font-size:16px; font-weight:700; line-height:1.4; margin-bottom:7px; }
.card-desc  { font-size:13px; color:#777; line-height:1.6; margin-bottom:15px; }

.price-row { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.price-old { font-size:13px; color:#555; text-decoration:line-through; }
.price-new { font-size:22px; font-weight:900; color:var(--white); }
.price-new span { font-size:13px; font-weight:400; color:#888; }

/* ═══════════════════════════════════════════
   WHY
═══════════════════════════════════════════ */
.why { background:linear-gradient(180deg,var(--bg) 0%,#080808 100%); }
.why-inner {
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns:1fr 1fr;
  gap:80px; align-items:center;
}

.why-features { display:flex; flex-direction:column; gap:24px; margin-top:36px; }
.feature { display:flex; gap:14px; align-items:flex-start; }
.feat-icon {
  width:44px; height:44px; flex-shrink:0;
  background:rgba(41,171,226,0.08);
  border:1px solid rgba(41,171,226,0.25);
  border-radius:var(--r-md);
  display:flex; align-items:center; justify-content:center;
  color:var(--blue);
}
.feat-title { font-size:15px; font-weight:700; margin-bottom:3px; }
.feat-desc  { font-size:13px; color:#666; line-height:1.6; }

/* Photo collage */
.why-visual {
  position:relative;
  height:460px;
  display:flex; align-items:center; justify-content:center;
}
.why-img-grid {
  position:relative; z-index:2;
  width:100%; height:100%;
}
.wimg {
  position:absolute;
  object-fit:cover;
  border-radius:var(--r-lg);
  border:2px solid rgba(41,171,226,0.18);
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
}
.wimg-main {
  width:70%; height:75%;
  top:0; right:0;
  z-index:3;
}
.wimg-tr {
  width:45%; height:42%;
  top:12%; left:0;
  z-index:2;
  filter:brightness(.85);
}
.wimg-br {
  width:45%; height:35%;
  bottom:0; left:10%;
  z-index:4;
}

.why-ring {
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(41,171,226,0.1);
  pointer-events:none;
}
.why-ring.r1 { width:380px; height:380px; animation:spin 30s linear infinite; }
.why-ring.r2 { width:260px; height:260px; border-color:rgba(41,171,226,0.18); animation:spin 20s linear infinite reverse; }

/* ═══════════════════════════════════════════
   CTA
═══════════════════════════════════════════ */
.cta-section {
  text-align:center;
  background:linear-gradient(135deg,rgba(41,171,226,0.07) 0%,rgba(13,13,13,1) 55%);
  border-top:1px solid rgba(41,171,226,0.1);
  border-bottom:1px solid rgba(41,171,226,0.1);
}
.cta-inner { max-width:640px; margin:0 auto; }
.cta-section h2 {
  font-size:clamp(2rem,4vw,3.2rem);
  font-weight:900; letter-spacing:-1.5px; margin-bottom:14px;
}
.cta-section h2 span { color:var(--blue); }
.cta-section p  { color:#777; font-size:16px; margin-bottom:32px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background:#060606;
  border-top:1px solid rgba(255,255,255,0.04);
  padding:40px 64px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px;
}
.foot-logo { display:flex; align-items:center; gap:12px; }
.foot-logo-img { 
  width:36px; height:36px; 
  object-fit:contain;
  image-rendering:crisp-edges;
}
.foot-tagline { font-size:11px; color:#444; letter-spacing:1px; }
footer p { font-size:12px; color:#333; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width:1024px) {
  .hero-layout { grid-template-columns:1fr; gap:48px; }
  .hero { padding:110px 32px 64px; }
  .hero-visual { max-width:580px; margin:0 auto; }
  .hero-img-frame { max-width:100%; }
  .why-inner { grid-template-columns:1fr; gap:48px; }
  .why-visual { display:none; }
}

@media (max-width:768px) {
  nav { padding:13px 20px; }
  nav ul {
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column;
    background:rgba(13,13,13,0.97);
    border-bottom:1px solid rgba(41,171,226,0.12);
    padding:20px 24px; gap:16px;
  }
  nav ul.open { display:flex; }
  .nav-cta { display:none; }
  .nav-hamburger { display:flex; }

  section { padding:64px 20px; }
  footer  { padding:28px 20px; flex-direction:column; text-align:center; }

  .deco-ring { display:none; }
  .hero-pill { display:none; }
}

@media (max-width:480px) {
  .hero-btns { flex-direction:column; }
  .btn-primary,.btn-ghost { width:100%; justify-content:center; }
  .hero-stats { gap:0; justify-content:space-around; }
  .stat { padding:0 12px; }
}



/* ══════════════════════════════════════════
   LEAD MAGNET POPUP
══════════════════════════════════════════ */
#leadPopupOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#leadPopupOverlay.popup-visible { opacity: 1; }

.popup-card {
  position: relative;
  background: #111;
  border: 1px solid rgba(41,171,226,0.25);
  border-radius: 20px;
  max-width: 820px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7),
              0 0 0 1px rgba(41,171,226,0.1);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.popup-card.popup-card-in {
  transform: translateY(0) scale(1);
}

/* Close button */
.popup-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 10;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: #aaa;
  cursor: pointer;
  transition: all 0.2s;
}
.popup-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Visual side */
.popup-visual {
  position: relative;
  background: linear-gradient(135deg, #040d1a 0%, #071424 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  min-height: 420px;
}

.popup-book-wrap {
  position: relative;
  z-index: 2;
}

.popup-book-img {
  width: 100%;
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6),
              0 0 40px rgba(41,171,226,0.2);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}
.popup-book-img:hover { transform: rotate(0deg) scale(1.03); }

.popup-book-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(41,171,226,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.popup-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: #ffa115;
  color: #000;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 50px;
  z-index: 3;
}

/* Content side */
.popup-content {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.popup-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.popup-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.popup-title span { color: var(--blue); }

.popup-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
}

/* Form */
.popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.popup-field input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(41,171,226,0.25);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}
.popup-field input:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(41,171,226,0.08);
}
.popup-field input::placeholder { color: #555; }

.popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(41,171,226,0.35);
}
.popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(41,171,226,0.5);
}

.popup-privacy {
  font-size: 11px;
  color: #444;
  text-align: center;
}

/* Success state */
.popup-success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 0 0;
}

.success-check {
  width: 64px; height: 64px;
  background: rgba(41,171,226,0.1);
  border: 2px solid rgba(41,171,226,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}

.popup-success h3 { font-size: 20px; font-weight: 900; }
.popup-success p  { font-size: 14px; color: #888; line-height: 1.6; }

/* Spinner */
@keyframes popupSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  #leadPopupOverlay {
    align-items: center;
    padding: 16px;
  }

  .popup-card {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
    border-radius: 20px;
    transform: translateY(30px) scale(0.97);
    max-width: 420px;
  }

  .popup-card.popup-card-in {
    transform: translateY(0) scale(1);
  }

  /* Sección visual compacta y horizontal */
  .popup-visual {
    min-height: auto;
    padding: 28px 24px 20px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    justify-content: center;
    background: linear-gradient(135deg, #040d1a 0%, #071424 100%);
  }

  .popup-book-wrap {
    flex-shrink: 0;
  }

  .popup-book-img {
    max-width: 110px;
    width: 110px;
    transform: rotate(-3deg);
    border-radius: 8px;
  }

  /* Texto al lado del libro */
  .popup-visual-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .popup-badge {
    position: static;
    align-self: flex-start;
    font-size: 11px;
    padding: 4px 12px;
    margin-bottom: 4px;
    display: inline-block;
  }

  .popup-book-glow { display: none; }

  /* Contenido del form */
  .popup-content {
    padding: 20px 20px 28px;
    gap: 10px;
  }

  .popup-label { font-size: 11px; }

  .popup-title {
    font-size: 1.25rem;
    letter-spacing: -0.3px;
  }

  .popup-desc { font-size: 13px; line-height: 1.6; }

  .popup-form { gap: 10px; margin-top: 2px; }

  .popup-field input {
    padding: 13px 14px;
    font-size: 16px;
    border-radius: 10px;
  }

  .popup-btn {
    padding: 14px;
    font-size: 14px;
  }

  .popup-privacy { font-size: 11px; }

  .popup-close {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 400px) {
  .popup-card { max-width: 100%; border-radius: 16px; }
  .popup-book-img { max-width: 90px; width: 90px; }
  .popup-title { font-size: 1.1rem; }
  .popup-content { padding: 18px 16px 24px; }
  .popup-visual { padding: 20px 16px; }
}



/* ══════════════════════════════════════════
   FAQ SECTION
══════════════════════════════════════════ */
.faq-section {
  padding: 100px 64px;
  background: linear-gradient(180deg, var(--bg) 0%, #080808 100%);
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.faq-header p {
  font-size: 16px;
  color: #777;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* ← 2 columnas en desktop */
  gap: 12px;
  align-items: start; /* ← importante para que no se estiren */
}

/* Item */
.faq-item {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.open {
  border-color: rgba(41,171,226,0.35);
}

/* Pregunta */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--blue); }

.faq-item.open .faq-question { color: var(--blue); }

/* Icono +/x */
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Respuesta */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: #888;
  line-height: 1.75;
  margin: 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-section { padding: 64px 20px; }
  .faq-question { font-size: 15px; padding: 18px 20px; }
  .faq-answer p { padding: 0 20px 18px; font-size: 14px; }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .faq-question { font-size: 14px; padding: 16px 18px; }
  .faq-header h2 { font-size: 1.8rem; }
}