/* ===========================================================
   Mente Corporativa — Sistema visual "Estudio en Vivo"
   Hoja de estilos del nuevo shell (base_studio.html) y páginas
   que se vayan migrando a este sistema. Prefijo de clases: st-
   No modifica ni depende de site.css (sistema anterior "mc-").
   =========================================================== */
:root{
  --st-navy-950:#070D1C;
  --st-navy-900:#0B1220;
  --st-navy-800:#111B33;
  --st-navy-700:#17407D;
  --st-teal-600:#0c8565;
  --st-teal-100:#DFF3EC;
  --st-teal-glow:#5FE0B3;
  --st-coral-500:#c2512b;
  --st-coral-300:#FF8B63;
  --st-ink:#EAF0FF;
  --st-muted:#9FB0D8;
  --st-muted-2:#7186AA;
  --st-line:rgba(255,255,255,.1);
}
.st-root{font-family:'Plus Jakarta Sans',sans-serif;background:var(--st-navy-900);color:var(--st-ink);}
.st-root h1,.st-root h2,.st-root h3,.st-root h4{font-family:'Sora',sans-serif;}
.st-root a{color:inherit;text-decoration:none;}
.st-root img{max-width:100%;display:block;}
.st-root button{font-family:inherit;cursor:pointer;}
.st-container{max-width:1240px;margin:0 auto;padding:0 32px;}

/* ===== Aviso superior ===== */

/* ===== NAV ===== */
.st-header{position:sticky;top:0;z-index:200;background:rgba(11,18,32,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--st-line);}
.st-nav{display:flex;align-items:center;gap:20px;padding:14px 32px;max-width:1240px;margin:0 auto;}

.st-nav-links{display:flex;align-items:center;gap:22px;font-size:13.5px;font-weight:600;color:var(--st-muted);flex-shrink:0;}
.st-nav-links a:hover, .st-nav-links button:hover{color:#fff;}
.st-nav-links button{background:none;border:none;color:var(--st-muted);font-size:13.5px;font-weight:600;display:flex;align-items:center;gap:5px;padding:0;}
.st-search{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.06);border:1px solid var(--st-line);border-radius:999px;padding:9px 16px;flex:1;max-width:340px;}
.st-search input{border:none;background:none;outline:none;color:#fff;font-size:13px;width:100%;font-family:inherit;}
.st-search input::placeholder{color:var(--st-muted-2);}
.st-search button{background:none;border:none;color:var(--st-muted-2);display:flex;}
.st-nav-right{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0;}
.st-btn{display:inline-flex;align-items:center;gap:7px;padding:10px 18px;border-radius:9px;font-size:13.5px;font-weight:700;border:none;white-space:nowrap;transition:transform .15s ease, box-shadow .15s ease;}
.st-btn:hover{transform:translateY(-1px);}

.st-btn-teal{background:var(--st-teal-600);color:#fff;box-shadow:0 8px 20px rgba(15,157,119,.3);}
.st-icon-btn{width:38px;height:38px;border-radius:50%;border:1px solid var(--st-line);background:rgba(255,255,255,.04);display:flex;align-items:center;justify-content:center;color:#fff;position:relative;}
.st-notif-dot{position:absolute;top:-2px;right:-2px;min-width:16px;height:16px;padding:0 3px;border-radius:999px;background:var(--st-coral-500);border:2px solid var(--st-navy-900);font-size:9px;font-weight:800;display:flex;align-items:center;justify-content:center;}
.st-avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--st-teal-600),var(--st-navy-700));display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;font-size:14px;border:none;}
.st-burger{display:none;width:38px;height:38px;border-radius:9px;border:1px solid var(--st-line);background:rgba(255,255,255,.04);color:#fff;align-items:center;justify-content:center;}

/* Mega menu */
.st-mega-wrap{position:relative;}
.st-mega{display:none;position:absolute;top:calc(100% + 16px);left:-20px;background:#111B33;border:1px solid var(--st-line);border-radius:16px;padding:22px;box-shadow:0 24px 60px rgba(0,0,0,.45);min-width:620px;z-index:250;}
.st-mega.st-open{display:block;}
.st-mega-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.st-mega-col h5{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--st-teal-glow);margin:0 0 10px;font-weight:700;}
.st-mega-col a{display:block;font-size:13px;color:var(--st-muted);padding:5px 0;}
.st-mega-col a:hover{color:#fff;}
.st-mega-foot{border-top:1px solid var(--st-line);margin-top:16px;padding-top:14px;text-align:right;}
.st-mega-foot a{font-size:12.5px;font-weight:700;color:var(--st-teal-glow);}
.st-mega-empty{color:var(--st-muted);font-size:13px;}

/* Dropdown perfil / notif */
.st-dd-wrap{position:relative;}
.st-dd{display:none;position:absolute;top:calc(100% + 12px);right:0;background:#111B33;border:1px solid var(--st-line);border-radius:14px;min-width:250px;padding:8px;box-shadow:0 20px 50px rgba(0,0,0,.45);z-index:260;}
.st-dd.st-open{display:block;}

/* Mobile drawer */
.st-mobile-drawer{display:none;flex-direction:column;gap:4px;padding:14px 20px 22px;border-top:1px solid var(--st-line);}
.st-mobile-drawer.st-open{display:flex;}
.st-mobile-drawer a, .st-mobile-drawer .st-btn{display:block;width:100%;text-align:left;padding:12px 8px;font-size:14.5px;color:#fff;background:none;border:none;}
.st-mobile-search{padding:8px;}
.st-mobile-search input{width:100%;padding:10px 14px;border-radius:9px;border:1px solid var(--st-line);background:rgba(255,255,255,.05);color:#fff;font-size:13.5px;}

/* Mismo punto de corte que theme-wharton.css (980 px): antes, entre 961 y
   980 px (tablets en horizontal, ventanas divididas) no se veía ni el menú
   ni el botón de hamburguesa. */
@media (max-width:980px){
  .st-nav-links, .st-search{display:none;}
  .st-burger{display:flex;}
}

/* ===== HERO ===== */

@keyframes st-pulse{0%{box-shadow:0 0 0 0 rgba(255,91,54,.6);}70%{box-shadow:0 0 0 12px rgba(255,91,54,0);}100%{box-shadow:0 0 0 0 rgba(255,91,54,0);}}

/* Ticker */

@keyframes st-ticker{from{transform:translateX(0);}to{transform:translateX(-50%);}}

/* Welcome (alumno) */

/* Rows */
.st-row-section{padding:40px 32px 6px;max-width:1240px;margin:0 auto;}
.st-row-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:18px;gap:14px;flex-wrap:wrap;}
.st-row-head h2{font-size:21px;margin:0;color:#fff;font-weight:800;display:flex;align-items:center;gap:9px;flex-wrap:wrap;}
.st-tag{font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px;}

.st-card{flex:0 0 258px;background:#111B33;border:1px solid var(--st-line);border-radius:16px;overflow:hidden;transition:transform .2s ease, border-color .2s ease;}
.st-card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.25);}
.st-card-top{height:126px;position:relative;display:flex;align-items:flex-start;justify-content:space-between;padding:11px;background-size:cover;background-position:center;}

.st-card-top.st-rec{background:linear-gradient(135deg,#1c2c52,#0f1830);}

.st-badge{font-size:10.5px;font-weight:800;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;display:flex;align-items:center;gap:5px;}

.st-badge.st-muted{background:rgba(255,255,255,.1);}

.st-card-body{padding:14px;}
.st-card-title{font-size:13.5px;font-weight:700;margin:0 0 8px;line-height:1.35;color:#fff;}

.st-card-meta{font-size:11.5px;color:var(--st-muted);margin:0;}

/* Chips */

/* Features */

/* FAQ */

/* Toasts (reutiliza la lógica de mensajes de Django) */

@keyframes st-toast-in{from{opacity:0;transform:translateX(40px);}to{opacity:1;transform:translateX(0);}}
@keyframes st-toast-out{from{opacity:1;transform:translateX(0);}to{opacity:0;transform:translateX(40px);}}

/* Footer */
.st-footer{background:var(--st-navy-950);border-top:1px solid var(--st-line);padding:52px 32px 26px;margin-top:20px;}

/* Reveal on scroll */
.st-reveal{opacity:0;transform:translateY(16px);transition:opacity .5s ease, transform .5s ease;}
.st-reveal.st-in{opacity:1;transform:none;}

@media (max-width:640px){
  .st-container,.st-hero,.st-row-section,.st-chips-section,.st-features-section,.st-faq-section,.st-footer,.st-welcome{padding-left:18px;padding-right:18px;}
  
  
  
  
}

@media (prefers-reduced-motion: reduce){
  .st-root *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;}
}

/* ===========================================================
   FASE 2 — Catálogo, detalle de curso y detalle de curso en vivo
   =========================================================== */

/* Catálogo: hero + buscador */

/* Grid genérico de cursos (catálogo, relacionados) */
.st-grid{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:18px;padding:0 32px;}
@media (max-width:960px){ .st-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .st-grid{grid-template-columns:1fr;} }

.st-empty{max-width:1240px;margin:0 auto;padding:60px 32px;text-align:center;}
.st-empty__icon{font-size:34px;display:block;margin-bottom:14px;}
.st-empty h4{color:#fff;font-size:17px;margin:0 0 8px;}
.st-empty p{color:var(--st-muted);font-size:14px;margin:0 0 20px;}

/* Hero de detalle de curso */

/* Layout de dos columnas: contenido + panel lateral */

/* Tabs */

/* Acordeón de contenido / sesiones */

/* Panel lateral (compra / acceso) */

/* Botones adicionales usados en cursos */
.st-btn-block{display:flex;width:100%;justify-content:center;}
.st-btn-outline{background:transparent;color:var(--st-teal-glow);border:1px solid rgba(15,157,119,.4);}
.st-btn-whatsapp{background:#178343;color:#fff;}
.st-btn-sm{padding:8px 14px;font-size:12.5px;}

/* "Sin acceso" */

@media (max-width:640px){
  
  
  .st-grid{padding:0 18px;}
  
  
}

/* ===========================================================
   FASE 3 — Autenticación (login, registro, recuperar clave, perfil)
   =========================================================== */

/* Shell de autenticación (pantalla partida) */
.st-auth-wrap{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;min-height:100dvh;background:var(--st-navy-900);}
.st-auth-side{
  position:relative; padding:56px 48px; display:flex; flex-direction:column; justify-content:center;
  background:
    radial-gradient(circle at 18% 20%, rgba(15,157,119,.28), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(216,90,48,.18), transparent 40%),
    linear-gradient(160deg, var(--st-navy-800), var(--st-navy-950));
  border-right:1px solid var(--st-line);
}
.st-auth-side__brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;color:#fff;margin-bottom:44px;}

.st-auth-side__logo-img{height:38px;width:auto;display:block;border-radius:6px;}
.st-auth-side h2{color:#fff;font-size:28px;line-height:1.25;font-weight:800;margin:0 0 14px;max-width:420px;}
.st-auth-side p{color:var(--st-muted);font-size:14.5px;line-height:1.6;max-width:400px;margin:0 0 30px;}
.st-auth-mini-ledger{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--st-line);max-width:340px;}
.st-auth-mini-ledger div{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--st-line);}
.st-auth-mini-ledger span{font-size:13px;color:var(--st-muted);}
.st-auth-mini-ledger strong{font-size:14px;color:#fff;font-weight:700;}

.st-auth-content{display:flex;align-items:center;justify-content:center;padding:48px 32px;}
.st-auth-card{width:100%;max-width:400px;}
.st-auth-logo-mobile{display:none;}
.st-auth-title{color:#fff;font-size:26px;font-weight:800;margin:0 0 8px;}
.st-auth-subtitle{color:var(--st-muted);font-size:14px;line-height:1.6;margin:0 0 26px;}

.st-form-group{margin-bottom:16px;}
.st-form-group label, .st-auth-card label, .st-auth-card .form-label{display:block;font-size:12.5px;font-weight:700;color:var(--st-muted);margin-bottom:6px;}
.st-auth-card input[type="text"],
.st-auth-card input[type="email"],
.st-auth-card input[type="password"],
.st-auth-card input[type="tel"],
.st-auth-card .form-control{
  border-radius:9px; padding:11px 14px; font-size:14px; border:1px solid var(--st-line);
  background:rgba(255,255,255,.04); color:#fff; width:100%; box-sizing:border-box; font-family:inherit;
}
.st-auth-card input::placeholder{color:var(--st-muted-2);}
.st-auth-card input:focus, .st-auth-card .form-control:focus{
  border-color:var(--st-teal-600); background:rgba(255,255,255,.07); box-shadow:0 0 0 3px rgba(15,157,119,.18); outline:none;
}
.st-auth-forgot-link{display:block;text-align:right;font-size:12.5px;color:var(--st-teal-glow);font-weight:600;margin:-8px 0 18px;}
.st-auth-divider{display:flex;align-items:center;gap:12px;color:var(--st-muted-2);font-size:12px;margin:22px 0;}
.st-auth-divider::before, .st-auth-divider::after{content:'';flex:1;height:1px;background:var(--st-line);}
.st-btn-google{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:#3c4043;font-weight:600;font-size:13.5px;padding:11px 16px;border-radius:9px;border:1px solid rgba(255,255,255,.15);}
.st-btn-google:hover{box-shadow:0 4px 14px rgba(0,0,0,.25);}
.st-auth-switch{text-align:center;font-size:13.5px;color:var(--st-muted);margin-top:22px;}
.st-auth-switch a{color:var(--st-teal-glow);font-weight:700;}
.st-auth-footer-note{text-align:center;font-size:11.5px;color:var(--st-muted-2);margin-top:16px;line-height:1.6;}
.st-auth-footer-note a{color:var(--st-muted);}

.st-alert{border-radius:10px;padding:12px 14px;font-size:13.5px;margin-bottom:16px;}
.st-alert-danger{background:rgba(216,90,48,.12);border:1px solid rgba(216,90,48,.3);color:var(--st-coral-300);}
.st-alert-success{background:rgba(15,157,119,.12);border:1px solid rgba(15,157,119,.3);color:var(--st-teal-glow);}
.st-alert-info, .st-alert-warning{background:rgba(23,64,125,.18);border:1px solid rgba(23,64,125,.35);color:#8fb2f0;}
.st-field-error{color:var(--st-coral-300);font-size:12px;margin-top:4px;}
.st-field-help{color:var(--st-muted-2);font-size:12px;margin-top:4px;}

@media (max-width:900px){
  .st-auth-wrap{grid-template-columns:1fr;}
  .st-auth-side{display:none;}
  .st-auth-logo-mobile{display:flex;justify-content:center;margin-bottom:28px;}
  
  .st-auth-logo-mobile__img{height:44px;width:auto;display:block;margin:0 auto;border-radius:7px;}
}

/* Tarjetas simples (completar teléfono / clave temporal) sobre el shell principal */

/* Perfil */

/* ===========================================================
   FASE 4 — Dashboard del alumno (mi aula, lección, examen, foro,
   certificados, suscripción)
   =========================================================== */

.st-page{max-width:1240px;margin:0 auto;padding:36px 32px 56px;}

/* Hero "Mi aula" / "Mis certificados" (mismo patrón) */
.st-dash-hero{background:linear-gradient(160deg,var(--st-navy-800),var(--st-navy-700));border:1px solid var(--st-line);border-radius:24px;padding:36px;color:#fff;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;}
.st-dash-hero__title{font-size:24px;font-weight:800;margin:0 0 8px;}
.st-dash-hero__sub{color:var(--st-muted);font-size:14px;margin:0 0 10px;max-width:440px;}

.st-dash-hero__badge{background:rgba(255,255,255,.08);border-radius:14px;padding:14px 26px;text-align:center;}
.st-dash-hero__num{display:block;font-size:28px;font-weight:800;}
.st-dash-hero__label{display:block;font-size:12px;color:var(--st-muted);}

/* Lección */

.st-video-frame{position:relative;width:100%;padding-top:56.25%;border-radius:14px;overflow:hidden;background:#000;margin-bottom:18px;}
.st-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}

/* Examen */

/* Foro */
.st-forum-layout{display:grid;grid-template-columns:1fr 320px;gap:28px;align-items:start;}
.st-forum-subtitle{font-size:15px;font-weight:700;color:#fff;margin-bottom:14px;}
.st-forum-card{background:rgba(255,255,255,.03);border:1px solid var(--st-line);border-radius:14px;padding:18px;margin-bottom:14px;}
.st-forum-card p{color:var(--st-ink);}
.st-forum-card strong{color:#fff;}
.st-forum-answer{background:rgba(255,255,255,.04);border-radius:12px;padding:14px;margin-top:8px;}
.st-forum-answer h6{color:#fff;font-weight:700;font-size:13.5px;margin-bottom:8px;}
.st-forum-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
.st-forum-textarea, .st-forum-card textarea, .st-forum-card input[type="url"]{
  border-radius:9px;padding:10px 13px;font-size:13.5px;border:1px solid var(--st-line);
  background:rgba(255,255,255,.04);color:#fff;width:100%;box-sizing:border-box;font-family:inherit;margin-bottom:10px;resize:vertical;
}
.st-forum-card textarea::placeholder, .st-forum-card input::placeholder{color:var(--st-muted-2);}
.st-forum-card textarea:focus, .st-forum-card input:focus{border-color:var(--st-teal-600);outline:none;background:rgba(255,255,255,.07);}
.st-btn-danger-outline{background:transparent;color:var(--st-coral-300);border:1px solid rgba(216,90,48,.4);}

/* Certificados */
.st-cert-card{background:rgba(255,255,255,.03);border:1px solid var(--st-line);border-radius:16px;overflow:hidden;}
.st-cert-card__cover{height:110px;background-size:cover;background-position:center;position:relative;display:flex;align-items:center;justify-content:center;background-color:var(--st-navy-800);}
.st-cert-card__ribbon{position:absolute;top:10px;right:10px;background:rgba(255,255,255,.92);color:var(--st-navy-900);font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px;}
.st-cert-card__body{padding:18px;}
.st-cert-card__title{color:#fff;font-size:15px;font-weight:700;margin:0 0 4px;}
.st-cert-card__date{color:var(--st-muted);font-size:12.5px;margin:0 0 12px;}
.st-cert-card__verify{display:flex;align-items:center;gap:8px;background:rgba(15,157,119,.12);border:1px solid rgba(15,157,119,.28);border-radius:10px;padding:10px 12px;}
.st-cert-card__verify strong, .st-cert-card__verify span.st-strong{display:block;font-size:12px;font-weight:700;color:#fff;}
.st-cert-card__verify .st-verify-code{display:block;font-size:11px;color:var(--st-muted);}
.st-cert-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap;}

/* Resultado genérico (examen, pago, verificación de certificado) */

/* Suscripción */

@media (max-width:900px){
  .st-page{padding:26px 18px 40px;}
  
  .st-lesson-layout, .st-forum-layout{grid-template-columns:1fr;}
  
}
@media (max-width:560px){
  .st-dash-hero{flex-direction:column;align-items:flex-start;}
  
  
  
}

/* ==========================================================================
   FASE 5 — Panel interno (Admin / Profesor / Vendedor). Estas páginas cargan
   Bootstrap 5 CSS (solo aquí, via extra_head) por su grid/formularios/collapse;
   todo va bajo .st-admin para que gane por especificidad sobre los estilos
   por defecto de Bootstrap sin tocar el resto del sitio.
   ========================================================================== */

.st-tag{display:inline-block;font-size:11px;font-weight:700;padding:3px 10px;border-radius:999px;margin-right:6px;}

/* Ficha deslizable de alumno (curso_alumnos.html) */

/* --- Reskin oscuro de componentes Bootstrap usados en estas páginas --- */

