/* ============================================================
   Juan Carlos Giménez — Sistema de Nutrición de Alto Rendimiento
   Design System | v2.0 — Rebuild completo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&family=Lora:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ── TYPOGRAPHY VARIANTS (comentario de referencia) ──────────
   1.  Inter / Playfair Display
   2.  Outfit / Lora  ← ACTIVA
   3.  Montserrat / Merriweather
   4.  Roboto Condensed / Crimson Pro
   5.  Syncopate / EB Garamond
   6.  Bebas Neue / Source Serif Pro
   7.  Syne / Fraunces
   8.  Space Grotesk / Spectral
   9.  Lexend / Libre Baskerville
   10. Archivo Black / Cormorant Garamond
   ─────────────────────────────────────────────────────────── */

/* ── CSS VARIABLES — DARK MODE (default) ─────────────────── */
:root {
  --bg:            #0f0b1a;
  --bg-secondary:  #140e22;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --bg-nav:        rgba(15,11,26,0.88);
  --bg-input:      #111118;
  --text:          #f5f5f7;
  --text-muted:    #a1a1a6;
  --text-subtle:   #55556a;
  --primary:       #5d2e8e;
  --primary-light: #7b4eb2;
  --primary-dark:  #3a1c5d;
  --accent:        #d4af37;
  --accent-light:  #f1d57d;
  --accent-dark:   #aa8c2c;
  --border:        rgba(212,175,55,0.15);
  --border-card:   rgba(255,255,255,0.07);
  --border-input:  #2a2a3a;
  --shadow-gold:   0 0 40px rgba(212,175,55,0.25);
  --shadow-card:   0 8px 32px rgba(0,0,0,0.3);
  --overlay:       rgba(15,11,26,0.88);
  --overlay-light: rgba(15,11,26,0.55);
  --font-heading:  'Outfit', sans-serif;
  --font-body:     'Lora', serif;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --transition:    0.65s var(--ease);
  --fast:          0.3s ease;
  --container:     1200px;
  --section-pad:   110px 5%;
}

/* ── CSS VARIABLES — LIGHT MODE override ─────────────────── */
[data-theme="light"] {
  --bg:            #faf8ff;
  --bg-secondary:  #f0eafa;
  --bg-card:       #ffffff;
  --bg-card-hover: #f5f0ff;
  --bg-nav:        rgba(250,248,255,0.93);
  --bg-input:      #f5f0ff;
  --text:          #1a0d2e;
  --text-muted:    #6b6b8a;
  --text-subtle:   #9b8abf;
  --accent:        #8b6914;
  --accent-light:  #b8942e;
  --accent-dark:   #5e4509;
  --border:        rgba(93,46,142,0.15);
  --border-card:   rgba(93,46,142,0.10);
  --border-input:  rgba(93,46,142,0.2);
  --shadow-gold:   0 0 40px rgba(139,105,20,0.18);
  --shadow-card:   0 4px 20px rgba(93,46,142,0.08);
  --overlay:       rgba(250,248,255,0.82);
  --overlay-light: rgba(250,248,255,0.5);
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-heading); border: none; }

/* ── NAVIGATION ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

nav.scrolled {
  padding: 12px 5%;
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: var(--text);
  transition: color var(--fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--fast);
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* Mobile hamburger */
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--text);
  padding: 4px;
  z-index: 1001;
}

/* Nav controls (lang + theme) */
.nav-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.lang-btn {
  background: var(--primary);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  transition: var(--fast);
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--accent);
  color: var(--primary-dark);
}

/* Theme toggle switch */
.theme-toggle {
  width: 50px;
  height: 28px;
  border-radius: 14px;
  background: var(--primary);
  border: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  padding: 3px;
  transition: background var(--fast), border-color var(--fast), box-shadow var(--fast);
  position: relative;
  box-shadow: 0 0 0 0 rgba(93,46,142,0);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(93,46,142,0.4);
}

.toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

[data-theme="light"] .theme-toggle {
  background: #5d2e8e;
  border-color: #7b4eb2;
  box-shadow: 0 2px 8px rgba(93,46,142,0.35);
}
[data-theme="light"] .toggle-thumb {
  transform: translateX(22px);
  background: #f1d57d;
}

/* Mobile nav open state */
@media (max-width: 768px) {
  .nav-mobile-toggle {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1011; /* siempre por encima del menú */
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0f0b1a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 1010;
  }

  .nav-links.open { display: flex; }

  .nav-links > li > a {
    font-size: 1.6rem;
    letter-spacing: 3px;
    color: #f5f5f7;
    font-weight: 900;
  }

  .nav-links > li > a:hover { color: #d4af37; }

  /* Extras: idioma al fondo del menú */
  .nav-mobile-extras {
    margin-top: 16px;
    border-top: 1px solid rgba(212,175,55,0.2);
    padding-top: 24px;
  }

  .nav-mobile-langs {
    display: flex;
    gap: 10px;
  }

  .nav-mobile-extras {
    display: list-item;
  }
}

/* Ocultar extras del menú en escritorio */
.nav-mobile-extras { display: none; list-style: none; }

/* JotForm: fondo mientras carga para evitar hueco negro */
.jotform-wrap {
  background: var(--bg-card);
  border-radius: 16px;
  min-height: 200px;
}

/* ── SHARED: SECTION TITLE ────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title p {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}

/* ── SHARED: BUTTONS ──────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  border: none;
  transition: var(--fast);
  box-shadow: 0 8px 28px rgba(212,175,55,0.3);
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(212,175,55,0.5);
}

[data-theme="light"] .btn-primary {
  box-shadow: 0 8px 28px rgba(139,105,20,0.25);
}

.btn-outline-variant {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.btn-outline-variant:hover {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 10px 28px rgba(212,175,55,0.3);
}

/* ── SCROLL REVEAL ────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
[data-reveal="bottom"] { transform: translateY(50px); }
[data-reveal="top"]    { transform: translateY(-50px); }
[data-reveal="left"]   { transform: translateX(-50px); }
[data-reveal="right"]  { transform: translateX(50px); }
[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 110px 5% 70px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15,11,26,0.88) 0%, rgba(20,14,34,0.78) 100%),
    url('gourmet_healthy_food_1_1775665324675.png') center / cover no-repeat;
  /* Fijar colores de texto siempre claros, independiente del tema */
  --text:       #f5f5f7;
  --text-muted: #a1a1a6;
  --accent:     #d4af37;
  --accent-light: #f1d57d;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(93,46,142,0.1) 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

/* Decorative radial glow */
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(93,46,142,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding-right: 40px;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 24px;
  color: var(--text);
  animation: heroBreathe 5s ease-in-out infinite;
}

@keyframes heroBreathe {
  0%, 100% { transform: scale(1);     text-shadow: none; }
  50%       { transform: scale(1.014); text-shadow: 0 2px 60px rgba(212,175,55,0.22); }
}

.hero h1 .accent {
  display: block;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-light) 40%,
    #fffdf0 50%,
    var(--accent-light) 60%,
    var(--accent) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: accentShimmer 4s ease-in-out infinite;
}

@keyframes accentShimmer {
  0%   { background-position: 100% center; }
  50%  { background-position: 0%   center; }
  100% { background-position: 100% center; }
}

.hero-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Hero image side */
.hero-image-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image-inner {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-image-inner img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 0;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 0 40px rgba(212,175,55,0.35)) drop-shadow(0 0 80px rgba(93,46,142,0.25));
}

.hero-image-badge {
  position: absolute;
  top: 24px;
  right: -12px;
  background: var(--accent);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(212,175,55,0.4);
}

/* ── ABOUT ────────────────────────────────────────────────── */
.about-section {
  padding: var(--section-pad);
  background: var(--bg-secondary);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
  box-shadow: var(--shadow-gold), var(--shadow-card);
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: 20px; left: 20px; right: -20px; bottom: -20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  z-index: -1;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text);
  margin-bottom: 20px;
}

.about-bio {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.credentials li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.credentials li i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── LEVELS SECTION ───────────────────────────────────────── */
.levels-section {
  padding: var(--section-pad);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.levels-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('Material/dieta1.jpg') center/cover no-repeat;
  opacity: 0.03;
  pointer-events: none;
}

.levels-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.level-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 38px 30px;
  width: calc(33.33% - 14px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--fast), background var(--fast), transform 0.15s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.level-card:nth-child(4),
.level-card:nth-child(5) {
  width: calc(40% - 10px);
}

.level-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.level-number {
  position: absolute;
  top: 14px; right: 18px;
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(212,175,55,0.06);
  line-height: 1;
  user-select: none;
}

[data-theme="light"] .level-number {
  color: rgba(93,46,142,0.07);
}

.level-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.level-card h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 10px;
}

.level-objective {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.level-desc {
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--text-subtle);
  line-height: 1.6;
  margin-bottom: 20px;
}

.adherence-bar-wrap {
  background: var(--border-card);
  border-radius: 20px;
  height: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}

.adherence-bar {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  width: 0;
  transition: width 1.4s var(--ease);
}

.adherence-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

/* ── QUOTE DIVIDER ────────────────────────────────────────── */
.quote-divider {
  min-height: 380px;
  background:
    linear-gradient(rgba(15,11,26,0.6), rgba(93,46,142,0.4), rgba(15,11,26,0.85)),
    url('fitness_athlete_female_1775665298393.png') center/cover fixed no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 10%;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.quote-divider blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  color: #f5f5f7;
  max-width: 860px;
  line-height: 1.55;
  text-shadow: 0 3px 16px rgba(0,0,0,0.6);
}

.quote-divider blockquote::before {
  content: '"';
  font-size: 5rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -2rem;
  margin-right: 6px;
  font-style: normal;
}

/* ── PRICING SECTION ──────────────────────────────────────── */
.pricing-section {
  padding: var(--section-pad);
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url('gourmet_healthy_food_1_1775665324675.png') center/cover fixed no-repeat;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 36px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--fast), box-shadow var(--fast);
  position: relative;
}

.pricing-card:hover { transform: translateY(-10px); }

.pricing-card h3 {
  font-size: 1.1rem;
  color: var(--text);
}

.price-tag {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.price-period {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-top: -10px;
}

.pricing-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pricing-card ul li i {
  color: var(--accent);
  font-size: 0.7rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Premium card */
.pricing-card.premium {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-gold);
  animation: pulse-glow 3.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 25px rgba(212,175,55,0.18); }
  50%       { box-shadow: 0 0 55px rgba(212,175,55,0.42); }
}

[data-theme="light"] .pricing-card.premium {
  animation: pulse-glow-light 3.5s ease-in-out infinite;
}

@keyframes pulse-glow-light {
  0%, 100% { box-shadow: 0 0 20px rgba(139,105,20,0.15); }
  50%       { box-shadow: 0 0 45px rgba(139,105,20,0.35); }
}

.premium-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── COURSE SECTION ───────────────────────────────────────── */
.course-section {
  padding: var(--section-pad);
  background: var(--bg-secondary);
}

.course-objective {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: -30px auto 60px;
  text-align: center;
  line-height: 1.7;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--fast), transform var(--fast), background var(--fast);
}

.module-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
}

.module-num {
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(212,175,55,0.07);
  line-height: 1;
  user-select: none;
}

[data-theme="light"] .module-num {
  color: rgba(93,46,142,0.07);
}

.module-card h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
  padding-right: 36px;
}

.module-card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FOOTER & CONTACT ─────────────────────────────────────── */
footer {
  padding: 80px 5% 40px;
  background: #000;
  border-top: 2px solid var(--primary);
}

[data-theme="light"] footer {
  background: var(--bg-secondary);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 56px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.footer-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  margin-bottom: 16px;
}

.footer-info p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-logo {
  height: 46px;
  width: auto;
  margin-bottom: 28px;
  opacity: 0.9;
}

.social-links {
  display: flex;
  gap: 18px;
  margin-top: 30px;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--accent);
  transition: var(--fast);
  display: inline-flex;
  align-items: center;
}

.social-links a:hover {
  color: var(--accent-light);
  transform: translateY(-4px);
}

/* Contact form — floating labels */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 10px;
  padding: 22px 18px 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--fast), box-shadow var(--fast);
  outline: none;
  -webkit-appearance: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group label {
  position: absolute;
  top: 15px; left: 19px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.form-status {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: #25d366;
  letter-spacing: 1px;
  min-height: 20px;
}

/* JotForm embed */
.jotform-wrap {
  width: 100%;
}

.jotform-wrap iframe {
  width: 100%;
  height: 620px;
  border: none;
  border-radius: 16px;
  background: transparent;
}

/* Footer bottom — redes + copyright */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

[data-theme="light"] .footer-bottom {
  border-top-color: var(--border);
}

.footer-bottom .social-links {
  margin-top: 0;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-align: center;
}

/* ── FLOATING ACTIONS ─────────────────────────────────────── */
.floating-actions {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 900;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 6px 22px rgba(0,0,0,0.3);
  transition: transform var(--fast), box-shadow var(--fast);
  border: none;
}

.float-btn:hover { transform: scale(1.12); }

.whatsapp-btn {
  background: #25d366;
  color: #fff;
}

.back-to-top {
  background: var(--accent);
  color: var(--primary-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fast), transform var(--fast);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── RESPONSIVE — TABLET ≤1024px ──────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 80px 5%; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 130px 5% 70px;
  }
  .hero::before, .hero::after { display: none; }
  .hero-text { padding-right: 0; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-stats { justify-content: center; }
  .hero-image-wrap { display: none; }

  .about-section {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .about-image-wrap { max-width: 380px; margin: 0 auto; }
  .about-image-wrap::before { display: none; }
  .credentials { align-items: flex-start; text-align: left; }

  .level-card { width: calc(50% - 10px); }
  .level-card:nth-child(4),
  .level-card:nth-child(5) { width: calc(50% - 10px); }

  .bento-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { gap: 32px; }
  .footer-info p { max-width: 100%; }
}

/* ── RESPONSIVE — MOBILE ≤768px ───────────────────────────── */
@media (max-width: 768px) {
  :root { --section-pad: 64px 5%; }

  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.8rem; }

  .level-card,
  .level-card:nth-child(n) { width: 100%; }

  .bento-grid { grid-template-columns: 1fr; }

  .modules-grid { grid-template-columns: 1fr 1fr; }

  .quote-divider { background-attachment: scroll; }
  .pricing-section { background-attachment: scroll; }

  .floating-actions { bottom: 18px; right: 18px; }
  .float-btn { width: 50px; height: 50px; font-size: 1.2rem; }
}

/* ── MOBILE SMALL ≤480px ──────────────────────────────────── */
@media (max-width: 480px) {
  nav { padding: 14px 4%; }
  .nav-logo img { height: 36px; }
  .lang-btn { padding: 3px 7px; font-size: 0.65rem; }
  .theme-toggle { width: 38px; height: 22px; }
  .toggle-thumb { width: 14px; height: 14px; }
  [data-theme="light"] .toggle-thumb { transform: translateX(16px); }
}

/* ══════════════════════════════════════════════════════════
   MICRO-INTERACCIONES — los elementos reaccionan al hover
══════════════════════════════════════════════════════════ */

/* ── Shimmer en botones primarios ─────────────────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.28) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0s;
  pointer-events: none;
}
.btn-primary:hover::after {
  left: 135%;
  transition: left 0.55s ease;
}

/* ── Nav links: flota + estira letra-spacing ──────────────── */
.nav-links a {
  transition: color var(--fast), letter-spacing var(--fast), transform var(--fast);
}
.nav-links a:hover {
  transform: translateY(-2px);
  letter-spacing: 2.5px;
}

/* ── Logo: suave escala al hover ──────────────────────────── */
.nav-logo a {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.nav-logo a:hover {
  transform: scale(1.06);
}

/* ── Lang buttons: pop (encoge → crece) ──────────────────── */
.lang-btn {
  transition: background var(--fast), color var(--fast), transform 0.18s var(--ease);
}
.lang-btn:hover {
  transform: scale(1.12);
}
.lang-btn:active {
  transform: scale(0.92);
}

/* ── Theme toggle: rebota al hacer clic ───────────────────── */
.theme-toggle {
  transition: background var(--fast), transform 0.2s var(--ease);
}
.theme-toggle:hover {
  transform: scale(1.1);
}
.theme-toggle:active {
  transform: scale(0.9);
}

/* ── Level cards: flotan suavemente al hover ──────────────── */
@keyframes float-card {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
  50%       { box-shadow: 0 18px 36px rgba(212,175,55,0.18); }
}
.level-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  animation: float-card 1.8s ease-in-out infinite;
}

/* ── Module cards: crecen con sombra dorada ───────────────── */
.module-card {
  transition: border-color var(--fast), transform var(--fast),
              background var(--fast), box-shadow var(--fast);
}
.module-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 12px 32px rgba(212,175,55,0.12);
}

/* ── Pricing cards: lift + sombra profunda ────────────────── */
.pricing-card {
  transition: transform var(--fast), box-shadow var(--fast), border-color var(--fast);
}
.pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.25);
}
.pricing-card.premium:hover {
  transform: translateY(-12px) scale(1.02);
}

/* ── Social icons: bailan (wiggle) al hover ───────────────── */
@keyframes wiggle {
  0%   { transform: rotate(0deg) translateY(0); }
  15%  { transform: rotate(-14deg) translateY(-4px); }
  30%  { transform: rotate(12deg)  translateY(-7px); }
  45%  { transform: rotate(-9deg)  translateY(-4px); }
  60%  { transform: rotate(6deg)   translateY(-2px); }
  75%  { transform: rotate(-3deg)  translateY(-1px); }
  100% { transform: rotate(0deg) translateY(0); }
}
.social-links a {
  transition: color var(--fast);
}
.social-links a:hover i {
  display: inline-block;
  animation: wiggle 0.55s ease forwards;
}

/* ── WhatsApp: ping continuo ──────────────────────────────── */
@keyframes whatsapp-ping {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5), 0 6px 22px rgba(0,0,0,0.3); }
  70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0), 0 6px 22px rgba(0,0,0,0.3); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0),   0 6px 22px rgba(0,0,0,0.3); }
}
.whatsapp-btn {
  animation: whatsapp-ping 2.2s ease-out infinite;
}
.whatsapp-btn:hover {
  animation: none;
  transform: scale(1.15) rotate(-8deg);
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
}

/* ── Back-to-top: flecha salta al hover ───────────────────── */
@keyframes arrow-jump {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-6px); }
  70%       { transform: translateY(-2px); }
}
.back-to-top:hover i {
  display: inline-block;
  animation: arrow-jump 0.45s ease forwards;
}

/* ── Credentials list items: desliza al hover ─────────────── */
.credentials li {
  transition: transform var(--fast), color var(--fast);
}
.credentials li:hover {
  transform: translateX(6px);
  color: var(--text);
}
.credentials li:hover i {
  transform: scale(1.2);
  transition: transform var(--fast);
}

/* ── WHATSAPP CTAs ───────────────────────────────────────── */

/* Botón inline en el hero */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-wa-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 50px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

.btn-wa-inline:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}

.btn-wa-inline i { font-size: 1.1rem; }

/* Tira intermedia */
.wa-cta-strip {
  background: linear-gradient(90deg, #1a0d2e 0%, #2d1457 50%, #1a0d2e 100%);
  border-top: 1px solid rgba(212,175,55,0.2);
  border-bottom: 1px solid rgba(212,175,55,0.2);
  padding: 36px 5%;
}

[data-theme="light"] .wa-cta-strip {
  background: linear-gradient(90deg, #f0eafa 0%, #e4d5f7 50%, #f0eafa 100%);
}

.wa-cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.wa-cta-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-cta-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.wa-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 900;
  color: #f5f5f7;
  letter-spacing: 1px;
}

[data-theme="light"] .wa-cta-title { color: #1a0d2e; }

.btn-wa-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
}

.btn-wa-strip:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5);
}

.btn-wa-strip i { font-size: 1.2rem; }

/* CTA final */
.wa-cta-final {
  padding: 90px 5%;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 2px solid var(--primary);
}

.wa-cta-final-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.wa-cta-logo {
  height: 64px;
  width: auto;
  opacity: 0.85;
}

.wa-cta-final-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}

.wa-cta-final-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
}

.btn-wa-final {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  border-radius: 50px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
  box-shadow: 0 6px 30px rgba(37,211,102,0.4);
}

.btn-wa-final:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37,211,102,0.55);
}

.btn-wa-final i { font-size: 1.4rem; }

/* ── LOADER ─────────────────────────────────────────────── */
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

#site-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

#loader-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#loader-logo-wrap.hidden {
  opacity: 0;
  pointer-events: none;
}

#loader-logo {
  width: min(300px, 70vw);
  animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(0.978);
  }
  50% {
    opacity: 1;
    transform: scale(1.022);
  }
}

#loader-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#loader-video.active {
  opacity: 1;
}
