/* ==========================================================
   CAPEGU - Homepage (index.php) - hoja de estilos extraida
   Antes vivia como <style> inline dentro de index.php; se
   movio aqui, sin cambiar ni una regla, para que el navegador
   la pueda cachear entre visitas y entre paginas.
   ========================================================== */

/* ── VARIABLES ─────────────────────────────────── */
/* ═══════════════════════════════════════════════
   MODO DÍA (por defecto) — Colores claros
   ═══════════════════════════════════════════════ */
:root {
  /* Paleta CAPEGU oficial */
  --c-teal:        #074151;
  --c-teal-2:      #0A5165;
  --c-teal-3:      #0D6275;
  --c-coral:       #F46640;
  --c-amber:       #F4B840;

  --fire:          #F46640;
  --fire-dark:     #D94E28;
  --fire-glow:     rgba(244,102,64,.35);
  
  /* Fondo y texto — MODO DÍA */
  --bg-primary:    #FFFFFF;
  --bg-secondary:  #F5FAFC;
  --bg-card:       #FFFFFF;
  --text-primary:  #07334A;
  --text-secondary: #456A7A;
  --text-muted:    #6B8A9A;
  --border-color:  rgba(7,65,81,.10);
  --shadow-color:  rgba(4,48,61,.12);

  --night:         #04303D;
  --night-2:       #074151;
  --night-3:       #0A5165;
  --white:         #FFFFFF;
  --off-white:     #F5FAFC;
  --border:        rgba(7,65,81,.10);
  --font-display:  'Space Grotesk', 'Outfit', sans-serif;
  --r-card:        20px;
  --r-btn:         50px;
  --shadow-card:   0 20px 50px -10px rgba(4,48,61,.20);
  --shadow-fire:   0 8px 30px var(--fire-glow);
  --accent-2:      #F4B840;
  --gradient-brand: linear-gradient(90deg, #F46640, #F4B840);
  --gradient-hero:  linear-gradient(135deg, #04303D 0%, #074151 50%, #0A5165 100%);
  
  /* Modo Día - Colores de fondo de secciones */
  --section-why-bg: #F5FAFC;
  --section-books-bg: #F5FAFC;
  --section-allies-bg: #FFFFFF;
  --section-courses-bg-start: #04303D;
  --section-courses-bg-end: #074151;
  --testimonial-bg-start: #074151;
  --testimonial-bg-end: #04303D;
  --cta-bg-start: #0D1B2A;
  --cta-bg-end: #152336;
}

/* ── MODO NOCHE ──────────────────────────────────
   Aplicado cuando <html data-theme="night">
   Solo cambia colores, mantiene tipografías y estructura
   ═══════════════════════════════════════════════ */
[data-theme="night"] {
  /* Colores principales invertidos */
  --bg-primary:    #0A0E17;
  --bg-secondary:  #111926;
  --bg-card:       #162030;
  --text-primary:  #E8EDF2;
  --text-secondary: #A0B4C8;
  --text-muted:    #7A8FA3;
  --border-color:  rgba(255,255,255,.08);
  --shadow-color:  rgba(0,0,0,.4);

  /* Mantener los mismos colores de acento pero con más intensidad */
  --fire:          #F46640;
  --fire-dark:     #FF7A55;
  --fire-glow:     rgba(244,102,64,.45);
  --night:         #0A0E17;
  --night-2:       #111926;
  --night-3:       #1A2638;
  --white:         #E8EDF2;
  --off-white:     #162030;
  --border:        rgba(255,255,255,.06);
  --shadow-card:   0 20px 50px -10px rgba(0,0,0,.5);
  --shadow-fire:   0 8px 30px rgba(244,102,64,.35);
  --gradient-hero:  linear-gradient(135deg, #080C14 0%, #0A0E17 50%, #111926 100%);
  
  /* Modo Noche - Colores de fondo de secciones */
  --section-why-bg: #0A0E17;
  --section-books-bg: #0A0E17;
  --section-allies-bg: #111926;
  --section-courses-bg-start: #080C14;
  --section-courses-bg-end: #0A0E17;
  --testimonial-bg-start: #0A0E17;
  --testimonial-bg-end: #080C14;
  --cta-bg-start: #060A10;
  --cta-bg-end: #0A0E17;
}

/* ── APLICACIÓN DE VARIABLES EN SECCIONES ── */

/* Hero */
[data-theme="night"] .hero-v2 {
  background: var(--gradient-hero);
}
[data-theme="night"] .hero-v2 .hero-sub {
  color: rgba(255,255,255,.65);
}
[data-theme="night"] .hero-v2 .hero-stats {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.06);
}
[data-theme="night"] .hero-v2 .stat-num {
  color: var(--white);
}
[data-theme="night"] .hero-v2 .stat-item p {
  color: rgba(255,255,255,.45);
}
[data-theme="night"] .hero-v2 .pill-badge {
  background: rgba(244,102,64,.15);
  border-color: rgba(244,102,64,.25);
}

/* Orbes más sutiles en modo noche */
[data-theme="night"] .orb { opacity: .08; }
[data-theme="night"] .orb-2 { background: #F4B840; }

/* Why Section */
[data-theme="night"] .why-section {
  background: var(--section-why-bg);
}
[data-theme="night"] .why-card {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
[data-theme="night"] .why-card h3 {
  color: var(--text-primary);
}
[data-theme="night"] .why-card p {
  color: var(--text-secondary);
}
[data-theme="night"] .why-icon {
  background: rgba(244,102,64,.15);
}

/* Courses Section */
[data-theme="night"] .courses-section {
  background: linear-gradient(160deg, var(--section-courses-bg-start) 0%, var(--section-courses-bg-end) 100%);
}
[data-theme="night"] .course-card-v2 {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
}
[data-theme="night"] .course-card-v2:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
[data-theme="night"] .cc-body h3 {
  color: var(--white);
}
[data-theme="night"] .cc-body p {
  color: rgba(255,255,255,.5);
}
[data-theme="night"] .cc-meta {
  color: rgba(255,255,255,.4);
}
[data-theme="night"] .cc-category {
  background: rgba(255,255,255,.08);
}

/* Books Section */
[data-theme="night"] .books-section {
  background: var(--section-books-bg);
}
[data-theme="night"] .book-card-v2 {
  background: var(--bg-card);
  border-color: var(--border-color);
}
[data-theme="night"] .book-card-v2 h3 {
  color: var(--text-primary);
}
[data-theme="night"] .book-card-v2 .bk-author {
  color: var(--text-secondary);
}
[data-theme="night"] .section-heading:not(.light) {
  color: var(--text-primary);
}

/* Allies Section */
[data-theme="night"] .allies-section {
  background: var(--section-allies-bg);
}
[data-theme="night"] .ally-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}
[data-theme="night"] .ally-card h4 {
  color: var(--text-primary);
}
[data-theme="night"] .ally-card p {
  color: var(--text-secondary);
}

/* Testimonials */
[data-theme="night"] .testimonial-band {
  background: linear-gradient(160deg, var(--testimonial-bg-start) 0%, var(--testimonial-bg-end) 100%);
}
[data-theme="night"] .testi-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
}
[data-theme="night"] .testi-card p {
  color: rgba(255,255,255,.7);
}
[data-theme="night"] .testi-featured {
  background: var(--fire);
}

/* CTA Final */
[data-theme="night"] .cta-final {
  background: linear-gradient(135deg, var(--cta-bg-start) 0%, var(--cta-bg-end) 100%);
}

/* Footer */
[data-theme="night"] .main-footer {
  background: #060A10;
}

/* Ticker */
[data-theme="night"] .ticker-wrap {
  background: var(--fire);
}

/* Promo Band */
[data-theme="night"] .promo-band {
  background: linear-gradient(120deg, #E84A2A, #FF6B4A);
}

/* Modo noche: mantener badges y labels con el mismo estilo */
[data-theme="night"] .cc-free-badge {
  background: var(--fire);
  color: #fff;
}
[data-theme="night"] .section-label:not(.light) {
  color: var(--fire);
}
[data-theme="night"] .section-heading:not(.light) span {
  color: var(--fire);
}
[data-theme="night"] .section-heading.light span {
  color: #FF9A6C;
}
[data-theme="night"] .see-all-link {
  color: var(--fire);
}
[data-theme="night"] .see-all-link:hover {
  color: #FF7A55;
}

/* Botones en modo noche */
[data-theme="night"] .btn-fire {
  background: var(--fire);
  color: #fff;
}
[data-theme="night"] .btn-fire:hover {
  background: var(--fire-dark);
}
[data-theme="night"] .btn-ghost-white {
  border-color: rgba(255,255,255,.4);
  color: rgba(255,255,255,.85);
}
[data-theme="night"] .btn-ghost-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}
[data-theme="night"] .btn-ghost-dark {
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
}
[data-theme="night"] .btn-ghost-dark:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.05);
}

/* Scroll bar en modo noche */
[data-theme="night"] .scroll-bar {
  background: linear-gradient(90deg, var(--fire), #FF7A55);
}

/* Floating badges en modo noche */
[data-theme="night"] .floating-badge {
  background: rgba(22,32,48,.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.06);
}
[data-theme="night"] .floating-badge strong {
  color: var(--white);
}
[data-theme="night"] .floating-badge span {
  color: var(--text-secondary);
}

/* ── RESET / BASE ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { 
  font-family: var(--font-display); 
  color: var(--text-primary); 
  background: var(--bg-primary); 
  overflow-x: hidden; 
  cursor: none; 
  transition: background 0.3s ease, color 0.3s ease;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── CURSOR ────────────────────────────────────── */
.custom-cursor {
  width: 36px; height: 36px;
  border: 2px solid var(--fire);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: transform .15s ease, opacity .3s;
  transform: translate(-50%,-50%);
  mix-blend-mode: multiply;
}
.custom-cursor-dot {
  width: 6px; height: 6px;
  background: var(--fire);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .05s ease;
}
body:hover .custom-cursor { opacity: 1; }

/* ── SCROLL BAR ────────────────────────────────── */
.scroll-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--fire), #FF9A6C);
  z-index: 9998; width: 0%; transition: width .1s;
}

/* ── BUTTONS ───────────────────────────────────── */
.btn-fire {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fire);
  color: var(--white);
  padding: 14px 30px; border-radius: var(--r-btn);
  font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-fire);
  transition: transform .25s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn-fire:hover { background: var(--fire-dark); transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 40px var(--fire-glow); }
.btn-fire.large  { padding: 18px 38px; font-size: 1.1rem; }
.btn-fire.small  { padding: 10px 22px; font-size: .9rem; }

.btn-ghost-white {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white); padding: 14px 30px; border-radius: var(--r-btn);
  font-weight: 600; font-size: 1rem;
  transition: all .25s;
  backdrop-filter: blur(4px);
}
.btn-ghost-white:hover { border-color: var(--white); background: rgba(255,255,255,.15); transform: translateY(-2px); }

.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,.3);
  color: var(--white); padding: 18px 38px; border-radius: var(--r-btn);
  font-weight: 600; font-size: 1.1rem;
  transition: all .25s;
}
.btn-ghost-dark:hover { border-color: var(--white); background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* ── SECTION HELPERS ────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fire); margin-bottom: 12px;
}
.section-label.light { color: rgba(255,255,255,.7); }
.section-label.centered { display: block; text-align: center; }

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15;
  color: var(--text-primary);
}
.section-heading span { color: var(--fire); }
.section-heading.light { color: var(--white); }
.section-heading.light span { color: #FF9A6C; }
.section-heading.centered { text-align: center; }

.section-top-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 48px; gap: 16px;
}
.see-all-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .95rem; color: var(--fire);
  white-space: nowrap; transition: gap .2s;
}
.see-all-link:hover { gap: 10px; }

/* ── REVEAL ANIMATIONS ──────────────────────────── */
[data-reveal], [data-scroll-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
}
[data-reveal].visible, [data-scroll-reveal].visible {
  opacity: 1; transform: translateY(0);
}

/* Al recargar por el botón ES/EN, mostrar todo de una vez,
   sin repetir la animación de entrada (evita el "temblor"). */
.capegu-no-intro [data-reveal],
.capegu-no-intro [data-scroll-reveal] {
  transition: none !important;
}

/* ─────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────── */
.hero-v2 {
  position: relative; min-height: 100vh;
  background: var(--gradient-hero);
  display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .25; animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.orb-1 { width: 500px; height: 500px; background: var(--fire); top: -150px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 350px; height: 350px; background: #F4B840; bottom: -100px; left: -80px; animation-delay: -3s; }
.orb-3 { width: 250px; height: 250px; background: #FF9A6C; top: 40%; left: 40%; animation-delay: -5s; opacity: .15; }

@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.06); }
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
}

/* Text col */
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,94,58,.18); border: 1px solid rgba(255,94,58,.4);
  color: #FF9A6C; padding: 8px 18px; border-radius: 50px;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 24px;
}
.pill-dot {
  width: 7px; height: 7px; background: var(--fire); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 var(--fire-glow); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}

.hero-heading {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800; line-height: 1.08; color: var(--white);
  margin-bottom: 24px;
}
.hero-heading em { font-style: normal; color: var(--fire); }
.gradient-word {
  background: var(--gradient-brand, linear-gradient(90deg, #F46640, #F4B840));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,.72);
  max-width: 480px; margin-bottom: 36px;
}
.hero-sub strong { color: rgba(255,255,255,.95); }

.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex; align-items: center; gap: 28px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px); padding: 20px 28px; border-radius: 16px;
  width: fit-content;
}
.stat-item { text-align: center; }
.stat-item p { font-size: .78rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

/* Visual col */
.hero-card-stack { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
.hcard {
  border-radius: 24px;
  position: relative;
}
.hcard-back, .hcard-mid {
  position: absolute; inset: 0;
}
.hcard-back {
  background: rgba(255,255,255,.08);
  transform: rotate(6deg) translateY(10px);
  z-index: 0;
}
.hcard-mid {
  background: rgba(255,94,58,.25);
  transform: rotate(3deg) translateY(5px);
  z-index: 1;
}
.hcard-front {
  position: relative; z-index: 2;
  overflow: hidden; border-radius: 24px;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,.5);
  animation: cardFloat 5s ease-in-out infinite;
}
.hcard-front img { width: 100%; height: 460px; object-fit: cover; }
.hcard-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(13,27,42,.9), transparent);
}
.hcard-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fire); color: white;
  padding: 8px 16px; border-radius: 50px;
  font-size: .82rem; font-weight: 700;
}

@keyframes cardFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(.5deg); }
}

/* Floating badges */
.floating-badge {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.95);
  border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  z-index: 10; font-size: .82rem; min-width: 160px;
}
.floating-badge i { font-size: 1.2rem; color: var(--fire); }
.floating-badge strong { display: block; font-weight: 700; color: var(--text-primary); font-size: .9rem; }
.floating-badge span { color: var(--text-secondary); font-size: .75rem; }
.fb-1 { top: 20px; left: -50px; animation: badgeFloat1 4s ease-in-out infinite; }
.fb-2 { bottom: 120px; left: -60px; animation: badgeFloat2 4.5s ease-in-out infinite; }
.fb-3 { bottom: 50px; right: -40px; animation: badgeFloat3 5s ease-in-out infinite; }
@keyframes badgeFloat1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes badgeFloat2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
@keyframes badgeFloat3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.45); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,.4), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ── TICKER ────────────────────────────────────── */
.ticker-wrap {
  background: var(--fire);
  overflow: hidden; padding: 14px 0;
}
.ticker-track {
  display: flex; gap: 0; width: max-content;
  animation: tickerScroll 30s linear infinite;
}
.ticker-track span {
  white-space: nowrap; padding: 0 40px;
  color: white; font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  display: flex; align-items: center; gap: 10px;
}
.ticker-track span i { font-size: 1rem; }
@keyframes tickerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-33.33%)} }

/* ── WHY ────────────────────────────────────────── */
.why-section { padding: 100px 0; background: var(--section-why-bg); }
.why-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
  margin-top: 56px;
}
.why-card {
  background: var(--bg-card); border-radius: var(--r-card);
  padding: 36px 28px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px var(--shadow-color);
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.why-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--fire), #FF9A6C);
  opacity: 0; transition: opacity .3s;
}
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.why-card:hover::before { opacity: 1; }
.why-card:hover h3, .why-card:hover p, .why-card:hover .why-arrow { color: var(--white); }
.why-card:hover .why-icon { background: rgba(255,255,255,.2); color: white; }

.why-icon-wrap { position: relative; width: 60px; height: 60px; margin-bottom: 24px; }
.why-icon {
  position: relative; z-index: 1;
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(255,94,58,.12); color: var(--fire);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; transition: all .3s;
}
.why-icon-glow {
  position: absolute; inset: -6px; border-radius: 22px;
  background: var(--fire-glow); filter: blur(12px);
  opacity: 0; transition: opacity .3s;
}
.why-card:hover .why-icon-glow { opacity: 1; }
.why-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; position: relative; transition: color .3s; }
.why-card p { font-size: .88rem; line-height: 1.65; color: var(--text-secondary); position: relative; transition: color .3s; }
.why-arrow { position: absolute; bottom: 24px; right: 24px; color: var(--fire); font-size: .85rem; transition: color .3s, transform .3s; }
.why-card:hover .why-arrow { transform: translateX(4px); }

/* ── COURSES ─────────────────────────────────────── */
.courses-section {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--section-courses-bg-start) 0%, var(--section-courses-bg-end) 100%);
}
.courses-section .section-top-row { margin-bottom: 48px; }
.courses-section .see-all-link { color: rgba(255,255,255,.7); }
.courses-section .see-all-link:hover { color: var(--white); }

.courses-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.course-card-v2 {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-card); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  backdrop-filter: blur(8px);
}
.course-card-v2:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }

.cc-img-wrap { position: relative; height: 200px; overflow: hidden; }
.cc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course-card-v2:hover .cc-img-wrap img { transform: scale(1.06); }
.cc-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,27,42,.8) 0%, transparent 60%);
}
.cc-free-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--fire); color: white;
  padding: 5px 12px; border-radius: 50px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  display: flex; align-items: center; gap: 5px;
}
/* Precio con descuento: precio original tachado arriba, precio con
   -50% aplicado debajo, dentro del mismo badge. */
.cc-price-badge--discount {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  border-radius: 18px;
  padding: 6px 12px;
}
.cc-price-old {
  display: flex; align-items: center; gap: 4px;
  font-size: .66rem; font-weight: 600;
  text-decoration: line-through;
  opacity: .8;
}
.cc-price-new {
  font-size: .88rem; font-weight: 800;
  letter-spacing: .01em;
}
.cc-category {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(255,255,255,.15); color: white;
  backdrop-filter: blur(6px);
  padding: 4px 12px; border-radius: 50px;
  font-size: .72rem; font-weight: 600;
}
.cc-body { padding: 24px; }
.cc-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; line-height: 1.4; }
.cc-body p { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.6; margin-bottom: 16px; }
.cc-meta { display: flex; gap: 16px; font-size: .78rem; color: rgba(255,255,255,.45); margin-bottom: 20px; }
.cc-meta i { color: var(--fire); }
.cc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--fire); font-weight: 700; font-size: .88rem;
  transition: gap .2s;
  margin-left: auto;
}
.cc-btn:hover { gap: 10px; }

.cc-bottom-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.cc-discount-badge {
  background: var(--fire); color: white;
  padding: 7px 16px; border-radius: 50px;
  font-size: 1rem; font-weight: 800; letter-spacing: .03em;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
/* Etiqueta bajo el badge de descuento, indicando que ese código
   es un "Código de Descuento" — cambia a inglés con el idioma. */
.cc-discount-wrap {
  display: flex; flex-direction: column; gap: 4px;
}
.cc-discount-caption {
  font-size: .68rem; font-weight: 600;
  color: rgba(255,255,255,.6);
  padding-left: 2px;
}

/* CTA card */
.cc-cta-card {
  background: linear-gradient(135deg, var(--fire) 0%, #FF9A6C 100%) !important;
  border-color: transparent !important;
  display: flex; align-items: center; justify-content: center;
}
.cc-cta-inner { padding: 40px 28px; text-align: center; }
.cc-cta-icon { font-size: 3rem; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.cc-cta-inner h3 { font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 12px; }
.cc-cta-inner p { color: rgba(255,255,255,.85); font-size: .9rem; line-height: 1.6; margin-bottom: 28px; }

/* ── PROMO BAND ──────────────────────────────────── */
.promo-band {
  position: relative; overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(120deg, #FF5E3A 0%, #FF8A65 100%);
}
.promo-bg-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 22vw; font-weight: 900; color: rgba(255,255,255,.07);
  white-space: nowrap; pointer-events: none; letter-spacing: -0.05em;
}
.promo-band-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px;
}
.promo-band-text .section-label { color: rgba(255,255,255,.7); }
.promo-band-text h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; color: white; margin-bottom: 16px; }
.promo-band-text p { color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.6; max-width: 480px; margin-bottom: 32px; }

.promo-icons-cluster {
  position: relative; width: 200px; height: 200px;
  flex-shrink: 0;
}
.picon {
  position: absolute;
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.25); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.3rem;
}
.picon.pi-center { width: 68px; height: 68px; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 1.8rem; background: rgba(255,255,255,.35); border-radius: 20px; }
.pi-1 { top: 0; left: 50%; transform: translateX(-50%); animation: piFloat1 3s ease-in-out infinite; }
.pi-2 { top: 50%; right: 0; transform: translateY(-50%); animation: piFloat2 3.5s ease-in-out infinite; }
.pi-3 { bottom: 0; left: 50%; transform: translateX(-50%); animation: piFloat3 4s ease-in-out infinite; }
.pi-4 { top: 50%; left: 0; transform: translateY(-50%); animation: piFloat1 3.2s ease-in-out infinite .5s; }
@keyframes piFloat1 { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-10px)} }
@keyframes piFloat2 { 0%,100%{transform:translateY(-50%) translateX(0)} 50%{transform:translateY(-50%) translateX(-8px)} }
@keyframes piFloat3 { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ── BOOKS ───────────────────────────────────────── */
.books-section { padding: 100px 0; background: var(--section-books-bg); }

.books-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.book-card-v2 {
  background: var(--bg-card); border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: transform .3s, box-shadow .3s;
}
.book-card-v2:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }

.bk-cover { position: relative; overflow: hidden; }
.bk-cover img { width: 100%; height: 280px; object-fit: cover; transition: transform .5s; }
.book-card-v2:hover .bk-cover img { transform: scale(1.05); }
.bk-hover-overlay {
  position: absolute; inset: 0;
  background: rgba(13,27,42,.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.book-card-v2:hover .bk-hover-overlay { opacity: 1; }
.bk-quick-btn {
  background: var(--white); color: var(--text-primary);
  padding: 10px 22px; border-radius: 50px;
  font-weight: 700; font-size: .85rem;
  transform: translateY(10px); transition: transform .3s;
}
.book-card-v2:hover .bk-quick-btn { transform: translateY(0); }
.bk-info { padding: 20px; }
.bk-info h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; line-height: 1.4; color: var(--text-primary); }
.bk-author { font-size: .8rem; color: var(--text-secondary); margin-bottom: 14px; display: flex; align-items: center; gap: 5px; }
.bk-author i { color: var(--fire); }
.bk-footer { display: flex; align-items: center; justify-content: space-between; }
.bk-price { font-size: 1.1rem; font-weight: 800; color: var(--fire); }
.bk-buy-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fire); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: transform .2s, background .2s;
}
.bk-buy-btn:hover { background: var(--fire-dark); transform: scale(1.1); }

/* ── ALLIES ──────────────────────────────────────── */
.allies-section { padding: 100px 0; background: var(--section-allies-bg); }

.allies-carousel-wrapper { position: relative; margin-top: 48px; }
.allies-track-outer { overflow: hidden; border-radius: 24px; }
.allies-track {
  display: flex;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.ally-slide { flex: 0 0 25%; padding: 0 12px; }
.ally-card {
  background: var(--bg-secondary);
  border-radius: var(--r-card);
  padding: 40px 24px; text-align: center;
  border: 2px solid transparent;
  transition: all .3s;
}
.ally-card:hover { border-color: var(--fire); box-shadow: 0 8px 30px var(--fire-glow); transform: translateY(-4px); }
.ally-img-wrap { width: 100px; height: 100px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.ally-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ally-card h4 { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.ally-card p { font-size: .78rem; color: var(--text-secondary); line-height: 1.5; }

.ally-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--fire); color: white; border: none; cursor: pointer;
  font-size: 1rem; z-index: 5;
  box-shadow: var(--shadow-fire);
  transition: background .2s, transform .2s;
}
.ally-btn:hover { background: var(--fire-dark); transform: translateY(-50%) scale(1.05); }
.ally-prev { left: -22px; }
.ally-next { right: -22px; }

.ally-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.ally-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #CBD5E1; cursor: pointer; transition: all .2s;
}
.ally-dot.active { background: var(--fire); width: 26px; border-radius: 20px; }

/* ── TESTIMONIALS ────────────────────────────────── */
.testimonial-band {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--testimonial-bg-start) 0%, var(--testimonial-bg-end) 100%);
}
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 28px; margin-top: 56px;
}
.testi-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-card); padding: 36px;
  transition: transform .3s, box-shadow .3s;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.testi-featured { background: var(--fire); border-color: transparent; transform: scale(1.03); }
.testi-featured:hover { transform: scale(1.03) translateY(-4px); }
.testi-stars { font-size: 1.1rem; color: #FFC107; margin-bottom: 20px; letter-spacing: 2px; }
.testi-featured .testi-stars { color: rgba(255,255,255,.9); }
.testi-card p { font-size: .95rem; line-height: 1.7; color: rgba(255,255,255,.75); margin-bottom: 28px; font-style: italic; }
.testi-featured p { color: rgba(255,255,255,.95); }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.2); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.testi-featured .testi-avatar { background: rgba(255,255,255,.3); }
.testi-author strong { display: block; color: var(--white); font-weight: 700; font-size: .92rem; }
.testi-author span { font-size: .78rem; color: rgba(255,255,255,.5); }
.testi-featured .testi-author span { color: rgba(255,255,255,.8); }

/* ── CTA FINAL ───────────────────────────────────── */
.cta-final {
  position: relative; overflow: hidden; padding: 120px 0;
  background: linear-gradient(135deg, var(--cta-bg-start) 0%, var(--cta-bg-end) 100%);
}
.cta-final-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,94,58,.2), transparent);
  pointer-events: none;
}
.cta-final-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 60px;
}
.cta-eyebrow {
  display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .15em; color: var(--fire); margin-bottom: 16px;
}
.cta-final-text h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: white; line-height: 1.15; margin-bottom: 20px;
}
.cta-final-text h2 em { font-style: normal; color: var(--fire); }
.cta-final-text p { font-size: 1rem; color: rgba(255,255,255,.65); line-height: 1.7; max-width: 440px; margin-bottom: 36px; }
.cta-final-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.cta-final-visual { position: relative; width: 240px; height: 240px; flex-shrink: 0; }
.cta-ring {
  position: absolute; border-radius: 50%; border: 2px solid rgba(255,94,58,.25);
  animation: ringPulse 3s ease-in-out infinite;
}
.cta-ring-1 { inset: 0; animation-delay: 0s; }
.cta-ring-2 { inset: 20px; animation-delay: .5s; }
.cta-ring-3 { inset: 40px; animation-delay: 1s; }
@keyframes ringPulse { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:.8;transform:scale(1.03)} }
.cta-center-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 90px; height: 90px; border-radius: 24px;
  background: var(--fire);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: white;
  box-shadow: var(--shadow-fire);
  animation: iconBob 3s ease-in-out infinite;
}
@keyframes iconBob { 0%,100%{transform:translate(-50%,-50%) rotate(0deg)} 50%{transform:translate(-50%,-58%) rotate(-5deg)} }

/* ── THEME SWITCHER UI ──────────────────────────── */
.theme-switcher {
  position: fixed; top: 50%; right: 0;
  transform: translateY(-50%);
  z-index: 8888;
  display: flex; flex-direction: column;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  box-shadow: -4px 0 24px rgba(7,65,81,.22);
}
.theme-switcher-label {
  background: #074151; color: rgba(255,255,255,.6);
  font-size: .6rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 10px 12px 6px; text-align: center;
}
.theme-btn {
  width: 90px; padding: 14px 10px; border: none; cursor: pointer;
  font-family: inherit; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-align: center; transition: all .2s; line-height: 1.35;
}
.theme-btn-1 { 
  background: linear-gradient(135deg, #F46640, #F4B840); 
  color: #07334A; 
}
.theme-btn-1:hover, .theme-btn-1.active { filter: brightness(1.1); }
.theme-btn-2 { 
  background: #0A0E17; 
  color: rgba(255,255,255,.85); 
  border-top: 1px solid rgba(255,255,255,.08); 
}
.theme-btn-2:hover, .theme-btn-2.active { 
  background: #162030; 
  color: #fff; 
}
.theme-btn.active::after { content: ' ✓'; }
@media (max-width: 768px) {
  .theme-switcher { top: auto; bottom: 80px; right: 0; flex-direction: row; border-radius: 16px 16px 0 0; }
  .theme-btn { width: 80px; padding: 10px 8px; }
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .ally-slide { flex: 0 0 50%; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .custom-cursor, .custom-cursor-dot { display: none; }
  body { cursor: auto; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text-col { order: 1; }
  .hero-visual-col { order: 0; }
  .hero-cta-row { justify-content: center; }
  .hero-stats { flex-direction: column; align-items: center; gap: 16px; }
  .stat-divider { width: 60px; height: 1px; }
  .hero-heading { font-size: 2.4rem; }
  .hcard-front img { height: 300px; }
  .fb-1,.fb-2,.fb-3 { display: none; }

  .why-grid { grid-template-columns: 1fr; }
  .courses-grid-v2 { grid-template-columns: 1fr; }
  .books-grid-v2 { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testi-featured { transform: none; }

  .section-top-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ally-slide { flex: 0 0 100%; }
  .ally-prev { left: -12px; }
  .ally-next { right: -12px; }

  .promo-band-inner { grid-template-columns: 1fr; text-align: center; }
  .promo-band-text p { margin: 0 auto 32px; }
  .promo-icons-cluster { display: none; }

  .cta-final-inner { grid-template-columns: 1fr; }
  .cta-final-visual { display: none; }
  .cta-final-text { text-align: center; }
  .cta-final-btns { justify-content: center; }

  .hero-card-stack { max-width: 300px; }
}

@media (max-width: 480px) {
  .books-grid-v2 { grid-template-columns: 1fr; }
}

/* ---- Seccion: Cursos Presenciales ---- */
.presential-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.presential-intro {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.7;
  margin: -20px 0 40px;
}
.presential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.presential-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform .3s, box-shadow .3s;
}
.presential-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}
.presential-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.presential-card:hover img {
  transform: scale(1.06);
}
.presential-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--fire);
  color: white;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.presential-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(0deg, rgba(4,48,61,.92) 0%, rgba(4,48,61,.15) 55%, transparent 100%);
  opacity: 0;
  transition: opacity .3s;
}
.presential-card:hover .presential-card-overlay,
.presential-card:focus .presential-card-overlay {
  opacity: 1;
}
.presential-card-title {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.presential-card-cta {
  color: var(--fire);
  font-weight: 700;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.presential-contact {
  margin-top: 40px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-primary);
}
.presential-contact i {
  color: var(--fire);
  margin-right: 8px;
}
.presential-contact a {
  color: var(--fire);
  font-weight: 700;
  text-decoration: none;
}
.presential-contact a:hover {
  text-decoration: underline;
}

/* Lightbox */
.presential-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(4,10,15,.92);
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: zoom-out;
}
.presential-modal.active {
  display: flex;
}
.presential-modal-inner {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.presential-modal-inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  cursor: default;
}
.presential-modal-inner p {
  color: white;
  margin-top: 16px;
  font-weight: 600;
  font-size: 1.05rem;
}
.presential-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* Modo noche */
[data-theme="night"] .presential-section {
  background: var(--bg-secondary);
}
[data-theme="night"] .presential-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}
[data-theme="night"] .presential-intro,
[data-theme="night"] .presential-contact {
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .presential-section { padding: 70px 0; }
  .presential-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
  .presential-modal-close { top: 12px; right: 18px; font-size: 2rem; }
}
