/* ============================================================
   Arklos Centro de Estudios — CAMPUS (app shell)
   Hoja de estilos independiente de la web pública (assets/style.css).
   Paleta y layout propios de una aplicación, no de una landing page.
   ============================================================ */

:root{
  --cp-bg:        #f3f4f7;
  --cp-sidebar:   #12172b;
  --cp-sidebar-2: #1c2340;
  --cp-card:      #ffffff;
  --cp-line:      #e5e7ec;
  --cp-text:      #12172b;
  --cp-muted:     #6b7280;
  --cp-gold:      #f5c400;
  --cp-success:   #16a34a;
  --cp-success-bg:#e8f7ee;
  --cp-warn-bg:   #fff7e0;
  --cp-danger:    #dc2626;
  --cp-danger-bg: #fdecec;
  --cp-radius:    12px;
}

*{ margin:0; padding:0; box-sizing:border-box; }

body.ia-app{
  font-family:'DM Sans', sans-serif;
  background: var(--cp-bg);
  color: var(--cp-text);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
.ia-app a{ text-decoration:none; color:inherit; }
.ia-app ul{ list-style:none; }
.ia-app img{ max-width:100%; display:block; }
.ia-app h1, .ia-app h2, .ia-app h3{ font-family:'DM Serif Display', serif; font-weight:400; }
.ia-app b, .ia-app strong{ font-weight:700; }

/* ---------- shell: sidebar + main ---------- */
.cp-shell{ display:flex; min-height:100vh; }

.cp-sidebar{
  width:248px; flex-shrink:0; background:var(--cp-sidebar);
  color:#c8cbe0; display:flex; flex-direction:column; position:sticky; top:0; height:100vh;
}
.cp-sidebar .cp-brand{
  display:flex; align-items:center; gap:10px; padding:22px 20px; border-bottom:1px solid rgba(255,255,255,0.08);
}
.cp-sidebar .cp-brand img{ height:26px; filter:brightness(0) invert(1); }
.cp-sidebar .cp-brand span{ font-size:12px; color:#8890b5; letter-spacing:0.04em; }

.cp-nav{ padding:18px 12px; flex:1; }
.cp-nav .cp-nav-label{ font-size:10.5px; text-transform:uppercase; letter-spacing:0.08em; color:#5c6389; padding:14px 10px 6px 10px; }
.cp-nav a{
  display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px;
  font-size:14px; font-weight:500; color:#c8cbe0; margin-bottom:2px;
}
.cp-nav a:hover{ background:rgba(255,255,255,0.06); color:#fff; }
.cp-nav a.active{ background:var(--cp-sidebar-2); color:#fff; font-weight:700; box-shadow:inset 3px 0 0 var(--cp-gold); }
.cp-nav a .cp-ico{ width:16px; text-align:center; opacity:0.85; }

.cp-sidebar .cp-user{
  padding:16px 20px; border-top:1px solid rgba(255,255,255,0.08); font-size:13px;
}
.cp-sidebar .cp-user .cp-user-name{ color:#fff; font-weight:700; margin-bottom:2px; }
.cp-sidebar .cp-user .cp-user-rol{ color:#8890b5; font-size:11.5px; text-transform:uppercase; letter-spacing:0.05em; }
.cp-sidebar .cp-user a{ display:inline-block; margin-top:8px; font-size:12.5px; color:#c8cbe0; text-decoration:underline; padding:0; }

.cp-main{ flex:1; min-width:0; }
.cp-topbar{
  background:var(--cp-card); border-bottom:1px solid var(--cp-line);
  padding:16px 32px; display:flex; justify-content:space-between; align-items:center;
}
.cp-topbar h1{ font-size:20px; }
.cp-topbar .cp-eyebrow{ font-size:11.5px; text-transform:uppercase; letter-spacing:0.06em; color:var(--cp-muted); font-weight:700; margin-bottom:4px; display:block; }

.cp-content{ padding:32px; max-width:1180px; }

/* mobile: sidebar colapsa a barra superior simple */
.cp-mobile-topbar{ display:none; }

@media (max-width:900px){
  .cp-shell{ flex-direction:column; }
  .cp-sidebar{ display:none; }
  .cp-mobile-topbar{
    display:flex; justify-content:space-between; align-items:center;
    background:var(--cp-sidebar); color:#fff; padding:14px 18px; position:sticky; top:0; z-index:20;
  }
  .cp-mobile-topbar img{ height:22px; filter:brightness(0) invert(1); }
  .cp-mobile-topbar a{ color:#fff; font-size:13px; text-decoration:underline; }
  .cp-content{ padding:20px; }
  .cp-topbar{ padding:16px 20px; }
}

/* ---------- botones ---------- */
.cp-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:14px; padding:11px 20px; border-radius:8px; border:none; cursor:pointer;
  font-family:'DM Sans', sans-serif;
}
.cp-btn-gold{ background:var(--cp-gold); color:#12172b; }
.cp-btn-gold:hover{ background:#ffd633; }
.cp-btn-dark{ background:var(--cp-sidebar); color:#fff; }
.cp-btn-dark:hover{ background:var(--cp-sidebar-2); }
.cp-btn-ghost{ background:var(--cp-card); color:var(--cp-text); border:1px solid var(--cp-line); }
.cp-btn-ghost:hover{ border-color:#c4c8d4; }
.cp-btn-sm{ padding:7px 12px; font-size:12.5px; }

/* ---------- tarjetas / paneles ---------- */
.cp-card{ background:var(--cp-card); border:1px solid var(--cp-line); border-radius:var(--cp-radius); padding:24px; }
.cp-card + .cp-card{ margin-top:20px; }
.cp-card h3{ font-family:'DM Sans',sans-serif; font-weight:700; font-size:16px; margin-bottom:16px; }

.cp-grid-2{ display:grid; grid-template-columns:1.3fr 1fr; gap:20px; align-items:start; }
@media (max-width:900px){ .cp-grid-2{ grid-template-columns:1fr; } }

/* ---------- stat cards ---------- */
.cp-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.cp-stat{ background:var(--cp-card); border:1px solid var(--cp-line); border-radius:var(--cp-radius); padding:18px; }
.cp-stat .cp-stat-num{ font-family:'DM Serif Display',serif; font-size:28px; }
.cp-stat .cp-stat-label{ font-size:12px; color:var(--cp-muted); margin-top:2px; }
.cp-stat.warn{ border-color:#f0d060; background:var(--cp-warn-bg); }
@media (max-width:900px){ .cp-stats{ grid-template-columns:1fr 1fr; } }

/* ---------- cursos: tarjetas dashboard alumno ---------- */
.cp-course-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr)); gap:18px; }
.cp-course-card{ background:var(--cp-card); border:1px solid var(--cp-line); border-radius:var(--cp-radius); overflow:hidden; display:flex; flex-direction:column; }
.cp-course-card .cp-cc-top{ background:var(--cp-sidebar); color:#fff; padding:16px 18px; }
.cp-course-card .cp-cc-top .cp-lvl{ font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color:var(--cp-gold); font-weight:700; }
.cp-course-card .cp-cc-body{ padding:18px; flex:1; display:flex; flex-direction:column; }
.cp-course-card h3{ font-family:'DM Sans',sans-serif; font-size:16.5px; font-weight:700; margin-bottom:8px; }
.cp-course-card .cp-cc-meta{ font-size:12.5px; color:var(--cp-muted); margin-bottom:14px; }
.cp-progress-outer{ width:100%; height:6px; background:var(--cp-bg); border-radius:20px; overflow:hidden; margin-bottom:10px; }
.cp-progress-inner{ height:100%; background:var(--cp-gold); }

/* ---------- pills de estado ---------- */
.cp-pill{ font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:20px; display:inline-block; }
.cp-pill.pending{ background:#eef0f4; color:var(--cp-muted); }
.cp-pill.progress{ background:var(--cp-warn-bg); color:#8a6d00; }
.cp-pill.done{ background:var(--cp-success-bg); color:#0f6b30; }

/* ---------- formularios ---------- */
.cp-form .cp-row{ margin-bottom:16px; }
.cp-form label{ display:block; font-size:13px; font-weight:700; margin-bottom:6px; }
.cp-form input, .cp-form select, .cp-form textarea{
  width:100%; border:1px solid var(--cp-line); border-radius:8px; padding:11px 13px;
  font-family:'DM Sans', sans-serif; font-size:14px; background:#fff;
}
.cp-form input:focus, .cp-form select:focus, .cp-form textarea:focus{ outline:2px solid var(--cp-gold); outline-offset:1px; border-color:var(--cp-gold); }
.cp-form .cp-row-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cp-check{ display:flex; align-items:flex-start; gap:8px; font-size:13px; font-weight:400; color:var(--cp-muted); }
.cp-check input{ width:auto; margin-top:3px; }

/* ---------- callouts ---------- */
.cp-callout{ border-radius:10px; padding:14px 16px; font-size:13.5px; margin-bottom:16px; }
.cp-callout.error{ background:var(--cp-danger-bg); color:#8a1f1f; border:1px solid #f3b8b8; }
.cp-callout.ok{ background:var(--cp-success-bg); color:#0f6b30; border:1px solid #b9e6c8; }
.cp-callout.info{ background:var(--cp-warn-bg); color:#7a5f00; border:1px solid #f0d060; }

/* ---------- tablas ---------- */
.cp-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.cp-table th{ text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:0.04em; color:var(--cp-muted); padding:9px 10px; border-bottom:1px solid var(--cp-line); }
.cp-table td{ padding:11px 10px; border-bottom:1px solid var(--cp-line); vertical-align:middle; }
.cp-table tr:last-child td{ border-bottom:none; }
.cp-table tr.highlight td{ background:var(--cp-warn-bg); }

/* ---------- breadcrumb tipo empresa > alumno ---------- */
.cp-breadcrumb{ font-size:13px; color:var(--cp-muted); margin-bottom:14px; }
.cp-breadcrumb a{ text-decoration:underline; }

/* ---------- lista de módulos (reproductor) ---------- */
.cp-module{ border:1px solid var(--cp-line); border-radius:10px; margin-bottom:12px; overflow:hidden; }
.cp-module summary{ cursor:pointer; list-style:none; display:flex; align-items:center; gap:14px; padding:16px 18px; font-weight:700; }
.cp-module summary::-webkit-details-marker{ display:none; }
.cp-module .cp-mod-n{ color:var(--cp-gold); background:var(--cp-sidebar); width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }
.cp-module .cp-mod-title{ flex:1; font-size:15px; }
.cp-module .cp-mod-dur{ font-size:11.5px; color:var(--cp-muted); font-weight:600; }
.cp-module .cp-mod-body{ padding:0 18px 18px 58px; }
.cp-module .cp-mod-body p{ font-size:14px; color:#3d4152; margin-bottom:10px; line-height:1.7; }
.cp-module[open] summary{ border-bottom:1px solid var(--cp-line); }

/* ---------- quiz ---------- */
.cp-quiz-q{ margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid var(--cp-line); }
.cp-quiz-q .cp-qtext{ font-weight:700; font-size:14.5px; margin-bottom:10px; }
.cp-quiz-opt{ display:flex; align-items:center; gap:10px; padding:9px 12px; border:1px solid var(--cp-line); border-radius:8px; margin-bottom:7px; font-size:13.5px; cursor:pointer; }
.cp-quiz-opt:hover{ border-color:var(--cp-gold); }
.cp-quiz-opt input{ width:auto; }

/* ---------- tabs (admin) ---------- */
.cp-tabs{ display:flex; gap:4px; border-bottom:1px solid var(--cp-line); margin-bottom:24px; flex-wrap:wrap; }
.cp-tabs a{ font-size:13.5px; font-weight:600; color:var(--cp-muted); padding:10px 14px; border-bottom:2px solid transparent; }
.cp-tabs a.active{ color:var(--cp-text); border-bottom-color:var(--cp-gold); }
.cp-tabs a:hover{ color:var(--cp-text); }

/* ============================================================
   Pantallas de autenticación (login / recuperar / restablecer)
   Layout propio, deliberadamente distinto del resto del campus
   y de la web pública: pantalla partida, panel oscuro + formulario.
   ============================================================ */
.cp-auth-shell{ display:grid; grid-template-columns:1.1fr 1fr; min-height:100vh; }
.cp-auth-left{
  background:
    radial-gradient(circle at 20% 20%, rgba(245,196,0,0.16) 0%, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(245,196,0,0.10) 0%, transparent 40%),
    var(--cp-sidebar);
  color:#fff; padding:56px 64px; display:flex; flex-direction:column; justify-content:space-between;
  position:relative; overflow:hidden;
}
.cp-auth-left::before{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(to bottom, black, transparent 85%);
}
.cp-auth-left .cp-auth-top{ position:relative; z-index:2; display:flex; align-items:center; gap:10px; }
.cp-auth-left .cp-auth-top img{ height:28px; filter:brightness(0) invert(1); }
.cp-auth-left .cp-auth-top span{ font-size:12.5px; color:#8890b5; letter-spacing:0.05em; }

.cp-auth-left .cp-auth-mid{ position:relative; z-index:2; max-width:440px; }
.cp-auth-badge{
  display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:700;
  color:var(--cp-gold); border:1px solid rgba(245,196,0,0.35); border-radius:20px; padding:6px 14px; margin-bottom:22px;
}
.cp-auth-badge::before{ content:"●"; font-size:8px; }
.cp-auth-left h1{ font-size:34px; line-height:1.2; margin-bottom:16px; }
.cp-auth-left h1 em{ font-style:normal; color:var(--cp-gold); }
.cp-auth-left p{ color:#aeb3d4; font-size:15px; line-height:1.7; }

.cp-auth-panel{
  position:relative; z-index:2; margin-top:34px; background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08); border-radius:14px; padding:18px 20px;
}
.cp-auth-panel .row{ display:flex; justify-content:space-between; font-size:12.5px; padding:7px 0; color:#c8cbe0; }
.cp-auth-panel .row b{ color:var(--cp-gold); font-weight:700; }

.cp-auth-left .cp-auth-bottom{ position:relative; z-index:2; font-size:11.5px; color:#5c6389; }

.cp-auth-right{ display:flex; align-items:center; justify-content:center; padding:40px; background:#fff; }
.cp-auth-card{ width:100%; max-width:380px; }
.cp-auth-card .cp-auth-eyebrow{ font-size:12.5px; font-weight:700; color:var(--cp-muted); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:10px; }
.cp-auth-card h2{ font-family:'DM Sans',sans-serif; font-weight:800; font-size:24px; margin-bottom:8px; }
.cp-auth-card .cp-auth-sub{ font-size:14px; color:var(--cp-muted); margin-bottom:26px; }
.cp-auth-card .cp-auth-links{ font-size:13px; color:var(--cp-muted); margin-top:18px; text-align:center; }
.cp-auth-card .cp-auth-links a{ text-decoration:underline; color:var(--cp-text); }

@media (max-width:860px){
  .cp-auth-shell{ grid-template-columns:1fr; }
  .cp-auth-left{ padding:36px 28px; }
  .cp-auth-left .cp-auth-bottom{ display:none; }
}

/* ============================================================
   Landing pública (pre-login) — Arklos Cumplimiento IA
   ============================================================ */
.ia-public-header{
  background:rgba(18,23,43,0.96); backdrop-filter:blur(6px); position:sticky; top:0; z-index:50;
}
.ia-public-header .row{ max-width:1100px; margin:0 auto; padding:16px 32px; display:flex; justify-content:space-between; align-items:center; }
.ia-public-header img{ height:28px; filter:brightness(0) invert(1); }
.ia-public-header nav a{ color:#c8cbe0; font-size:14px; font-weight:600; margin-left:26px; }
.ia-public-header nav a:hover{ color:#fff; }

.ia-hero{
  background:
    radial-gradient(circle at 15% 10%, rgba(245,196,0,0.14) 0%, transparent 45%),
    var(--cp-sidebar);
  color:#fff; padding:90px 32px 70px 32px; text-align:center;
}
.ia-hero .wrap{ max-width:760px; margin:0 auto; }
.ia-hero h1{ font-size:44px; line-height:1.15; margin:20px 0 18px 0; }
.ia-hero h1 em{ font-style:normal; color:var(--cp-gold); }
.ia-hero p{ color:#aeb3d4; font-size:17px; line-height:1.7; max-width:600px; margin:0 auto 32px auto; }

.ia-section{ max-width:1100px; margin:0 auto; padding:70px 32px; }
.ia-section-head{ text-align:center; max-width:600px; margin:0 auto 44px auto; }
.ia-section-head h2{ font-size:30px; margin-bottom:12px; }
.ia-section-head p{ color:var(--cp-muted); font-size:15.5px; }

.ia-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.ia-step{ border:1px solid var(--cp-line); border-radius:14px; padding:26px; background:#fff; }
.ia-step .n{ font-family:'DM Serif Display',serif; font-size:26px; color:var(--cp-gold); background:var(--cp-sidebar); width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.ia-step h3{ font-family:'DM Sans',sans-serif; font-weight:700; font-size:17px; margin-bottom:8px; }
.ia-step p{ font-size:14px; color:var(--cp-muted); }

.ia-pricing{ background:var(--cp-bg); padding:70px 32px; }
.ia-price-card{
  max-width:420px; margin:0 auto; background:#fff; border:1px solid var(--cp-line); border-radius:18px;
  padding:38px; text-align:center; box-shadow:0 30px 60px -30px rgba(18,23,43,0.25);
}
.ia-price-card .ia-badge{ display:inline-block; background:var(--cp-gold); color:#12172b; font-size:11.5px; font-weight:800; letter-spacing:0.05em; text-transform:uppercase; padding:5px 12px; border-radius:20px; margin-bottom:18px; }
.ia-price-card .ia-amount{ font-family:'DM Serif Display',serif; font-size:52px; }
.ia-price-card .ia-amount span{ font-size:16px; font-family:'DM Sans',sans-serif; color:var(--cp-muted); }
.ia-price-card .ia-amount-sub{ font-size:13px; color:var(--cp-muted); margin-bottom:26px; }
.ia-price-card ul{ text-align:left; margin-bottom:28px; }
.ia-price-card ul li{ font-size:14.5px; padding:9px 0; border-bottom:1px solid var(--cp-line); display:flex; gap:10px; }
.ia-price-card ul li::before{ content:"✓"; color:#16a34a; font-weight:800; }
.ia-price-card ul li:last-child{ border-bottom:none; }

.ia-training-note{ background:#fff; border:1px solid var(--cp-line); border-radius:14px; padding:26px 30px; display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.ia-training-note h3{ font-family:'DM Sans',sans-serif; font-weight:700; font-size:16px; margin-bottom:6px; }
.ia-training-note p{ font-size:13.5px; color:var(--cp-muted); }

.ia-footer{ background:var(--cp-sidebar); color:#8890b5; padding:36px 32px; text-align:center; font-size:12.5px; }
.ia-footer a{ color:#c8cbe0; }

@media (max-width:800px){
  .ia-hero h1{ font-size:32px; }
  .ia-steps{ grid-template-columns:1fr; }
  .ia-public-header nav{ display:none; }
}
