/* ═══════════════════════════════════════════════════════════
   RAPICTRL EDUCACIÓN — educacion.css

   Capa que se carga DESPUÉS de style.css. No duplica el sistema de
   diseño: reutiliza contenedores, tipografía, mockups y animaciones
   de la landing general, y solo aporta:
     1. el acento violeta que identifica al producto educativo
     2. los mockups propios del mundo académico (aula, notas, portal)

   Acento educación:
     violet-700 : #7c3aed   (acento principal)
     violet-600 : #8b5cf6
     violet-300 : #c4b5fd   (sobre fondo oscuro)
     violet-50  : #f5f3ff
   La marca (rojo #fc454d) se conserva en el logo y el header: es la
   misma empresa, no un producto distinto.

   Superficies de mockup (deben coincidir con style.css):
     shell #10122e · superficie #1c1e4a · texto #e2e8f0 · sec. #9aa0d8
═══════════════════════════════════════════════════════════ */

/* ── Marca: "Rapictrl Educación" en el logo ──────────────── */
.logo-suffix {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #c4b5fd;
  border: 1px solid rgba(196,181,253,.4);
  border-radius: 9999px;
  padding: .12rem .5rem;
  margin-left: .5rem;
  white-space: nowrap;
}
.site-header.scrolled .logo-suffix {
  color: #7c3aed;
  border-color: rgba(124,58,237,.35);
  background: #f5f3ff;
}

/* Esta landing lleva un ítem más de navegación que la general; sin esto
   "Aula virtual" se parte en dos líneas y descuadra el header. */
.main-nav a,
.header-actions .btn-ghost,
.header-actions .btn-outline,
.header-actions .btn-primary { white-space: nowrap; }

/* ── Botón primario en versión educación ─────────────────── */
.btn-primary.btn-edu {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 10px 28px rgba(124,58,237,.42);
}
.btn-primary.btn-edu:hover { box-shadow: 0 14px 34px rgba(124,58,237,.52); }

/* ── Fondo del hero en clave violeta ─────────────────────── */
body.edu .hero {
  background:
    radial-gradient(1000px 600px at 110% 10%, rgba(124,58,237,.42), transparent 55%),
    radial-gradient(800px 520px at -10% 90%, rgba(29,78,216,.3), transparent 55%),
    linear-gradient(160deg, #0d0d2b 0%, #1d174a 55%, #0d0d2b 100%);
}

/* ── Acentos de sección ──────────────────────────────────── */
.badge-edu {
  background: rgba(124,58,237,.2);
  border-color: rgba(167,139,250,.45);
  color: #ddd6fe;
}
.eyebrow-edu { color: #7c3aed; background: #f5f3ff; border-color: #ddd6fe; }
.eyebrow-edu-light { color: #c4b5fd; background: rgba(124,58,237,.16); border-color: rgba(167,139,250,.4); }

.text-gradient-edu {
  background: linear-gradient(90deg, #a78bfa 0%, #7fb2ff 60%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-glow.edu-glow { background: radial-gradient(circle, rgba(124,58,237,.4) 0%, transparent 70%); }

.feature-tag-edu { color: #7c3aed; background: #f5f3ff; border-color: #ddd6fe; }
.who-icon-edu    { background: linear-gradient(135deg, #f0e9ff 0%, #e3edff 100%); }

/* Número del paso en violeta (pisa el gradiente rojo del base) */
.step-num-edu {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.edu .step-card:hover { border-color: #ddd6fe; }
body.edu .step-icon { background: linear-gradient(135deg, #f0e9ff 0%, #e3edff 100%); }
body.edu .step-link { color: #7c3aed; }
body.edu .step-connector { background: repeating-linear-gradient(to bottom, #c4b5fd 0 6px, transparent 6px 12px); }
@media (min-width: 768px) {
  body.edu .step-connector { background: repeating-linear-gradient(to right, #c4b5fd 0 6px, transparent 6px 12px); }
}
body.edu .faq-item.open { border-color: #ddd6fe; }
body.edu .faq-question:hover { color: #7c3aed; }
body.edu .faq-item.open .faq-icon { color: #7c3aed; }
body.edu .pain-solution {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  box-shadow: 0 18px 44px rgba(124,58,237,.32);
}

/* Barras del gráfico del hero, en tonos de educación */
.bar-edu   { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.bar-edu-2 { background: linear-gradient(180deg, #93c5fd, #3b82f6); }

/* Estado neutro en la lista de movimientos (ni ingreso ni egreso) */
.txn-amount.neutral { color: #9aa0d8; }

/* Semáforo académico reutilizado en varias tablas.
   Tonos claros porque todos los mockups van sobre fondo oscuro. */
.edu-ok     { color: #4ade80 !important; font-weight: 700; }
.edu-warn   { color: #facc15 !important; font-weight: 700; }
.edu-danger { color: #f87171 !important; font-weight: 700; }

.inv-btn.inv-btn-edu { background: #7c3aed; }

/* Sombra violeta para los mockups de esta landing */
body.edu .mockup-browser {
  box-shadow:
    0 28px 70px rgba(5,6,24,.55),
    0 0 0 1px rgba(255,255,255,.05),
    0 44px 90px -30px rgba(124,58,237,.4);
}

/* ── Feature rows sobre fondo claro ──────────────────────── */
/* style.css pinta .feature-copy en blanco (pensado para la sección oscura)
   y solo lo corrige dentro de #features. Nuestra sección de módulos se
   llama #modulos, así que replicamos ese ajuste aquí. */
#modulos .feature-copy { color: #131332; }
#modulos .feature-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
  color: #131332;
}
#modulos .feature-copy p { color: #63678f; }
#modulos .check-list li::before { background: #f0e9ff; color: #7c3aed; }

/* ── Cuerpo genérico de los mockups académicos ───────────── */
/* Todos los mockups viven dentro de .mockup-browser, que es OSCURO
   (#10122e). Superficie #1c1e4a, texto #e2e8f0, secundario #9aa0d8.
   No usar tonos claros aquí. */
.edu-body {
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.edu-chip {
  font-size: .6rem;
  font-weight: 700;
  color: #c4b5fd;
  background: rgba(124,58,237,.18);
  border: 1px solid rgba(167,139,250,.35);
  border-radius: 9999px;
  padding: .15rem .55rem;
  white-space: nowrap;
}
.edu-chip-ok {
  color: #4ade80;
  background: rgba(74,222,128,.12);
  border-color: rgba(74,222,128,.3);
}

/* .fin-value sin modificador de color hereda el texto oscuro del body y
   desaparece sobre el mockup. Le damos el gris claro por defecto. */
.edu-body .fin-value { color: #e2e8f0; }

/* ── Mockup: árbol del aula (tema → clases → examen) ─────── */
.edu-tree {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.edu-tree-tema {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  font-weight: 700;
  color: #e2e8f0;
  background: #1c1e4a;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: .6rem;
  padding: .4rem .6rem;
}
.edu-tree-caret { color: #a78bfa; font-size: .6rem; }
.edu-tree-titulo { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edu-tree-meta {
  font-size: .58rem;
  font-weight: 600;
  color: #6a6fa5;
  white-space: nowrap;
}
.edu-tree-clase {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .65rem;
  color: #9aa0d8;
  padding: .3rem .6rem .3rem 1.5rem;
  border-radius: .5rem;
}
.edu-tree-clase.current {
  color: #ddd6fe;
  font-weight: 700;
  background: rgba(124,58,237,.16);
}
.edu-check { color: #4ade80; font-weight: 800; font-size: .6rem; }
.edu-dot-live {
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: #a78bfa;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(167,139,250,.25);
}
.edu-tree-examen {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .65rem;
  font-weight: 700;
  color: #ddd6fe;
  background: rgba(124,58,237,.1);
  border: 1px dashed rgba(167,139,250,.45);
  border-radius: .6rem;
  padding: .4rem .6rem;
  margin-top: .2rem;
}
.edu-tree-examen .edu-tree-meta { margin-left: auto; }
.edu-examen-icon { font-size: .7rem; }

/* ── Mockup: tabla de notas por corte ────────────────────── */
.edu-notas { display: flex; flex-direction: column; }
.edu-notas-head,
.edu-notas-row {
  display: grid;
  grid-template-columns: 1fr 2.2rem 2.2rem 2.6rem;
  gap: .3rem;
  align-items: center;
  font-size: .65rem;
  padding: .35rem .4rem;
}
.edu-notas-head {
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #6a6fa5;
  background: rgba(255,255,255,.04);
  border-radius: .5rem .5rem 0 0;
}
.edu-notas-head span:not(:first-child),
.edu-notas-row  span:not(:first-child) { text-align: center; }
.edu-notas-row { color: #c7cbee; border-bottom: 1px solid rgba(255,255,255,.04); }
.edu-notas-row:last-child { border-bottom: none; }
.edu-notas-row span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.edu-notas-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .62rem;
  color: #9aa0d8;
  padding: .45rem .4rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.edu-notas-foot strong { color: #a78bfa; font-size: .8rem; }

/* ── Mockup: portal del estudiante ───────────────────────── */
.edu-portal-hi { display: flex; align-items: center; gap: .6rem; }
.edu-avatar {
  width: 30px; height: 30px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.edu-portal-nombre { font-size: .72rem; font-weight: 800; color: #e2e8f0; }
.edu-portal-prog   { font-size: .6rem; color: #9aa0d8; }

.edu-progress-block { display: flex; flex-direction: column; gap: .28rem; }
.edu-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: .62rem;
  color: #c7cbee;
  margin-top: .2rem;
}
.edu-progress-row span:last-child { font-weight: 700; color: #c4b5fd; }
.edu-progress-bar {
  height: 5px;
  border-radius: 9999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.edu-progress-bar i {
  display: block;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}
.edu-progress-bar i.full { background: linear-gradient(90deg, #34d399, #16a34a); }

.edu-pendientes {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.edu-pend-title {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #6a6fa5;
}
.edu-pend-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .65rem;
  color: #c7cbee;
}
.edu-pend-tag {
  font-size: .52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 9999px;
  padding: .1rem .38rem;
  flex-shrink: 0;
}
.edu-pend-tag.clase  { color: #93c5fd; background: rgba(59,130,246,.16); }
.edu-pend-tag.examen { color: #c4b5fd; background: rgba(124,58,237,.18); }
.edu-pend-tag.doc    { color: #86efac; background: rgba(74,222,128,.14); }

/* ── Mockup: documentos del estudiante ───────────────────── */
.edu-docs { display: flex; flex-wrap: wrap; gap: .3rem; }
.edu-doc {
  font-size: .58rem;
  font-weight: 600;
  color: #c7cbee;
  background: #1c1e4a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 9999px;
  padding: .2rem .5rem;
}

/* ── Banda de demo (sección completa) ────────────────────── */
.edu-demo-band {
  padding: 5.5rem 0;
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(45,212,191,.16), transparent 55%),
    linear-gradient(135deg, #0d0d2b 0%, #4c1d95 55%, #6d28d9 100%);
  border-radius: clamp(1.5rem, 3.5vw, 2.75rem);
  margin: clamp(.75rem, 2vw, 1.5rem);
  overflow: hidden;
}
.edu-demo-band-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .edu-demo-band-inner { grid-template-columns: 1.4fr 1fr; gap: 3.5rem; }
}
.edu-demo-band-copy h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.9rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 1rem 0 .85rem;
  letter-spacing: -.025em;
}
.edu-demo-band-copy p {
  color: #c7cbee;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 46rem;
}
.edu-demo-band-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.edu-demo-band-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 1.75rem;
  padding: 1.75rem;
  backdrop-filter: blur(8px);
}
.edu-demo-band-list li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-size: .9rem;
  color: #e2e8f0;
}
.edu-demo-band-list strong {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #c4b5fd;
  min-width: 2.1rem;
  text-align: right;
  flex-shrink: 0;
}

/* ── Precios ─────────────────────────────────────────────── */
.edu-price-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 62rem;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .edu-price-wrap { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.edu-price-card.pricing-popular {
  border-color: transparent;
  background: linear-gradient(160deg, rgba(124,58,237,.3), rgba(59,130,246,.14));
  box-shadow: 0 0 0 2px #a78bfa, 0 22px 50px rgba(124,58,237,.32);
  transform: none;
}
.edu-price-card.pricing-popular:hover { transform: translateY(-4px); }
.edu-popular-badge {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 8px 20px rgba(124,58,237,.4);
}

.edu-price-cta {
  background: #fff;
  color: #6d28d9;
  border-color: transparent;
  margin-top: .25rem;
}
.edu-price-cta:hover { background: #f5f3ff; }
.edu-price-alt { margin-top: .5rem; }

.edu-price-note {
  color: #c7cbee;
  padding-top: .5rem;
}
.edu-price-note h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .6rem;
  letter-spacing: -.015em;
}
.edu-price-note p {
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.check-list-light li { color: #c7cbee; }
.check-list-light li::before { background: rgba(124,58,237,.25); color: #c4b5fd; }
.btn-outline-light {
  display: inline-flex;
  margin-top: 1.25rem;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-outline-light:hover {
  border-color: #c4b5fd;
  color: #c4b5fd;
  background: rgba(124,58,237,.14);
}

/* ── Footer CTA en tono educación ────────────────────────── */
.edu-footer-cta {
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(124,58,237,.4), transparent 60%),
    radial-gradient(700px 460px at 0% 100%, rgba(29,78,216,.28), transparent 60%),
    linear-gradient(150deg, #0d0d2b 0%, #2a1458 55%, #0d0d2b 100%);
}

/* ── Ajustes móviles ─────────────────────────────────────── */
@media (max-width: 640px) {
  .logo-suffix { display: none; }
  .edu-demo-band { padding: 3.75rem 0; }
  .edu-demo-band-list { padding: 1.25rem; }
  .edu-demo-band-list strong { font-size: 1.2rem; }
}
