/* ============================================================
   ESTILOS DE APRENDIZAJE — Rediseño espectacular
   ============================================================ */

:root {
  /* Base */
  --bg: #fafbfc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: #e6e8ef;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 40px 90px rgba(99, 102, 241, 0.18);

  /* Paleta vibrante */
  --primary: #5b8c3e;
  --primary-dark: #3f6b27;
  --primary-light: #a3d97a;
  --primary-50: #f1f8e8;
  --primary-100: #d9eec0;
  --accent: #f59e0b;
  --accent-2: #ec4899;
  --accent-3: #8b5cf6;
  --accent-4: #06b6d4;

  /* Estilos */
  --activo: #ef4444;
  --activo-2: #f97316;
  --activo-bg: #fff1f0;
  --reflexivo: #3b82f6;
  --reflexivo-2: #06b6d4;
  --reflexivo-bg: #eff6ff;
  --teorico: #8b5cf6;
  --teorico-2: #d946ef;
  --teorico-bg: #faf5ff;
  --pragmatico: #10b981;
  --pragmatico-2: #14b8a6;
  --pragmatico-bg: #ecfdf5;

  /* Gradientes */
  --grad-primary: linear-gradient(135deg, #5b8c3e 0%, #a3d97a 50%, #f59e0b 100%);
  --grad-hero: linear-gradient(135deg, #5b8c3e 0%, #06b6d4 50%, #8b5cf6 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --grad-cool: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  --grad-rainbow: linear-gradient(135deg, #ef4444 0%, #f59e0b 25%, #5b8c3e 50%, #06b6d4 75%, #8b5cf6 100%);

  /* Tipografía */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  /* Layout */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Fondo global con patrón sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(91,140,62,0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(139,92,246,0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(6,182,212,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text);
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 1rem; font-weight: 800; }
h3 { font-size: 1.3rem; margin-bottom: .75rem; }
p { color: var(--text-muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ---------- Header con glassmorphism ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.7);
  transition: all .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 30px rgba(15,23,42,0.06);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}
.brand-logo {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--grad-primary);
  background-size: 200% 200%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(91,140,62,0.35);
  animation: gradShift 6s ease infinite;
  position: relative;
  overflow: hidden;
}
.brand-logo::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 50%);
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.brand small { color: var(--text-soft); font-weight: 500; display: block; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: .92rem;
  transition: all .25s var(--ease);
  position: relative;
}
.nav-links a:hover {
  background: var(--primary-50);
  color: var(--primary-dark);
  transform: translateY(-1px);
}
.nav-links a.active {
  background: var(--primary-50);
  color: var(--primary-dark);
}
.nav-cta {
  background: var(--text) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(15,23,42,0.2);
  transition: all .3s var(--ease) !important;
}
.nav-cta:hover {
  background: var(--grad-warm) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(245,158,11,0.35);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 42px; height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  width: 18px; height: 2px; background: var(--text);
  position: relative; transition: all .25s var(--ease);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--text);
  transition: all .25s var(--ease);
}
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after  { transform: translateY(6px); }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: rotate(45deg); }
.menu-toggle.open span::after  { transform: rotate(-45deg); }

/* ---------- HERO espectacular ---------- */
.hero {
  position: relative;
  padding: 90px 0 130px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -300px; right: -150px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(91,140,62,0.18) 0%, transparent 60%);
  z-index: 0;
  animation: blob 18s ease-in-out infinite;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 60%);
  z-index: 0;
  animation: blob 22s ease-in-out infinite reverse;
}
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.1); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

/* Partículas flotantes */
.particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: .5;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(0) translateX(0) rotate(0); opacity: 0; }
  10%  { opacity: .6; }
  90%  { opacity: .6; }
  100% { transform: translateY(-120vh) translateX(40px) rotate(360deg); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(91,140,62,0.2);
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: .02em;
  box-shadow: 0 8px 24px rgba(91,140,62,0.1);
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(91,140,62,.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(91,140,62,.2); }
  50%      { box-shadow: 0 0 0 12px rgba(91,140,62,.0); }
}

.hero h1 .grad {
  background: var(--grad-hero);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 8s ease infinite;
}
.hero h1 .grad-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin: 24px 0 36px;
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all .3s var(--ease);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,0.2);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-warm);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(245,158,11,0.35);
}
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost { background: transparent; color: var(--text-muted); padding: 12px 18px; }
.btn-ghost:hover { color: var(--primary-dark); }
.btn .arrow { transition: transform .3s var(--ease); display:inline-block; }
.btn:hover .arrow { transform: translateX(6px); }

/* ---------- Hero visual mejorado ---------- */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
  perspective: 1000px;
}
.style-orb {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: var(--shadow-lg);
  animation: morph 8s ease-in-out infinite, float 6s ease-in-out infinite;
  cursor: default;
  transition: all .4s var(--ease);
  letter-spacing: .02em;
}
.style-orb::before {
  content: "";
  position: absolute;
  top: 12%; left: 18%;
  width: 35%; height: 25%;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  filter: blur(2px);
}
.style-orb:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}
.style-orb.activo    { top: 2%;  left: 0%;  background: linear-gradient(135deg, #ef4444, #f97316); animation-delay: 0s, 0s; }
.style-orb.reflexivo { top: 2%;  right: 0%; background: linear-gradient(135deg, #3b82f6, #06b6d4); animation-delay: 1s, 1.5s; }
.style-orb.teorico   { bottom: 2%; left: 0%; background: linear-gradient(135deg, #8b5cf6, #d946ef); animation-delay: 2s, 3s; }
.style-orb.pragmatico{ bottom: 2%; right: 0%; background: linear-gradient(135deg, #10b981, #14b8a6); animation-delay: 3s, 4.5s; }
@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50%      { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(3deg); }
}

.center-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 30%; aspect-ratio: 1;
  background: var(--surface);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15), inset 0 0 0 8px rgba(255,255,255,0.5);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  z-index: 2;
  background-image: var(--grad-rainbow);
  background-size: 300% 300%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 6s ease infinite;
}
.center-dot::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3), var(--accent-4));
  z-index: -1;
  filter: blur(20px);
  opacity: .4;
  animation: pulseBlur 3s ease infinite;
}
@keyframes pulseBlur {
  0%, 100% { opacity: .3; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.1); }
}

/* Líneas conectoras decorativas */
.connector-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: .6;
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
  position: relative;
}
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(245,158,11,0.06) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(91,140,62,0.06) 0%, transparent 40%);
  pointer-events: none;
}
.section-head {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 740px;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
  border: 1px solid var(--primary-100);
  box-shadow: var(--shadow-sm);
}
.section-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Cards Grid mejorados ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.card::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent-3));
  opacity: 0;
  transition: opacity .4s var(--ease);
  z-index: 0;
}
.card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--surface);
  z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(91,140,62,0.15);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-50), #fff);
  color: var(--primary-dark);
  display: grid; place-items: center;
  font-size: 1.75rem;
  margin-bottom: 22px;
  transition: all .4s var(--bounce);
  border: 1px solid var(--primary-100);
  position: relative;
}
.card-icon::before {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 20px;
  background: var(--grad-warm);
  opacity: 0;
  filter: blur(12px);
  transition: opacity .4s;
  z-index: -1;
}
.card:hover .card-icon {
  transform: scale(1.12) rotate(-6deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}
.card:hover .card-icon::before { opacity: .4; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: .9rem;
}
.card:hover .card-link .arrow { transform: translateX(6px); }

/* ---------- Style Cards más vibrantes ---------- */
.style-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.style-card {
  position: relative;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .4s var(--ease);
  cursor: pointer;
}
.style-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s;
  z-index: 0;
}
.style-card.activo::before    { background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(249,115,22,0.05)); }
.style-card.reflexivo::before { background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(6,182,212,0.05)); }
.style-card.teorico::before   { background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(217,70,239,0.05)); }
.style-card.pragmatico::before{ background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(20,184,166,0.05)); }
.style-card:hover::before { opacity: 1; }
.style-card > * { position: relative; z-index: 1; }
.style-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.style-card .bar {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 6px;
  z-index: 2;
}
.style-card .deco {
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: .15;
  transition: all .5s var(--ease);
  z-index: 0;
}
.style-card:hover .deco {
  transform: scale(1.4) rotate(45deg);
  opacity: .25;
}
.style-card.activo .deco    { background: linear-gradient(135deg, var(--activo), var(--activo-2)); }
.style-card.reflexivo .deco { background: linear-gradient(135deg, var(--reflexivo), var(--reflexivo-2)); }
.style-card.teorico .deco   { background: linear-gradient(135deg, var(--teorico), var(--teorico-2)); }
.style-card.pragmatico .deco{ background: linear-gradient(135deg, var(--pragmatico), var(--pragmatico-2)); }

.style-card .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.style-card h3 { font-size: 1.65rem; margin-bottom: 12px; font-weight: 800; }
.style-card .style-emoji {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: inline-block;
  transition: transform .4s var(--bounce);
}
.style-card:hover .style-emoji {
  transform: rotate(-12deg) scale(1.2);
}
.style-card.activo    .bar { background: linear-gradient(90deg, var(--activo), var(--activo-2)); }    .style-card.activo .label    { background: var(--activo-bg); color: var(--activo); }
.style-card.reflexivo .bar { background: linear-gradient(90deg, var(--reflexivo), var(--reflexivo-2)); } .style-card.reflexivo .label { background: var(--reflexivo-bg); color: var(--reflexivo); }
.style-card.teorico   .bar { background: linear-gradient(90deg, var(--teorico), var(--teorico-2)); }   .style-card.teorico .label   { background: var(--teorico-bg); color: var(--teorico); }
.style-card.pragmatico .bar{ background: linear-gradient(90deg, var(--pragmatico), var(--pragmatico-2)); } .style-card.pragmatico .label{ background: var(--pragmatico-bg); color: var(--pragmatico); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.stat {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, var(--primary-50) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .4s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat:hover::before { opacity: 1; }
.stat > * { position: relative; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--grad-warm);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1.1;
  animation: gradShift 4s ease infinite;
}
.stat-label { font-size: .9rem; color: var(--text-muted); margin-top: 8px; font-weight: 500; }

/* ---------- Page hero (internas) ---------- */
.page-hero {
  padding: 130px 0 70px;
  background:
    radial-gradient(circle at 90% 20%, rgba(91,140,62,0.12) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(245,158,11,0.08) 0%, transparent 40%),
    linear-gradient(180deg, rgba(241,248,232,0.5) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--grad-cool);
  opacity: .05;
  animation: blob 16s ease-in-out infinite;
}
.breadcrumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: .85rem; color: var(--text-soft);
  margin-bottom: 24px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--primary-dark); }
.breadcrumbs .sep { color: var(--border); }
.page-hero h1 { max-width: 820px; position: relative; z-index: 1; }
.page-hero p.lead { max-width: 720px; margin-top: 20px; font-size: 1.15rem; color: var(--text-muted); position: relative; z-index: 1; line-height: 1.7; }

.page-body { padding: 70px 0 110px; position: relative; }

/* ---------- Prose ---------- */
.prose {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
}
.prose h2 {
  margin-top: 2.6em;
  margin-bottom: .85em;
  color: var(--text);
  position: relative;
  padding-left: 22px;
  font-size: 1.6rem;
}
.prose h2::before {
  content: "";
  position: absolute; left: 0; top: .25em;
  width: 6px; height: .85em;
  background: var(--grad-warm);
  border-radius: 6px;
}
.prose h3 { margin-top: 2em; margin-bottom: .6em; color: var(--text); font-size: 1.18rem; }
.prose p { margin-bottom: 1.15em; }
.prose ul, .prose ol { margin: 1em 0 1.5em 1.8em; }
.prose li { margin-bottom: .5em; color: var(--text-muted); }
.prose blockquote {
  margin: 1.8em 0;
  padding: 26px 30px;
  background: linear-gradient(135deg, var(--primary-50) 0%, rgba(245,158,11,0.05) 100%);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  color: var(--text);
  font-style: italic;
  font-size: 1.05rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.prose blockquote::before {
  content: "\201C";
  position: absolute;
  top: -8px; left: 20px;
  font-size: 4rem;
  color: var(--primary);
  opacity: .25;
  font-family: Georgia, serif;
  line-height: 1;
}
.prose strong { color: var(--text); font-weight: 600; }
.prose a { font-weight: 600; border-bottom: 1px solid currentColor; }

.refs {
  margin-top: 60px;
  padding: 30px;
  border: 1.5px dashed var(--primary-100);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(241,248,232,0.6), rgba(255,255,255,0.6));
}
.refs h3 { color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.refs h3::before { content: "📚"; }
.refs p { font-size: .92rem; line-height: 1.7; }

/* ---------- Feature lists ---------- */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 28px 0 !important;
}
.feature-list li {
  background: var(--surface);
  padding: 16px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  font-weight: 500;
  color: var(--text);
  margin: 0 !important;
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-list li::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--grad-warm);
  transform: scaleY(0);
  transition: transform .25s var(--ease);
  transform-origin: center;
}
.feature-list li:hover {
  border-color: var(--primary-light);
  background: var(--primary-50);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}
.feature-list li:hover::after { transform: scaleY(1); }
.feature-list li::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(91,140,62,0.15);
}
.feature-list.main li::before {
  width: 12px; height: 12px;
  background: var(--grad-warm);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.15);
}

/* ---------- Author cards ---------- */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.author-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.author-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: var(--grad-cool);
  opacity: .08;
  transition: all .4s;
}
.author-card:hover::before {
  height: 100%; opacity: .04;
}
.author-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
}
.author-avatar {
  width: 90px; height: 90px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--grad-primary);
  background-size: 200% 200%;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 700;
  box-shadow: 0 12px 30px rgba(91,140,62,0.35);
  position: relative;
  z-index: 1;
  animation: gradShift 6s ease infinite;
  transition: transform .4s var(--bounce);
}
.author-card:hover .author-avatar {
  transform: scale(1.1) rotate(-5deg);
}
.author-avatar::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  z-index: -1;
  filter: blur(14px);
  opacity: .4;
}
.author-card h3 { font-size: 1.15rem; margin-bottom: 6px; position: relative; z-index: 1; }
.author-card p.role { color: var(--text-soft); font-size: .88rem; margin-bottom: 16px; position: relative; z-index: 1; }
.author-card .card-link { position: relative; z-index: 1; }

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 900px; margin: 0 auto; }
.quiz-progress {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 16px 24px;
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 18px;
  box-shadow: var(--shadow-md);
}
.progress-text { font-weight: 700; font-size: .92rem; color: var(--text); white-space: nowrap; }
.progress-bar { flex: 1; height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; position: relative; }
.progress-fill {
  height: 100%;
  background: var(--grad-rainbow);
  background-size: 300% 100%;
  width: 0%;
  transition: width .5s var(--ease);
  border-radius: 999px;
  animation: gradShift 4s ease infinite;
}

.q-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 20px;
  align-items: center;
  transition: all .25s var(--ease);
}
.q-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.q-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-50), #fff);
  color: var(--primary-dark);
  display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
  border: 1px solid var(--primary-100);
}
.q-text { color: var(--text); line-height: 1.55; font-size: 1rem; }
.q-choice { display: flex; gap: 10px; flex-shrink: 0; }
.q-choice button {
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-weight: 800; font-size: 1.35rem;
  cursor: pointer;
  transition: all .25s var(--bounce);
  color: var(--text-soft);
}
.q-choice button:hover { transform: scale(1.1); }
.q-choice .plus.active  { background: linear-gradient(135deg, #10b981, #14b8a6); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(16,185,129,0.4); }
.q-choice .minus.active { background: linear-gradient(135deg, #ef4444, #f97316); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(239,68,68,0.4); }
.q-item.answered { background: linear-gradient(180deg, #ffffff, #fafffa); border-color: var(--primary-100); }

.quiz-meta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 8px; color: var(--text); }
.field input, .field select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-family: var(--font-sans);
  font-size: .92rem;
  background: var(--surface-2);
  color: var(--text);
  transition: all .25s var(--ease);
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-50);
}

.quiz-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

.results {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  margin-top: 44px;
  box-shadow: var(--shadow-lg);
  display: none;
  position: relative;
  overflow: hidden;
}
.results::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background: var(--grad-rainbow);
  opacity: .05;
  border-radius: 50%;
  filter: blur(60px);
}
.results.visible { display: block; animation: fadein .6s var(--ease); }
@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.result-box {
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease);
}
.result-box:hover { transform: translateY(-4px); }
.result-box::after {
  content: "";
  position: absolute;
  top: -50%; right: -50%;
  width: 150%; height: 150%;
  border-radius: 50%;
  opacity: .12;
}
.result-box .num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; line-height: 1; position: relative; z-index: 1; }
.result-box .name { font-weight: 700; margin-top: 8px; font-size: 1rem; position: relative; z-index: 1; }
.result-box .level { font-size: .8rem; color: var(--text-soft); margin-top: 6px; position: relative; z-index: 1; }
.result-box.activo    { background: var(--activo-bg); }    .result-box.activo .num    { color: var(--activo); }     .result-box.activo::after    { background: var(--activo); }
.result-box.reflexivo { background: var(--reflexivo-bg); } .result-box.reflexivo .num { color: var(--reflexivo); }  .result-box.reflexivo::after { background: var(--reflexivo); }
.result-box.teorico   { background: var(--teorico-bg); }   .result-box.teorico .num   { color: var(--teorico); }    .result-box.teorico::after   { background: var(--teorico); }
.result-box.pragmatico{ background: var(--pragmatico-bg);} .result-box.pragmatico .num{ color: var(--pragmatico); } .result-box.pragmatico::after{ background: var(--pragmatico); }

.chart-wrap { margin: 32px 0; }
.chart-bars { display: grid; gap: 16px; }
.chart-bar { display: grid; grid-template-columns: 120px 1fr 60px; gap: 16px; align-items: center; }
.chart-bar .lbl { font-weight: 700; font-size: .92rem; color: var(--text); }
.chart-bar .track { background: var(--surface-2); border-radius: 999px; height: 20px; overflow: hidden; position: relative; }
.chart-bar .fill { height: 100%; border-radius: 999px; transition: width 1.2s var(--ease); position: relative; overflow: hidden; }
.chart-bar .fill::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2.5s linear infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.chart-bar.activo    .fill { background: linear-gradient(90deg, var(--activo), var(--activo-2)); }
.chart-bar.reflexivo .fill { background: linear-gradient(90deg, var(--reflexivo), var(--reflexivo-2)); }
.chart-bar.teorico   .fill { background: linear-gradient(90deg, var(--teorico), var(--teorico-2)); }
.chart-bar.pragmatico .fill { background: linear-gradient(90deg, var(--pragmatico), var(--pragmatico-2)); }
.chart-bar .val { text-align: right; font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; }
table.data th { background: linear-gradient(135deg, var(--primary-50), rgba(245,158,11,0.05)); font-weight: 700; color: var(--text); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover { background: var(--primary-50); }

/* ---------- Link list ---------- */
.link-list { display: grid; gap: 14px; margin: 24px 0; }
.link-list a {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.link-list a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--grad-warm);
  transform: scaleY(0);
  transition: transform .3s;
  transform-origin: center;
}
.link-list a:hover {
  border-color: var(--primary);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  color: var(--primary-dark);
}
.link-list a:hover::before { transform: scaleY(1); }
.link-list .icon { color: var(--primary); flex-shrink: 0; }
.link-list .label { font-weight: 500; flex: 1; }
.link-list .arrow { color: var(--text-soft); transition: transform .25s; }
.link-list a:hover .arrow { transform: translateX(4px); color: var(--primary); }

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  padding: 90px 0 50px;
  margin-top: 90px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -50%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(91,140,62,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.footer::after {
  content: "";
  position: absolute;
  bottom: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; font-family: var(--font-sans); font-weight: 700; }
.footer p { color: #94a3b8; font-size: .92rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { color: #94a3b8; font-size: .92rem; transition: all .25s var(--ease); display: inline-block; }
.footer ul a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: .86rem;
  color: #64748b;
  position: relative;
}
.footer .brand { color: #fff; }
.footer .brand small { color: #94a3b8; }

/* ---------- Util ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: all .8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-reveal="left"] { transform: translateX(-40px); }
.reveal[data-reveal="left"].visible { transform: translateX(0); }
.reveal[data-reveal="right"] { transform: translateX(40px); }
.reveal[data-reveal="right"].visible { transform: translateX(0); }
.reveal[data-reveal="scale"] { transform: scale(0.92); }
.reveal[data-reveal="scale"].visible { transform: scale(1); }

/* Stagger delays */
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* Decorative shapes */
.shape-deco {
  position: absolute;
  pointer-events: none;
  opacity: .6;
  z-index: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { margin: 0 auto; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .nav-links {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; border-radius: 10px; font-size: 1rem; }
  .menu-toggle { display: inline-flex; }
  .hero { padding: 50px 0 70px; }
  .section { padding: 70px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .q-item { grid-template-columns: 40px 1fr; padding: 18px 18px; }
  .q-item .q-choice { grid-column: 1 / -1; justify-content: flex-end; }
  .chart-bar { grid-template-columns: 90px 1fr 44px; gap: 10px; }
  .results { padding: 28px 22px; }
  .page-hero { padding: 90px 0 50px; }
  .page-body { padding: 50px 0 90px; }
  .style-orb { font-size: .85rem; }
  .center-dot { font-size: 1.15rem; }
}

@media print {
  .site-header, .footer, .quiz-actions, .quiz-progress, .hero::before, .hero::after { display: none; }
  body { background: #fff; }
  body::before { display: none; }
  .results { box-shadow: none; border: 1px solid #ccc; }
}
