

:root {
    --navy:#f8fbff;
    --surface:#ffffff;
    --surface-2:#eef6ff;
    --electric:#2563eb;
    --violet:#60a5fa;
    --purple:#93c5fd;
    --cyan:#2563eb;
    --lime:#dbeafe;
    --amber:#f59e0b;
    --rose:#ef4444;
    --white:#0f172a;
    --gray:#475569;
    --border:rgba(37,99,235,.16);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: 'DM Sans', sans-serif; background: var(--navy); color: var(--white); overflow-x: hidden; }

  /* ===================== LOGIN OVERLAY ===================== */
  #login-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: radial-gradient(ellipse 100% 70% at 30% 50%, rgba(37,99,235,.08) 0%, transparent 70%),
                var(--navy);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .4s;
  }
  #login-overlay.hidden { display:none !important; opacity: 0; visibility:hidden; pointer-events: none; }

  .login-grid-bg { display: none; }

  .login-card {
    position: relative; z-index: 1;
    background: #ffffff;
    border-radius: 24px;
    width: min(420px, 92vw);
    box-shadow: 0 32px 64px -12px rgba(0,0,0,.3);
    animation: loginCardIn .5s cubic-bezier(.22,1,.36,1) both;
    overflow: hidden;
  }
  .login-card::before {
    content: ''; display: block;
    height: 4px;
    background: linear-gradient(90deg,#2563eb,#7c3aed);
  }
  .login-card-inner {
    padding: 2rem 2rem 2.2rem;
  }
  @keyframes loginCardIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: none; }
  }

  .login-brand { display:flex; flex-direction:column; align-items:center; gap:.5rem; margin-bottom:1.6rem; }
  .login-logo { font-family:'Bebas Neue',sans-serif; font-size:2.6rem; letter-spacing:5px; background:linear-gradient(135deg,#0f172a,#2563eb); -webkit-background-clip:text; -webkit-text-fill-color:transparent; line-height:1; }
  .login-tagline { font-size:.8rem; color:#64748b; font-family:'Rajdhani',sans-serif; letter-spacing:1.5px; text-transform:uppercase; margin-top:.15rem; }

  .login-desc { font-size:.85rem; color:#475569; line-height:1.55; text-align:center; margin-bottom:1.5rem; }
  .login-guest-section { margin-bottom:1.5rem; }
  .login-guest-btn {
    width:100%; display:flex; align-items:center; justify-content:center; gap:.7rem;
    padding:.85rem; background:linear-gradient(135deg,#2563eb,#60a5fa); color:#fff;
    border:none; border-radius:50px; font-family:'Rajdhani',sans-serif;
    font-weight:700; font-size:1rem; letter-spacing:1.5px; cursor:pointer;
    transition:transform .2s,box-shadow .2s;
    box-shadow:0 8px 24px rgba(37,99,235,.2);
  }
  .login-guest-btn:hover { transform:translateY(-2px); box-shadow:0 12px 32px rgba(37,99,235,.3); }
  .login-guest-btn svg { flex-shrink:0; }

  .login-gmail-coming { margin-bottom:1.5rem; }
  .login-gmail-msg {
    display:flex; align-items:center; justify-content:center; gap:.6rem;
    padding:.65rem; background:#f1f5f9; border-radius:50px;
    font-size:.82rem; color:#64748b; font-family:'Rajdhani',sans-serif; font-weight:600; letter-spacing:.5px;
  }
  .login-gmail-msg svg { flex-shrink:0; color:#94a3b8; }

  .login-divider { display:flex; align-items:center; gap:.8rem; color:#94a3b8; font-size:.78rem; margin-bottom:1rem; font-family:'Rajdhani',sans-serif; font-weight:600; letter-spacing:1px; text-transform:uppercase; }
  .login-divider::before, .login-divider::after { content:''; flex:1; height:1px; background-image:linear-gradient(90deg,transparent,rgba(37,99,235,.15),transparent); }

  .login-official { margin-bottom:1.2rem; }
  .login-official-grid { display:flex; gap:.75rem; }
  .login-official-card {
    flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
    padding:1rem .4rem; border-radius:16px; text-decoration:none; text-align:center;
    transition:transform .2s,box-shadow .2s;
  }
  .login-official-card.cu { background:linear-gradient(135deg,#1e40af,#3b82f6); color:#fff; }
  .login-official-card.cn { background:linear-gradient(135deg,#7f1d1d,#dc2626); color:#fff; }
  .login-official-card:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(0,0,0,.2); }
  .login-official-name { font-family:'Bebas Neue',sans-serif; font-size:1.5rem; letter-spacing:2px; line-height:1; }
  .login-official-desc { font-family:'Rajdhani',sans-serif; font-size:.78rem; font-weight:600; letter-spacing:1px; opacity:.8; margin-top:.3rem; }

  .login-terms { margin-top:1.2rem; text-align:center; font-size:.7rem; color:#94a3b8; line-height:1.45; }
  .login-terms a { color:#93c5fd; text-decoration:none; font-weight:700; }
  .login-terms a:hover { color:#fff; text-decoration:underline; }

  /* ===================== NAV ===================== */
  nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; height: 64px; background: rgba(10,15,46,0.88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
  .nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 3px; background: linear-gradient(90deg,#fff,var(--purple)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a { font-family:'Rajdhani',sans-serif; font-weight:600; font-size:.95rem; letter-spacing:1px; text-transform:uppercase; color:var(--gray); text-decoration:none; transition:color .2s; }
  .nav-links a:hover, .nav-links a.active { color:var(--white); }
  .nav-cta { background:linear-gradient(135deg,var(--electric),var(--violet)); color:#fff; border:none; border-radius:50px; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.9rem; letter-spacing:1px; text-transform:uppercase; padding:.5rem 1.2rem; cursor:pointer; transition:opacity .2s; text-decoration:none; }
  .nav-cta:hover { opacity:.85; }

  /* HERO */
  #inicio { min-height:auto; display:flex; flex-direction:column; justify-content:flex-start; padding:100px 5vw 44px; position:relative; overflow:hidden; gap:1.8rem; }
  .hero-bg { position:absolute; inset:0; z-index:0; background: radial-gradient(ellipse 70% 60% at 30% 40%, rgba(59,91,255,.12) 0%, transparent 65%), radial-gradient(ellipse 50% 50% at 80% 80%, rgba(109,40,217,.15) 0%, transparent 60%), radial-gradient(ellipse 40% 40% at 50% 20%, rgba(6,182,212,.08) 0%, transparent 55%), var(--navy); }
  .hero-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(59,91,255,.06) 1px, transparent 1px),linear-gradient(90deg, rgba(59,91,255,.06) 1px, transparent 1px); background-size:60px 60px; mask-image:radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent); }
  .hero-layout { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,420px); gap:clamp(1.2rem,4vw,3rem); align-items:start; width:100%; }
  .hero-content { position:relative; max-width:760px; }
  .hero-badge { display:inline-flex; align-items:center; gap:.5rem; background:rgba(59,91,255,.12); border:1px solid rgba(59,91,255,.3); border-radius:6px; padding:.35rem 1rem; font-family:'Rajdhani',sans-serif; font-size:.82rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:#0d1117; margin-bottom:.6rem; }
  .hero-badge .badge-pulse { width:8px; height:8px; border-radius:4px; background:var(--electric); animation:pulse-diamond 2s ease-in-out infinite; }
  .hero-badge span { display:block; width:5px; height:5px; transform:rotate(45deg); background:var(--cyan); animation:pulse 2s infinite; }
  @keyframes pulse { 0%,100%{opacity:1;transform:rotate(45deg) scale(1)} 50%{opacity:.4;transform:rotate(45deg) scale(.8)} }
  .hero-title { font-family:'Bebas Neue',sans-serif; font-size:clamp(2.8rem,6.4vw,6rem); line-height:1; letter-spacing:3px; margin-bottom:1.2rem; white-space:nowrap; }
  .hero-title .accent { color:var(--electric); }
  .hero-title .grad { background:linear-gradient(90deg,var(--purple),var(--cyan)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
  .hero-sub { font-size:1.05rem; line-height:1.7; color:#cbd5e1; max-width:610px; margin-bottom:1.4rem; }
  .hero-bullets { list-style:none; display:flex; flex-direction:column; gap:.6rem; margin-bottom:2.5rem; }
  .hero-bullets li { display:flex; align-items:center; gap:.7rem; font-size:.95rem; color:#e2e8f0; }
  .hero-bullets li::before { content:''; display:block; width:7px; height:7px; flex-shrink:0; transform:rotate(45deg); background:var(--cyan); opacity:.8; }
  .hero-actions { display:flex; gap:1rem; flex-wrap:wrap; }
  .hero-video-panel { align-self:stretch; display:flex; flex-direction:column; justify-content:center; gap:.72rem; }
  .hero-video-kicker { display:flex; align-items:center; justify-content:space-between; gap:.8rem; color:#bae6fd; font-family:'Rajdhani',sans-serif; font-size:.78rem; font-weight:800; letter-spacing:1.3px; text-transform:uppercase; }
  .hero-video-kicker a { color:#bef264; text-decoration:none; }
  .hero-video-stack { display:grid; gap:.72rem; }
  .yt-preview { display:grid; grid-template-columns:132px 1fr; min-height:92px; overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:14px; background:rgba(255,255,255,.04); text-decoration:none; color:#fff; box-shadow:0 12px 32px rgba(0,0,0,.25); transition:transform .2s,border-color .2s,background .2s; }
  .yt-preview:hover { transform:translateY(-3px); border-color:rgba(34,211,238,.35); background:rgba(255,255,255,.07); box-shadow:0 16px 40px rgba(0,0,0,.3); }
  .yt-thumb { position:relative; min-height:92px; background-image:linear-gradient(135deg,rgba(7,17,31,.08),rgba(59,91,255,.08)), var(--yt-thumb, url(&quot;./ChatGPT%20Image%2017%20may%202026,%2016_38_27.png&quot;)); background-size:cover; background-position:center; }
  .yt-thumb::after { content:''; position:absolute; left:50%; top:50%; width:42px; height:30px; transform:translate(-50%,-50%); border-radius:10px; background:#ef4444; box-shadow:0 8px 24px rgba(0,0,0,.35); }
  .yt-thumb::before { content:''; position:absolute; left:50%; top:50%; z-index:1; transform:translate(-38%,-50%); border-left:12px solid #fff; border-top:8px solid transparent; border-bottom:8px solid transparent; }
  .yt-copy { padding:.72rem .82rem; display:flex; flex-direction:column; justify-content:center; min-width:0; }
  .yt-title { font-family:'Rajdhani',sans-serif; font-weight:900; letter-spacing:.6px; line-height:1.1; }
  .yt-meta { margin-top:.28rem; color:#cbd5e1; font-size:.78rem; line-height:1.35; }
  .yt-chip { display:inline-flex; width:max-content; max-width:100%; margin-top:.48rem; border-radius:999px; padding:.18rem .48rem; color:#07111f; background:#bef264; font-family:'Rajdhani',sans-serif; font-size:.68rem; font-weight:900; letter-spacing:.7px; text-transform:uppercase; }
  .hero-chat-panel { background:rgba(255,255,255,.055); border:1px solid var(--border); border-radius:16px; padding:.85rem; display:flex; flex-direction:column; gap:.7rem; box-shadow:0 16px 45px rgba(0,0,0,.22); }
  .hero-chat-head { display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
  .hero-chat-title { font-family:'Rajdhani',sans-serif; font-weight:900; letter-spacing:.8px; text-transform:uppercase; font-size:.82rem; color:#fff; }
  .hero-chat-live { display:inline-flex; align-items:center; gap:.35rem; font-size:.7rem; color:#cbd5e1; white-space:nowrap; }
  .hero-chat-live::before { content:''; width:8px; height:8px; border-radius:50%; background:#4ade80; box-shadow:0 0 0 4px rgba(74,222,128,.15); flex-shrink:0; }
  .hero-chat-messages { max-height:170px; overflow-y:auto; display:flex; flex-direction:column; gap:.45rem; padding-right:.2rem; }
  .hero-chat-empty { font-size:.78rem; color:var(--gray); line-height:1.45; padding:.45rem 0; }
  .hero-chat-msg { background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:12px; padding:.5rem .6rem; }
  .hero-chat-msg.me { background:rgba(59,91,255,.12); border-color:rgba(59,91,255,.34); }
  .hero-chat-meta { display:flex; justify-content:space-between; gap:.5rem; font-size:.68rem; color:var(--gray); margin-bottom:.25rem; }
  .hero-chat-name { color:#fff; font-weight:700; }
  .hero-chat-text { font-size:.82rem; line-height:1.45; color:#e2e8f0; word-break:break-word; }
  .hero-chat-form { display:flex; gap:.5rem; }
  .hero-chat-input { flex:1; min-width:0; background:rgba(255,255,255,.07); border:1px solid var(--border); border-radius:10px; padding:.68rem .75rem; color:#fff; outline:0; font-family:'DM Sans',sans-serif; font-size:.86rem; }
  .hero-chat-input:focus { border-color:rgba(34,211,238,.7); box-shadow:0 0 0 3px rgba(34,211,238,.1); }
  .hero-chat-btn { border:0; border-radius:50px; padding:.68rem .9rem; background:linear-gradient(135deg,var(--cyan),var(--lime)); color:#07111f; font-family:'Rajdhani',sans-serif; font-weight:900; font-size:.78rem; letter-spacing:1px; text-transform:uppercase; cursor:pointer; }
  .hero-chat-note { font-size:.7rem; color:var(--gray); line-height:1.4; }

  /* FLOATING CHAT */
  #chat-fab {
    position:fixed; bottom:100px; right:24px; z-index:600;
    width:56px; height:56px; border-radius:50%;
    background:linear-gradient(135deg,var(--electric),var(--violet));
    color:#fff; border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 8px 32px rgba(59,91,255,.5);
    transition:transform .2s,box-shadow .2s;
  }
  #chat-fab:hover { transform:scale(1.08); box-shadow:0 12px 40px rgba(59,91,255,.65); }
  #chat-fab svg { width:26px; height:26px; fill:currentColor; }
  #chat-fab-badge {
    position:absolute; top:-4px; right:-4px;
    min-width:20px; height:20px; border-radius:10px;
    background:#ef4444; color:#fff;
    font-family:'Rajdhani',sans-serif; font-size:.68rem; font-weight:800;
    display:flex; align-items:center; justify-content:center;
    padding:0 5px; border:2px solid var(--navy);
    display:none;
  }
  #chat-overlay {
    position:fixed; inset:0; z-index:649;
    background:rgba(0,0,0,.55);
    opacity:0; visibility:hidden;
    transition:opacity .3s;
  }
  #chat-overlay.open { opacity:1; visibility:visible; }
  #chat-panel {
    position:fixed; top:0; right:0; z-index:650;
    width:380px; max-width:92vw; height:100%;
    background:var(--surface); border-left:1px solid var(--border);
    display:flex; flex-direction:column;
    transform:translateX(105%); transition:transform .4s cubic-bezier(.22,1,.36,1);
    box-shadow:-8px 0 40px rgba(0,0,0,.3);
  }
  #chat-panel.open { transform:translateX(0); }
  .chat-ph { display:flex; align-items:center; justify-content:space-between; padding:.9rem 1.1rem; border-bottom:1px solid var(--border); background:rgba(255,255,255,.03); flex-shrink:0; }
  .chat-ph-title { font-family:'Rajdhani',sans-serif; font-weight:800; font-size:.95rem; letter-spacing:1px; text-transform:uppercase; color:#fff; display:flex; align-items:center; gap:.55rem; }
  .chat-ph-dot { width:7px; height:7px; border-radius:50%; background:#4ade80; box-shadow:0 0 0 3px rgba(74,222,128,.15); }
  .chat-ph-close { background:rgba(255,255,255,.06); border:1px solid var(--border); border-radius:50%; width:32px; height:32px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--gray); font-size:1.1rem; transition:background .2s; }
  .chat-ph-close:hover { background:rgba(255,255,255,.12); color:#fff; }
  .chat-pm {
    flex:1; overflow-y:auto; padding:.85rem .9rem;
    display:flex; flex-direction:column; gap:.5rem;
  }
  .chat-pm-empty { text-align:center; color:var(--gray); font-size:.82rem; padding:2rem 0; font-family:'DM Sans',sans-serif; }
  .chat-pm-row { display:flex; gap:.55rem; align-items:flex-start; }
  .chat-pm-row.me .chat-pm-text { background:rgba(59,91,255,.10); border-color:rgba(59,91,255,.30); }
  .chat-pm-avatar {
    width:30px; height:30px; border-radius:8px; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    font-family:'Bebas Neue',sans-serif; font-size:1rem; letter-spacing:1px; color:#fff;
  }
  .chat-pm-bubble { flex:1; min-width:0; }
  .chat-pm-name { display:flex; align-items:center; gap:.35rem; flex-wrap:wrap; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.72rem; letter-spacing:.5px; color:var(--cyan); }
  .chat-pm-text { font-size:.84rem; line-height:1.45; color:#0e0c30; word-break:break-word; background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:10px; padding:.45rem .65rem; margin-top:.05rem; }
  .chat-pm-time { font-size:.6rem; color:var(--gray); margin-top:.12rem; }
  .chat-pi { border-top:1px solid var(--border); padding:.65rem .75rem; background:rgba(0,0,0,.15); flex-shrink:0; }
  .chat-pi-name { width:100%; background:rgba(255,255,255,.07); border:1px solid var(--border); border-radius:8px; color:#fff; padding:.45rem .6rem; outline:0; font-family:'DM Sans',sans-serif; font-size:.78rem; margin-bottom:.4rem; }
  .chat-pi-name:focus { border-color:rgba(34,211,238,.6); box-shadow:0 0 0 3px rgba(34,211,238,.08); }
  .chat-pi-name::placeholder { color:var(--gray); }
  .chat-pi-identity { border:1px solid var(--border); background:rgba(255,255,255,.06); border-radius:8px; color:var(--gray); padding:.45rem .6rem; font-family:'DM Sans',sans-serif; font-size:.76rem; line-height:1.35; margin-bottom:.4rem; }
  .chat-pi-row { display:flex; gap:.4rem; }
  .chat-pi-msg { flex:1; min-width:0; background:rgba(255,255,255,.07); border:1px solid var(--border); border-radius:8px; color:#fff; padding:.55rem .65rem; outline:0; font-family:'DM Sans',sans-serif; font-size:.84rem; }
  .chat-pi-msg:focus { border-color:rgba(34,211,238,.6); box-shadow:0 0 0 3px rgba(34,211,238,.08); }
  .chat-pi-msg::placeholder { color:var(--gray); }
  .chat-pi-btn {
    border:0; border-radius:10px; width:40px; height:40px; flex-shrink:0;
    background:linear-gradient(135deg,var(--electric),var(--violet));
    color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:opacity .2s;
  }
  .chat-pi-btn:hover { opacity:.85; }
  .chat-pi-btn svg { width:20px; height:20px; fill:currentColor; }
  .chat-role-chip { display:inline-flex; align-items:center; width:max-content; max-width:100%; border:1px solid rgba(37,99,235,.18); border-radius:999px; padding:.06rem .34rem; background:#f8fbff; color:#475569; font-family:'Rajdhani',sans-serif; font-size:.58rem; font-weight:900; letter-spacing:.35px; text-transform:none; line-height:1.35; }
  .chat-role-chip.owner { background:#dbeafe; border-color:rgba(37,99,235,.35); color:#1d4ed8; }
  .chat-role-chip.admin { background:#eff6ff; border-color:rgba(37,99,235,.26); color:#2563eb; }
  .chat-role-chip.user { background:#f8fbff; color:#64748b; }
  @media(max-width:560px) {
    #chat-panel { width:100vw; max-width:100vw; }
    #chat-fab { bottom:16px; right:16px; width:52px; height:52px; }
  }

  .btn-primary { background:linear-gradient(135deg,var(--electric),var(--violet)); color:#fff; border:none; border-radius:50px; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:1rem; letter-spacing:1px; text-transform:uppercase; padding:.8rem 2rem; cursor:pointer; text-decoration:none; transition:transform .2s,box-shadow .2s; box-shadow:0 0 30px rgba(59,91,255,.4); }
  .btn-primary:hover { transform:translateY(-3px); box-shadow:0 0 50px rgba(59,91,255,.6); }
  .btn-ghost { background:transparent; border:1px solid var(--border); color:var(--gray); border-radius:50px; font-family:'Rajdhani',sans-serif; font-weight:600; font-size:1rem; letter-spacing:1px; text-transform:uppercase; padding:.8rem 2rem; cursor:pointer; text-decoration:none; transition:border-color .2s,color .2s,transform .2s; }
  .btn-ghost:hover { border-color:rgba(255,255,255,.3); color:var(--white); transform:translateY(-2px); }

  /* SOCIAL PILLS */
  .socials { position:relative; z-index:1; display:flex; gap:.75rem; flex-wrap:wrap; margin-top:3rem; }
  .social-pill { display:inline-flex; align-items:center; justify-content:center; gap:.65rem; border-radius:12px; min-width:178px; min-height:48px; padding:.62rem 1.25rem; font-family:'Rajdhani',sans-serif; font-size:.92rem; font-weight:700; letter-spacing:.4px; text-decoration:none; transition:transform .2s,box-shadow .2s; border:1px solid transparent; }
  .social-pill:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,.3); }
  .social-pill svg { width:22px; height:22px; flex-shrink:0; }
  .pill-wa  { background:#128C7E; color:#fff; border-color:#075E54; }
  .pill-wa:hover  { box-shadow:0 4px 20px rgba(18,140,126,.5); }
  .pill-tt  { background:#010101; color:#fff; border-color:#2a2a2a; }
  .pill-tt:hover  { box-shadow:0 4px 20px rgba(0,0,0,.7); }
  .pill-gd  { background:#1a73e8; color:#fff; border-color:#1557b0; }
  .pill-gd:hover  { box-shadow:0 4px 20px rgba(26,115,232,.5); }
  .pill-ki  { background:#53fc18; color:#000; border-color:#3dc900; }
  .pill-ki:hover  { box-shadow:0 4px 20px rgba(83,252,24,.45); }
  .pill-lt  { background:#39e09b; color:#fff; border-color:#25c47d; }
  .pill-lt:hover  { box-shadow:0 4px 20px rgba(57,224,155,.45); }
  .official-access-links { position:relative; z-index:1; display:grid; grid-template-columns:repeat(3,minmax(220px,1fr)); gap:.9rem; width:min(1050px,100%); margin-top:1rem; }
  .official-access-card { position:relative; overflow:hidden; display:flex; align-items:center; gap:1rem; min-height:112px; padding:1rem 1.1rem; border:1px solid rgba(255,255,255,.22); border-radius:16px; color:#fff; text-decoration:none; box-shadow:0 18px 44px rgba(15,23,42,.22); transition:transform .2s,box-shadow .2s,filter .2s; }
  .official-access-card::after { content:''; position:absolute; inset:auto -28% -42% 35%; height:92px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent); transform:rotate(-8deg); opacity:.65; }
  .official-access-card:hover { transform:translateY(-4px); filter:saturate(1.08); box-shadow:0 24px 58px rgba(15,23,42,.28); }
  .official-access-card.cepreuni { background:linear-gradient(135deg,#1e40af,#3b82f6); }
  .official-access-card.ceprenet { background:linear-gradient(135deg,#7f1d1d,#dc2626); }
  .official-access-card.admisionuni { background:linear-gradient(135deg,#0f4cbd,#38bdf8); }
  .official-access-logo { position:relative; z-index:1; width:68px; height:68px; flex:0 0 68px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.95); box-shadow:0 12px 26px rgba(0,0,0,.18); padding:.42rem; }
  .official-access-logo img { max-width:100%; max-height:100%; object-fit:contain; display:block; }
  .official-access-logo-text { font-family:'Bebas Neue',sans-serif; font-size:1.8rem; letter-spacing:1px; color:#1e40af; line-height:1; }
  .official-access-copy { position:relative; z-index:1; min-width:0; }
  .official-access-name { font-family:'Bebas Neue',sans-serif; font-size:1.85rem; letter-spacing:2px; line-height:.95; color:#fff; }
  .official-access-title { display:block; margin-top:.28rem; font-family:'Rajdhani',sans-serif; font-size:.9rem; font-weight:900; letter-spacing:.8px; text-transform:uppercase; color:#fff; }
  .official-access-desc { display:block; margin-top:.18rem; font-size:.78rem; line-height:1.35; color:rgba(255,255,255,.86); }

  /* ADMISIÓN UNI 2026-2 */
  .admission-hub { position:relative; z-index:1; padding-top:4.4rem; background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%); }
  .admission-hero-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; width:min(1180px,100%); margin:2rem auto 0; }
  .admission-card { overflow:hidden; border:1px solid rgba(37,99,235,.14); border-radius:18px; background:#ffffff; box-shadow:0 24px 70px rgba(15,23,42,.12); }
  .admission-card img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#e2e8f0; }
  .admission-card-body { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem; }
  .admission-card-title { font-family:'Rajdhani',sans-serif; font-size:1.05rem; font-weight:900; letter-spacing:.8px; text-transform:uppercase; color:#0f172a; }
  .admission-card-meta { margin-top:.18rem; color:#64748b; font-size:.82rem; line-height:1.35; }
  .admission-action { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:.62rem .95rem; border-radius:999px; background:#2563eb; color:#ffffff; font-family:'Rajdhani',sans-serif; font-size:.82rem; font-weight:900; letter-spacing:.8px; text-transform:uppercase; text-decoration:none; white-space:nowrap; box-shadow:0 14px 32px rgba(37,99,235,.22); }
  .admission-action.sim { background:#0891b2; box-shadow:0 14px 32px rgba(8,145,178,.22); }
  .admission-info-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:1rem; width:min(1180px,100%); margin:1rem auto 0; }
  .admission-table-card { min-width:0; border:1px solid rgba(37,99,235,.14); border-radius:18px; background:#ffffff; padding:1rem; box-shadow:0 22px 64px rgba(15,23,42,.10); }
  .admission-table-head { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:.85rem; }
  .admission-table-kicker { font-family:'Rajdhani',sans-serif; font-size:.74rem; font-weight:900; letter-spacing:1.2px; color:#2563eb; text-transform:uppercase; }
  .admission-table-title { margin-top:.12rem; font-family:'Bebas Neue',sans-serif; font-size:2rem; letter-spacing:1px; color:#0f172a; line-height:.95; }
  .admission-table-note { max-width:520px; color:#64748b; font-size:.82rem; line-height:1.45; }
  .uni-table-wrap { overflow:auto; max-height:520px; border:1px solid rgba(37,99,235,.10); border-radius:14px; background:#ffffff; }
  .uni-table { width:100%; border-collapse:separate; border-spacing:0; min-width:720px; font-size:.82rem; }
  .uni-table th { position:sticky; top:0; z-index:2; background:#eff6ff; color:#1d4ed8; font-family:'Rajdhani',sans-serif; font-size:.74rem; font-weight:900; letter-spacing:.7px; text-transform:uppercase; }
  .uni-table th, .uni-table td { padding:.62rem .7rem; border-bottom:1px solid rgba(37,99,235,.10); text-align:left; vertical-align:top; }
  .uni-table td { color:#334155; background:#ffffff; }
  .uni-table tbody tr:hover td { background:#f8fbff; }
  .uni-table .num { text-align:center; font-weight:800; color:#0f172a; white-space:nowrap; }
  .uni-table .total-row td { background:#eff6ff; color:#0f172a; font-weight:900; }
  .vacancies-card { grid-column:1/-1; }
  .vacancies-table { min-width:1320px; }
  .admission-footnotes { display:grid; gap:.42rem; margin-top:.85rem; color:#64748b; font-size:.8rem; line-height:1.45; }
  .hero-calendar-panel { align-self:stretch; display:flex; flex-direction:column; justify-content:center; gap:.85rem; padding:1rem; border:1px solid rgba(255,255,255,.14); border-radius:18px; background:rgba(255,255,255,.06); box-shadow:0 18px 54px rgba(0,0,0,.24); }
  .hero-calendar-panel .payment-shell { grid-template-columns:1fr; gap:.8rem; }
  .hero-calendar-panel .payment-calendar-grid { gap:.28rem; }
  .hero-calendar-panel .payment-day { min-height:34px; font-size:.78rem; }
  .hero-calendar-panel .payment-weekday { min-height:24px; color:#bae6fd; }
  .hero-calendar-panel .payment-month-title, .hero-calendar-panel .tool-title { color:#ffffff; }
  .hero-calendar-panel .tool-copy, .hero-calendar-panel .payment-note { color:#cbd5e1; }
  .hero-calendar-panel .payment-list { max-height:310px; overflow:auto; padding-right:.2rem; }
  .hero-calendar-panel .payment-event { background:rgba(255,255,255,.94); }
  .universe-video-card { gap:.85rem; }
  .universe-video-card .hero-video-kicker { color:#2563eb; }
  .universe-video-card .hero-video-kicker a { color:#0f766e; }
  .universe-video-card .yt-preview { background:#0f172a; border-color:rgba(37,99,235,.18); }


  /* UNIVERSE GAME */
  .universe-game-button {
    position: fixed;
    right: 22px;
    top: 52%;
    z-index: 630;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 18px;
    background: linear-gradient(135deg,#111827,#2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(37,99,235,.34);
    transition: transform .2s, box-shadow .2s, filter .2s;
  }

  .universe-game-button:hover {
    transform: translateY(-3px) scale(1.03);
    filter: saturate(1.12);
    box-shadow: 0 22px 52px rgba(37,99,235,.46);
  }

  .universe-game-button svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
  }


  /* FIJAS DE ACTUALIDAD */
  .current-news-button {
    position: fixed;
    right: 22px;
    top: calc(52% + 72px);
    z-index: 631;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 18px;
    background: linear-gradient(135deg,#0891b2,#22d3ee);
    color: #07111f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(34,211,238,.34);
    transition: transform .2s, box-shadow .2s, filter .2s;
  }

  .current-news-button:hover {
    transform: translateY(-3px) scale(1.03);
    filter: saturate(1.12);
    box-shadow: 0 22px 52px rgba(34,211,238,.46);
  }

  .current-news-button svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
  }

  #current-news-overlay {
    position: fixed;
    inset: 0;
    z-index: 688;
    background: rgba(2,6,23,.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    backdrop-filter: blur(8px);
  }

  #current-news-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  #current-news-panel {
    position: fixed;
    inset: 0;
    z-index: 689;
    display: grid;
    grid-template-rows: auto auto minmax(0,1fr);
    background: #f8fbff;
    color: #0f172a;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.2,.8,.2,1);
    box-shadow: -28px 0 80px rgba(15,23,42,.25);
  }

  #current-news-panel.open {
    transform: translateX(0);
  }

  .current-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(37,99,235,.14);
    background: #ffffff;
  }

  .current-news-kicker {
    color: #0891b2;
    font-family: 'Rajdhani', sans-serif;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
  }

  .current-news-title {
    margin-top: .12rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem,4vw,3.2rem);
    line-height: .9;
    letter-spacing: 1px;
    color: #0f172a;
  }

  .current-news-sub {
    color: #64748b;
    font-size: .86rem;
    line-height: 1.45;
    max-width: 720px;
    margin-top: .35rem;
  }

  .current-news-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(37,99,235,.16);
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
  }

  .current-news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .78rem 1.15rem;
    border-bottom: 1px solid rgba(37,99,235,.10);
    background: #ffffff;
  }

  .current-news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
  }

  .current-news-filter {
    border: 1px solid rgba(37,99,235,.16);
    border-radius: 999px;
    background: #f8fbff;
    color: #2563eb;
    padding: .45rem .8rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
  }

  .current-news-filter.active {
    background: linear-gradient(135deg,#2563eb,#0891b2);
    color: #ffffff;
    border-color: transparent;
  }

  .current-news-count {
    color: #64748b;
    font-family: 'Rajdhani', sans-serif;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .current-news-grid {
    min-height: 0;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    align-content: start;
    gap: .78rem;
    padding: 1rem 1.15rem 1.4rem;
  }

  .current-news-card {
    min-width: 0;
    border: 1px solid rgba(37,99,235,.14);
    border-radius: 14px;
    background: #ffffff;
    padding: .78rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    box-shadow: 0 16px 42px rgba(15,23,42,.08);
  }

  .current-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
  }

  .current-news-chip,
  .current-news-date {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-family: 'Rajdhani', sans-serif;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
  }

  .current-news-chip {
    padding: .24rem .46rem;
    color: #0f766e;
    background: #ccfbf1;
  }

  .current-news-chip.mundo {
    color: #1d4ed8;
    background: #dbeafe;
  }

  .current-news-date {
    color: #64748b;
  }

  .current-news-card-title {
    color: #0f172a;
    font-family: 'Rajdhani', sans-serif;
    font-size: .98rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: .2px;
  }

  .current-news-card-text {
    color: #475569;
    font-size: .76rem;
    line-height: 1.42;
    flex: 1;
  }

  .current-news-source {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .75px;
    text-transform: uppercase;
    padding: .45rem .65rem;
  }

  /* RESUMENES HUMANIDADES */
  .summary-hub {
    background: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  }

  .summary-course-grid {
    width: min(1180px,100%);
    margin: 1.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: .75rem;
  }

  .summary-course-btn {
    min-width: 0;
    border: 1px solid rgba(37,99,235,.16);
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    padding: .85rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(15,23,42,.07);
    transition: transform .2s, border-color .2s, background .2s;
  }

  .summary-course-btn:hover,
  .summary-course-btn.active {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,.38);
    background: #eff6ff;
  }

  .summary-course-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#2563eb,#60a5fa);
    color: #ffffff;
    font-family: 'Rajdhani',sans-serif;
    font-weight: 900;
    letter-spacing: .7px;
  }

  .summary-course-name {
    font-family: 'Rajdhani',sans-serif;
    font-size: .98rem;
    font-weight: 900;
    letter-spacing: .55px;
    text-transform: uppercase;
    line-height: 1.05;
  }

  .summary-course-count {
    margin-top: .12rem;
    color: #64748b;
    font-size: .76rem;
    line-height: 1.25;
  }

  .summary-shell {
    width: min(1180px,100%);
    margin: 1rem auto 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(260px,.42fr);
    gap: 1rem;
    align-items: stretch;
  }

  .summary-main,
  .summary-topic-panel {
    min-width: 0;
    border: 1px solid rgba(37,99,235,.14);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 58px rgba(15,23,42,.08);
  }

  .summary-main {
    padding: 1.15rem;
    min-height: 430px;
    max-height: 680px;
    overflow: auto;
    display: flex;
    flex-direction: column;
  }

  .summary-main.switching {
    animation: summary-fade .22s ease both;
  }

  @keyframes summary-fade {
    from { opacity: .2; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .summary-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(37,99,235,.12);
    padding-bottom: .85rem;
    margin-bottom: .9rem;
  }

  .summary-kicker {
    color: #2563eb;
    font-family: 'Rajdhani',sans-serif;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }

  .summary-title {
    margin-top: .15rem;
    color: #0f172a;
    font-family: 'Bebas Neue',sans-serif;
    font-size: clamp(1.35rem,3vw,2.35rem);
    line-height: 1;
    letter-spacing: .4px;
    overflow-wrap: anywhere;
  }

  .summary-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: .42rem .68rem;
    font-family: 'Rajdhani',sans-serif;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .summary-body {
    color: #334155;
    font-size: .96rem;
    line-height: 1.65;
  }

  .summary-body p {
    margin: 0 0 .75rem;
  }

  .summary-detail {
    display: grid;
    gap: .55rem;
    color: #243044;
    font-size: .92rem;
    line-height: 1.58;
  }

  .summary-source-note {
    width: max-content;
    max-width: 100%;
    border: 1px solid rgba(37,99,235,.14);
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: .34rem .62rem;
    font-family: 'Rajdhani',sans-serif;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .65px;
    text-transform: uppercase;
  }

  .summary-detail h4 {
    margin: .72rem 0 .1rem;
    color: #0f172a;
    font-family: 'Rajdhani',sans-serif;
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: .25px;
    line-height: 1.18;
  }

  .summary-detail .summary-line {
    margin: 0;
  }

  .summary-detail .summary-line.bullet {
    position: relative;
    padding-left: 1rem;
  }

  .summary-detail .summary-line.bullet::before {
    content: '';
    position: absolute;
    left: .2rem;
    top: .7em;
    width: .34rem;
    height: .34rem;
    border-radius: 50%;
    background: #2563eb;
  }

  .summary-table-wrap {
    overflow: auto;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 12px;
    background: #ffffff;
  }

  .summary-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    font-size: .86rem;
  }

  .summary-table th,
  .summary-table td {
    border-bottom: 1px solid rgba(15,23,42,.09);
    padding: .58rem .66rem;
    text-align: left;
    vertical-align: top;
  }

  .summary-table th {
    background: #eaf2ff;
    color: #0f172a;
    font-family: 'Rajdhani',sans-serif;
    font-weight: 900;
    letter-spacing: .45px;
    text-transform: uppercase;
  }

  .summary-table tr:last-child td {
    border-bottom: 0;
  }

  .summary-concepts {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .65rem;
    padding-top: 1rem;
  }

  .summary-concept {
    min-width: 0;
    border: 1px solid rgba(37,99,235,.12);
    border-radius: 12px;
    background: #f8fbff;
    padding: .72rem;
    color: #475569;
    font-size: .8rem;
    line-height: 1.38;
  }

  .summary-concept strong {
    display: block;
    color: #0f172a;
    font-family: 'Rajdhani',sans-serif;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .55px;
    text-transform: uppercase;
    margin-bottom: .22rem;
  }

  .summary-topic-panel {
    padding: .85rem;
    display: flex;
    flex-direction: column;
    max-height: 560px;
  }

  .summary-topic-title {
    color: #0f172a;
    font-family: 'Rajdhani',sans-serif;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: .65rem;
  }

  .summary-topic-list {
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: .48rem;
    padding-right: .15rem;
  }

  .summary-topic-btn {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(37,99,235,.12);
    border-radius: 12px;
    background: #f8fbff;
    color: #334155;
    padding: .62rem .65rem;
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    gap: .55rem;
    align-items: start;
    text-align: left;
    cursor: pointer;
    transition: background .2s,border-color .2s,transform .2s;
  }

  .summary-topic-btn:hover,
  .summary-topic-btn.active {
    background: #eff6ff;
    border-color: rgba(37,99,235,.34);
    transform: translateX(-2px);
  }

  .summary-topic-num {
    color: #2563eb;
    font-family: 'Rajdhani',sans-serif;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .summary-topic-name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: .78rem;
    line-height: 1.25;
    font-weight: 700;
  }

  html[data-universe-theme='dark'] .summary-hub,
  html[data-universe-theme='dark'] .summary-main,
  html[data-universe-theme='dark'] .summary-topic-panel,
  html[data-universe-theme='dark'] .summary-course-btn,
  html[data-universe-theme='dark'] .summary-topic-btn,
  html[data-universe-theme='dark'] .summary-concept,
  html[data-universe-theme='dark'] .summary-table-wrap,
  html[data-universe-theme='dark'] .summary-table {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(96,165,250,.32) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.62) !important;
  }

  html[data-universe-theme='dark'] .summary-title,
  html[data-universe-theme='dark'] .summary-topic-title,
  html[data-universe-theme='dark'] .summary-course-name,
  html[data-universe-theme='dark'] .summary-concept strong,
  html[data-universe-theme='dark'] .summary-detail h4,
  html[data-universe-theme='dark'] .summary-table th {
    color: #ffffff !important;
  }

  html[data-universe-theme='dark'] .summary-body,
  html[data-universe-theme='dark'] .summary-detail,
  html[data-universe-theme='dark'] .summary-line,
  html[data-universe-theme='dark'] .summary-course-count,
  html[data-universe-theme='dark'] .summary-concept,
  html[data-universe-theme='dark'] .summary-topic-name,
  html[data-universe-theme='dark'] .summary-table td {
    color: #dbeafe !important;
  }

  html[data-universe-theme='dark'] .summary-source-note,
  html[data-universe-theme='dark'] .summary-table th {
    background: #050505 !important;
    border-color: rgba(96,165,250,.35) !important;
  }

  html[data-universe-theme='dark'] .summary-table th,
  html[data-universe-theme='dark'] .summary-table td {
    border-color: rgba(96,165,250,.22) !important;
  }

  html[data-universe-theme='dark'] .summary-course-btn.active,
  html[data-universe-theme='dark'] .summary-course-btn:hover,
  html[data-universe-theme='dark'] .summary-topic-btn.active,
  html[data-universe-theme='dark'] .summary-topic-btn:hover {
    background: #050505 !important;
    border-color: rgba(96,165,250,.56) !important;
  }

  @media (max-width: 980px) {
    .summary-course-grid {
      grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .summary-shell {
      grid-template-columns: minmax(0,1fr);
    }

    .summary-topic-panel {
      order: -1;
      max-height: none;
    }

    .summary-topic-list {
      grid-template-columns: repeat(2,minmax(0,1fr));
      max-height: 260px;
    }
  }

  @media (max-width: 560px) {
    .summary-course-grid,
    .summary-topic-list,
    .summary-concepts {
      grid-template-columns: minmax(0,1fr);
    }

    .summary-main,
    .summary-topic-panel {
      border-radius: 14px;
      padding: .85rem;
    }

    .summary-main {
      max-height: 72vh;
      min-height: 360px;
    }

    .summary-head {
      display: grid;
      gap: .6rem;
    }

    .summary-title {
      font-size: 1.35rem;
      line-height: 1.06;
    }

    .summary-detail {
      font-size: .86rem;
    }

    .summary-badge {
      width: max-content;
      max-width: 100%;
      white-space: normal;
    }
  }

  .universe-game-panel {
    position: fixed;
    inset: 0;
    z-index: 720;
    display: none;
    background: #050505;
    color: #fff;
  }

  .universe-game-panel.active {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .universe-game-panel.aula404-wide-view.active {
    grid-template-rows: minmax(38px, auto) minmax(0, 1fr);
  }

  .universe-game-panel.aula404-wide-view .ug-topbar {
    padding: .38rem .65rem;
  }

  .universe-game-panel.aula404-wide-view .ug-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .universe-game-panel.aula404-wide-view .ug-title {
    font-size: 1.25rem;
  }

  .universe-game-panel.aula404-wide-view .ug-sub {
    display: none;
  }

  .universe-game-panel.cv-soft-fullscreen.active {
    grid-template-rows: minmax(0, 1fr);
  }

  .universe-game-panel.cv-soft-fullscreen .ug-topbar,
  .universe-game-panel:fullscreen .ug-topbar,
  .universe-game-panel:-webkit-full-screen .ug-topbar {
    display: none;
  }

  .universe-game-panel:fullscreen,
  .universe-game-panel:-webkit-full-screen {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
  }

  .ug-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(96,165,250,.28);
    background: #000;
  }

  .ug-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
  }

  .ug-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg,#2563eb,#60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
  }

  .ug-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1.8px;
    line-height: 1;
  }

  .ug-sub {
    margin-top: .15rem;
    font-family: 'Rajdhani', sans-serif;
    color: #bfdbfe;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
  }

  .ug-close {
    border: 1px solid rgba(96,165,250,.28);
    border-radius: 999px;
    background: #050505;
    color: #fff;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
  }

  .ug-stage {
    position: relative;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    background: #000;
  }

  .ug-canvas-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #080808;
    touch-action: none;
  }

  .ug-touch-pad {
    display: grid;
    gap: .38rem;
    border: 2px solid rgba(0,0,0,.72);
    border-radius: 16px;
    background: rgba(15,23,42,.58);
    padding: .52rem;
    box-shadow: 0 14px 32px rgba(0,0,0,.28);
    backdrop-filter: blur(8px);
    pointer-events: auto;
  }

  .ug-touch-pad {
    grid-template-columns: repeat(3, 50px);
    grid-template-rows: repeat(2, 50px);
  }

  .ug-touch-btn {
    border: 2px solid #000;
    border-radius: 12px;
    background: linear-gradient(180deg,#fff,#dbeafe);
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 0 rgba(0,0,0,.38);
    touch-action: none;
    user-select: none;
  }

  .ug-touch-btn:active,
  .ug-touch-btn.active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 rgba(0,0,0,.34);
    background: #bfdbfe;
  }

  .ug-touch-btn.forward { grid-column: 2; grid-row: 1; }
  .ug-touch-btn.left { grid-column: 1; grid-row: 2; }
  .ug-touch-btn.back { grid-column: 2; grid-row: 2; }
  .ug-touch-btn.right { grid-column: 3; grid-row: 2; }

  .ug-unity-layer {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: none;
    place-items: center;
    background: #020617;
    color: #fff;
    overflow: hidden;
    padding: .75rem;
    box-sizing: border-box;
    contain: strict;
    isolation: isolate;
  }

  .ug-unity-layer.active {
    display: grid;
  }

  #ug-unity-canvas {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    background: #000;
    object-fit: contain;
    image-rendering: pixelated;
    touch-action: none;
    transform: translateZ(0);
    will-change: transform;
  }

  html.aula404-performance-mode {
    scroll-behavior: auto !important;
  }

  html.aula404-performance-mode body {
    overflow: hidden;
  }

  html.aula404-performance-mode * {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }

  .ug-unity-loader {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 50% 20%, rgba(37,99,235,.42), transparent 36%),
      #020617;
  }

  .ug-unity-loader.hidden {
    display: none;
  }

  .ug-unity-loader-box {
    width: min(520px, calc(100% - 2rem));
    border: 2px solid #38bdf8;
    border-radius: 14px;
    background: rgba(15,23,42,.94);
    padding: 1rem;
    box-shadow: 0 24px 80px rgba(0,0,0,.48);
  }

  .ug-unity-loader-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 7vw, 3.6rem);
    letter-spacing: 1px;
    line-height: .95;
  }

  .ug-unity-loader-text {
    margin-top: .4rem;
    color: #cbd5e1;
    font-family: 'Rajdhani', sans-serif;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .4px;
  }

  .ug-unity-progress {
    height: 14px;
    margin-top: .85rem;
    border: 1px solid #38bdf8;
    border-radius: 999px;
    background: #0f172a;
    overflow: hidden;
  }

  .ug-unity-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,#22d3ee,#60a5fa,#a3e635);
    transition: width .16s linear;
  }

  .ug-unity-toolbar {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 5;
    display: flex;
    gap: .45rem;
  }

  .ug-unity-toolbar button,
  .ug-unity-launch {
    border: 1px solid rgba(147,197,253,.38);
    border-radius: 999px;
    background: rgba(15,23,42,.88);
    color: #fff;
    padding: .58rem .78rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
  }

  .ug-unity-launch {
    width: 100%;
    border: 0;
    background: linear-gradient(135deg,#16a34a,#22d3ee);
    color: #04111f;
    padding: .78rem .95rem;
    font-size: .92rem;
    box-shadow: 0 8px 22px rgba(34,211,238,.2);
  }

  .ug-unity-touch-controls {
    position: absolute;
    left: .75rem;
    bottom: .75rem;
    z-index: 5;
    display: none;
    pointer-events: none;
  }

  .ug-unity-layer.active .ug-unity-touch-controls {
    display: none;
  }

  .ug-unity-mobile-note {
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: 6.65rem;
    z-index: 5;
    display: none;
    max-width: 460px;
    border: 2px solid rgba(15,23,42,.78);
    border-radius: 12px;
    background: rgba(254,240,138,.95);
    color: #111827;
    padding: .48rem .62rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: .76rem;
    font-weight: 900;
    line-height: 1.15;
    pointer-events: none;
  }

  .ug-game-select,
  .cv-stage {
    display: none;
  }

  .universe-game-panel.game-select .ug-game-select {
    display: grid;
  }

  .universe-game-panel.game-select .ug-stage,
  .universe-game-panel.ceprevirtual-mode .ug-stage {
    display: none;
  }

  .universe-game-panel.ceprevirtual-mode .cv-stage {
    display: grid;
  }

  .universe-game-panel.aula404-mode .ug-stage {
    display: grid;
  }

  .universe-game-panel.aula404-unity-mode .ug-stage {
    grid-template-columns: minmax(0,1fr);
  }

  .ug-game-select {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem;
    padding: 1rem;
    background:
      radial-gradient(circle at 12% 12%,rgba(34,211,238,.16),transparent 30%),
      radial-gradient(circle at 84% 20%,rgba(37,99,235,.16),transparent 28%),
      #050505;
    overflow: auto;
  }

  .ug-game-card {
    display: grid;
    align-content: end;
    min-height: 360px;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    color: #fff;
    box-shadow: inset 0 -130px 76px rgba(0,0,0,.58), 0 18px 50px rgba(0,0,0,.34);
    transition: transform .18s, filter .18s, box-shadow .18s;
  }

  .ug-game-card:hover {
    transform: translateY(-3px);
    filter: saturate(1.08);
    box-shadow: inset 0 -130px 76px rgba(0,0,0,.56), 0 22px 58px rgba(37,99,235,.26);
  }

  .ug-game-card.aula {
    background: linear-gradient(135deg,rgba(127,29,29,.4),rgba(5,5,5,.3)), #111827;
  }

  .ug-game-card.virtual {
    background: linear-gradient(135deg,rgba(37,99,235,.75),rgba(20,184,166,.55)), #0f172a;
  }

  .ug-game-card strong {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 2px;
    line-height: .95;
  }

  .ug-game-card span {
    display: block;
    margin-top: .45rem;
    color: #e5e7eb;
    font-family: 'Rajdhani', sans-serif;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
  }

  .cv-stage {
    min-height: 0;
    height: 100%;
    grid-template-columns: minmax(0,1fr) 320px;
    background:
      radial-gradient(circle at 18% 14%, rgba(34,211,238,.22), transparent 34%),
      linear-gradient(135deg,#07111f 0%,#0f172a 48%,#020617 100%);
  }

  .cv-canvas-wrap {
    position: relative;
    min-height: 0;
    background: linear-gradient(180deg,#93c5fd,#dbeafe);
    overflow: hidden;
    isolation: isolate;
    touch-action: none;
  }

  .cv-entry {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
      linear-gradient(180deg,rgba(15,23,42,.14),rgba(15,23,42,.76)),
      repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 1px,transparent 1px 18px);
    pointer-events: auto;
  }

  .cv-stage.cv-live .cv-entry {
    display: none;
  }

  .cv-entry-box {
    width: min(520px, 100%);
    border: 2px solid #0f172a;
    border-radius: 12px;
    background:
      linear-gradient(180deg,rgba(255,255,255,.97),rgba(219,234,254,.95));
    color: #0f172a;
    padding: 1rem;
    box-shadow: 0 18px 50px rgba(15,23,42,.38), inset 0 0 0 1px rgba(255,255,255,.72);
  }

  .cv-entry-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 7vw, 3.5rem);
    letter-spacing: 1.5px;
    line-height: .95;
  }

  .cv-entry-sub {
    margin-top: .25rem;
    color: #334155;
    font-family: 'Rajdhani', sans-serif;
    font-size: .9rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .cv-entry-actions,
  .cv-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }

  .cv-entry-actions {
    margin-top: .75rem;
  }

  .cv-actions .cv-back {
    grid-column: 1 / -1;
  }

  #ceprevirtual-canvas {
    width: 100%;
    height: 100%;
    min-height: 460px;
    display: block;
    background: #bfdbfe;
    image-rendering: pixelated;
    touch-action: none;
  }

  .cv-join-toast {
    position: absolute;
    top: .8rem;
    right: .8rem;
    z-index: 3;
    display: none;
    max-width: min(320px, calc(100% - 1.6rem));
    border: 2px solid #0f172a;
    border-radius: 10px;
    background: #fef08a;
    color: #111827;
    padding: .6rem .75rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: .9rem;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }

  .cv-join-toast.active {
    display: block;
  }

  .cv-mobile-controls {
    position: absolute;
    left: .75rem;
    right: auto;
    bottom: .75rem;
    z-index: 3;
    display: none;
    align-items: end;
    pointer-events: none;
  }

  .cv-pad {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 50px);
    grid-template-rows: repeat(2, 50px);
    gap: .38rem;
    border: 2px solid rgba(15,23,42,.72);
    border-radius: 16px;
    background: rgba(15,23,42,.58);
    padding: .52rem;
    box-shadow: 0 14px 32px rgba(15,23,42,.28);
    backdrop-filter: blur(8px);
    pointer-events: auto;
  }

  .cv-btn {
    border: 2px solid #0f172a;
    border-radius: 12px;
    background: linear-gradient(180deg,#ffffff,#dbeafe);
    color: #0f172a;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 5px 0 rgba(15,23,42,.38);
    touch-action: none;
    user-select: none;
  }

  .cv-btn.active,
  .cv-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 rgba(15,23,42,.34);
    background: #dbeafe;
  }

  .cv-btn.forward { grid-column: 2; grid-row: 1; }
  .cv-btn.left { grid-column: 1; grid-row: 2; }
  .cv-btn.back { grid-column: 2; grid-row: 2; }
  .cv-btn.right { grid-column: 3; grid-row: 2; }

  .cv-sidebar {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    border-left: 1px solid rgba(147,197,253,.28);
    background:
      linear-gradient(180deg,rgba(15,23,42,.98),rgba(2,6,23,.98)),
      #050505;
    padding: .9rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #38bdf8 #020617;
  }

  .cv-start,
  .cv-back,
  .cv-fullscreen {
    border: 0;
    border-radius: 999px;
    padding: .78rem .95rem;
    background: linear-gradient(135deg,#2563eb,#22d3ee);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: .95rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37,99,235,.22);
    transition: transform .15s, filter .15s, box-shadow .15s;
  }

  .cv-start:hover,
  .cv-back:hover,
  .cv-fullscreen:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
  }

  .cv-back,
  .cv-fullscreen {
    background: #111827;
    border: 1px solid rgba(147,197,253,.35);
  }

  .cv-fullscreen {
    background: #0f766e;
  }

  .cv-panel {
    border: 1px solid rgba(147,197,253,.28);
    border-radius: 12px;
    background: linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
    padding: .75rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  }

  .cv-panel-title {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .cv-characters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin-top: .55rem;
  }

  .cv-character {
    position: relative;
    height: 58px;
    border: 2px solid rgba(255,255,255,.24);
    border-radius: 12px;
    cursor: pointer;
    background:
      radial-gradient(circle at 50% 18%, var(--cv-skin,#f0c48a) 0 10px, var(--cv-hair,#111827) 10px 14px, transparent 15px),
      linear-gradient(180deg,rgba(255,255,255,.18),rgba(0,0,0,.14)),
      var(--cv-color,#2563eb);
    box-shadow: inset 0 -18px 0 rgba(0,0,0,.18), 0 8px 16px rgba(2,6,23,.18);
    overflow: hidden;
  }

  .cv-character::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 26px;
    height: 22px;
    transform: translateX(-50%);
    border-radius: 8px 8px 4px 4px;
    background: var(--cv-color,#2563eb);
    box-shadow: -13px 9px 0 -8px var(--cv-pants,#1e3a8a), 13px 9px 0 -8px var(--cv-pants,#1e3a8a);
  }

  .cv-character span {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 2px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: .58rem;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,.72);
    text-transform: uppercase;
  }

  .cv-character.active {
    border-color: #fef08a;
    box-shadow: inset 0 -18px 0 rgba(0,0,0,.18), 0 0 0 3px rgba(250,204,21,.25), 0 10px 20px rgba(250,204,21,.18);
    transform: translateY(-1px);
  }

  .cv-online {
    margin-top: .55rem;
    color: #cbd5e1;
    font-size: .8rem;
    line-height: 1.35;
  }

  .cv-chat {
    min-height: 0;
    flex: 1;
    display: grid;
    grid-template-rows: auto minmax(0,1fr);
    gap: .55rem;
  }

  .cv-chat-list {
    min-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: .25rem .2rem .25rem 0;
    scrollbar-width: thin;
    scrollbar-color: #38bdf8 #020617;
  }

  .cv-chat-empty,
  .cv-status {
    color: #94a3b8;
    font-size: .78rem;
    line-height: 1.4;
  }

  .cv-chat-msg {
    border: 1px solid rgba(147,197,253,.22);
    border-radius: 12px;
    background: linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
    padding: .5rem .6rem;
    box-shadow: 0 8px 16px rgba(2,6,23,.14);
  }

  .cv-chat-msg.me {
    background: rgba(37,99,235,.18);
  }

  .cv-chat-name {
    color: #93c5fd;
    font-family: 'Rajdhani', sans-serif;
    font-size: .74rem;
    font-weight: 900;
  }

  .cv-chat-text {
    margin-top: .12rem;
    color: #fff;
    font-size: .84rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .cv-chat-form {
    display: flex;
    gap: .42rem;
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: linear-gradient(180deg,rgba(2,6,23,0),#020617 28%);
    padding-top: .55rem;
  }

  .cv-chat-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(147,197,253,.32);
    border-radius: 12px;
    background: rgba(255,255,255,.11);
    color: #fff;
    padding: .72rem .78rem;
    outline: 0;
  }

  .cv-chat-send {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,#22d3ee,#60a5fa);
    color: #0f172a;
    padding: 0 .75rem;
    font-weight: 900;
    cursor: pointer;
  }

  @media (max-width: 900px) {
    .ug-game-select {
      grid-template-columns: 1fr;
    }

    .ug-game-card {
      min-height: 220px;
    }

    .ug-stage {
      grid-template-columns: minmax(0,1fr);
    }

    .cv-stage {
      grid-template-columns: minmax(0,1fr);
      grid-template-rows: minmax(300px,1fr) minmax(245px, 36dvh);
    }

    .cv-sidebar {
      height: 100%;
      max-height: none;
      border-left: 0;
      border-top: 1px solid rgba(147,197,253,.28);
      padding: .65rem;
      gap: .5rem;
      background: linear-gradient(180deg,#0f172a,#020617);
    }

    .cv-mobile-controls {
      display: flex;
    }

    .ug-unity-layer.active .ug-unity-touch-controls,
    .ug-unity-mobile-note {
      display: block;
    }
  }

  @media (max-width: 600px) {
    .universe-game-button {
      right: 14px;
      top: auto;
      bottom: 78px;
      width: 50px;
      height: 50px;
      border-radius: 15px;
    }


  .current-news-button {
    right: 14px;
    top: auto;
    bottom: 140px;
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .current-news-head,
  .current-news-toolbar {
    padding-left: .85rem;
    padding-right: .85rem;
  }

  .current-news-head,
  .current-news-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .current-news-close {
    position: absolute;
    right: .85rem;
    top: .85rem;
  }

  .current-news-sub {
    padding-right: 3.2rem;
  }

  .current-news-count {
    white-space: normal;
  }

  .current-news-grid {
    grid-template-columns: 1fr;
    padding: .85rem;
    gap: .7rem;
  }

  .current-news-card {
    padding: .82rem;
  }

    .ug-title {
      font-size: 1.25rem;
    }

    .ug-sub {
      display: none;
    }

    .universe-game-panel.active {
      grid-template-rows: auto minmax(0, 1fr);
    }

    .ug-topbar {
      padding: .52rem .65rem;
    }

    .ug-mark {
      width: 34px;
      height: 34px;
      border-radius: 10px;
    }

    .ug-close {
      width: 34px;
      height: 34px;
    }

    .ug-touch-pad {
      grid-template-columns: repeat(3, 46px);
      grid-template-rows: repeat(2, 46px);
      padding: .42rem;
      border-radius: 14px;
    }

    #ceprevirtual-canvas {
      min-height: 0;
      height: 100%;
    }

    .cv-pad {
      grid-template-columns: repeat(3, 46px);
      grid-template-rows: repeat(2, 46px);
      padding: .42rem;
      border-radius: 14px;
    }

    .cv-btn {
      min-height: 46px;
      border-radius: 11px;
      font-size: 1.05rem;
    }

    .cv-characters {
      grid-template-columns: repeat(4, 1fr);
      gap: .42rem;
    }

    .cv-character {
      height: 52px;
      border-radius: 10px;
    }

    .cv-entry {
      align-items: end;
      padding: .6rem;
    }

    .cv-entry-box {
      padding: .8rem;
      border-radius: 12px;
    }

    .cv-entry-actions,
    .cv-actions {
      grid-template-columns: 1fr 1fr;
      gap: .42rem;
    }

    .cv-actions {
      grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .cv-actions .cv-back {
      grid-column: auto;
    }

    .cv-start,
    .cv-back,
    .cv-fullscreen {
      min-height: 40px;
      padding: .62rem .45rem;
      font-size: .72rem;
      letter-spacing: .5px;
      line-height: 1;
    }

    .cv-stage.cv-live {
      grid-template-rows: minmax(300px,1fr) minmax(208px, 34dvh);
    }

    .cv-stage.cv-live .cv-panel,
    .cv-stage.cv-live .cv-status {
      display: none;
    }

    .cv-stage.cv-live .cv-sidebar {
      padding: .5rem;
      gap: .38rem;
    }

    .cv-chat-list {
      min-height: 72px;
      gap: .32rem;
    }

    .cv-chat-form {
      padding-top: .38rem;
    }

    .cv-chat-input {
      min-height: 42px;
      font-size: 16px;
    }

    .cv-chat-send {
      min-height: 42px;
      padding: 0 .62rem;
    }

    .cv-chat-msg {
      padding: .42rem .52rem;
    }

    .cv-chat-text {
      font-size: .8rem;
    }

    .ug-touch-btn {
      font-size: 1.05rem;
      min-height: 46px;
      border-radius: 11px;
    }

    .ug-unity-touch-controls {
      left: .65rem;
      bottom: .65rem;
    }

    .ug-unity-mobile-note {
      bottom: 6.35rem;
      font-size: .68rem;
      padding: .42rem .52rem;
    }

    .ug-unity-toolbar {
      top: .55rem;
      right: .55rem;
      gap: .35rem;
    }

    .ug-unity-toolbar button {
      padding: .48rem .58rem;
      font-size: .68rem;
    }
  }

  .universe-game-panel {
    --ug-ui-gap: clamp(.35rem, 1.4vmin, 1rem);
    --ug-topbar-y: clamp(.34rem, 1.2vmin, .75rem);
    --ug-topbar-x: clamp(.54rem, 1.8vmin, 1rem);
    --ug-mark-size: clamp(28px, 6.4vmin, 42px);
    --ug-close-size: clamp(32px, 6.2vmin, 40px);
    --ug-title-size: clamp(1.08rem, 4.2vmin, 1.6rem);
    --ug-sub-size: clamp(.62rem, 1.9vmin, .8rem);
    --ug-unity-pad: clamp(.22rem, 1.2vmin, .75rem);
    --ug-toolbar-top: clamp(.42rem, 1.5vmin, .75rem);
    --ug-toolbar-side: clamp(.42rem, 1.5vmin, .75rem);
    --ug-toolbar-font: clamp(.62rem, 1.75vmin, .76rem);
    --ug-toolbar-pad-y: clamp(.42rem, 1.2vmin, .58rem);
    --ug-toolbar-pad-x: clamp(.5rem, 1.7vmin, .78rem);
    --ug-touch-size: clamp(42px, min(13vw, 10dvh), 58px);
    --ug-touch-gap: clamp(.25rem, 1.1vmin, .38rem);
    --ug-touch-pad-pad: clamp(.34rem, 1.2vmin, .52rem);
    --ug-touch-left: clamp(.45rem, 2vmin, .75rem);
    --ug-touch-bottom: clamp(.45rem, 2vmin, .85rem);
    --ug-note-bottom: calc(var(--ug-touch-bottom) + (var(--ug-touch-size) * 2) + (var(--ug-touch-gap) * 1) + (var(--ug-touch-pad-pad) * 2) + .65rem);
    --ug-note-font: clamp(.62rem, 1.85vmin, .76rem);
  }

  .ug-topbar {
    gap: var(--ug-ui-gap);
    padding: var(--ug-topbar-y) var(--ug-topbar-x);
  }

  .ug-brand {
    gap: var(--ug-ui-gap);
  }

  .ug-mark {
    width: var(--ug-mark-size);
    height: var(--ug-mark-size);
    border-radius: clamp(8px, 2vmin, 12px);
  }

  .ug-mark svg {
    width: calc(var(--ug-mark-size) * .58);
    height: calc(var(--ug-mark-size) * .58);
  }

  .ug-title {
    font-size: var(--ug-title-size);
    letter-spacing: clamp(.8px, .35vmin, 1.8px);
  }

  .ug-sub {
    font-size: var(--ug-sub-size);
    letter-spacing: clamp(.3px, .22vmin, .8px);
  }

  .ug-close {
    width: var(--ug-close-size);
    height: var(--ug-close-size);
    font-size: calc(var(--ug-close-size) * .48);
  }

  .ug-unity-layer {
    padding: var(--ug-unity-pad);
  }

  .ug-unity-loader-box {
    width: min(520px, calc(100% - (var(--ug-unity-pad) * 2)));
    padding: clamp(.72rem, 2.2vmin, 1rem);
  }

  .ug-unity-loader-title {
    font-size: clamp(1.55rem, 8vmin, 3.6rem);
  }

  .ug-unity-loader-text {
    font-size: clamp(.68rem, 2.1vmin, .86rem);
  }

  .ug-unity-progress {
    height: clamp(10px, 2vmin, 14px);
  }

  .ug-unity-toolbar {
    top: var(--ug-toolbar-top);
    right: var(--ug-toolbar-side);
    gap: clamp(.28rem, 1vmin, .45rem);
    max-width: calc(100% - (var(--ug-toolbar-side) * 2));
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .ug-unity-toolbar button {
    padding: var(--ug-toolbar-pad-y) var(--ug-toolbar-pad-x);
    font-size: var(--ug-toolbar-font);
    line-height: 1;
    min-height: clamp(34px, 6.2vmin, 42px);
  }

  .ug-unity-touch-controls {
    left: var(--ug-touch-left);
    bottom: var(--ug-touch-bottom);
  }

  .ug-touch-pad {
    grid-template-columns: repeat(3, var(--ug-touch-size));
    grid-template-rows: repeat(2, var(--ug-touch-size));
    gap: var(--ug-touch-gap);
    padding: var(--ug-touch-pad-pad);
    border-radius: clamp(12px, 3vmin, 16px);
  }

  .ug-touch-btn {
    min-width: var(--ug-touch-size);
    min-height: var(--ug-touch-size);
    font-size: clamp(1rem, 4vmin, 1.35rem);
    border-radius: clamp(10px, 2.5vmin, 14px);
  }

  .ug-unity-mobile-note {
    left: var(--ug-touch-left);
    right: var(--ug-touch-left);
    bottom: var(--ug-note-bottom);
    max-width: min(520px, calc(100% - (var(--ug-touch-left) * 2)));
    padding: clamp(.36rem, 1.35vmin, .52rem) clamp(.48rem, 1.6vmin, .7rem);
    font-size: var(--ug-note-font);
    border-radius: clamp(9px, 2.3vmin, 12px);
  }

  @media (orientation: landscape) and (max-height: 560px) {
    .universe-game-panel {
      --ug-mark-size: clamp(24px, 7dvh, 32px);
      --ug-close-size: clamp(28px, 7dvh, 34px);
      --ug-title-size: clamp(.95rem, 4.2dvh, 1.2rem);
      --ug-touch-size: clamp(38px, 13dvh, 50px);
      --ug-unity-pad: .18rem;
      --ug-note-font: .62rem;
    }

    .ug-sub,
    .ug-unity-mobile-note {
      display: none !important;
    }
  }

  /* STATS */
  .stats-bar { display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; padding:0 5vw 4rem; max-width:1000px; margin:0 auto; }
  .stat-item { display:flex; flex-direction:column; align-items:center; text-align:center; }
  .stat-num { font-family:'Bebas Neue',sans-serif; font-size:3.4rem; letter-spacing:2px; line-height:1; background:linear-gradient(135deg,var(--electric),var(--purple)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
  .stat-label { font-family:'Rajdhani',sans-serif; font-weight:500; font-size:.85rem; letter-spacing:2px; text-transform:uppercase; color:var(--gray); margin-top:.4rem; }

  /* SECTIONS */
  .section { padding:5rem 5vw; }
  .section-label { font-family:'Rajdhani',sans-serif; font-size:.8rem; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:var(--cyan); margin-bottom:.8rem; display:inline-flex; align-items:center; gap:.5rem; background:rgba(6,182,212,.08); border:1px solid rgba(6,182,212,.18); border-radius:6px; padding:.25rem .75rem; }
  .section-title { font-family:'Bebas Neue',sans-serif; font-size:clamp(2.4rem,5vw,4rem); letter-spacing:2px; line-height:1; margin-bottom:1rem; }
  .section-sub { color:var(--gray); font-size:1rem; max-width:540px; line-height:1.7; }

  /* FEATURES */
  #plataforma { background:rgba(255,255,255,.01); }
  .features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:3rem; }
  .feature-card { background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:16px; padding:2rem 1.8rem; transition:transform .2s,box-shadow .2s,background .2s; }
  .feature-card:hover { background:rgba(59,91,255,.06); transform:translateY(-3px); box-shadow:0 12px 32px rgba(0,0,0,.12); }
  .feature-icon { font-size:1.8rem; margin-bottom:1rem; }
  .feature-name { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:1.1rem; letter-spacing:1px; text-transform:uppercase; color:var(--white); margin-bottom:.5rem; }
  .feature-desc { font-size:.9rem; color:var(--gray); line-height:1.6; }

  /* TEMARIO */
  #temario { background:var(--navy); }
  .temario-header { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:2rem; margin-bottom:3rem; }
  .temario-uni-badge { display:flex; align-items:center; gap:.8rem; background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:12px; padding:.8rem 1.2rem; font-family:'Rajdhani',sans-serif; font-size:.85rem; font-weight:600; letter-spacing:1px; color:var(--gray); }
  .temario-pc-access { margin:-1.5rem 0 2rem; }
  .temario-pc-button { width:100%; display:flex; align-items:center; gap:1rem; border:1px solid rgba(56,189,248,.34); border-radius:14px; padding:1rem 1.1rem; background:linear-gradient(135deg,rgba(56,189,248,.14),rgba(163,230,53,.08)); color:var(--white); cursor:pointer; text-align:left; transition:transform .2s,border-color .2s,background .2s; }
  .temario-pc-button:hover { transform:translateY(-3px); border-color:rgba(56,189,248,.68); background:linear-gradient(135deg,rgba(56,189,248,.2),rgba(163,230,53,.12)); }
  .temario-pc-copy { display:flex; flex-direction:column; gap:.2rem; min-width:0; }
  .temario-pc-title { font-family:'Rajdhani',sans-serif; font-weight:900; font-size:1rem; letter-spacing:1px; text-transform:uppercase; }
  .temario-pc-desc { color:var(--gray); font-size:.9rem; line-height:1.35; }
  .temario-block { margin-bottom:2.5rem; }
  .temario-group-label { font-family:'Bebas Neue',sans-serif; font-size:1.5rem; letter-spacing:2px; margin-bottom:1rem; display:flex; align-items:center; gap:.8rem; }
  .temario-group-label::after { content:''; flex:1; height:1px; background:var(--border); }
  .mat-label { color:var(--electric); }
  .hum-label { color:var(--purple); }
  .cie-label { color:var(--cyan); }
  .subject-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(105px,1fr)); gap:.65rem; }
  .subject-card { background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:14px; padding:1.1rem .6rem; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.5rem; cursor:pointer; transition:background .2s,border-color .2s,transform .2s,box-shadow .2s; text-decoration:none; min-height:90px; }
  .subject-card:hover { background:rgba(59,91,255,.14); border-color:rgba(59,91,255,.45); transform:translateY(-4px); box-shadow:0 12px 28px rgba(0,0,0,.15); }
  .s-icon { font-size:1.6rem; line-height:1; }
  .s-name { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.68rem; letter-spacing:.8px; text-transform:uppercase; color:var(--gray); text-align:center; line-height:1.2; }
  .subject-card:hover .s-name { color:var(--white); }

  /* ===================== TEMARIO PANEL ===================== */
  #temario-panel {
    position: fixed; inset: 0; z-index: 500;
    background: var(--navy);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.22,1,.36,1);
    will-change: transform;
  }
  #temario-panel.open { transform: translateX(0); }

  .tp-header {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 5vw;
    background: rgba(255,255,255,.04); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  .tp-back {
    display: flex; align-items: center; gap: .5rem;
    font-family: 'Rajdhani', sans-serif; font-weight: 700;
    font-size: .9rem; letter-spacing: 1px; text-transform: uppercase;
    color: var(--gray); cursor: pointer; border: 1px solid var(--border);
    border-radius: 50px; padding: .45rem .9rem;
    transition: color .2s, border-color .2s, background .2s;
    background: transparent;
  }
  .tp-back:hover { color: var(--white); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
  .tp-header-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 3px; background: linear-gradient(90deg,#fff,var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-left: auto; }

  .tp-body { max-width: 860px; margin: 0 auto; padding: 3rem 5vw 5rem; }
  .tp-body.tp-body-wide { width: 100%; max-width: min(1440px,100%); }

  .tp-course-header {
    display: flex; align-items: center; gap: 1.2rem;
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.6rem 2rem; margin-bottom: 2.5rem;
  }
  .tp-course-icon { font-size: 3rem; line-height: 1; }
  .tp-course-info {}
  .tp-course-cat { font-family: 'Rajdhani', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: .3rem; }
  .tp-course-name { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; letter-spacing: 2px; line-height: 1; }
  .tp-course-sub { font-size: .88rem; color: var(--gray); margin-top: .4rem; }

  .tp-semana-block { margin-bottom: 2rem; }
  .tp-semana-label {
    font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .78rem;
    letter-spacing: 2px; text-transform: uppercase; color: var(--cyan);
    margin-bottom: .7rem; display: flex; align-items: center; gap: .6rem;
  }
  .tp-semana-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

  .tp-topic {
    background: rgba(255,255,255,.03); border: 1px solid var(--border);
    border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: .65rem;
    transition: background .2s, border-color .2s;
  }
  .tp-topic:hover { background: rgba(59,91,255,.07); border-color: rgba(59,91,255,.25); }
  .tp-topic-title {
    font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1rem;
    letter-spacing: .5px; color: var(--white); margin-bottom: .45rem;
  }
  .tp-topic-items { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
  .tp-topic-items li {
    display: flex; align-items: flex-start; gap: .55rem;
    font-size: .83rem; color: var(--gray); line-height: 1.45;
  }
  .tp-topic-items li::before {
    content: ''; display: block; width: 5px; height: 5px; flex-shrink: 0;
    border-radius: 50%; background: var(--electric); margin-top: .42em;
  }

  .cepre-eval-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: .7rem;
    margin: 0 0 1.6rem;
  }
  .cepre-eval-btn {
    min-height: 86px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .18rem;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    padding: .8rem .9rem;
    text-align: left;
    transition: background .2s,border-color .2s,transform .15s,box-shadow .2s;
  }
  .cepre-eval-btn:hover,
  .cepre-eval-btn.active {
    background: rgba(59,91,255,.14);
    border-color: rgba(59,91,255,.46);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(59,91,255,.14);
  }
  .cepre-eval-num {
    font-family: 'Bebas Neue',sans-serif;
    font-size: 1.45rem;
    line-height: 1;
    color: var(--electric);
  }
  .cepre-eval-name {
    font-family: 'Rajdhani',sans-serif;
    font-size: .88rem;
    font-weight: 900;
    letter-spacing: .8px;
    line-height: 1.15;
    text-transform: uppercase;
  }
  .cepre-eval-range {
    color: var(--gray);
    font-size: .72rem;
    line-height: 1.25;
  }
  .cepre-topic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
    align-items: stretch;
  }
  .cepre-topic-grid .tp-topic {
    height: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }
  .cepre-topic-grid .tp-topic-items { flex: 1; }
  .cepre-exams-section {
    background: linear-gradient(180deg,rgba(37,99,235,.04),rgba(255,255,255,.01));
  }
  .cepre-exams-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
  }
  .cepre-exams-header .section-sub { max-width: 680px; }
  .cepre-exams-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .72rem 1rem;
    background: rgba(255,255,255,.04);
    color: var(--gray);
    font-family: 'Rajdhani',sans-serif;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .cepre-exams-shell {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
    padding: 1.2rem;
  }
  .cepre-eval-output { margin-top: 1rem; }
  .cepre-schedule-section {
    background: rgba(255,255,255,.01);
  }
  .cepre-schedule-shell {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
    padding: 1.2rem;
    margin-top: 2rem;
  }
  .schedule-turn-title {
    font-family: 'Bebas Neue',sans-serif;
    font-size: clamp(2rem,4vw,3.2rem);
    letter-spacing: 2px;
    text-align: center;
    color: var(--white);
    margin-bottom: 1rem;
  }
  .schedule-module { margin-top: 1.2rem; }
  .schedule-module:first-of-type { margin-top: 0; }
  .schedule-module-title {
    font-family: 'Rajdhani',sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    color: var(--gray);
    padding: .65rem;
  }
  .schedule-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--navy);
  }
  .schedule-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    table-layout: fixed;
    color: var(--white);
    font-family: 'DM Sans',sans-serif;
  }
  .schedule-table th,
  .schedule-table td {
    border: 1px solid var(--border);
    padding: .85rem .65rem;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    line-height: 1.2;
  }
  .schedule-table thead th {
    background: linear-gradient(135deg, var(--electric), var(--violet));
    color: #ffffff;
    font-family: 'Rajdhani',sans-serif;
    font-size: 1rem;
    letter-spacing: .8px;
  }
  .schedule-time {
    width: 128px;
    background: rgba(37,99,235,.04);
    color: var(--white);
    white-space: nowrap;
  }
  .schedule-cell-algebra { background:rgba(37,99,235,.06); color:var(--white); }
  .schedule-cell-geometry { background:rgba(37,99,235,.04); color:var(--white); }
  .schedule-cell-chemistry { background:rgba(37,99,235,.08); color:var(--white); }
  .schedule-cell-trig { background:rgba(37,99,235,.05); color:var(--white); }
  .schedule-cell-physics { background:rgba(37,99,235,.07); color:var(--white); }
  .schedule-cell-arithmetic { background:rgba(37,99,235,.09); color:var(--white); }
  .schedule-cell-break { background:rgba(37,99,235,.04); letter-spacing:1px; color:var(--gray); }
  .schedule-cell-humanities { background:rgba(96,165,250,.08); color:var(--white); letter-spacing:.4px; }
  @media(max-width:900px) {
    .cepre-eval-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .cepre-topic-grid { grid-template-columns: 1fr; }
    .cepre-schedule-shell { padding: .9rem; }
  }
  @media(max-width:480px) {
    .cepre-eval-grid { grid-template-columns: 1fr; }
  }

  /* TESTIMONIOS */
  #testimonios { background:rgba(255,255,255,.02); }
  .testi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; margin-top:3rem; }
  .testi-card { background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:12px; padding:1.8rem; position:relative; }
  .testi-card::before { content:'&quot;'; position:absolute; top:1rem; right:1.5rem; font-family:'Bebas Neue',sans-serif; font-size:6rem; line-height:1; color:rgba(59,91,255,.15); }
  .testi-text { font-size:.95rem; line-height:1.7; color:#cbd5e1; margin-bottom:1.5rem; }
  .testi-text strong { color:var(--white); }
  .testi-author { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:1rem; color:var(--electric); }
  .testi-role { font-size:.82rem; color:var(--gray); }

  /* BIBLIOTECA */
  #biblioteca { background:rgba(255,255,255,.01); }
  .lib-box { margin-top:3rem; border:1px solid var(--border); border-radius:16px; overflow:hidden; background:rgba(255,255,255,.02); }
  .lib-tabs { display:flex; border-bottom:1px solid var(--border); background:rgba(255,255,255,.02); flex-wrap:wrap; }
  .lib-tab { padding:.9rem 1.5rem; font-family:'Rajdhani',sans-serif; font-weight:600; font-size:.88rem; letter-spacing:1px; text-transform:uppercase; color:var(--gray); cursor:pointer; transition:color .2s,background .2s; white-space:nowrap; }
  .lib-tab.active { color:var(--electric); background:rgba(59,91,255,.08); }
  .lib-content { padding:1.8rem; display:none; }
  .lib-content.active { display:block; }
  .library-board { margin-top:3rem; display:grid; gap:1rem; }
  .library-section {
    border:1px solid var(--border);
    border-radius:12px;
    background:rgba(255,255,255,.025);
    padding:1rem;
  }
  .library-section-featured { background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(14,165,233,.04)); }
  .library-section-head {
    display:grid;
    grid-template-columns:auto 1fr;
    gap:.9rem;
    align-items:start;
    margin-bottom:.9rem;
  }
  .library-section-index {
    width:42px;
    height:42px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(37,99,235,.12);
    color:var(--electric);
    font-family:'Bebas Neue',sans-serif;
    font-size:1.35rem;
    letter-spacing:1px;
  }
  .library-section-title {
    font-family:'Rajdhani',sans-serif;
    font-size:1.1rem;
    font-weight:900;
    letter-spacing:1px;
    text-transform:uppercase;
    color:var(--white);
  }
  .library-section-meta { margin-top:.2rem; color:var(--gray); font-size:.82rem; line-height:1.45; }
  .library-resource-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:.6rem; }
  .library-teacher-wrap { margin-top:.3rem; }
  .ciclo-list { display:flex; flex-direction:column; gap:.6rem; }
  .ciclo-item { border:1px solid var(--border); border-radius:14px; overflow:hidden; }
  .ciclo-header { display:flex; align-items:center; gap:.8rem; padding:.9rem 1.2rem; cursor:pointer; background:rgba(255,255,255,.03); transition:background .2s; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.95rem; letter-spacing:.5px; user-select:none; }
  .ciclo-header:hover { background:rgba(59,91,255,.08); }
  .ciclo-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
  .ciclo-chevron { margin-left:auto; font-size:.7rem; color:var(--gray); transition:transform .3s; }
  .ciclo-item.open .ciclo-chevron { transform:rotate(180deg); }
  .ciclo-body { display:none; grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap:.5rem; padding:1rem 1.2rem 1.2rem; background:rgba(0,0,0,.15); }
  .ciclo-item.open .ciclo-body { display:grid; }
  .doc-card { background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:12px; padding:.85rem 1rem; display:flex; align-items:center; gap:.7rem; cursor:pointer; transition:transform .2s,background .2s,border-color .2s,box-shadow .2s; text-decoration:none; color:inherit; }
  .doc-card:hover { background:rgba(59,91,255,.1); border-color:rgba(59,91,255,.3); transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.1); }
  .doc-icon { font-size:1.3rem; flex-shrink:0; }
  .doc-title { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.82rem; letter-spacing:.3px; color:var(--white); line-height:1.3; }
  .doc-meta { font-size:.72rem; color:var(--gray); margin-top:.15rem; }
  .doc-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px,1fr)); gap:.6rem; }
  #biblioteca .lib-box {
    display:grid;
    gap:1rem;
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
  }
  #biblioteca .lib-tabs { display:none; }
  #biblioteca .lib-content {
    display:block;
    border:1px solid var(--border);
    border-radius:12px;
    background:rgba(255,255,255,.025);
    padding:1rem;
  }
  #biblioteca .lib-content::before {
    display:flex;
    align-items:center;
    gap:.7rem;
    margin-bottom:.9rem;
    font-family:'Rajdhani',sans-serif;
    font-size:1rem;
    font-weight:900;
    letter-spacing:1.2px;
    text-transform:uppercase;
    color:var(--white);
  }
  #ciclos::before { content:'01 · Ciclos PRE completos'; }
  #general::before { content:'02 · Material general'; }
  #examenes-uni::before { content:'03 · Exámenes y repasos UNI'; }
  #biblioteca-simulacros::before { content:'04 · Simulacros'; }
  #teacher-directory::before { content:'05 · Docentes y aulas'; }
  #biblioteca .ciclo-list {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:.8rem;
  }
  #biblioteca .ciclo-item {
    background:rgba(255,255,255,.025);
    border-radius:14px;
  }
  #biblioteca .ciclo-header {
    cursor:default;
    border-bottom:1px solid var(--border);
  }
  #biblioteca .ciclo-chevron { display:none; }
  #biblioteca .ciclo-body,
  #biblioteca .ciclo-item.open .ciclo-body {
    display:grid;
    grid-template-columns:1fr;
    padding:.8rem;
  }
  #biblioteca .section-sub {
    max-width:680px;
  }
  #biblioteca .lib-box {
    margin-top:2.1rem;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
  }
  #biblioteca .lib-content {
    position:relative;
    overflow:hidden;
    padding:1.05rem;
    box-shadow:0 14px 34px rgba(0,0,0,.08);
  }
  #biblioteca .lib-content.active,
  #biblioteca .lib-content:first-of-type {
    grid-column:1 / -1;
  }
  #biblioteca .lib-content::before {
    padding-bottom:.72rem;
    border-bottom:1px solid var(--border);
  }
  #biblioteca .ciclo-list {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:.75rem;
  }
  #biblioteca .ciclo-item {
    min-width:0;
    box-shadow:0 10px 24px rgba(0,0,0,.06);
  }
  #biblioteca .ciclo-item.open {
    border-color:rgba(59,91,255,.26);
    background:rgba(59,91,255,.035);
  }
  #biblioteca .ciclo-header {
    min-height:56px;
    align-items:center;
    padding:.82rem .9rem;
    line-height:1.25;
  }
  #biblioteca .ciclo-body,
  #biblioteca .ciclo-item.open .ciclo-body,
  #biblioteca .doc-grid {
    gap:.68rem;
  }
  #biblioteca .doc-card {
    min-height:72px;
    align-items:flex-start;
    border-radius:10px;
    padding:.82rem;
  }
  #biblioteca .doc-icon {
    width:38px;
    height:38px;
    border:1px solid rgba(59,91,255,.18);
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(59,91,255,.08);
    color:var(--electric);
    font-family:'Rajdhani',sans-serif;
    font-size:.86rem;
    font-weight:900;
  }
  #biblioteca .doc-title {
    font-size:.9rem;
    letter-spacing:.15px;
  }
  #biblioteca .doc-meta {
    margin-top:.22rem;
    line-height:1.35;
  }
  #biblioteca .doc-card-pending {
    background:rgba(255,255,255,.03);
  }
  #biblioteca #teacher-directory {
    grid-column:1 / -1;
  }
  @media (max-width: 1100px) {
    #biblioteca .ciclo-list {
      grid-template-columns:repeat(2,minmax(0,1fr));
    }
  }
  @media (max-width: 720px) {
    #biblioteca .lib-box,
    #biblioteca .ciclo-list {
      grid-template-columns:1fr;
    }
    #biblioteca .lib-content {
      padding:.9rem;
    }
  }

  /* FOOTER */
  footer { background:#f8fbff; border-top:1px solid var(--border); padding:3rem 5vw 2rem; }
  .footer-top { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:2rem; margin-bottom:3rem; }
  .footer-logo { font-family:'Bebas Neue',sans-serif; font-size:2.2rem; letter-spacing:3px; background:linear-gradient(90deg,#fff,var(--purple)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; margin-bottom:.5rem; }
  .footer-tagline { font-size:.85rem; color:var(--gray); max-width:240px; }
  .footer-links h4 { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.85rem; letter-spacing:2px; text-transform:uppercase; color:var(--white); margin-bottom:1rem; }
  .footer-links ul { list-style:none; display:flex; flex-direction:column; gap:.5rem; }
  .footer-links a { font-size:.88rem; color:var(--gray); text-decoration:none; transition:color .2s; }
  .footer-links a:hover { color:var(--white); }
  .footer-bottom { border-top:1px solid var(--border); padding-top:1.5rem; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
  .footer-copy { font-size:.8rem; color:var(--gray); }
  .footer-legal { display:flex; gap:1.5rem; }
  .footer-legal a { font-size:.8rem; color:var(--gray); text-decoration:none; }
  .footer-legal a:hover { color:var(--white); }



  /* REVEAL */
  .reveal { opacity:0; transform:translateY(28px); transition:opacity .6s,transform .6s; }
  .reveal.visible { opacity:1; transform:none; }

  /* ===================== VISUAL TEMARIO GRID ===================== */
  .temario-visual-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.015);
    margin-top: 2rem;
  }
  .tvcol {
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border);
  }
  .tvcol:last-child { border-right: none; }
  .tvcol-center { background: rgba(255,255,255,.02); }
  .tvcol-header {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem; letter-spacing: 3px;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .tvcard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .7rem;
  }
  .tvcard-grid-wide {
    grid-template-columns: repeat(3, 1fr);
  }
  .tvcard {
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem .8rem;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .55rem;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
    text-align: center;
    min-height: 100px;
  }
  .tvcard:hover {
    background: rgba(59,91,255,.16);
    border-color: rgba(59,91,255,.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(59,91,255,.2);
  }
  .tvcard-icon { font-size: 2rem; line-height: 1; }
  .tvcard-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700; font-size: .72rem;
    letter-spacing: .8px; text-transform: uppercase;
    color: var(--gray); line-height: 1.2;
  }
  .tvcard:hover .tvcard-name { color: var(--white); }

  /* ===================== ACTUALIDAD PANEL ===================== */
  #actualidad-panel {
    position: fixed; inset: 0; z-index: 500;
    background: var(--navy);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.22,1,.36,1);
    will-change: transform;
  }
  #actualidad-panel.open { transform: translateX(0); }
  .news-section-label { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.78rem; letter-spacing:2px; text-transform:uppercase; color:var(--cyan); margin:2rem 0 1rem; display:flex; align-items:center; gap:.6rem; }
  .news-section-label::after { content:''; flex:1; height:1px; background:var(--border); }
  .news-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1rem; margin-bottom:1.5rem; }
  .news-card { background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:12px; padding:1.2rem 1rem; display:flex; flex-direction:column; align-items:center; gap:.7rem; text-decoration:none; color:inherit; cursor:pointer; transition:background .2s,border-color .2s,transform .15s,box-shadow .2s; }
  .news-card:hover { background:rgba(59,91,255,.12); border-color:rgba(59,91,255,.4); transform:translateY(-4px); box-shadow:0 10px 28px rgba(59,91,255,.2); }
  .news-logo { width:72px; height:40px; object-fit:contain; border-radius:8px; background:#fff; padding:4px 8px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
  .news-logo-text { font-family:'Bebas Neue',sans-serif; font-size:.95rem; letter-spacing:1px; text-align:center; }
  .news-name { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.82rem; letter-spacing:.5px; color:var(--white); text-align:center; }
  .news-country { font-size:.7rem; color:var(--gray); text-align:center; }
  .news-pill { display:inline-block; padding:.15rem .6rem; border-radius:100px; font-size:.65rem; font-family:'Rajdhani',sans-serif; font-weight:700; letter-spacing:1px; text-transform:uppercase; }
  .pill-pe { background:rgba(239,68,68,.15); color:#f87171; border:1px solid rgba(239,68,68,.3); }
  .pill-int { background:rgba(6,182,212,.12); color:#67e8f9; border:1px solid rgba(6,182,212,.25); }

  /* ===================== SIMULACROS QUIZ PANEL ===================== */
  #quiz-panel {
    position: fixed; inset: 0; z-index: 500;
    background: var(--navy);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.22,1,.36,1);
    will-change: transform;
  }
  #quiz-panel.open { transform: translateX(0); }
  .quiz-body { max-width: 800px; margin: 0 auto; padding: 2rem 5vw 5rem; }
  .quiz-selector { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:.8rem; margin:1.5rem 0; }
  .quiz-subject-btn { background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:12px; padding:1rem .8rem; text-align:center; cursor:pointer; transition:all .2s; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.85rem; letter-spacing:.5px; color:var(--gray); }
  .quiz-subject-btn:hover { border-color:var(--electric); background:rgba(59,91,255,.12); color:#fff; transform:translateY(-2px); }
  .quiz-generate-btn { width:100%; padding:1rem; background:linear-gradient(135deg,var(--electric),var(--violet)); color:#fff; border:none; border-radius:50px; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:1.1rem; letter-spacing:1px; cursor:pointer; transition:opacity .2s,transform .2s; margin-top:1rem; }
  .quiz-generate-btn:hover { opacity:.9; transform:translateY(-2px); }
  .quiz-graph-area { background:rgba(255,255,255,.06); border:1px solid var(--border); border-radius:12px; padding:1rem; margin-bottom:1.2rem; text-align:center; overflow:auto; }
  .quiz-opt { display:flex; align-items:flex-start; gap:.9rem; background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:12px; padding:.9rem 1.2rem; cursor:pointer; transition:all .2s; text-align:left; font-family:'DM Sans',sans-serif; font-size:.95rem; color:var(--white); }
  .quiz-opt:hover { border-color:var(--electric); background:rgba(59,91,255,.12); }
  .quiz-opt.correct { border-color:#4ade80; background:rgba(34,197,94,.12); }
  .quiz-opt.wrong { border-color:#f87171; background:rgba(239,68,68,.08); }
  .quiz-opt-letter { width:24px; height:24px; border-radius:8px; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; font-family:'Bebas Neue',sans-serif; font-size:.9rem; flex-shrink:0; }
  .quiz-feedback { margin-top:1.2rem; padding:1rem 1.4rem; border-radius:14px; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:1.05rem; text-align:center; display:none; }
  .quiz-feedback.correct { background:rgba(34,197,94,.15); color:#4ade80; border:1px solid rgba(34,197,94,.3); display:block; }
  .quiz-feedback.wrong { background:rgba(239,68,68,.12); color:#f87171; border:1px solid rgba(239,68,68,.25); display:block; }
  .quiz-next-btn { margin-top:1.2rem; padding:.8rem 2rem; background:linear-gradient(135deg,var(--electric),var(--violet)); color:#fff; border:none; border-radius:50px; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.95rem; letter-spacing:1px; cursor:pointer; display:none; }
  .quiz-score-bar { display:flex; align-items:center; justify-content:space-between; background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:12px; padding:.8rem 1.4rem; margin-top:1.5rem; font-family:'Rajdhani',sans-serif; }
  .quiz-score-bar span { font-size:.85rem; color:var(--gray); letter-spacing:.5px; }
  .quiz-score-val { font-size:1.4rem; font-weight:700; color:var(--electric); }
  .quiz-score-bar.extreme { border-color:rgba(248,113,113,.45); background:rgba(239,68,68,.08); }
  .quiz-loading { text-align:center; padding:3rem 1rem; color:var(--gray); }
  .quiz-loading .spin { display:inline-block; width:40px; height:40px; border:3px solid var(--border); border-top-color:var(--electric); border-radius:50%; animation:spinq .8s linear infinite; margin-bottom:1rem; }
  @keyframes spinq { to { transform:rotate(360deg); } }
  #simulacros { background: rgba(255,255,255,.01); }
  .simulacros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 1.2rem;
    margin-top: 3rem;
  }
  .sim-card {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.8rem;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
    position: relative; overflow: hidden;
  }
  .sim-card::before {
    content: ''; position: absolute; top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, var(--electric), var(--purple));
  }
  .sim-card:hover {
    background: rgba(59,91,255,.1);
    border-color: rgba(59,91,255,.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59,91,255,.2);
  }
  .sim-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(59,91,255,.15); border: 1px solid rgba(59,91,255,.3);
    border-radius: 100px; padding: .2rem .8rem;
    font-family: 'Rajdhani', sans-serif; font-weight: 700;
    font-size: .7rem; letter-spacing: 1px; text-transform: uppercase;
    color: #93c5fd; margin-bottom: 1rem;
  }
  .sim-title {
    font-family: 'Rajdhani', sans-serif; font-weight: 700;
    font-size: 1.15rem; letter-spacing: .5px;
    color: var(--white); margin-bottom: .5rem;
  }
  .sim-meta { font-size: .83rem; color: var(--gray); line-height: 1.5; margin-bottom: 1.2rem; }
  .sim-btn {
    display: inline-flex; align-items: center; gap: .7rem;
    background: linear-gradient(135deg, var(--electric), var(--violet));
    color: #fff; border: none; border-radius: 50px;
    font-family: 'Rajdhani', sans-serif; font-weight: 700;
    font-size: .85rem; letter-spacing: 1px; text-transform: uppercase;
    padding: .65rem 1.25rem; cursor: pointer; text-decoration: none; line-height:1.2;
    transition: opacity .2s;
  }
  .sim-btn:hover { opacity: .85; }

  /* ===================== MAP SECTION ===================== */
  #mapa { background: var(--navy); }
  .map-container {
    margin-top: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
  }
  .map-container iframe {
    width: 100%; height: 500px; border: 0; display: block;
  }
  .map-overlay-badge {
    position: absolute; bottom: 1.5rem; left: 1.5rem;
    background: rgba(10,15,46,.9); backdrop-filter: blur(12px);
    border: 1px solid var(--border); border-radius: 10px;
    padding: .9rem 1.2rem;
    font-family: 'Rajdhani', sans-serif;
  }
  .map-overlay-badge .mob-title { font-weight: 700; font-size: 1rem; color: var(--white); margin-bottom: .2rem; }
  .map-overlay-badge .mob-sub { font-size: .8rem; color: var(--gray); }

  @media(max-width:900px) {
    .nav-links { display:none; }
    .login-card-inner { padding: 1.8rem 1.5rem 2rem; }
    .login-logo { font-size: 2rem; letter-spacing: 3px; }
    .stats-bar { grid-template-columns:repeat(2,1fr); }
    .features-grid { grid-template-columns:1fr; }
    .testi-grid { grid-template-columns:1fr; }
    .hero-layout { grid-template-columns:1fr; }
    .hero-title { white-space:normal; font-size:clamp(2.6rem,9vw,4.5rem); }
    .hero-video-panel { align-self:auto; }
    .footer-top { flex-direction:column; }
    .tp-course-header { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .temario-visual-grid { grid-template-columns: 1fr; }
    .tvcol { border-right: none; border-bottom: 1px solid var(--border); }
    .tvcol:last-child { border-bottom: none; }
    .tvcard-grid-wide { grid-template-columns: repeat(3, 1fr); }

    #herramientas .tools-grid { grid-template-columns:1fr; }
    #herramientas .tool-card,
    #herramientas .tool-card.wide,
    #herramientas #cepre-calculator,
    #herramientas #uni-calculator,
    #herramientas #competition-table {
      grid-column:auto !important;
      grid-row:auto !important;
      width:100%;
    }
    #herramientas .competition-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    #herramientas .competition-table { min-width:0; width:100%; }
    .uni-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .simulacros-grid { grid-template-columns: 1fr; }
    .quiz-mode-banner { align-items:flex-start; flex-direction:column; }
    .ap-course-row { grid-template-columns:1fr; gap:.45rem; }
  }

  /* ===================== ACCOUNT PANEL ===================== */
  #account-panel {
    position: fixed; inset: 0; z-index: 600;
    background: var(--navy);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.22,1,.36,1);
  }
  #account-panel.open { transform: translateX(0); }
  .ap-hero {
    padding: 5rem 5vw 2rem;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,91,255,.18) 0%, transparent 70%);
    text-align: center; border-bottom: 1px solid var(--border);
  }
  .ap-avatar-wrap {
    width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 1rem;
    border: 3px solid rgba(59,91,255,.5); overflow: hidden;
    background: linear-gradient(135deg, var(--electric), var(--violet));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; font-weight: 700; color: #fff;
  }
  .ap-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
  .ap-name { font-family:'Bebas Neue',sans-serif; font-size: 2rem; letter-spacing: 2px; }
  .ap-email { font-size: .88rem; color: var(--gray); margin-top: .25rem; }
  .ap-badge { display:inline-flex; align-items:center; gap:.4rem; background:rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.3); border-radius:100px; padding:.3rem .9rem; font-family:'Rajdhani',sans-serif; font-size:.78rem; font-weight:700; letter-spacing:1px; color:#4ade80; margin-top:.8rem; }
  .ap-body { max-width:600px; margin:0 auto; padding:2rem 5vw 5rem; }
  .ap-section-title { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.75rem; letter-spacing:2px; text-transform:uppercase; color:var(--cyan); margin:1.5rem 0 .8rem; }
  .ap-stat-row { display:grid; grid-template-columns:repeat(3,1fr); gap:.6rem; }
  .ap-stat-card { background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:12px; padding:1rem; text-align:center; }
  .ap-stat-val { font-family:'Bebas Neue',sans-serif; font-size:2rem; background:linear-gradient(135deg,var(--electric),var(--purple)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
  .ap-stat-lbl { font-family:'Rajdhani',sans-serif; font-size:.72rem; letter-spacing:1px; color:var(--gray); margin-top:.2rem; }
  .ap-course-grid { display:grid; grid-template-columns:1fr; gap:.55rem; }
  .ap-course-row { display:grid; grid-template-columns:1.2fr 1fr auto; align-items:center; gap:.8rem; background:rgba(255,255,255,.035); border:1px solid var(--border); border-radius:12px; padding:.75rem .9rem; }
  .ap-course-name { font-family:'Rajdhani',sans-serif; font-weight:700; color:#fff; letter-spacing:.5px; }
  .ap-course-bar { height:8px; border-radius:20px; background:rgba(255,255,255,.09); overflow:hidden; }
  .ap-course-fill { height:100%; border-radius:20px; background:linear-gradient(90deg,var(--electric),var(--cyan)); width:0%; }
  .ap-course-level { font-family:'Rajdhani',sans-serif; font-size:.76rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--gray); white-space:nowrap; }
  .ap-action { width:100%; display:flex; align-items:center; gap:.8rem; padding:1rem 1.2rem; background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:12px; color:var(--gray); font-family:'DM Sans',sans-serif; font-size:.92rem; cursor:pointer; text-decoration:none; transition:background .2s,border-color .2s; margin-bottom:.5rem; }
  .ap-action:hover { background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.2); color:var(--white); }
  .ap-logout { color: #f87171; border-color: rgba(248,113,113,.25); background:rgba(248,113,113,.05); }
  .ap-logout:hover { background:rgba(248,113,113,.12); border-color:rgba(248,113,113,.5); }
  .nav-user-btn { display:flex; align-items:center; gap:.5rem; background:rgba(255,255,255,.06); border:1px solid var(--border); border-radius:50px; padding:.4rem .8rem; cursor:pointer; color:var(--white); font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.85rem; letter-spacing:.5px; transition:background .2s; }
  .nav-user-btn:hover { background:rgba(255,255,255,.12); }

  /* ===================== TEMARIO MAIN PANEL ===================== */
  #temario-main-panel {
    position: fixed; inset: 0; z-index: 500;
    background: var(--navy);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.22,1,.36,1);
  }
  #temario-main-panel.open { transform: translateX(0); }

  /* ===================== QUIZ IMPROVEMENTS ===================== */
  .quiz-question-card { background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:16px; padding:2rem; margin-bottom:1.5rem; }
  .quiz-q-meta { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1.2rem; }
  .quiz-badge-subject, .quiz-badge-diff, .quiz-badge-concept {
    display:inline-flex; align-items:center; border-radius:100px; padding:.25rem .8rem;
    font-family:'Rajdhani',sans-serif; font-size:.75rem; font-weight:700; letter-spacing:1px;
  }
  .quiz-badge-subject { background:rgba(59,91,255,.15); color:#93c5fd; border:1px solid rgba(59,91,255,.3); }
  .quiz-badge-diff { background:rgba(168,85,247,.12); color:#c084fc; border:1px solid rgba(168,85,247,.25); }
  .quiz-badge-concept { background:rgba(6,182,212,.1); color:var(--cyan); border:1px solid rgba(6,182,212,.25); }
  .quiz-enunciado {
    font-size: 1.05rem; line-height: 1.75; color: var(--white);
    margin-bottom: 1.5rem; font-weight: 400;
  }
  .quiz-diagram { margin: 1rem 0 1.5rem; display:flex; justify-content:center; background:rgba(255,255,255,.02); border-radius:12px; padding:1rem; border:1px solid var(--border); }
  .quiz-diagram svg { max-width:100%; }
  .quiz-alts { display:flex; flex-direction:column; gap:.65rem; margin-bottom:1.5rem; }
  .quiz-alt-btn {
    display:flex; align-items:flex-start; gap:1rem; width:100%; text-align:left;
    background:rgba(255,255,255,.04); border:1.5px solid var(--border); border-radius:14px;
    padding:.9rem 1.1rem; cursor:pointer; transition:background .15s, border-color .15s, transform .1s;
    color:var(--white); font-family:'DM Sans',sans-serif; font-size:.95rem; line-height:1.5;
  }
  .quiz-alt-btn:hover:not(:disabled) { background:rgba(59,91,255,.12); border-color:rgba(59,91,255,.45); transform:translateX(4px); }
  .quiz-alt-btn.correct { background:rgba(34,197,94,.12); border-color:#4ade80; }
  .quiz-alt-btn.wrong { background:rgba(239,68,68,.1); border-color:#f87171; }
  .quiz-alt-btn.dimmed { opacity:.45; }
  .quiz-alt-letter {
    width:30px; height:30px; border-radius:10px; flex-shrink:0;
    background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
    display:flex; align-items:center; justify-content:center;
    font-family:'Bebas Neue',sans-serif; font-size:1rem; letter-spacing:1px;
    margin-top:.05rem;
  }
  .quiz-alt-btn.correct .quiz-alt-letter { background:rgba(34,197,94,.2); border-color:#4ade80; color:#4ade80; }
  .quiz-alt-btn.wrong .quiz-alt-letter { background:rgba(239,68,68,.2); border-color:#f87171; color:#f87171; }
  .quiz-alt-text { flex:1; }
  .quiz-feedback { border-radius:14px; overflow:hidden; margin-top:.5rem; }
  .quiz-success {
    display:flex; align-items:center; gap:1rem; padding:1.2rem 1.4rem;
    background:linear-gradient(135deg,rgba(34,197,94,.15),rgba(34,197,94,.05));
    border:1px solid rgba(34,197,94,.3);
  }
  .quiz-success-icon { font-size:2.2rem; animation:bounce .5s ease; }
  @keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
  .quiz-success-title { font-family:'Bebas Neue',sans-serif; font-size:1.6rem; letter-spacing:2px; color:#4ade80; }
  .quiz-success-sub { font-size:.85rem; color:rgba(74,222,128,.8); }
  .quiz-fail {
    display:flex; align-items:center; gap:1rem; padding:1.2rem 1.4rem;
    background:rgba(239,68,68,.08); border:1px solid rgba(239,68,68,.25);
  }
  .quiz-fail-icon { font-size:2rem; }
  .quiz-fail-title { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:1rem; color:#f87171; }
  .quiz-correct-letter { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:8px; background:rgba(34,197,94,.2); color:#4ade80; font-family:'Bebas Neue',sans-serif; font-size:1rem; }
  .quiz-fail-sub { font-size:.82rem; color:var(--gray); margin-top:.2rem; }
  .quiz-sol-box { padding:1rem 1.4rem; background:rgba(255,255,255,.03); border:1px solid var(--border); border-top:none; font-size:.88rem; color:#cbd5e1; line-height:1.6; }
  .quiz-score-bar { display:flex; align-items:center; justify-content:space-between; background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:10px; padding:.75rem 1.2rem; margin-top:1.2rem; font-family:'Rajdhani',sans-serif; font-size:.85rem; font-weight:700; letter-spacing:1px; color:var(--gray); }
  .quiz-score-val { font-family:'Bebas Neue',sans-serif; font-size:2rem; color:var(--white); }

  /* ===================== NEWS LOGO IMAGES ===================== */
  .news-logo-img { width:100%; height:100%; object-fit:contain; padding:8px; }
  .news-card-v2 {
    display:flex; flex-direction:column; align-items:center;
    background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:16px;
    padding:1.2rem .8rem; text-decoration:none; transition:transform .2s,border-color .2s,background .2s,box-shadow .2s;
    text-align:center; gap:.6rem;
  }
  .news-card-v2:hover { transform:translateY(-4px); border-color:rgba(255,255,255,.25); background:rgba(255,255,255,.08); box-shadow:0 12px 28px rgba(0,0,0,.12); }
  .news-logo-v2 {
    width:92px; height:58px; border-radius:10px; overflow:hidden;
    display:flex; align-items:center; justify-content:center;
    background:#fff;
  }
  .news-logo-v2 img { width:100%; height:100%; object-fit:contain; padding:6px; }
  .news-name-v2 { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.82rem; letter-spacing:.5px; color:var(--white); }
  .news-country { font-size:.72rem; color:var(--gray); }

  .uicon { width:1.1em; height:1.1em; fill:currentColor; flex-shrink:0; }
  .brand-icon, .feature-icon, .doc-icon, .qsb-icon, .tvcard-icon, .s-icon {
    display:inline-flex; align-items:center; justify-content:center;
    color:#07111f; background:linear-gradient(135deg,var(--cyan),var(--lime));
    border:1px solid rgba(255,255,255,.14); box-shadow:0 10px 28px rgba(34,211,238,.13);
  }
  .feature-icon, .doc-icon, .qsb-icon, .tvcard-icon, .s-icon { width:42px; height:42px; border-radius:10px; font-size:1.25rem; }
  .doc-icon { font-family:'Rajdhani',sans-serif; font-weight:900; font-size:.82rem; letter-spacing:.4px; }
  .doc-card { align-items:flex-start; gap:.95rem; }
  .doc-card &gt; div:last-child { min-width:0; }
  .doc-icon { width:46px; height:46px; }
  .tvcard-icon, .qsb-icon { margin-inline:auto; }
  .tvcol { border-right:1px solid var(--border); padding:1.8rem 1.2rem; }
  .tvcol:last-child { border-right:none; }
  .tvcol-header { font-family:'Bebas Neue',sans-serif; font-size:1.2rem; letter-spacing:2px; margin-bottom:1.2rem; }
  .tvcard { background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:14px; display:flex; flex-direction:column; align-items:center; gap:.45rem; cursor:pointer; transition:transform .2s,background .2s,border-color .2s,box-shadow .2s; min-height:80px; padding:.7rem .3rem; }
  .tvcard:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,.12); }
  .tvcol-math { background:linear-gradient(180deg,rgba(56,189,248,.13),rgba(14,165,233,.045)); }
  .tvcol-humanities { background:linear-gradient(180deg,rgba(251,113,133,.13),rgba(244,114,182,.045)); }
  .tvcol-science { background:linear-gradient(180deg,rgba(163,230,53,.13),rgba(34,197,94,.045)); }
  .tvcol-math .tvcard { border-color:rgba(56,189,248,.24); background:rgba(56,189,248,.055); }
  .tvcol-humanities .tvcard { border-color:rgba(251,113,133,.24); background:rgba(251,113,133,.055); }
  .tvcol-science .tvcard { border-color:rgba(163,230,53,.22); background:rgba(163,230,53,.055); }
  .tvcol-math .tvcard-icon { background:linear-gradient(135deg,#38bdf8,#2563eb); color:#f8fafc; }
  .tvcol-humanities .tvcard-icon { background:linear-gradient(135deg,#fb7185,#d946ef); color:#fff; }
  .tvcol-science .tvcard-icon { background:linear-gradient(135deg,#a3e635,#22c55e); color:#07111f; }

  /* UNIVERSE 2026: perfil compacto y personalizable */
  #account-panel { background:linear-gradient(180deg,#07111f,#0f172a); }
  .ap-shell { width:min(1180px,94vw); margin:0 auto; padding:2rem 0 4rem; display:grid; grid-template-columns:minmax(280px,360px) 1fr; gap:1rem; }
  .ap-profile-card, .ap-panel { background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:0 24px 70px rgba(0,0,0,.22); }
  .ap-profile-card { padding:1.2rem; position:sticky; top:88px; align-self:start; }
  .ap-hero { padding:0; background:transparent; border:0; text-align:left; }
  .ap-avatar-row { display:flex; align-items:center; gap:1rem; }
  .ap-avatar-wrap { width:84px; height:84px; margin:0; border-radius:50%; border:2px solid rgba(34,211,238,.68); position:relative; cursor:pointer; overflow:hidden; }
  .ap-avatar-wrap::after { content:'Cambiar'; position:absolute; left:0; right:0; bottom:0; padding:.22rem; font-size:.62rem; letter-spacing:.5px; text-align:center; background:rgba(7,17,31,.82); color:#cffafe; font-family:'Rajdhani',sans-serif; font-weight:700; text-transform:uppercase; }
  .ap-name { font-size:1.8rem; line-height:.95; }
  .ap-email { word-break:break-word; }
  .ap-badge { border-radius:999px; color:#bef264; border-color:rgba(163,230,53,.32); background:rgba(163,230,53,.09); }
  .ap-field { display:block; margin-top:1rem; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:.78rem; letter-spacing:1px; text-transform:uppercase; color:#bae6fd; }
  .ap-input { width:100%; margin-top:.45rem; background:rgba(255,255,255,.07); border:1px solid var(--border); border-radius:10px; color:#fff; padding:.75rem .85rem; outline:0; font-family:'DM Sans',sans-serif; }
  .ap-input:focus { border-color:rgba(34,211,238,.72); box-shadow:0 0 0 3px rgba(34,211,238,.12); }
  .account-config-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.9rem; margin-top:.85rem; }
  .account-config-grid .ap-field { margin-top:0; }
  .account-config-note { margin-top:.75rem; color:var(--gray); font-size:.82rem; line-height:1.55; }
  .ap-mini-save { width:100%; margin-top:.8rem; border:0; border-radius:50px; padding:.72rem 1rem; color:#07111f; background:linear-gradient(135deg,var(--cyan),var(--lime)); font-family:'Rajdhani',sans-serif; font-weight:800; letter-spacing:1px; cursor:pointer; }
  .ap-body { max-width:none; padding:0; margin:0; }
  .ap-dashboard { display:grid; gap:1rem; }
  .ap-panel { padding:1rem; }
  .ap-panel-head { display:flex; justify-content:space-between; gap:1rem; align-items:center; margin-bottom:.85rem; }
  .ap-section-title { margin:0; color:var(--cyan); }
  .ap-stat-row { grid-template-columns:repeat(4,1fr); }
  .ap-stat-card { border-radius:12px; background:rgba(255,255,255,.045); }
  .ap-course-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ap-course-row { border-radius:12px; }
  .ap-action-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.55rem; }
  .ap-action { margin:0; border-radius:12px; min-height:56px; }
  .ap-gam-mini { display:grid; grid-template-columns:repeat(3,1fr); gap:.55rem; }
  .ap-gam-chip { background:rgba(255,255,255,.05); border:1px solid var(--border); border-radius:12px; padding:.8rem; }
  .ap-gam-value { font-family:'Bebas Neue',sans-serif; font-size:1.75rem; color:#fff; line-height:1; }
  .ap-gam-label { font-size:.72rem; color:var(--gray); font-family:'Rajdhani',sans-serif; letter-spacing:1px; text-transform:uppercase; margin-top:.22rem; }

  /* UNIVERSE 2026: herramientas academicas */
  #herramientas { background:rgba(255,255,255,.018); }
  .tools-header { display:flex; align-items:end; justify-content:space-between; gap:1rem; }
  .tools-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,.92fr); gap:1rem; margin-top:2rem; align-items:start; }
  .tool-card { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:1.15rem; box-shadow:0 20px 60px rgba(0,0,0,.18); }
  .tool-card.wide { grid-column:1/-1; }
  #cepre-calculator { grid-column:1; grid-row:1; }
  #uni-calculator { grid-column:1; grid-row:2; margin-top:-.05rem; }
  #competition-table { grid-column:2; grid-row:1 / span 2; align-self:start; }
  .tool-top { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
  .tool-kicker { font-family:'Rajdhani',sans-serif; font-size:.72rem; font-weight:800; letter-spacing:1.7px; color:var(--lime); text-transform:uppercase; }
  .tool-title { font-family:'Bebas Neue',sans-serif; font-size:1.75rem; letter-spacing:1.5px; line-height:1; margin-top:.15rem; }
  .tool-copy { color:#475569; font-size:.86rem; line-height:1.55; margin-top:.35rem; }
  .tool-mark { width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:#07111f; background:linear-gradient(135deg,var(--cyan),var(--lime)); flex-shrink:0; }
  .segmented { display:inline-flex; background:rgba(255,255,255,.055); border:1px solid var(--border); border-radius:50px; overflow:hidden; }
  .segmented button { border:0; color:var(--gray); background:transparent; padding:.55rem .85rem; cursor:pointer; font-family:'Rajdhani',sans-serif; font-weight:800; letter-spacing:.6px; }
  .segmented button.active { color:#07111f; background:var(--lime); }
  .cepre-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.55rem; }
  .note-field { display:flex; flex-direction:column; gap:.28rem; font-family:'Rajdhani',sans-serif; color:#cbd5e1; font-weight:700; font-size:.78rem; letter-spacing:.5px; }
  .note-field input, .tool-input, .tool-select { width:100%; background:rgba(255,255,255,.07); border:1px solid var(--border); border-radius:10px; color:#fff; padding:.68rem .72rem; outline:0; font-family:'DM Sans',sans-serif; }
  .note-field input:focus, .tool-input:focus, .tool-select:focus { border-color:rgba(34,211,238,.68); box-shadow:0 0 0 3px rgba(34,211,238,.1); }
  .tool-select option { color:#07111f; background:#f8fafc; }
  .cepre-result { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:.55rem; margin-top:1rem; }
  .uni-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem; margin-top:1rem; }
  #uni-calculator .uni-result { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:.55rem; margin-top:1rem; }
  .uni-status { margin-top:.85rem; padding:.9rem 1rem; border-radius:12px; border:1px solid transparent; font-family:'Rajdhani',sans-serif; font-size:.9rem; line-height:1.6; color:#cbd5e1; background:rgba(255,255,255,.03); }
  .uni-status strong { color:#fff; }
  .uni-status.good { background:rgba(34,197,94,.12); border-color:rgba(34,197,94,.38); color:#bbf7d0; }
  .uni-status.bad { background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.38); color:#fecaca; }
  .uni-status.info { background:rgba(59,130,246,.12); border-color:rgba(59,130,246,.32); color:#bfdbfe; }
  .result-tile { background:rgba(255,255,255,.05); border:1px solid var(--border); border-radius:12px; padding:.85rem; min-height:82px; }
  .result-value { font-family:'Bebas Neue',sans-serif; font-size:2rem; line-height:1; color:#0f172a; }
  .result-label { font-family:'Rajdhani',sans-serif; font-size:.72rem; letter-spacing:1px; color:var(--gray); text-transform:uppercase; margin-top:.25rem; }
  .cepre-career-wrap { margin-top:1rem; display:grid; grid-template-columns:1fr; gap:.55rem; }
  .cepre-career-select { width:100%; min-height:46px; font-weight:700; }
  .cepre-career-meta { background:#fff; border:1px solid var(--border); border-radius:12px; padding:.9rem 1rem; color:#334155; font-size:.85rem; line-height:1.55; }
  .cepre-career-meta strong { color:#0f172a; }
  .cepre-career-meta small { display:block; margin-top:.25rem; color:#475569; }
  .cepre-result .result-tile { min-height:92px; }
  .tool-cta { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; border:0; border-radius:50px; padding:.72rem 1rem; color:#07111f; background:linear-gradient(135deg,var(--cyan),var(--lime)); font-family:'Rajdhani',sans-serif; font-weight:900; letter-spacing:1px; cursor:pointer; text-decoration:none; }
  .tool-cta.secondary { color:#e2e8f0; background:rgba(255,255,255,.08); border:1px solid var(--border); }
  .competition-controls, .study-form { display:grid; grid-template-columns:1fr auto; gap:.55rem; margin-bottom:.85rem; }
  .competition-table-wrap { overflow:auto; border:1px solid var(--border); border-radius:12px; }
  .competition-table { width:100%; border-collapse:collapse; min-width:620px; }
  .competition-table th, .competition-table td { padding:.75rem .8rem; border-bottom:1px solid var(--border); text-align:left; font-size:.84rem; }
  .competition-table th { font-family:'Rajdhani',sans-serif; letter-spacing:1px; text-transform:uppercase; color:#bae6fd; background:rgba(255,255,255,.035); }
  .competition-table small { display:block; color:var(--gray); font-size:.72rem; margin-top:.18rem; }
  .level-chip { display:inline-flex; border-radius:999px; padding:.2rem .55rem; font-family:'Rajdhani',sans-serif; font-weight:800; font-size:.72rem; letter-spacing:.7px; text-transform:uppercase; }
  .level-alta { background:rgba(251,113,133,.13); color:#fda4af; border:1px solid rgba(251,113,133,.28); }
  .level-media { background:rgba(251,191,36,.13); color:#fde68a; border:1px solid rgba(251,191,36,.28); }
  .level-controlable { background:rgba(34,211,238,.12); color:#bae6fd; border:1px solid rgba(34,211,238,.25); }
  .level-baja { background:rgba(163,230,53,.12); color:#bef264; border:1px solid rgba(163,230,53,.24); }
  .level-confirmar { background:rgba(148,163,184,.12); color:#cbd5e1; border:1px solid rgba(148,163,184,.24); }
  .calendar-progress { height:10px; background:rgba(255,255,255,.08); border-radius:999px; overflow:hidden; margin:.3rem 0 .8rem; }
  .calendar-progress span { display:block; height:100%; width:0; background:linear-gradient(90deg,var(--cyan),var(--lime)); }
  .study-form { grid-template-columns:minmax(110px,.7fr) minmax(120px,.75fr) minmax(165px,1fr) minmax(190px,1.25fr) auto; align-items:start; }
  .study-actions { display:flex; gap:.45rem; align-items:stretch; }
  .study-custom-subject { grid-column:3 / 5; }
  .calendar-grid { display:grid; grid-template-columns:repeat(6,minmax(132px,1fr)); gap:.55rem; overflow:auto; padding-bottom:.25rem; }
  .day-col { background:linear-gradient(180deg,rgba(248,250,252,.94),rgba(226,232,240,.9)); border:1px solid rgba(15,23,42,.12); border-radius:12px; min-height:150px; padding:.65rem; color:#07111f; }
  .day-title { font-family:'Rajdhani',sans-serif; font-weight:900; color:#fff; letter-spacing:1px; text-transform:uppercase; margin-bottom:.5rem; }
  .day-col .day-title { color:#07111f; }
  .day-col .tool-copy { color:#334155; }
  .study-item { display:grid; grid-template-columns:1fr auto; gap:.45rem; align-items:start; background:rgba(255,255,255,.74); border:1px solid rgba(15,23,42,.12); border-radius:10px; padding:.5rem; margin-bottom:.45rem; color:#07111f; }
  .study-item.done { opacity:.64; }
  .study-check { display:grid; grid-template-columns:auto 1fr; gap:.45rem; align-items:start; cursor:pointer; }
  .study-time { color:#0369a1; font-family:'Rajdhani',sans-serif; font-weight:800; font-size:.76rem; }
  .study-subject { color:#07111f; font-size:.82rem; line-height:1.35; }
  .study-topic { color:#475569; font-size:.76rem; line-height:1.35; margin-top:.08rem; }
  .study-item-tools { display:flex; flex-direction:column; gap:.3rem; }
  .study-practice-btn { min-width:28px; height:28px; border:1px solid rgba(14,165,233,.28); border-radius:50px; background:#e0f2fe; color:#075985; cursor:pointer; font-family:'Rajdhani',sans-serif; font-weight:900; line-height:1; }
  .study-delete-btn { width:28px; height:28px; border:1px solid rgba(15,23,42,.16); border-radius:50px; background:#fff; color:#be123c; cursor:pointer; font-weight:900; line-height:1; }
  .gamification-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:1rem; }
  .gam-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:.55rem; }
  .gam-stat { background:rgba(255,255,255,.05); border:1px solid var(--border); border-radius:12px; padding:.85rem; }
  .gam-number { font-family:'Bebas Neue',sans-serif; font-size:2.25rem; color:#2563eb; line-height:1; }
  .gam-label { font-family:'Rajdhani',sans-serif; font-size:.72rem; color:#475569; letter-spacing:1px; text-transform:uppercase; }
  .ranking-live-panel { min-width:0; }
  .ranking-live-summary { margin-bottom:.55rem; color:#475569; font-size:.78rem; line-height:1.45; }
  .ranking-list { display:grid; gap:.45rem; max-height:430px; overflow-y:auto; overscroll-behavior:contain; padding-right:.25rem; scroll-behavior:smooth; }
  .ranking-list::-webkit-scrollbar { width:8px; }
  .ranking-list::-webkit-scrollbar-track { background:#eff6ff; border-radius:999px; }
  .ranking-list::-webkit-scrollbar-thumb { background:#93c5fd; border-radius:999px; }
  .ranking-list::-webkit-scrollbar-thumb:hover { background:#2563eb; }
  .rank-row { display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:.65rem; border:1px solid var(--border); background:rgba(255,255,255,.04); border-radius:12px; padding:.55rem .7rem; }
  .rank-row.me { border-color:rgba(163,230,53,.45); background:rgba(163,230,53,.08); }
  .rank-row.rank-note { display:block; color:#cbd5e1; font-size:.82rem; line-height:1.45; }
  .rank-pos { font-family:'Bebas Neue',sans-serif; font-size:1.2rem; color:#2563eb; }
  .rank-name { color:#0f172a; font-weight:700; font-size:.88rem; }
  .rank-score { font-family:'Rajdhani',sans-serif; color:#2563eb; font-weight:800; }
  .rank-meta { display:block; margin-top:.1rem; color:#64748b; font-size:.72rem; line-height:1.25; }
  .role-chip { display:inline-flex; align-items:center; gap:.25rem; width:max-content; max-width:100%; margin-top:.22rem; border:1px solid rgba(37,99,235,.18); border-radius:999px; padding:.12rem .46rem; background:#eff6ff; color:#2563eb; font-family:'Rajdhani',sans-serif; font-size:.66rem; font-weight:900; letter-spacing:.35px; text-transform:none; }
  .role-chip.owner { background:#dbeafe; border-color:rgba(37,99,235,.35); color:#1d4ed8; }
  .role-chip.user { background:#f8fbff; color:#475569; }
  .account-name-warning { display:none; margin-top:.7rem; border:1px solid rgba(239,68,68,.22); background:rgba(239,68,68,.08); color:#991b1b; border-radius:10px; padding:.62rem .75rem; font-size:.82rem; line-height:1.45; }
  .account-name-warning.active { display:block; }
  .admin-panel { border-color:rgba(37,99,235,.28) !important; background:#f8fbff !important; }
  .admin-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,.9fr); gap:.8rem; margin-top:.8rem; }
  .admin-box { min-width:0; border:1px solid rgba(37,99,235,.14); border-radius:12px; background:#ffffff; padding:.85rem; }
  .admin-box-title { color:#0f172a; font-family:'Rajdhani',sans-serif; font-weight:900; letter-spacing:1px; text-transform:uppercase; margin-bottom:.55rem; }
  .admin-note { color:#475569; font-size:.78rem; line-height:1.45; margin-top:.25rem; }
  .admin-account-list { display:grid; gap:.45rem; max-height:360px; overflow:auto; padding-right:.2rem; }
  .admin-account-row { display:grid; grid-template-columns:1fr auto; gap:.55rem; align-items:center; border:1px solid rgba(37,99,235,.12); border-radius:10px; background:#f8fbff; padding:.55rem .65rem; }
  .admin-account-main { min-width:0; }
  .admin-account-main strong { display:block; color:#0f172a; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .admin-account-main small { display:block; color:#64748b; font-size:.72rem; margin-top:.1rem; }
  .admin-delete-btn { border:1px solid rgba(239,68,68,.28); border-radius:999px; background:#fff1f2; color:#b91c1c; padding:.36rem .62rem; cursor:pointer; font-family:'Rajdhani',sans-serif; font-weight:900; letter-spacing:.6px; text-transform:uppercase; }
  .admin-delete-btn:disabled { opacity:.45; cursor:default; }

  /* UNIVERSE 2026: IA multimodal y cronometro por pregunta */
  .quiz-body { max-width:920px; }
  .quiz-upload-zone { position:relative; display:block; padding:1.35rem; border-width:2px; border-style:dashed; border-color:rgba(34,211,238,.36); background:linear-gradient(135deg,rgba(14,165,233,.12),rgba(163,230,53,.07)); }
  .quiz-upload-zone.dragover { border-color:var(--lime); background:rgba(163,230,53,.1); }
  .upload-zone-grid { display:grid; grid-template-columns:auto 1fr auto; gap:1rem; align-items:center; text-align:left; }
  .upload-icon { width:58px; height:58px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:#e0f2fe; color:#075985; }
  .upload-title { font-family:'Rajdhani',sans-serif; font-weight:900; color:#fff; letter-spacing:.8px; text-transform:uppercase; }
  .upload-sub { color:#cbd5e1; font-size:.84rem; line-height:1.45; margin-top:.25rem; }
  .upload-pill { color:#07111f; background:var(--lime); border-radius:999px; padding:.45rem .7rem; font-family:'Rajdhani',sans-serif; font-weight:900; letter-spacing:.8px; white-space:nowrap; }
  .image-context-box { display:none; grid-template-columns:120px 1fr; gap:.85rem; align-items:stretch; margin:.85rem 0 1rem; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.045); padding:.8rem; }
  .image-context-box.active { display:grid; }
  .image-preview { width:120px; height:92px; object-fit:cover; border-radius:10px; border:1px solid rgba(255,255,255,.12); background:#0f172a; }
  .image-notes { width:100%; min-height:92px; resize:vertical; background:rgba(255,255,255,.07); border:1px solid var(--border); border-radius:10px; color:#fff; padding:.7rem .75rem; outline:0; font-family:'DM Sans',sans-serif; font-size:.88rem; line-height:1.45; }
  .quiz-question-toolbar { display:flex; justify-content:space-between; gap:.75rem; align-items:center; margin-bottom:1rem; }
  .question-timer { display:inline-flex; align-items:center; gap:.45rem; border:1px solid rgba(34,211,238,.35); background:rgba(34,211,238,.08); color:#cffafe; border-radius:999px; padding:.38rem .7rem; font-family:'Rajdhani',sans-serif; font-weight:900; letter-spacing:1px; }
  .question-timer.stopped { color:#bef264; border-color:rgba(163,230,53,.35); background:rgba(163,230,53,.08); }
  .quiz-source-box { margin-top:1rem; border:1px solid rgba(34,211,238,.24); background:rgba(14,165,233,.07); border-radius:10px; padding:.75rem; color:#cbd5e1; font-size:.8rem; line-height:1.45; }
  .quiz-source-title { font-family:'Rajdhani',sans-serif; color:#bae6fd; font-weight:900; letter-spacing:1px; text-transform:uppercase; font-size:.72rem; margin-bottom:.35rem; }
  .quiz-source-list { display:flex; flex-wrap:wrap; gap:.4rem; }
  .quiz-source-list a, .quiz-query-pill { display:inline-flex; max-width:100%; border-radius:999px; padding:.22rem .55rem; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); color:#e0f2fe; text-decoration:none; font-family:'Rajdhani',sans-serif; font-weight:800; letter-spacing:.3px; }
  .quiz-query-row { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.45rem; }
  .doc-card-pending { cursor:default; position:relative; }
  .doc-card-pending:hover { background:rgba(255,255,255,.04); border-color:var(--border); }
  .doc-status { display:inline-flex; margin-top:.35rem; border-radius:999px; padding:.16rem .52rem; background:rgba(251,191,36,.12); color:#fde68a; border:1px solid rgba(251,191,36,.24); font-size:.68rem; font-family:'Rajdhani',sans-serif; font-weight:800; letter-spacing:.7px; text-transform:uppercase; }
  .teacher-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:.7rem; }
  .teacher-card { background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:12px; padding:.9rem; }
  .teacher-card-wide { grid-column:1/-1; }
  .teacher-course { font-family:'Rajdhani',sans-serif; font-weight:900; color:var(--cyan); letter-spacing:1px; text-transform:uppercase; font-size:.78rem; }
  .teacher-name { margin-top:.35rem; color:#fff; font-weight:700; }
  .teacher-meta { margin-top:.2rem; color:var(--gray); font-size:.78rem; line-height:1.45; }
  .teacher-map-card { grid-column:1/-1; display:grid; grid-template-columns:minmax(280px,1.15fr) minmax(260px,.85fr); gap:1rem; align-items:start; }
  .teacher-map-img { width:100%; border-radius:12px; border:1px solid var(--border); background:#fff; display:block; }
  .teacher-map-placeholder { width:100%; min-height:240px; border-radius:12px; border:1px dashed var(--border); background:rgba(15,23,42,.04); display:grid; place-items:center; padding:1rem; color:var(--gray); text-align:center; font-weight:700; line-height:1.45; }
  .teacher-map-notes { display:grid; gap:.65rem; }
  .teacher-room-chip { display:flex; justify-content:space-between; gap:.8rem; padding:.68rem .8rem; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.04); color:#dbeafe; font-size:.82rem; }
  .teacher-room-chip strong { color:#fff; }
  .teacher-rating { color:#bef264; font-weight:800; }
  .teacher-list { display:grid; gap:.35rem; margin-top:.65rem; }
  .teacher-entry { display:flex; justify-content:space-between; gap:.75rem; border-top:1px solid rgba(255,255,255,.08); padding-top:.4rem; color:#e2e8f0; font-size:.82rem; }

  @media(max-width:980px) {
    .tools-header { align-items:flex-start; flex-direction:column; }
    .tools-grid, .gamification-grid, .ap-shell { grid-template-columns:1fr; }
    .study-form { grid-template-columns:1fr; }
    .calendar-grid { grid-template-columns:repeat(3,minmax(132px,1fr)); }
    .image-context-box { grid-template-columns:1fr; }
    .image-preview { width:100%; height:160px; }
    .ap-profile-card { position:relative; top:auto; }
    .ap-stat-row, .ap-course-grid, .ap-action-grid, .ap-gam-mini, .gam-stats, .account-config-grid, .teacher-map-card { grid-template-columns:1fr; }
    .cepre-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .cepre-result { grid-template-columns:1fr 1fr; }
    .study-form, .competition-controls { grid-template-columns:1fr; }
    .upload-zone-grid { grid-template-columns:1fr; text-align:center; }
    .upload-icon { margin:auto; }
    .upload-pill { justify-self:center; }
  }
  @media(max-width:560px) {
    .cepre-grid, .cepre-result { grid-template-columns:1fr; }
    .calendar-grid { grid-template-columns:1fr; }
    .ap-avatar-row { flex-direction:column; align-items:flex-start; }
  }

/* Fine-tuned responsive fixes for tools */
#herramientas .tool-card { min-width: 0; }
#herramientas .tool-top { flex-wrap: wrap; }
#herramientas .tool-top &gt; div:first-child { min-width: 0; flex: 1 1 280px; }
#herramientas .tool-mark { margin-left: auto; }
#herramientas .segmented { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#herramientas .segmented button { white-space: normal; line-height: 1.15; }
#herramientas .cepre-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; }
#herramientas .note-field { min-width: 0; }
#herramientas .note-field input,
#herramientas .tool-input,
#herramientas .tool-select {
  min-width: 0;
  box-sizing: border-box;
}
#herramientas .cepre-result { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#herramientas .result-tile { min-width: 0; }
#herramientas .competition-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#herramientas .competition-table { min-width: 700px; }
#herramientas .competition-table th,
#herramientas .competition-table td { white-space: nowrap; }
#herramientas .study-form { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,1.2fr) auto; }
#herramientas .study-actions { flex-wrap: wrap; }
#herramientas .calendar-grid { grid-auto-rows: minmax(150px, auto); }
#herramientas .day-col { min-width: 0; }
#herramientas .gamification-grid { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); }
#herramientas .ranking-list { min-width: 0; }
#herramientas .rank-row { min-width: 0; }
#herramientas .rank-name { overflow-wrap: anywhere; }

/* Extra tightening for mid and small screens */
@media (max-width: 980px) {
  #herramientas .tools-grid { grid-template-columns: 1fr; }
  #herramientas .tool-card.wide { grid-column: auto; }
  #herramientas .tool-top { align-items: flex-start; }
  #herramientas .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #herramientas .cepre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #herramientas .cepre-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #herramientas .competition-table { min-width: 620px; }
  #herramientas .study-form { grid-template-columns: 1fr; }
  #herramientas .study-custom-subject { grid-column: auto; }
  #herramientas .study-actions { width: 100%; }
  #herramientas .study-actions .tool-cta { flex: 1 1 0; }
  #herramientas .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #herramientas .gamification-grid { grid-template-columns: 1fr; }
  #herramientas .gam-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  #herramientas .tool-card { padding: 1rem; }
  #herramientas .tool-title { font-size: 1.55rem; }
  #herramientas .tool-copy { font-size: .84rem; }
  #herramientas .segmented { grid-template-columns: 1fr; }
  #herramientas .segmented button { padding: .7rem .8rem; }
  #herramientas .cepre-grid { grid-template-columns: 1fr; }
  #herramientas .uni-grid { grid-template-columns: 1fr; }
  #herramientas .cepre-result { grid-template-columns: 1fr; }
  #herramientas .competition-table { min-width: 0; width: 100%; }
  #herramientas .competition-table th,
  #herramientas .competition-table td { padding: .62rem .56rem; font-size: .78rem; white-space: nowrap; }
  #herramientas .calendar-grid { grid-template-columns: 1fr; }
  #herramientas .day-col { padding: .6rem; }
  #herramientas .study-actions { flex-direction: column; }
  #herramientas .study-actions .tool-cta { width: 100%; }
  #herramientas .gam-stats { grid-template-columns: 1fr; }
  #herramientas .rank-row { grid-template-columns: 28px 1fr auto; }
}


  .result-value,
  .hero-chat-title,
  .hero-chat-name,
  .teacher-name,
  .rank-name,
  .teacher-room-chip strong,
  .ap-course-name,
  .ap-name,
  .ap-gam-value,
  .ap-gam-label {
    color: var(--white) !important;
  }
  .result-value { color: var(--white) !important; }
/* Limpiar espacio fantasma de la sección principal de Blogger */
.main-section, .main-section .widget {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    display: none !important;
}
  /* --- CORRECCIÓN DE TEXTOS BLANCOS PARA EL TEMA CLARO --- */

/* Textos de la sección principal (Hero) */
.hero-sub { color: var(--gray) !important; }
.hero-bullets li { color: var(--white) !important; }

/* Textos de las tarjetas de video YouTube */
.yt-preview { color: var(--white) !important; }
.yt-meta { color: var(--gray) !important; }

/* Textos del panel de Chat en Vivo */
.hero-chat-title, .hero-chat-name { color: var(--white) !important; }
.hero-chat-text, .hero-chat-live { color: var(--gray) !important; }
.hero-chat-input { color: var(--white) !important; background: rgba(0,0,0,0.05) !important; }

/* Textos de los botones de Login */
.btn-google { color: var(--white) !important; }
.login-email-btn { color: var(--white) !important; }
.login-email-field { color: var(--white) !important; }


/* Responsive hardening */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.hero-title,
.section-title,
.tp-course-name,
.login-logo,
.nav-logo,
.footer-logo {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hero-title {
  white-space: normal !important;
}

.hero-layout,
.features-grid,
.testi-grid,
.simulacros-grid,
.news-grid,
.ap-stat-row,
.ap-course-row,
.temario-visual-grid,
.doc-grid,
.library-resource-grid,
.quiz-selector {
  width: 100%;
}

.hero-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.section,
.tp-body,
.quiz-body,
.ap-body,
footer,
#inicio {
  padding-left: clamp(1rem, 4vw, 5vw);
  padding-right: clamp(1rem, 4vw, 5vw);
}

.map-container iframe {
  width: 100%;
  min-height: 240px;
  height: clamp(240px, 60vw, 500px);
}

.login-hero-panel,
.login-form-panel {
  min-width: 0;
}

.subject-grid {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.tvcard-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.tvcard-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testi-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.simulacros-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.news-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.doc-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.quiz-selector {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.ap-stat-row {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.ap-course-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
}

.navbar-spacer { display: none; }


@media (max-width: 1200px) {
  .current-news-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .current-news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 1200px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-video-panel {
    max-width: 760px;
  }

  .login-card {
    grid-template-columns: 1fr 1fr;
  }

  .login-hero-panel {
    min-height: 420px;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 0 1rem;
    height: 58px;
  }

  .nav-cta,
  .nav-user-btn {
    padding: .45rem .8rem;
    font-size: .8rem;
  }

  #inicio {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 44px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 10vw, 4.6rem);
    letter-spacing: 2px;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .socials {
    margin-top: 1.5rem;
  }

  .social-pill {
    min-width: 0;
    width: calc(50% - .4rem);
  }

  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid,
  .testi-grid,
  .simulacros-grid {
    grid-template-columns: 1fr;
  }

  .temario-visual-grid {
    grid-template-columns: 1fr;
  }

  .tvcol {
    padding: 1.2rem 1rem;
  }

  .tp-header,
  .tp-body,
  .quiz-body,
  .ap-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tp-course-header,
  .ap-course-row,
  .quiz-mode-banner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .ap-course-row {
    gap: .5rem;
  }

  .ap-course-level {
    justify-self: start;
  }

  .map-container iframe {
    min-height: 280px;
    height: 320px;
  }

  .login-card {
    width: min(1180px, calc(100vw - 1rem));
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-hero-panel {
    min-height: 220px;
    padding: 1rem;
  }

  .login-form-panel {
    padding: 1.4rem;
  }

  .login-brand {
    gap: .65rem;
  }

  .login-brand-img {
    width: 56px;
    height: 42px;
  }
}

@media (max-width: 600px) {
  nav {
    height: auto;
    min-height: 56px;
    padding: .75rem 1rem;
  }

  .nav-logo {
    font-size: 1.45rem;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    font-size: .75rem;
    padding: .42rem .65rem;
  }

  #inicio,
  .section,
  .tp-body,
  .quiz-body,
  .ap-body,
  footer {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .hero-bullets li {
    align-items: flex-start;
  }

  .social-pill {
    width: 100%;
  }

  .official-access-links {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-top: .85rem;
  }

  .official-access-card {
    min-height: 78px;
    padding: .82rem .9rem;
  }

  .official-access-logo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 14px;
  }

  .official-access-name {
    font-size: 1.55rem;
  }

  .admission-hero-grid,
  .admission-info-grid {
    grid-template-columns: 1fr;
  }

  .admission-card-body,
  .admission-table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admission-action {
    width: 100%;
  }

  .admission-table-card {
    padding: .85rem;
  }

  .uni-table-wrap {
    max-height: 430px;
  }


  .stat-item {
    padding: 1.2rem .8rem;
  }

  .stat-num {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .subject-grid,
  .quiz-selector,
  .news-grid,
  .library-resource-grid,
  .doc-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .tp-course-name {
    font-size: 2rem;
  }

  .tp-course-header,
  .quiz-question-card,
  .quiz-question-box,
  .testi-card,
  .feature-card,
  .sim-card {
    padding: 1rem;
  }

  .quiz-alt-btn {
    padding: .8rem .85rem;
  }

  .quiz-alt-letter {
    width: 26px;
    height: 26px;
  }

  .map-container iframe {
    height: 280px;
    min-height: 240px;
  }

  .ap-stat-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 12vw, 3.3rem);
    line-height: .95;
  }

  .hero-sub,
  .section-sub,
  .testi-text,
  .feature-desc,
  .tp-course-sub,
  .doc-meta,
  .sim-meta {
    font-size: .9rem;
  }

  .subject-grid,
  .quiz-selector,
  .news-grid,
  .library-resource-grid,
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tvcard-grid,
  .tvcard-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ciclo-body {
    grid-template-columns: 1fr;
  }

  .quiz-q-text,
  .quiz-enunciado {
    font-size: .98rem;
  }

  .ap-name {
    font-size: 1.7rem;
  }
}

@media (max-width: 360px) {
  .nav-logo,
  .footer-logo {
    font-size: 1.25rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .subject-grid,
  .quiz-selector,
  .news-grid,
  .doc-grid,
  .tvcard-grid,
  .tvcard-grid-wide {
    grid-template-columns: 1fr;
  }

  .sim-btn,
  .login-submit,
  .quiz-generate-btn {
    width: 100%;
  }
}


/* RANKING TABLE */
  .ranking-section { padding: 2rem 5vw 4rem; background: var(--navy); }
  .ranking-shell { border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.025); padding: 1.2rem; margin-top: 1.5rem; }
  .ranking-search { width: 100%; max-width: 500px; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.06); color: var(--white); font-family: 'DM Sans',sans-serif; font-size: .92rem; outline: 0; transition: border-color .2s; }
  .ranking-search:focus { border-color: var(--electric); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
  .ranking-search::placeholder { color: var(--gray); }
  .ranking-wrap { overflow: auto; max-height: min(62vh, 560px); margin-top: 1rem; border: 1px solid var(--border); border-radius: 8px; overscroll-behavior: contain; scrollbar-gutter: stable; }
  .ranking-wrap::-webkit-scrollbar { width: 9px; height: 9px; }
  .ranking-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 999px; }
  .ranking-wrap::-webkit-scrollbar-thumb { background: rgba(37,99,235,.55); border-radius: 999px; }
  .ranking-wrap::-webkit-scrollbar-thumb:hover { background: rgba(37,99,235,.8); }
  .ranking-table { width: 100%; min-width: 1060px; border-collapse: collapse; font-size: .82rem; }
  .ranking-table th { position: sticky; top: 0; z-index: 2; background: #0f172a; color: #ffffff !important; font-family: 'Rajdhani',sans-serif; font-weight: 700; letter-spacing: .5px; padding: .6rem .45rem; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
  .ranking-table td { padding: .4rem .45rem; text-align: center; border-bottom: 1px solid var(--border); color: var(--gray); }
  .ranking-table tr:hover td { background: rgba(37,99,235,.04); }
  .ranking-table .rank-pos { color: var(--electric); font-weight: 700; font-family: 'Rajdhani',sans-serif; font-size: .95rem; }
  .ranking-table .rank-name { text-align: left; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); font-weight: 500; }
  .ranking-table .rank-code { font-family: 'Rajdhani',sans-serif; font-weight: 600; color: var(--violet); font-size: .78rem; }
  .ranking-table .rank-score { font-weight: 600; }
  .ranking-table .rank-avg { font-weight: 700; color: var(--cyan); }
  .ranking-summary { font-size: .85rem; color: var(--gray); margin-top: .75rem; }
  .ranking-highlight td { background: rgba(37,99,235,.08) !important; }
  .ranking-notfound { text-align: center; padding: 2rem; color: var(--gray); }
  @media(max-width:900px) {
    .ranking-wrap { max-height: 64vh; }
    .ranking-table { font-size: .72rem; min-width: 930px; }
    .ranking-table th, .ranking-table td { padding: .35rem .25rem; }
    .ranking-table .rank-name { max-width: 100px; }
  }
  /* Restauracion visual blanca y azul: solo color, sin tocar estructura. */
  :root {
    --navy:#f8fbff;
    --surface:#ffffff;
    --surface-2:#eef6ff;
    --electric:#2563eb;
    --violet:#60a5fa;
    --purple:#93c5fd;
    --cyan:#2563eb;
    --lime:#dbeafe;
    --amber:#f59e0b;
    --rose:#ef4444;
    --white:#0f172a;
    --gray:#475569;
    --border:rgba(37,99,235,.16);
  }

  html,
  body {
    background:#f8fbff !important;
    color:#0f172a !important;
  }

  body {
    background:linear-gradient(180deg,#ffffff 0%,#f8fbff 48%,#edf5ff 100%) !important;
  }

  #login-overlay,
  #temario-panel,
  #quiz-panel,
  #account-panel,
  main,
  footer {
    background:#f8fbff !important;
    color:#0f172a !important;
  }

  nav {
    background:rgba(255,255,255,.94) !important;
    border-bottom:1px solid rgba(37,99,235,.16) !important;
    box-shadow:0 10px 30px rgba(37,99,235,.08) !important;
  }

  .nav-logo,
  .tp-header-logo,
  .footer-logo,
  .login-logo {
    background:linear-gradient(90deg,#0f172a,#2563eb) !important;
    -webkit-background-clip:text !important;
    -webkit-text-fill-color:transparent !important;
  }

  .nav-links a,
  .nav-user-btn,
  .btn-ghost,
  .ap-action {
    color:#334155 !important;
    border-color:rgba(37,99,235,.18) !important;
  }

  .nav-links a:hover,
  .nav-links a.active,
  .btn-ghost:hover,
  .ap-action:hover {
    color:#1d4ed8 !important;
    background:#eff6ff !important;
    border-color:rgba(37,99,235,.32) !important;
  }

  .nav-cta,
  .btn-primary,
  .sim-btn,
  .quiz-generate-btn,
  .login-submit,
  .tool-cta,
  .ap-mini-save,
  .hero-chat-btn {
    background:linear-gradient(135deg,#2563eb,#60a5fa) !important;
    color:#ffffff !important;
    box-shadow:0 12px 28px rgba(37,99,235,.18) !important;
  }

  .login-card,
  .login-form-panel,
  .login-hero-panel,
  .hero-chat-panel,
  .feature-card,
  .subject-card,
  .sim-card,
  .cepre-exams-shell,
  .cepre-exams-badge,
  .cepre-schedule-shell,
  .library-section,
  .lib-box,
  .doc-card,
  .testi-card,
  .tp-course-header,
  .tp-topic,
  .cepre-eval-btn,
  .quiz-question-card,
  .quiz-question-box,
  .quiz-upload-zone,
  .quiz-source-box,
  .quiz-score-bar,
  .quiz-summary-card,
  .quiz-extreme-warning,
  .ap-profile-card,
  .ap-panel,
  .tool-card,
  .result-tile,
  .rank-row,
  .gam-stat,
  .teacher-card,
  .teacher-room-chip,
  .cepre-career-meta,
  .image-context-box,
  .day-col,
  .study-item,
  .tvcol,
  .tvcol-center,
  .tvcol-math,
  .tvcol-humanities,
  .tvcol-science,
  .tvcard {
    background:#ffffff !important;
    border-color:rgba(37,99,235,.16) !important;
    color:#0f172a !important;
    box-shadow:0 16px 40px rgba(37,99,235,.08) !important;
  }

  #biblioteca .lib-box {
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
  }

  .hero-bg,
  .login-grid-bg {
    background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(219,234,254,.45)) !important;
  }

  .hero-grid {
    background-image:linear-gradient(rgba(37,99,235,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(37,99,235,.08) 1px,transparent 1px) !important;
  }

  .hero-title,
  .section-title,
  .feature-name,
  .doc-title,
  .sim-title,
  .library-section-title,
  .schedule-turn-title,
  .tp-course-name,
  .tp-topic-title,
  .quiz-enunciado,
  .quiz-q-text,
  .result-value,
  .ap-name,
  .ap-course-name,
  .teacher-name,
  .rank-name,
  .upload-title,
  .hero-chat-title,
  .hero-chat-name,
  .footer-links h4 {
    color:#0f172a !important;
    -webkit-text-fill-color:initial !important;
  }

  .hero-sub,
  .hero-bullets li,
  .section-sub,
  .feature-desc,
  .sim-meta,
  .library-section-meta,
  .doc-meta,
  .testi-text,
  .tool-copy,
  .upload-sub,
  .rank-row.rank-note,
  .teacher-entry,
  .quiz-sol-box,
  .uni-status,
  .cepre-career-meta,
  .account-config-note,
  .ap-email,
  .ap-course-level,
  .footer-links a,
  .footer-legal {
    color:#475569 !important;
  }

  .section-label,
  .tool-kicker,
  .teacher-course,
  .quiz-source-title,
  #quiz-subject-label,
  #quiz-diff-label,
  .ap-section-title,
  .quiz-opt .opt-letter {
    color:#2563eb !important;
  }

  .quiz-subject-btn,
  .quiz-alt-btn,
  .quiz-opt,
  .note-field input,
  .tool-input,
  .tool-select,
  .ap-input,
  .hero-chat-input,
  .image-notes,
  textarea,
  input,
  select {
    background:#ffffff !important;
    border-color:rgba(37,99,235,.18) !important;
    color:#0f172a !important;
  }

  .quiz-subject-btn:hover,
  .quiz-subject-btn.active,
  .quiz-alt-btn:hover:not(:disabled),
  .quiz-opt:hover:not(:disabled),
  .doc-card:hover,
  .feature-card:hover,
  .sim-card:hover,
  .subject-card:hover,
  .cepre-eval-btn:hover,
  .cepre-eval-btn.active,
  .tvcard:hover {
    background:#eff6ff !important;
    border-color:rgba(37,99,235,.42) !important;
    color:#1d4ed8 !important;
  }

  .quiz-opt.correct,
  .quiz-alt-btn.correct {
    background:rgba(34,197,94,.14) !important;
    border-color:rgba(34,197,94,.55) !important;
    color:#166534 !important;
  }

  .quiz-opt.wrong,
  .quiz-alt-btn.wrong {
    background:rgba(239,68,68,.12) !important;
    border-color:rgba(239,68,68,.52) !important;
    color:#991b1b !important;
  }

  .quiz-ai-note,
  .ap-badge {
    background:#eff6ff !important;
    border-color:rgba(37,99,235,.22) !important;
    color:#1e40af !important;
  }

  .question-timer,
  .quiz-badge-subject,
  .quiz-badge-diff,
  .quiz-badge-concept,
  .upload-pill,
  .doc-status,
  .yt-chip {
    background:#dbeafe !important;
    border-color:rgba(37,99,235,.22) !important;
    color:#1e40af !important;
  }

  .quiz-feedback,
  .quiz-sol-box,
  .ciclo-body {
    background:#f8fbff !important;
    color:#334155 !important;
    border-color:rgba(37,99,235,.16) !important;
  }

  .brand-icon,
  .feature-icon,
  .doc-icon,
  .qsb-icon,
  .tvcard-icon,
  .s-icon,
  .tool-mark,
  .upload-icon {
    background:#dbeafe !important;
    color:#1d4ed8 !important;
    border-color:rgba(37,99,235,.18) !important;
    box-shadow:none !important;
  }

  .ap-avatar-wrap {
    border-color:rgba(37,99,235,.55) !important;
  }

  .ap-avatar-wrap::after {
    background:rgba(37,99,235,.88) !important;
    color:#ffffff !important;
  }

  .ap-stat-card,
  .ap-course-row {
    background:#f8fbff !important;
    border-color:rgba(37,99,235,.14) !important;
  }

  .tool-card {
    background:#ffffff !important;
    color:#0f172a !important;
    border-color:rgba(37,99,235,.16) !important;
  }

  .tool-card .tool-kicker,
  .tool-card .tool-title,
  .tool-card .tool-copy,
  .tool-card .note-field,
  .tool-card .result-label,
  .tool-card .cepre-career-meta,
  .tool-card .uni-status,
  .tool-card .competition-table th,
  .tool-card .competition-table td,
  .tool-card .competition-table,
  .tool-card .competition-table small {
    color:#0f172a !important;
  }

  .tool-card .tool-copy,
  .tool-card .note-field,
  .tool-card .cepre-career-meta,
  .tool-card .uni-status,
  .tool-card .competition-table small {
    color:#475569 !important;
  }

  .tool-card .tool-input,
  .tool-card .tool-select,
  .tool-card input,
  .tool-card select,
  .tool-card textarea {
    background:#ffffff !important;
    color:#0f172a !important;
    border-color:rgba(37,99,235,.18) !important;
  }

  .tool-card .segmented {
    background:#eff6ff !important;
  }

  .tool-card .segmented button {
    color:#334155 !important;
  }

  .tool-card .segmented button.active {
    color:#ffffff !important;
    background:#2563eb !important;
  }

  .cepre-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
  }

  .competition-controls,
  .study-form {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .competition-table-wrap {
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  .competition-table {
    min-width: 680px !important;
  }

  .competition-table th,
  .competition-table td {
    white-space: nowrap;
  }

  .competition-table th:first-child,
  .competition-table td:first-child {
    white-space: normal;
    min-width: 220px;
  }

  @media (max-width: 900px) {
    .competition-controls,
    .study-form {
      grid-template-columns: 1fr !important;
    }

    .cepre-grid,
    .uni-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  @media (max-width: 600px) {
    .tool-card {
      padding: 1rem !important;
    }

    .tool-mark {
      width: 40px !important;
      height: 40px !important;
    }

    .cepre-grid,
    .uni-grid,
    .competition-controls,
    .study-form {
      grid-template-columns: 1fr !important;
    }

    .competition-table {
      min-width: 560px !important;
    }

    .result-value {
      font-size: 1.6rem !important;
    }
  }

  @media (max-width: 480px) {
    .competition-table {
      min-width: 520px !important;
    }

    .hero-title,
    .section-title,
    .tp-course-name,
    .login-logo,
    .nav-logo,
    .footer-logo {
      word-break: break-word;
      overflow-wrap: anywhere;
    }
  }

  .universe-theme-toggle {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 220;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(37,99,235,.24);
    border-radius: 50%;
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 14px 38px rgba(15,23,42,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  }

  .universe-theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(37,99,235,.24);
  }

  .universe-theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .universe-theme-toggle .theme-icon-sun {
    display: none;
  }

  html[data-universe-theme='dark'] {
    --navy:#020617;
    --surface:#070b15;
    --surface-2:#0f172a;
    --electric:#2563eb;
    --violet:#3b82f6;
    --purple:#60a5fa;
    --cyan:#60a5fa;
    --lime:#1d4ed8;
    --amber:#fbbf24;
    --rose:#fb7185;
    --white:#f8fafc;
    --gray:#cbd5e1;
    --border:rgba(96,165,250,.24);
    color-scheme: dark;
  }

  html[data-universe-theme='dark'],
  html[data-universe-theme='dark'] body {
    background:#020617 !important;
    color:#f8fafc !important;
  }

  html[data-universe-theme='dark'] body {
    background:linear-gradient(180deg,#020617 0%,#050816 52%,#07112a 100%) !important;
  }

  html[data-universe-theme='dark'] #login-overlay,
  html[data-universe-theme='dark'] #temario-panel,
  html[data-universe-theme='dark'] #quiz-panel,
  html[data-universe-theme='dark'] #account-panel,
  html[data-universe-theme='dark'] main,
  html[data-universe-theme='dark'] footer,
  html[data-universe-theme='dark'] .ranking-section {
    background:#020617 !important;
    color:#f8fafc !important;
  }

  html[data-universe-theme='dark'] nav {
    background:rgba(2,6,23,.94) !important;
    border-bottom:1px solid rgba(96,165,250,.22) !important;
    box-shadow:0 12px 32px rgba(0,0,0,.45) !important;
  }

  html[data-universe-theme='dark'] .nav-logo,
  html[data-universe-theme='dark'] .tp-header-logo,
  html[data-universe-theme='dark'] .footer-logo,
  html[data-universe-theme='dark'] .login-logo {
    background:linear-gradient(90deg,#ffffff,#60a5fa) !important;
    -webkit-background-clip:text !important;
    -webkit-text-fill-color:transparent !important;
  }

  html[data-universe-theme='dark'] .nav-links a,
  html[data-universe-theme='dark'] .nav-user-btn,
  html[data-universe-theme='dark'] .btn-ghost,
  html[data-universe-theme='dark'] .ap-action {
    color:#dbeafe !important;
    border-color:rgba(96,165,250,.26) !important;
  }

  html[data-universe-theme='dark'] .nav-links a:hover,
  html[data-universe-theme='dark'] .nav-links a.active,
  html[data-universe-theme='dark'] .btn-ghost:hover,
  html[data-universe-theme='dark'] .ap-action:hover {
    color:#ffffff !important;
    background:rgba(37,99,235,.22) !important;
    border-color:rgba(96,165,250,.46) !important;
  }

  html[data-universe-theme='dark'] .official-access-card {
    color:#ffffff !important;
    border-color:rgba(96,165,250,.34) !important;
    box-shadow:0 14px 34px rgba(0,0,0,.45) !important;
  }

  html[data-universe-theme='dark'] .official-access-card.cepreuni {
    background:linear-gradient(135deg,#1e40af,#3b82f6) !important;
  }

  html[data-universe-theme='dark'] .official-access-card.ceprenet {
    background:linear-gradient(135deg,#7f1d1d,#dc2626) !important;
  }

  html[data-universe-theme='dark'] .official-access-title {
    color:#ffffff !important;
  }

  html[data-universe-theme='dark'] .official-access-desc {
    color:rgba(255,255,255,.88) !important;
  }

  html[data-universe-theme='dark'] .login-card,
  html[data-universe-theme='dark'] .login-form-panel,
  html[data-universe-theme='dark'] .login-hero-panel,
  html[data-universe-theme='dark'] .hero-chat-panel,
  html[data-universe-theme='dark'] .feature-card,
  html[data-universe-theme='dark'] .subject-card,
  html[data-universe-theme='dark'] .sim-card,
  html[data-universe-theme='dark'] .cepre-exams-shell,
  html[data-universe-theme='dark'] .cepre-exams-badge,
  html[data-universe-theme='dark'] .cepre-schedule-shell,
  html[data-universe-theme='dark'] .library-section,
  html[data-universe-theme='dark'] .lib-box,
  html[data-universe-theme='dark'] .doc-card,
  html[data-universe-theme='dark'] .testi-card,
  html[data-universe-theme='dark'] .tp-course-header,
  html[data-universe-theme='dark'] .tp-topic,
  html[data-universe-theme='dark'] .cepre-eval-btn,
  html[data-universe-theme='dark'] .quiz-question-card,
  html[data-universe-theme='dark'] .quiz-question-box,
  html[data-universe-theme='dark'] .quiz-upload-zone,
  html[data-universe-theme='dark'] .quiz-source-box,
  html[data-universe-theme='dark'] .quiz-score-bar,
  html[data-universe-theme='dark'] .quiz-summary-card,
  html[data-universe-theme='dark'] .quiz-extreme-warning,
  html[data-universe-theme='dark'] .ap-profile-card,
  html[data-universe-theme='dark'] .ap-panel,
  html[data-universe-theme='dark'] .tool-card,
  html[data-universe-theme='dark'] .result-tile,
  html[data-universe-theme='dark'] .rank-row,
  html[data-universe-theme='dark'] .gam-stat,
  html[data-universe-theme='dark'] .teacher-card,
  html[data-universe-theme='dark'] .teacher-room-chip,
  html[data-universe-theme='dark'] .cepre-career-meta,
  html[data-universe-theme='dark'] .image-context-box,
  html[data-universe-theme='dark'] .day-col,
  html[data-universe-theme='dark'] .study-item,
  html[data-universe-theme='dark'] .tvcol,
  html[data-universe-theme='dark'] .tvcol-center,
  html[data-universe-theme='dark'] .tvcol-math,
  html[data-universe-theme='dark'] .tvcol-humanities,
  html[data-universe-theme='dark'] .tvcol-science,
  html[data-universe-theme='dark'] .tvcard,
  html[data-universe-theme='dark'] .ranking-shell {
    background:#070b15 !important;
    border-color:rgba(96,165,250,.24) !important;
    color:#f8fafc !important;
    box-shadow:0 18px 48px rgba(0,0,0,.36) !important;
  }

  html[data-universe-theme='dark'] #biblioteca .lib-box {
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
  }

  html[data-universe-theme='dark'] .hero-bg,
  html[data-universe-theme='dark'] .login-grid-bg {
    background:linear-gradient(135deg,rgba(37,99,235,.18),rgba(2,6,23,.72)) !important;
  }

  html[data-universe-theme='dark'] .hero-grid {
    background-image:linear-gradient(rgba(96,165,250,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(96,165,250,.08) 1px,transparent 1px) !important;
  }

  html[data-universe-theme='dark'] .hero-title,
  html[data-universe-theme='dark'] .section-title,
  html[data-universe-theme='dark'] .feature-name,
  html[data-universe-theme='dark'] .doc-title,
  html[data-universe-theme='dark'] .sim-title,
  html[data-universe-theme='dark'] .library-section-title,
  html[data-universe-theme='dark'] .schedule-turn-title,
  html[data-universe-theme='dark'] .tp-course-name,
  html[data-universe-theme='dark'] .tp-topic-title,
  html[data-universe-theme='dark'] .quiz-enunciado,
  html[data-universe-theme='dark'] .quiz-q-text,
  html[data-universe-theme='dark'] .result-value,
  html[data-universe-theme='dark'] .ap-name,
  html[data-universe-theme='dark'] .ap-course-name,
  html[data-universe-theme='dark'] .teacher-name,
  html[data-universe-theme='dark'] .rank-name,
  html[data-universe-theme='dark'] .upload-title,
  html[data-universe-theme='dark'] .hero-chat-title,
  html[data-universe-theme='dark'] .hero-chat-name,
  html[data-universe-theme='dark'] .footer-links h4,
  html[data-universe-theme='dark'] .ranking-table .rank-name {
    color:#ffffff !important;
    -webkit-text-fill-color:initial !important;
  }

  html[data-universe-theme='dark'] .hero-sub,
  html[data-universe-theme='dark'] .hero-bullets li,
  html[data-universe-theme='dark'] .section-sub,
  html[data-universe-theme='dark'] .feature-desc,
  html[data-universe-theme='dark'] .sim-meta,
  html[data-universe-theme='dark'] .library-section-meta,
  html[data-universe-theme='dark'] .doc-meta,
  html[data-universe-theme='dark'] .testi-text,
  html[data-universe-theme='dark'] .tool-copy,
  html[data-universe-theme='dark'] .upload-sub,
  html[data-universe-theme='dark'] .rank-row.rank-note,
  html[data-universe-theme='dark'] .teacher-entry,
  html[data-universe-theme='dark'] .quiz-sol-box,
  html[data-universe-theme='dark'] .uni-status,
  html[data-universe-theme='dark'] .cepre-career-meta,
  html[data-universe-theme='dark'] .account-config-note,
  html[data-universe-theme='dark'] .ap-email,
  html[data-universe-theme='dark'] .ap-course-level,
  html[data-universe-theme='dark'] .footer-links a,
  html[data-universe-theme='dark'] .footer-legal,
  html[data-universe-theme='dark'] .ranking-summary,
  html[data-universe-theme='dark'] .ranking-table td {
    color:#cbd5e1 !important;
  }

  html[data-universe-theme='dark'] .section-label,
  html[data-universe-theme='dark'] .tool-kicker,
  html[data-universe-theme='dark'] .teacher-course,
  html[data-universe-theme='dark'] .quiz-source-title,
  html[data-universe-theme='dark'] #quiz-subject-label,
  html[data-universe-theme='dark'] #quiz-diff-label,
  html[data-universe-theme='dark'] .ap-section-title,
  html[data-universe-theme='dark'] .quiz-opt .opt-letter,
  html[data-universe-theme='dark'] .ranking-table .rank-code,
  html[data-universe-theme='dark'] .ranking-table .rank-avg,
  html[data-universe-theme='dark'] .rank-pos {
    color:#60a5fa !important;
  }

  html[data-universe-theme='dark'] .quiz-subject-btn,
  html[data-universe-theme='dark'] .quiz-alt-btn,
  html[data-universe-theme='dark'] .quiz-opt,
  html[data-universe-theme='dark'] .note-field input,
  html[data-universe-theme='dark'] .tool-input,
  html[data-universe-theme='dark'] .tool-select,
  html[data-universe-theme='dark'] .ap-input,
  html[data-universe-theme='dark'] .hero-chat-input,
  html[data-universe-theme='dark'] .image-notes,
  html[data-universe-theme='dark'] .ranking-search,
  html[data-universe-theme='dark'] textarea,
  html[data-universe-theme='dark'] input,
  html[data-universe-theme='dark'] select {
    background:#060b16 !important;
    border-color:rgba(96,165,250,.26) !important;
    color:#ffffff !important;
  }

  html[data-universe-theme='dark'] input::placeholder,
  html[data-universe-theme='dark'] textarea::placeholder,
  html[data-universe-theme='dark'] .ranking-search::placeholder {
    color:#94a3b8 !important;
  }

  html[data-universe-theme='dark'] .quiz-subject-btn:hover,
  html[data-universe-theme='dark'] .quiz-subject-btn.active,
  html[data-universe-theme='dark'] .quiz-alt-btn:hover:not(:disabled),
  html[data-universe-theme='dark'] .quiz-opt:hover:not(:disabled),
  html[data-universe-theme='dark'] .doc-card:hover,
  html[data-universe-theme='dark'] .feature-card:hover,
  html[data-universe-theme='dark'] .sim-card:hover,
  html[data-universe-theme='dark'] .subject-card:hover,
  html[data-universe-theme='dark'] .cepre-eval-btn:hover,
  html[data-universe-theme='dark'] .cepre-eval-btn.active,
  html[data-universe-theme='dark'] .tvcard:hover {
    background:#0f172a !important;
    border-color:rgba(96,165,250,.48) !important;
    color:#ffffff !important;
  }

  html[data-universe-theme='dark'] .quiz-ai-note,
  html[data-universe-theme='dark'] .ap-badge,
  html[data-universe-theme='dark'] .question-timer,
  html[data-universe-theme='dark'] .quiz-badge-subject,
  html[data-universe-theme='dark'] .quiz-badge-diff,
  html[data-universe-theme='dark'] .quiz-badge-concept,
  html[data-universe-theme='dark'] .upload-pill,
  html[data-universe-theme='dark'] .doc-status,
  html[data-universe-theme='dark'] .yt-chip,
  html[data-universe-theme='dark'] .brand-icon,
  html[data-universe-theme='dark'] .feature-icon,
  html[data-universe-theme='dark'] .doc-icon,
  html[data-universe-theme='dark'] .qsb-icon,
  html[data-universe-theme='dark'] .tvcard-icon,
  html[data-universe-theme='dark'] .s-icon,
  html[data-universe-theme='dark'] .tool-mark,
  html[data-universe-theme='dark'] .upload-icon {
    background:#0f172a !important;
    border-color:rgba(96,165,250,.26) !important;
    color:#93c5fd !important;
    box-shadow:none !important;
  }

  html[data-universe-theme='dark'] .quiz-feedback,
  html[data-universe-theme='dark'] .quiz-sol-box,
  html[data-universe-theme='dark'] .ciclo-body,
  html[data-universe-theme='dark'] .ap-stat-card,
  html[data-universe-theme='dark'] .ap-course-row,
  html[data-universe-theme='dark'] .tool-card,
  html[data-universe-theme='dark'] .payment-event,
  html[data-universe-theme='dark'] .payment-note {
    background:#060b16 !important;
    color:#cbd5e1 !important;
    border-color:rgba(96,165,250,.24) !important;
  }

  html[data-universe-theme='dark'] .tool-card .tool-title,
  html[data-universe-theme='dark'] .tool-card .competition-table th,
  html[data-universe-theme='dark'] .tool-card .competition-table td,
  html[data-universe-theme='dark'] .payment-event strong {
    color:#ffffff !important;
  }

  html[data-universe-theme='dark'] .tool-card .tool-copy,
  html[data-universe-theme='dark'] .tool-card .note-field,
  html[data-universe-theme='dark'] .tool-card .cepre-career-meta,
  html[data-universe-theme='dark'] .tool-card .uni-status,
  html[data-universe-theme='dark'] .tool-card .competition-table small,
  html[data-universe-theme='dark'] .payment-event small,
  html[data-universe-theme='dark'] .payment-event .event-detail {
    color:#cbd5e1 !important;
  }

  html[data-universe-theme='dark'] .ranking-table th {
    background:#0b1220 !important;
    color:#ffffff !important;
    border-color:rgba(96,165,250,.24) !important;
  }

  html[data-universe-theme='dark'] .ranking-table tr:hover td,
  html[data-universe-theme='dark'] .ranking-highlight td {
    background:rgba(37,99,235,.18) !important;
  }

  html[data-universe-theme='dark'] #chat-panel {
    background:#070b15 !important;
    color:#f8fafc !important;
    border-color:rgba(96,165,250,.24) !important;
  }

  html[data-universe-theme='dark'] .chat-ph,
  html[data-universe-theme='dark'] .chat-pi {
    background:#050816 !important;
    border-color:rgba(96,165,250,.22) !important;
  }

  html[data-universe-theme='dark'] .chat-pm-text,
  html[data-universe-theme='dark'] .hero-chat-text {
    background:#0f172a !important;
    border-color:rgba(96,165,250,.24) !important;
    color:#f8fafc !important;
  }

  html[data-universe-theme='dark'] .chat-pi-identity {
    background:#0f172a !important;
    border-color:rgba(96,165,250,.24) !important;
    color:#cbd5e1 !important;
  }

  html[data-universe-theme='dark'] .chat-role-chip.user,
  html[data-universe-theme='dark'] .role-chip.user {
    background:#0f172a !important;
    color:#dbeafe !important;
    border-color:rgba(96,165,250,.28) !important;
  }

  html[data-universe-theme='dark'] .chat-role-chip.owner,
  html[data-universe-theme='dark'] .role-chip.owner {
    background:#1e3a8a !important;
    color:#ffffff !important;
    border-color:rgba(147,197,253,.5) !important;
  }

  html[data-universe-theme='dark'] .payment-day {
    background:#050816 !important;
    border-color:rgba(96,165,250,.18) !important;
    color:#e2e8f0 !important;
  }

  html[data-universe-theme='dark'] .payment-day.has-event {
    background:#0f172a !important;
    border-color:rgba(96,165,250,.38) !important;
  }

  html[data-universe-theme='dark'] .universe-theme-toggle {
    background:#0f172a;
    color:#ffffff;
    border-color:rgba(96,165,250,.5);
    box-shadow:0 16px 42px rgba(0,0,0,.5);
  }

  html[data-universe-theme='dark'] .universe-theme-toggle .theme-icon-moon {
    display:none;
  }

  html[data-universe-theme='dark'] .universe-theme-toggle .theme-icon-sun {
    display:block;
  }

  @media (max-width: 560px) {
    .universe-theme-toggle {
      left: 14px;
      bottom: 14px;
      width: 48px;
      height: 48px;
    }
  }


body {
    position: relative;
    isolation: isolate;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .28;
    background:
      linear-gradient(180deg, rgba(37, 99, 235, .08), transparent 42%),
      radial-gradient(circle at 50% 18%, rgba(14, 165, 233, .10), transparent 34%);
    filter: saturate(1.05);
    transform: translateZ(0);
    mix-blend-mode: normal;
  }


  #peru-clock {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Rajdhani', 'Consolas', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(37,99,235,.85);
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 5px 16px 3px;
    border-radius: 10px;
    border: 1px solid rgba(37,99,235,.14);
    box-shadow: 0 2px 12px rgba(37,99,235,.08);
    pointer-events: none;
    user-select: none;
  }

  #universe-code-cursor {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: .65;
  }

  #mapa .map-overlay-badge {
    background: rgba(248, 251, 255, .96) !important;
    color: #0f172a !important;
    border-color: rgba(37, 99, 235, .16) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .12);
  }
  #mapa .map-overlay-badge .mob-title { color: #0f172a !important; }
  #mapa .map-overlay-badge .mob-sub { color: #475569 !important; }

  #herramientas .tool-card,
  #herramientas .result-tile,
  #herramientas .gam-stat,
  #herramientas .rank-row,
  #herramientas .cepre-career-meta,
  #herramientas .day-col,
  #herramientas .study-item {
    background: #fff !important;
  }

  #herramientas .tool-copy,
  #herramientas .result-label,
  #herramientas .gam-label,
  #herramientas .rank-name,
  #herramientas .rank-score,
  #herramientas .cepre-career-meta,
  #herramientas .study-subject,
  #herramientas .study-topic,
  #herramientas .teacher-meta,
  #herramientas .doc-meta {
    color: #334155 !important;
  }

  #herramientas .result-value,
  #herramientas .gam-number,
  #herramientas .rank-pos {
    color: #2563eb !important;
  }

  #herramientas .tool-select,
  #herramientas .tool-input,
  #herramientas .note-field input {
    background: #f8fbff !important;
    color: #0f172a !important;
    border-color: rgba(37, 99, 235, .18) !important;
  }

  #herramientas .tool-select option {
    color: #0f172a !important;
    background: #fff !important;
  }

  #herramientas .cepre-career-select {
    min-height: 46px;
    font-weight: 700;
    color: #0f172a !important;
  }

  #herramientas .competition-table th {
    color: #0f172a !important;
    background: #eef6ff !important;
  }
  #herramientas .competition-table td {
    color: #0f172a !important;
  }

  #herramientas .day-title {
    color: #0f172a !important;
  }
  #herramientas .study-time {
    color: #2563eb !important;
  }

  #herramientas .teacher-room-chip {
    background: #f8fbff !important;
    color: #0f172a !important;
    border-color: rgba(37, 99, 235, .14) !important;
  }
  #herramientas .teacher-room-chip strong {
    color: #0f172a !important;
  }

  /* UNIVERSE 2026-2: acabado profesional, calendario, contadores y Arquitectura */
  #herramientas .tools-header {
    max-width: 1180px;
    margin-inline: auto;
  }

  #herramientas .tools-grid {
    max-width: 1180px;
    margin-inline: auto;
    gap: 1.15rem;
  }

  #herramientas #exam-countdowns {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #herramientas #cepre-calculator {
    grid-column: 1;
    grid-row: 2;
  }

  #herramientas #uni-calculator {
    grid-column: 1;
    grid-row: 3;
  }

  #herramientas #competition-table {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  #herramientas .tool-card {
    border-color: rgba(37,99,235,.14) !important;
    box-shadow: 0 18px 45px rgba(15,23,42,.08), 0 1px 0 rgba(255,255,255,.8) inset !important;
  }

  #herramientas .tool-top {
    align-items: center;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(37,99,235,.10);
  }

  #herramientas .tool-kicker {
    letter-spacing: 1.2px;
  }

  #herramientas .tool-mark {
    box-shadow: 0 12px 24px rgba(37,99,235,.12);
  }

  #herramientas .result-tile,
  #herramientas .gam-stat,
  #herramientas .rank-row,
  #herramientas .day-col,
  #herramientas .study-item,
  #herramientas .competition-table-wrap {
    border-color: rgba(37,99,235,.14) !important;
    box-shadow: 0 10px 26px rgba(15,23,42,.05);
  }

  #herramientas .result-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #herramientas .note-field input,
  #herramientas .tool-input,
  #herramientas .tool-select {
    min-height: 44px;
  }

  .arch-panel[hidden] {
    display: none !important;
  }

  .arch-panel {
    margin-top: 1rem;
    border: 1px solid rgba(37,99,235,.14);
    background: #f8fbff;
    border-radius: 12px;
    padding: .95rem;
  }

  .arch-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: .75rem;
  }

  .arch-title {
    font-family: 'Rajdhani', sans-serif;
    color: #0f172a;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .arch-copy {
    margin-top: .22rem;
    color: #475569;
    font-size: .82rem;
    line-height: 1.5;
  }

  .arch-formula {
    flex: 0 0 auto;
    border: 1px solid rgba(37,99,235,.14);
    background: #ffffff;
    color: #2563eb;
    border-radius: 999px;
    padding: .42rem .7rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900;
    letter-spacing: .8px;
    white-space: nowrap;
  }

  .arch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: .55rem;
  }

  .arch-result {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: .55rem;
    margin-top: .8rem;
  }

  .arch-status {
    margin-top: .75rem;
    border: 1px solid rgba(37,99,235,.14);
    background: #ffffff;
    color: #334155;
    border-radius: 10px;
    padding: .72rem .82rem;
    font-size: .84rem;
    line-height: 1.55;
  }

  .exam-countdown-card {
    padding-block: 1rem !important;
  }

  .countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .75rem;
  }

  .countdown-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37,99,235,.14);
    background: #f8fbff;
    border-radius: 12px;
    padding: .85rem;
  }

  .countdown-item::after {
    content: '';
    position: absolute;
    inset: auto -20% -38% 28%;
    height: 80px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,.10), transparent);
    transform: rotate(-8deg);
    animation: universe-countdown-sweep 4.8s ease-in-out infinite;
  }

  .countdown-label {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    color: #334155;
    font-size: .76rem;
    line-height: 1.35;
  }

  .countdown-label strong {
    color: #0f172a;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: .8px;
    text-transform: uppercase;
  }

  .countdown-pill {
    color: #2563eb;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900;
    white-space: nowrap;
  }

  .countdown-time {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: .45rem;
    margin-top: .65rem;
  }

  .countdown-box {
    border: 1px solid rgba(37,99,235,.14);
    background: #ffffff;
    border-radius: 10px;
    padding: .48rem .35rem;
    text-align: center;
    box-shadow: 0 10px 22px rgba(15,23,42,.05);
  }

  .countdown-number {
    color: #2563eb;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: 0;
  }

  .countdown-unit {
    margin-top: .12rem;
    color: #475569;
    font-family: 'Rajdhani', sans-serif;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
  }

  .payment-shell {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr);
    gap: .95rem;
    align-items: start;
  }

  .payment-calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: .7rem;
  }

  .payment-month-title {
    color: #0f172a;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .payment-nav {
    display: flex;
    gap: .35rem;
  }

  .payment-nav button {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(37,99,235,.18);
    border-radius: 10px;
    background: #ffffff;
    color: #2563eb;
    cursor: pointer;
    font-weight: 900;
  }

  .payment-nav button:disabled {
    opacity: .45;
    cursor: default;
  }

  .payment-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    gap: .35rem;
  }

  .payment-weekday,
  .payment-day {
    min-height: 42px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .payment-weekday {
    min-height: 28px;
    color: #475569;
    font-family: 'Rajdhani', sans-serif;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
  }

  .payment-day {
    position: relative;
    border: 1px solid rgba(37,99,235,.10);
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: .82rem;
  }

  .payment-day.empty {
    background: transparent;
    border-color: transparent;
  }

  .payment-day.has-payment,
  .payment-day.has-event {
    border-color: rgba(37,99,235,.24);
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 10px 22px rgba(37,99,235,.10);
  }

  .payment-day.has-payment::after,
  .payment-day.has-event::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2563eb;
    transform: translateX(-50%);
  }

  .payment-day.type-semana {
    background:#f8fbff;
    color:#334155;
  }

  .payment-day.type-pc,
  .payment-day.type-exam,
  .payment-day.type-vocacional,
  .payment-day.type-admision {
    border-color:rgba(37,99,235,.34);
    background:#dbeafe;
  }

  .payment-day.type-virtual,
  .payment-day.type-recuperacion,
  .payment-day.type-sin-clase {
    background:#ffffff;
    border-style:dashed;
  }

  .payment-day small {
    position:absolute;
    top:4px;
    right:5px;
    min-width:15px;
    height:15px;
    border-radius:999px;
    background:#2563eb;
    color:#ffffff;
    font-size:.55rem;
    line-height:15px;
    font-weight:900;
  }

  .payment-list {
    display: grid;
    gap: .55rem;
  }

  .payment-event {
    border: 1px solid rgba(37,99,235,.14);
    background: #ffffff;
    border-radius: 10px;
    padding: .68rem .75rem;
    border-left-width: 4px;
  }

  .payment-event.type-semana { border-left-color:rgba(51,65,85,.34); }
  .payment-event.type-pc,
  .payment-event.type-exam,
  .payment-event.type-vocacional,
  .payment-event.type-admision { border-left-color:#2563eb; }
  .payment-event.type-pago { border-left-color:rgba(37,99,235,.62); }
  .payment-event.type-virtual,
  .payment-event.type-recuperacion,
  .payment-event.type-sin-clase { border-left-color:rgba(71,85,105,.44); }

  .payment-event strong {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    color: #0f172a;
    font-family: 'Rajdhani', sans-serif;
    font-size: .9rem;
    letter-spacing: .5px;
  }

  .payment-event span {
    color: #2563eb;
    white-space: nowrap;
  }

  .payment-event .event-type {
    display:inline-flex;
    align-items:center;
    width:max-content;
    margin-bottom:.22rem;
    padding:.12rem .42rem;
    border:1px solid rgba(37,99,235,.14);
    border-radius:999px;
    background:#f8fbff;
    color:#2563eb;
    font-family:'Rajdhani',sans-serif;
    font-size:.62rem;
    font-weight:900;
    letter-spacing:.8px;
    text-transform:uppercase;
  }

  .payment-event .event-detail {
    display:block;
    margin-top:.26rem;
    color:#64748b;
    font-size:.75rem;
    line-height:1.35;
    white-space:normal;
  }

  .payment-event small,
  .payment-note {
    display: block;
    margin-top: .3rem;
    color: #475569;
    font-size: .78rem;
    line-height: 1.5;
  }

  .payment-note {
    border: 1px solid rgba(37,99,235,.14);
    background: #f8fbff;
    border-radius: 10px;
    padding: .75rem;
  }

  .universe-route-hidden {
    display: none !important;
  }

  @keyframes universe-countdown-sweep {
    0%, 100% { transform: translateX(-18%) rotate(-8deg); opacity: .35; }
    50% { transform: translateX(18%) rotate(-8deg); opacity: .9; }
  }

  @media (max-width: 980px) {
    .countdown-grid,
    .payment-shell {
      grid-template-columns: 1fr;
    }

    .arch-head {
      flex-direction: column;
    }

    .arch-formula {
      white-space: normal;
      border-radius: 10px;
    }

    .arch-grid,
    .arch-result {
      grid-template-columns: repeat(2, minmax(0,1fr));
    }
  }

  @media (max-width: 560px) {
    .countdown-time,
    .arch-grid,
    .arch-result {
      grid-template-columns: 1fr 1fr;
    }

    .payment-day {
      min-height: 38px;
      font-size: .78rem;
    }
  }

  /* Ajustes solicitados: nav limpia, stats y contadores mas legibles */
  nav {
    gap: 1rem;
  }

  .nav-links {
    gap: .55rem !important;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .36rem .72rem;
    border: 1px solid transparent;
    border-radius: 999px;
    white-space: nowrap;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-color: rgba(34,211,238,.28);
    background: rgba(255,255,255,.06);
  }

  .stats-bar {
    max-width: 1120px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: .75rem !important;
    padding: 1rem 5vw 4rem !important;
  }

  .stat-item {
    min-height: 118px;
    justify-content: center;
    padding: 1rem .8rem;
    border: 1px solid rgba(37,99,235,.14);
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 14px 34px rgba(15,23,42,.08);
  }

  .stat-num {
    font-size: clamp(2.25rem, 4vw, 3.25rem) !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
  }

  .stat-label {
    color: #334155 !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    line-height: 1.2;
  }

  .exam-countdown-card .tool-title {
    font-size: clamp(2rem, 4vw, 3rem) !important;
  }

  .countdown-grid {
    gap: 1rem !important;
  }

  .countdown-item {
    padding: 1rem !important;
  }

  .countdown-label {
    font-size: .9rem !important;
    align-items: center;
  }

  .countdown-label strong {
    font-size: 1.05rem;
  }

  .countdown-pill {
    font-size: .86rem;
  }

  .countdown-time {
    gap: .6rem !important;
    margin-top: .85rem !important;
  }

  .countdown-box {
    padding: .65rem .35rem !important;
  }

  .countdown-number {
    font-size: clamp(2.2rem, 5vw, 3rem) !important;
  }

  .countdown-unit {
    font-size: .72rem !important;
  }

  .arch-result {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  }

  .arch-copy {
    font-size: .9rem !important;
  }

  .cepre-exams-header .section-sub {
    max-width: 760px !important;
  }

  .cepre-week-card {
    border: 1px solid rgba(37,99,235,.14);
    border-radius: 12px;
    background: #ffffff;
    padding: .85rem;
    box-shadow: 0 12px 26px rgba(15,23,42,.06);
  }

  .cepre-week-title {
    color: #0f172a;
    font-family: 'Rajdhani', sans-serif;
    font-size: .95rem;
    font-weight: 900;
    letter-spacing: .9px;
    text-transform: uppercase;
    background: #eff6ff;
    border: 1px solid rgba(37,99,235,.12);
    border-radius: 9px;
    padding: .5rem .65rem;
  }

  .cepre-week-subjects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .6rem;
    margin-top: .7rem;
  }

  .cepre-topic-mini {
    border: 1px solid rgba(37,99,235,.12);
    border-radius: 10px;
    background: #f8fbff;
    padding: .65rem .7rem;
    min-width: 0;
  }

  .cepre-mini-title {
    color: #2563eb;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900;
    font-size: .8rem;
    letter-spacing: .7px;
    text-transform: uppercase;
    margin-bottom: .35rem;
  }

  .cepre-topic-mini .tp-topic-items {
    gap: .22rem;
  }

  .cepre-topic-mini .tp-topic-items li {
    font-size: .8rem;
    line-height: 1.35;
  }

  .cepre-humanities-compact {
    margin-top: 1rem;
    border: 1px solid rgba(37,99,235,.14);
    border-radius: 12px;
    background: #ffffff;
    padding: .85rem;
  }

  .cepre-human-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .55rem;
    margin-top: .7rem;
  }

  .cepre-human-chip {
    border: 1px solid rgba(37,99,235,.12);
    background: #f8fbff;
    border-radius: 10px;
    padding: .62rem .68rem;
  }

  .cepre-human-chip strong,
  .cepre-human-chip span {
    display: block;
  }

  .cepre-human-chip strong {
    color: #0f172a;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
    font-size: .78rem;
  }

  .cepre-human-chip span {
    color: #475569;
    font-size: .78rem;
    line-height: 1.35;
    margin-top: .2rem;
  }

  @media (max-width: 780px) {
    nav {
      height: auto;
      min-height: 64px;
      padding-block: .55rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .nav-logo {
      width: 100%;
      text-align: center;
    }

    .nav-links {
      display: flex !important;
      order: 3;
      width: 100%;
    }

    .stats-bar {
      grid-template-columns: repeat(2, minmax(0,1fr)) !important;
      padding-top: .75rem !important;
    }

    .countdown-grid {
      grid-template-columns: 1fr !important;
    }
  }

  @media (max-width: 520px) {
    .nav-links a {
      font-size: .76rem !important;
      padding: .34rem .55rem;
    }

    .stats-bar,
    .arch-result {
      grid-template-columns: 1fr !important;
    }
  }

  /* Adaptacion final responsive: herramientas visibles en celular, tablet y escritorio */
  html {
    scroll-padding-top: 118px;
  }

  #herramientas,
  #herramientas *,
  #biblioteca,
  #biblioteca *,
  #temario-cepreuni,
  #temario-cepreuni * {
    box-sizing: border-box;
  }

  #herramientas,
  #cepre-calculator,
  #uni-calculator,
  #payment-calendar,
  #biblioteca,
  #temario-cepreuni {
    scroll-margin-top: 118px;
  }

  #herramientas {
    overflow-x: hidden;
  }

  #herramientas .tools-header,
  #herramientas .tools-grid {
    width: min(1180px, 100%);
    max-width: 1180px;
  }

  #herramientas .tools-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .92fr);
  }

  #herramientas .tool-card,
  #herramientas #cepre-calculator,
  #herramientas #uni-calculator,
  #herramientas #competition-table,
  #herramientas #study-calendar,
  #herramientas #payment-calendar,
  #herramientas #gamification-panel,
  #herramientas #exam-countdowns {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #herramientas #cepre-calculator {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #herramientas .tool-top,
  #herramientas .cepre-career-row,
  #herramientas .cepre-grid,
  #herramientas .uni-grid,
  #herramientas .arch-grid,
  #herramientas .cepre-result,
  #herramientas #uni-calculator .uni-result,
  #herramientas .arch-result,
  #herramientas .payment-shell,
  #biblioteca .lib-box,
  #biblioteca .doc-grid,
  #biblioteca .teacher-grid,
  #temario-cepreuni .cepre-week-subjects,
  #temario-cepreuni .cepre-human-grid {
    min-width: 0;
    max-width: 100%;
  }

  #herramientas .cepre-career-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .6rem;
    margin-top: .85rem;
  }

  #herramientas .cepre-career-note,
  #herramientas .cepre-status,
  #herramientas .arch-status,
  #herramientas .payment-note,
  #biblioteca .doc-title,
  #biblioteca .doc-meta,
  #temario-cepreuni .cepre-week-title,
  #temario-cepreuni .cepre-human-chip span {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  #herramientas .note-field,
  #herramientas .result-tile,
  #herramientas .study-item,
  #herramientas .rank-row,
  #biblioteca .doc-card,
  #biblioteca .ciclo-item {
    min-width: 0;
  }

  #herramientas .note-field input,
  #herramientas .tool-input,
  #herramientas .tool-select,
  #herramientas select,
  #herramientas input {
    max-width: 100%;
    font-size: 16px;
  }

  #herramientas .result-value {
    overflow-wrap: anywhere;
  }

  @media (max-width: 980px) {
    html {
      scroll-padding-top: 132px;
    }

    #herramientas,
    #cepre-calculator,
    #uni-calculator,
    #payment-calendar,
    #biblioteca,
    #temario-cepreuni {
      scroll-margin-top: 132px;
    }

    #herramientas .tools-grid {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 1rem !important;
      width: 100% !important;
    }

    #herramientas #exam-countdowns,
    #herramientas #cepre-calculator,
    #herramientas #uni-calculator,
    #herramientas #competition-table,
    #herramientas #study-calendar,
    #herramientas #payment-calendar,
    #herramientas #gamification-panel {
      grid-column: 1 !important;
      grid-row: auto !important;
    }

    #herramientas .tools-header {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: .85rem;
      align-items: start;
    }

    #herramientas .tools-header .tool-cta {
      justify-self: start;
    }

    #herramientas .cepre-grid,
    #herramientas .uni-grid,
    #herramientas .arch-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #herramientas .cepre-result,
    #herramientas #uni-calculator .uni-result,
    #herramientas .arch-result,
    #herramientas .gam-stats {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #herramientas .countdown-grid,
    #herramientas .payment-shell,
    #herramientas .gamification-grid,
    #herramientas .study-form,
    #herramientas .competition-controls {
      grid-template-columns: minmax(0, 1fr) !important;
    }

    #biblioteca .lib-box,
    #biblioteca .ciclo-list,
    #biblioteca .teacher-map-card {
      grid-template-columns: minmax(0, 1fr) !important;
    }

    .admin-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @media (max-width: 560px) {
    html {
      scroll-padding-top: 150px;
    }

    #herramientas,
    #cepre-calculator,
    #uni-calculator,
    #payment-calendar,
    #biblioteca,
    #temario-cepreuni {
      scroll-margin-top: 150px;
    }

    .section#herramientas,
    #biblioteca,
    #temario-cepreuni {
      padding-left: .9rem !important;
      padding-right: .9rem !important;
    }

    #herramientas .tool-card {
      padding: .9rem !important;
      border-radius: 12px !important;
      overflow: hidden;
    }

    #herramientas .tool-top {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: .7rem;
      align-items: start;
    }

    #herramientas .tool-title {
      font-size: 1.45rem !important;
      line-height: 1.02;
    }

    #herramientas .tool-copy {
      font-size: .82rem !important;
      line-height: 1.45;
    }

    #herramientas .tool-mark {
      width: 38px !important;
      height: 38px !important;
      border-radius: 10px !important;
    }

    #herramientas .segmented {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      width: 100% !important;
      border-radius: 12px !important;
    }

    #herramientas .segmented button {
      min-width: 0;
      padding: .65rem .5rem !important;
    }

    #herramientas .cepre-grid,
    #herramientas .uni-grid,
    #herramientas .arch-grid,
    #herramientas .cepre-result,
    #herramientas #uni-calculator .uni-result,
    #herramientas .arch-result,
    #herramientas .gam-stats {
      grid-template-columns: minmax(0, 1fr) !important;
    }

    #herramientas .note-field input,
    #herramientas .tool-input,
    #herramientas .tool-select {
      min-height: 42px !important;
      padding: .62rem .68rem !important;
    }

    #herramientas .result-tile {
      min-height: 74px !important;
      padding: .72rem !important;
    }

    #herramientas .result-value {
      font-size: 1.72rem !important;
    }

    #herramientas .result-label {
      font-size: .68rem !important;
      line-height: 1.15;
    }

    #herramientas .arch-panel {
      padding: .78rem !important;
    }

    #herramientas .arch-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
    }

    #herramientas .arch-formula {
      width: 100%;
      text-align: center;
      white-space: normal;
    }

    #herramientas .countdown-time {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #herramientas .payment-calendar-grid {
      gap: .24rem !important;
    }

    #herramientas .payment-day {
      min-height: 36px !important;
      border-radius: 8px !important;
    }

    #biblioteca .doc-card {
      min-height: 66px;
      padding: .72rem;
    }

    #biblioteca .doc-icon {
      width: 34px;
      height: 34px;
      border-radius: 9px;
    }
  }

  @media (max-width: 380px) {
    #herramientas .tool-top,
    #herramientas .segmented,
    #herramientas .countdown-time {
      grid-template-columns: minmax(0, 1fr) !important;
    }

    #herramientas .payment-day {
      min-height: 32px !important;
      font-size: .72rem !important;
    }
  }

  /* Header movil compacto y estable */
  @media (max-width: 780px) {
    html {
      scroll-padding-top: 62px !important;
    }

    nav {
      display: grid !important;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center !important;
      gap: .35rem !important;
      height: 50px !important;
      min-height: 50px !important;
      padding: .28rem .55rem !important;
      flex-wrap: nowrap !important;
      overflow: hidden;
    }

    .nav-logo {
      grid-column: 1;
      width: auto !important;
      min-width: 0;
      font-size: 1.16rem !important;
      letter-spacing: 1.4px !important;
      text-align: left !important;
      white-space: nowrap;
    }

    .nav-links {
      grid-column: 2;
      order: 0 !important;
      display: flex !important;
      width: auto !important;
      min-width: 0;
      max-width: 100%;
      gap: .25rem !important;
      flex-wrap: nowrap !important;
      justify-content: flex-start !important;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 0 .05rem;
      margin: 0;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
      display: none;
    }

    .nav-links li {
      flex: 0 0 auto;
    }

    .nav-links a {
      min-height: 28px !important;
      padding: .24rem .42rem !important;
      border-radius: 999px !important;
      font-size: .68rem !important;
      letter-spacing: .45px !important;
      white-space: nowrap !important;
    }

    .nav-user-btn {
      grid-column: 3;
      min-height: 32px;
      padding: .28rem .46rem !important;
      border-radius: 999px !important;
      gap: .25rem !important;
      font-size: .72rem !important;
      white-space: nowrap;
    }

    .nav-user-btn .uicon {
      width: 1rem;
      height: 1rem;
    }

    #herramientas,
    #cepre-calculator,
    #uni-calculator,
    #payment-calendar,
    #biblioteca,
    #temario-cepreuni {
      scroll-margin-top: 62px !important;
    }

    .reveal {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
  }

  @media (max-width: 520px) {
    html {
      scroll-padding-top: 54px !important;
    }

    nav {
      height: 46px !important;
      min-height: 46px !important;
      padding: .24rem .45rem !important;
      gap: .28rem !important;
    }

    .nav-logo {
      font-size: 1.02rem !important;
      letter-spacing: 1px !important;
    }

    .nav-links a {
      min-height: 26px !important;
      padding: .2rem .34rem !important;
      font-size: .62rem !important;
      letter-spacing: .25px !important;
    }

    .nav-user-btn {
      width: 32px;
      height: 32px;
      min-height: 32px;
      padding: 0 !important;
      justify-content: center;
    }

    .nav-user-btn span {
      display: none !important;
    }

    #herramientas,
    #cepre-calculator,
    #uni-calculator,
    #payment-calendar,
    #biblioteca,
    #temario-cepreuni {
      scroll-margin-top: 54px !important;
    }
  }

  /* Pulido final de tema claro: contraste limpio, luces suaves y textos legibles */
  html:not([data-universe-theme='dark']) {
    color-scheme: light;
  }

  html:not([data-universe-theme='dark']) body {
    background: linear-gradient(180deg,#ffffff 0%,#f8fbff 52%,#eef6ff 100%) !important;
    color: #0f172a !important;
  }

  html:not([data-universe-theme='dark']) body::before {
    opacity: .18 !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(37,99,235,.13), transparent 30%),
      linear-gradient(180deg, rgba(14,165,233,.08), transparent 48%) !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  html:not([data-universe-theme='dark']) .hero-calendar-panel,
  html:not([data-universe-theme='dark']) #chat-panel,
  html:not([data-universe-theme='dark']) .chat-ph,
  html:not([data-universe-theme='dark']) .chat-pi,
  html:not([data-universe-theme='dark']) .chat-pm-text,
  html:not([data-universe-theme='dark']) .hero-chat-panel,
  html:not([data-universe-theme='dark']) .hero-chat-msg,
  html:not([data-universe-theme='dark']) .hero-chat-text,
  html:not([data-universe-theme='dark']) .ranking-section,
  html:not([data-universe-theme='dark']) .ranking-shell,
  html:not([data-universe-theme='dark']) .ranking-wrap,
  html:not([data-universe-theme='dark']) .universe-video-card .yt-preview,
  html:not([data-universe-theme='dark']) .current-news-card,
  html:not([data-universe-theme='dark']) .current-news-head,
  html:not([data-universe-theme='dark']) .current-news-toolbar,
  html:not([data-universe-theme='dark']) #current-news-panel {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(37,99,235,.16) !important;
    box-shadow: 0 18px 44px rgba(15,23,42,.08) !important;
  }

  html:not([data-universe-theme='dark']) .hero-calendar-panel .tool-title,
  html:not([data-universe-theme='dark']) .hero-calendar-panel .payment-month-title,
  html:not([data-universe-theme='dark']) .hero-chat-title,
  html:not([data-universe-theme='dark']) .hero-chat-name,
  html:not([data-universe-theme='dark']) .chat-ph-title,
  html:not([data-universe-theme='dark']) .ranking-table .rank-name,
  html:not([data-universe-theme='dark']) .ranking-table .rank-score,
  html:not([data-universe-theme='dark']) .universe-video-card .yt-title,
  html:not([data-universe-theme='dark']) .current-news-title,
  html:not([data-universe-theme='dark']) .current-news-card-title {
    color: #0f172a !important;
    -webkit-text-fill-color: initial !important;
  }

  html:not([data-universe-theme='dark']) .hero-calendar-panel .tool-copy,
  html:not([data-universe-theme='dark']) .hero-calendar-panel .payment-note,
  html:not([data-universe-theme='dark']) .chat-pm-time,
  html:not([data-universe-theme='dark']) .chat-pi-identity,
  html:not([data-universe-theme='dark']) .ranking-summary,
  html:not([data-universe-theme='dark']) .ranking-table td,
  html:not([data-universe-theme='dark']) .universe-video-card .yt-meta,
  html:not([data-universe-theme='dark']) .current-news-sub,
  html:not([data-universe-theme='dark']) .current-news-card-text,
  html:not([data-universe-theme='dark']) .current-news-count,
  html:not([data-universe-theme='dark']) .current-news-date {
    color: #475569 !important;
    -webkit-text-fill-color: initial !important;
  }

  html:not([data-universe-theme='dark']) .chat-ph-close,
  html:not([data-universe-theme='dark']) .chat-pi-msg,
  html:not([data-universe-theme='dark']) .chat-pi-name,
  html:not([data-universe-theme='dark']) .hero-chat-input,
  html:not([data-universe-theme='dark']) .ranking-search,
  html:not([data-universe-theme='dark']) .current-news-filter,
  html:not([data-universe-theme='dark']) .current-news-close {
    background: #f8fbff !important;
    color: #0f172a !important;
    border-color: rgba(37,99,235,.18) !important;
  }

  html:not([data-universe-theme='dark']) .ranking-table th {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: rgba(37,99,235,.18) !important;
  }

  html:not([data-universe-theme='dark']) .ranking-table td {
    background: #ffffff !important;
    border-color: rgba(37,99,235,.10) !important;
  }

  html:not([data-universe-theme='dark']) .ranking-table tr:hover td,
  html:not([data-universe-theme='dark']) .ranking-highlight td {
    background: #f8fbff !important;
  }

  html:not([data-universe-theme='dark']) .yt-preview:hover,
  html:not([data-universe-theme='dark']) .current-news-card:hover,
  html:not([data-universe-theme='dark']) .admission-card:hover,
  html:not([data-universe-theme='dark']) .official-access-card:hover {
    filter: none !important;
  }

  .btn-primary,
  .btn-ghost,
  .nav-cta,
  .social-pill,
  .official-access-card,
  .login-guest-btn,
  .login-submit,
  .login-official-card,
  .admission-action,
  .current-news-source,
  .current-news-filter,
  .tool-cta,
  .quiz-generate-btn,
  .quiz-alt-btn,
  .sim-btn,
  .cv-start,
  .cv-send,
  .cv-chat-send,
  .ug-start {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.16;
  }

  .official-access-name,
  .official-access-title,
  .official-access-desc,
  .admission-card-title,
  .admission-card-meta,
  .admission-table-title,
  .admission-table-note,
  .current-news-card-title,
  .current-news-card-text,
  .yt-title,
  .yt-meta,
  .section-title,
  .section-sub,
  .tool-title,
  .tool-copy {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  @media (max-width: 560px) {
    .btn-primary,
    .btn-ghost,
    .nav-cta,
    .social-pill,
    .admission-action,
    .current-news-source,
    .tool-cta,
    .quiz-generate-btn,
    .sim-btn {
      min-height: 42px;
      padding-left: .75rem !important;
      padding-right: .75rem !important;
      font-size: .84rem !important;
      letter-spacing: .45px !important;
    }

    .official-access-card {
      gap: .75rem;
      padding: .75rem .8rem !important;
    }

    .official-access-name {
      font-size: 1.35rem !important;
      letter-spacing: .8px !important;
    }

    .official-access-title {
      font-size: .76rem !important;
      letter-spacing: .45px !important;
    }

    .official-access-desc,
    .admission-card-meta,
    .current-news-card-text,
    .yt-meta {
      font-size: .72rem !important;
    }
  }

  /* Modo oscuro estricto: negro real con azul como acento */
  html[data-universe-theme='dark'] {
    --navy: #000000;
    --surface: #000000;
    --surface-2: #050505;
    --electric: #2563eb;
    --violet: #2563eb;
    --purple: #60a5fa;
    --cyan: #60a5fa;
    --white: #ffffff;
    --gray: #dbeafe;
    --border: rgba(96,165,250,.30);
    background: #000000 !important;
    color-scheme: dark;
  }

  html[data-universe-theme='dark'],
  html[data-universe-theme='dark'] body,
  html[data-universe-theme='dark'] #page-content,
  html[data-universe-theme='dark'] main,
  html[data-universe-theme='dark'] section,
  html[data-universe-theme='dark'] .section,
  html[data-universe-theme='dark'] header,
  html[data-universe-theme='dark'] footer,
  html[data-universe-theme='dark'] #login-overlay,
  html[data-universe-theme='dark'] #temario-panel,
  html[data-universe-theme='dark'] #quiz-panel,
  html[data-universe-theme='dark'] #account-panel,
  html[data-universe-theme='dark'] #plataforma,
  html[data-universe-theme='dark'] #testimonios,
  html[data-universe-theme='dark'] #biblioteca,
  html[data-universe-theme='dark'] #herramientas,
  html[data-universe-theme='dark'] #simulacros,
  html[data-universe-theme='dark'] #temario-cepreuni,
  html[data-universe-theme='dark'] .ranking-section {
    background: #000000 !important;
    color: #ffffff !important;
  }

  html[data-universe-theme='dark'] body {
    background: #000000 !important;
  }

  html[data-universe-theme='dark'] body::before {
    opacity: .75 !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(37,99,235,.20), transparent 28%),
      linear-gradient(180deg, #000000 0%, #000000 100%) !important;
  }

  html[data-universe-theme='dark'] nav {
    background: rgba(0,0,0,.96) !important;
    border-bottom-color: rgba(96,165,250,.30) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.72) !important;
  }

  html[data-universe-theme='dark'] .login-card,
  html[data-universe-theme='dark'] .login-form-panel,
  html[data-universe-theme='dark'] .login-hero-panel,
  html[data-universe-theme='dark'] .hero-chat-panel,
  html[data-universe-theme='dark'] .feature-card,
  html[data-universe-theme='dark'] .subject-card,
  html[data-universe-theme='dark'] .sim-card,
  html[data-universe-theme='dark'] .testi-card,
  html[data-universe-theme='dark'] .lib-box,
  html[data-universe-theme='dark'] .lib-tabs,
  html[data-universe-theme='dark'] .doc-card,
  html[data-universe-theme='dark'] .news-card,
  html[data-universe-theme='dark'] .news-card-v2,
  html[data-universe-theme='dark'] .cepre-exams-shell,
  html[data-universe-theme='dark'] .cepre-schedule-shell,
  html[data-universe-theme='dark'] .cepre-week-card,
  html[data-universe-theme='dark'] .cepre-week-title,
  html[data-universe-theme='dark'] .cepre-topic-mini,
  html[data-universe-theme='dark'] .cepre-humanities-compact,
  html[data-universe-theme='dark'] .cepre-human-chip,
  html[data-universe-theme='dark'] .tp-course-header,
  html[data-universe-theme='dark'] .tp-topic,
  html[data-universe-theme='dark'] .quiz-question-card,
  html[data-universe-theme='dark'] .quiz-question-box,
  html[data-universe-theme='dark'] .quiz-upload-zone,
  html[data-universe-theme='dark'] .quiz-source-box,
  html[data-universe-theme='dark'] .quiz-score-bar,
  html[data-universe-theme='dark'] .quiz-summary-card,
  html[data-universe-theme='dark'] .quiz-feedback,
  html[data-universe-theme='dark'] .quiz-sol-box,
  html[data-universe-theme='dark'] .ap-profile-card,
  html[data-universe-theme='dark'] .ap-panel,
  html[data-universe-theme='dark'] .ap-stat-card,
  html[data-universe-theme='dark'] .ap-course-row,
  html[data-universe-theme='dark'] .tool-card,
  html[data-universe-theme='dark'] .tool-card#exam-countdowns,
  html[data-universe-theme='dark'] .result-tile,
  html[data-universe-theme='dark'] .segmented,
  html[data-universe-theme='dark'] .cepre-career-meta,
  html[data-universe-theme='dark'] .uni-status,
  html[data-universe-theme='dark'] .arch-panel,
  html[data-universe-theme='dark'] .arch-formula,
  html[data-universe-theme='dark'] .arch-status,
  html[data-universe-theme='dark'] .competition-table-wrap,
  html[data-universe-theme='dark'] .countdown-item,
  html[data-universe-theme='dark'] .countdown-box,
  html[data-universe-theme='dark'] .payment-nav button,
  html[data-universe-theme='dark'] .payment-day,
  html[data-universe-theme='dark'] .payment-event,
  html[data-universe-theme='dark'] .payment-note,
  html[data-universe-theme='dark'] .day-col,
  html[data-universe-theme='dark'] .study-item,
  html[data-universe-theme='dark'] .gam-stat,
  html[data-universe-theme='dark'] .rank-row,
  html[data-universe-theme='dark'] .ranking-shell,
  html[data-universe-theme='dark'] .ranking-wrap,
  html[data-universe-theme='dark'] .ranking-table,
  html[data-universe-theme='dark'] .teacher-card,
  html[data-universe-theme='dark'] .teacher-room-chip,
  html[data-universe-theme='dark'] .teacher-map-card,
  html[data-universe-theme='dark'] .admin-panel,
  html[data-universe-theme='dark'] .admin-box,
  html[data-universe-theme='dark'] .admin-account-row,
  html[data-universe-theme='dark'] .image-context-box,
  html[data-universe-theme='dark'] .chat-ph,
  html[data-universe-theme='dark'] .chat-pi,
  html[data-universe-theme='dark'] .chat-pm-text,
  html[data-universe-theme='dark'] .chat-pi-identity,
  html[data-universe-theme='dark'] .hero-chat-msg,
  html[data-universe-theme='dark'] .hero-chat-text,
  html[data-universe-theme='dark'] .map-overlay-badge,
  html[data-universe-theme='dark'] #peru-clock,
  html[data-universe-theme='dark'] [class*='-card'],
  html[data-universe-theme='dark'] [class*='-panel'],
  html[data-universe-theme='dark'] [class*='-box'],
  html[data-universe-theme='dark'] [class*='-shell'],
  html[data-universe-theme='dark'] [class*='-tile'] {
    background: #050505 !important;
    color: #ffffff !important;
    border-color: rgba(96,165,250,.30) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.45) !important;
  }

  html[data-universe-theme='dark'] .result-tile,
  html[data-universe-theme='dark'] .countdown-box,
  html[data-universe-theme='dark'] .payment-day,
  html[data-universe-theme='dark'] .cepre-topic-mini,
  html[data-universe-theme='dark'] .cepre-human-chip,
  html[data-universe-theme='dark'] .study-item,
  html[data-universe-theme='dark'] .gam-stat,
  html[data-universe-theme='dark'] .rank-row,
  html[data-universe-theme='dark'] .doc-card,
  html[data-universe-theme='dark'] .teacher-room-chip,
  html[data-universe-theme='dark'] .chat-role-chip,
  html[data-universe-theme='dark'] .role-chip {
    background: #0a0a0a !important;
  }

  html[data-universe-theme='dark'] .hero-bg,
  html[data-universe-theme='dark'] .login-grid-bg {
    background:
      radial-gradient(circle at 50% 8%, rgba(37,99,235,.24), transparent 32%),
      #000000 !important;
  }

  html[data-universe-theme='dark'] .hero-grid {
    background-image:
      linear-gradient(rgba(96,165,250,.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(96,165,250,.08) 1px, transparent 1px) !important;
  }

  html[data-universe-theme='dark'] .stat-item {
    background: #050505 !important;
    border-color: rgba(96,165,250,.30) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.45) !important;
  }

  html[data-universe-theme='dark'] .hero-title,
  html[data-universe-theme='dark'] .section-title,
  html[data-universe-theme='dark'] .feature-name,
  html[data-universe-theme='dark'] .doc-title,
  html[data-universe-theme='dark'] .sim-title,
  html[data-universe-theme='dark'] .library-section-title,
  html[data-universe-theme='dark'] .schedule-turn-title,
  html[data-universe-theme='dark'] .tp-course-name,
  html[data-universe-theme='dark'] .tp-topic-title,
  html[data-universe-theme='dark'] .quiz-enunciado,
  html[data-universe-theme='dark'] .quiz-q-text,
  html[data-universe-theme='dark'] .tool-title,
  html[data-universe-theme='dark'] .result-value,
  html[data-universe-theme='dark'] .ap-name,
  html[data-universe-theme='dark'] .ap-course-name,
  html[data-universe-theme='dark'] .teacher-name,
  html[data-universe-theme='dark'] .rank-name,
  html[data-universe-theme='dark'] .upload-title,
  html[data-universe-theme='dark'] .hero-chat-title,
  html[data-universe-theme='dark'] .hero-chat-name,
  html[data-universe-theme='dark'] .footer-links h4,
  html[data-universe-theme='dark'] .arch-title,
  html[data-universe-theme='dark'] .countdown-label strong,
  html[data-universe-theme='dark'] .payment-month-title,
  html[data-universe-theme='dark'] .payment-event strong,
  html[data-universe-theme='dark'] .cepre-week-title,
  html[data-universe-theme='dark'] .cepre-human-chip strong,
  html[data-universe-theme='dark'] .day-title,
  html[data-universe-theme='dark'] .stat-num,
  html[data-universe-theme='dark'] .ranking-table .rank-name {
    color: #ffffff !important;
    -webkit-text-fill-color: initial !important;
  }

  html[data-universe-theme='dark'] .hero-sub,
  html[data-universe-theme='dark'] .hero-bullets li,
  html[data-universe-theme='dark'] .section-sub,
  html[data-universe-theme='dark'] .feature-desc,
  html[data-universe-theme='dark'] .sim-meta,
  html[data-universe-theme='dark'] .library-section-meta,
  html[data-universe-theme='dark'] .doc-meta,
  html[data-universe-theme='dark'] .testi-text,
  html[data-universe-theme='dark'] .tool-copy,
  html[data-universe-theme='dark'] .result-label,
  html[data-universe-theme='dark'] .upload-sub,
  html[data-universe-theme='dark'] .teacher-entry,
  html[data-universe-theme='dark'] .quiz-sol-box,
  html[data-universe-theme='dark'] .uni-status,
  html[data-universe-theme='dark'] .cepre-career-meta,
  html[data-universe-theme='dark'] .arch-copy,
  html[data-universe-theme='dark'] .arch-status,
  html[data-universe-theme='dark'] .countdown-label,
  html[data-universe-theme='dark'] .countdown-unit,
  html[data-universe-theme='dark'] .payment-weekday,
  html[data-universe-theme='dark'] .payment-event small,
  html[data-universe-theme='dark'] .payment-event .event-detail,
  html[data-universe-theme='dark'] .payment-note,
  html[data-universe-theme='dark'] .cepre-human-chip span,
  html[data-universe-theme='dark'] .stat-label,
  html[data-universe-theme='dark'] .ranking-summary,
  html[data-universe-theme='dark'] .ranking-table td,
  html[data-universe-theme='dark'] .footer-links a,
  html[data-universe-theme='dark'] .footer-legal {
    color: #dbeafe !important;
    -webkit-text-fill-color: initial !important;
  }

  html[data-universe-theme='dark'] .section-label,
  html[data-universe-theme='dark'] .tool-kicker,
  html[data-universe-theme='dark'] .teacher-course,
  html[data-universe-theme='dark'] .quiz-source-title,
  html[data-universe-theme='dark'] #quiz-subject-label,
  html[data-universe-theme='dark'] #quiz-diff-label,
  html[data-universe-theme='dark'] .ap-section-title,
  html[data-universe-theme='dark'] .ranking-table .rank-code,
  html[data-universe-theme='dark'] .ranking-table .rank-avg,
  html[data-universe-theme='dark'] .rank-pos,
  html[data-universe-theme='dark'] .payment-event span,
  html[data-universe-theme='dark'] .payment-event .event-type,
  html[data-universe-theme='dark'] .countdown-pill,
  html[data-universe-theme='dark'] .countdown-number,
  html[data-universe-theme='dark'] .arch-formula,
  html[data-universe-theme='dark'] .cepre-mini-title,
  html[data-universe-theme='dark'] .study-time,
  html[data-universe-theme='dark'] #peru-clock {
    color: #60a5fa !important;
    -webkit-text-fill-color: initial !important;
  }

  html[data-universe-theme='dark'] .quiz-subject-btn,
  html[data-universe-theme='dark'] .quiz-alt-btn,
  html[data-universe-theme='dark'] .quiz-opt,
  html[data-universe-theme='dark'] .note-field input,
  html[data-universe-theme='dark'] .tool-input,
  html[data-universe-theme='dark'] .tool-select,
  html[data-universe-theme='dark'] .ap-input,
  html[data-universe-theme='dark'] .hero-chat-input,
  html[data-universe-theme='dark'] .hero-chat-input input,
  html[data-universe-theme='dark'] .chat-pi-msg,
  html[data-universe-theme='dark'] .image-notes,
  html[data-universe-theme='dark'] .ranking-search,
  html[data-universe-theme='dark'] textarea,
  html[data-universe-theme='dark'] input,
  html[data-universe-theme='dark'] select {
    background: #000000 !important;
    border-color: rgba(96,165,250,.34) !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  html[data-universe-theme='dark'] option,
  html[data-universe-theme='dark'] .tool-select option {
    background: #000000 !important;
    color: #ffffff !important;
  }

  html[data-universe-theme='dark'] input::placeholder,
  html[data-universe-theme='dark'] textarea::placeholder,
  html[data-universe-theme='dark'] .ranking-search::placeholder {
    color: #93c5fd !important;
  }

  html[data-universe-theme='dark'] .ranking-table th {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(96,165,250,.30) !important;
  }

  html[data-universe-theme='dark'] .ranking-table td {
    background: #050505 !important;
    border-color: rgba(96,165,250,.16) !important;
  }

  html[data-universe-theme='dark'] .ranking-table tr:hover td,
  html[data-universe-theme='dark'] .ranking-highlight td {
    background: rgba(37,99,235,.22) !important;
  }

  html[data-universe-theme='dark'] .payment-day.empty {
    background: transparent !important;
    border-color: transparent !important;
  }

  html[data-universe-theme='dark'] .payment-day.has-payment,
  html[data-universe-theme='dark'] .payment-day.has-event,
  html[data-universe-theme='dark'] .payment-day.type-pc,
  html[data-universe-theme='dark'] .payment-day.type-exam,
  html[data-universe-theme='dark'] .payment-day.type-vocacional,
  html[data-universe-theme='dark'] .payment-day.type-admision {
    background: #0a0a0a !important;
    color: #60a5fa !important;
    border-color: rgba(96,165,250,.50) !important;
  }

  html[data-universe-theme='dark'] .brand-icon,
  html[data-universe-theme='dark'] .feature-icon,
  html[data-universe-theme='dark'] .doc-icon,
  html[data-universe-theme='dark'] .qsb-icon,
  html[data-universe-theme='dark'] .tvcard-icon,
  html[data-universe-theme='dark'] .s-icon,
  html[data-universe-theme='dark'] .tool-mark,
  html[data-universe-theme='dark'] .upload-icon,
  html[data-universe-theme='dark'] .yt-chip,
  html[data-universe-theme='dark'] .doc-status,
  html[data-universe-theme='dark'] .upload-pill {
    background: #000000 !important;
    color: #60a5fa !important;
    border-color: rgba(96,165,250,.34) !important;
    box-shadow: none !important;
  }

  html[data-universe-theme='dark'] .chat-role-chip.owner,
  html[data-universe-theme='dark'] .role-chip.owner {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: rgba(147,197,253,.65) !important;
  }

  html[data-universe-theme='dark'] .chat-role-chip.user,
  html[data-universe-theme='dark'] .role-chip.user {
    background: #0a0a0a !important;
    color: #dbeafe !important;
    border-color: rgba(96,165,250,.34) !important;
  }

  html[data-universe-theme='dark'] .teacher-map-img,
  html[data-universe-theme='dark'] .news-logo,
  html[data-universe-theme='dark'] .news-logo-v2 {
    background: #0a0a0a !important;
    border-color: rgba(96,165,250,.30) !important;
  }

  html[data-universe-theme='dark'] .universe-theme-toggle {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(96,165,250,.55) !important;
    box-shadow: 0 16px 42px rgba(0,0,0,.65) !important;
  }

  html[data-universe-theme='dark'] .official-access-card.cepreuni {
    background: linear-gradient(135deg,#1e40af,#3b82f6) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.24) !important;
  }

  html[data-universe-theme='dark'] .official-access-card.ceprenet {
    background: linear-gradient(135deg,#7f1d1d,#dc2626) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.24) !important;
  }

  html[data-universe-theme='dark'] .official-access-card.admisionuni {
    background: linear-gradient(135deg,#0f4cbd,#38bdf8) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.24) !important;
  }

  html[data-universe-theme='dark'] .admission-hub,
  html[data-universe-theme='dark'] .admission-card,
  html[data-universe-theme='dark'] .admission-table-card,
  html[data-universe-theme='dark'] .uni-table-wrap {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(96,165,250,.34) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.68) !important;
  }

  html[data-universe-theme='dark'] .admission-card-title,
  html[data-universe-theme='dark'] .admission-table-title,
  html[data-universe-theme='dark'] .uni-table .num,
  html[data-universe-theme='dark'] .uni-table td {
    color: #ffffff !important;
  }

  html[data-universe-theme='dark'] .admission-card-meta,
  html[data-universe-theme='dark'] .admission-table-note,
  html[data-universe-theme='dark'] .admission-footnotes {
    color: #dbeafe !important;
  }

  html[data-universe-theme='dark'] .uni-table th,
  html[data-universe-theme='dark'] .uni-table .total-row td {
    background: #050505 !important;
    color: #60a5fa !important;
    border-color: rgba(96,165,250,.30) !important;
  }

  html[data-universe-theme='dark'] .uni-table td {
    background: #000000 !important;
    border-color: rgba(96,165,250,.18) !important;
  }

  html[data-universe-theme='dark'] .uni-table tbody tr:hover td {
    background: rgba(37,99,235,.18) !important;
  }

  html[data-universe-theme='dark'] .hero-calendar-panel {
    background: #000000 !important;
    border-color: rgba(96,165,250,.34) !important;
  }

  html[data-universe-theme='dark'] .hero-calendar-panel .payment-event {
    background: #050505 !important;
    border-color: rgba(96,165,250,.22) !important;
  }


  html[data-universe-theme='dark'] .official-access-logo {
    background: rgba(255,255,255,.95) !important;
  }


  html[data-universe-theme='dark'] #current-news-panel,
  html[data-universe-theme='dark'] .current-news-head,
  html[data-universe-theme='dark'] .current-news-toolbar,
  html[data-universe-theme='dark'] .current-news-card {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(96,165,250,.34) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.68) !important;
  }

  html[data-universe-theme='dark'] .current-news-title,
  html[data-universe-theme='dark'] .current-news-card-title {
    color: #ffffff !important;
  }

  html[data-universe-theme='dark'] .current-news-sub,
  html[data-universe-theme='dark'] .current-news-count,
  html[data-universe-theme='dark'] .current-news-date,
  html[data-universe-theme='dark'] .current-news-card-text {
    color: #dbeafe !important;
  }

  html[data-universe-theme='dark'] .current-news-filter,
  html[data-universe-theme='dark'] .current-news-close {
    background: #050505 !important;
    color: #60a5fa !important;
    border-color: rgba(96,165,250,.34) !important;
  }

  html[data-universe-theme='dark'] .current-news-filter.active {
    background: linear-gradient(135deg,#2563eb,#0891b2) !important;
    color: #ffffff !important;
  }

  html[data-universe-theme='dark'] .current-news-source {
    background: #2563eb !important;
    color: #ffffff !important;
  }

  /* Correccion especifica: herramientas, calendarios, gamificacion y mapa */
  html[data-universe-theme='dark'] #herramientas .tool-card,
  html[data-universe-theme='dark'] #herramientas .tool-card.wide,
  html[data-universe-theme='dark'] #herramientas #exam-countdowns,
  html[data-universe-theme='dark'] #herramientas #cepre-calculator,
  html[data-universe-theme='dark'] #herramientas #uni-calculator,
  html[data-universe-theme='dark'] #herramientas #competition-table,
  html[data-universe-theme='dark'] #herramientas #study-calendar,
  html[data-universe-theme='dark'] #herramientas #payment-calendar,
  html[data-universe-theme='dark'] #herramientas #gamification-panel {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(96,165,250,.34) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.68) !important;
  }

  html[data-universe-theme='dark'] #herramientas .tool-top,
  html[data-universe-theme='dark'] #herramientas .segmented,
  html[data-universe-theme='dark'] #herramientas .segmented button,
  html[data-universe-theme='dark'] #herramientas .cepre-career-row,
  html[data-universe-theme='dark'] #herramientas .cepre-career-note,
  html[data-universe-theme='dark'] #herramientas .cepre-career-meta,
  html[data-universe-theme='dark'] #herramientas .cepre-status,
  html[data-universe-theme='dark'] #herramientas .uni-status,
  html[data-universe-theme='dark'] #herramientas .arch-panel,
  html[data-universe-theme='dark'] #herramientas .arch-formula,
  html[data-universe-theme='dark'] #herramientas .arch-status,
  html[data-universe-theme='dark'] #herramientas .result-tile,
  html[data-universe-theme='dark'] #herramientas .competition-controls,
  html[data-universe-theme='dark'] #herramientas .competition-table-wrap,
  html[data-universe-theme='dark'] #herramientas .calendar-progress,
  html[data-universe-theme='dark'] #herramientas .calendar-grid,
  html[data-universe-theme='dark'] #herramientas .day-col,
  html[data-universe-theme='dark'] #herramientas .study-item,
  html[data-universe-theme='dark'] #herramientas .payment-shell,
  html[data-universe-theme='dark'] #herramientas .payment-calendar-head,
  html[data-universe-theme='dark'] #herramientas .payment-calendar-grid,
  html[data-universe-theme='dark'] #herramientas .payment-day,
  html[data-universe-theme='dark'] #herramientas .payment-event,
  html[data-universe-theme='dark'] #herramientas .payment-note,
  html[data-universe-theme='dark'] #herramientas .gamification-grid,
  html[data-universe-theme='dark'] #herramientas .gam-stats,
  html[data-universe-theme='dark'] #herramientas .gam-stat,
  html[data-universe-theme='dark'] #herramientas .ranking-live-panel,
  html[data-universe-theme='dark'] #herramientas .ranking-live-summary,
  html[data-universe-theme='dark'] #herramientas .ranking-list,
  html[data-universe-theme='dark'] #herramientas .rank-row {
    background: #050505 !important;
    color: #ffffff !important;
    border-color: rgba(96,165,250,.28) !important;
    box-shadow: none !important;
  }

  html[data-universe-theme='dark'] #herramientas .note-field,
  html[data-universe-theme='dark'] #herramientas .note-field input,
  html[data-universe-theme='dark'] #herramientas .tool-input,
  html[data-universe-theme='dark'] #herramientas .tool-select,
  html[data-universe-theme='dark'] #herramientas input,
  html[data-universe-theme='dark'] #herramientas select,
  html[data-universe-theme='dark'] #herramientas textarea {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(96,165,250,.36) !important;
    box-shadow: none !important;
  }

  html[data-universe-theme='dark'] #herramientas .tool-select option {
    background: #000000 !important;
    color: #ffffff !important;
  }

  html[data-universe-theme='dark'] #herramientas .tool-mark,
  html[data-universe-theme='dark'] #herramientas .study-delete-btn,
  html[data-universe-theme='dark'] #herramientas .payment-nav button,
  html[data-universe-theme='dark'] #herramientas .payment-event .event-type {
    background: #000000 !important;
    color: #60a5fa !important;
    border-color: rgba(96,165,250,.36) !important;
    box-shadow: none !important;
  }

  html[data-universe-theme='dark'] #herramientas .tool-title,
  html[data-universe-theme='dark'] #herramientas .result-value,
  html[data-universe-theme='dark'] #herramientas .arch-title,
  html[data-universe-theme='dark'] #herramientas .countdown-label strong,
  html[data-universe-theme='dark'] #herramientas .competition-table td,
  html[data-universe-theme='dark'] #herramientas .payment-month-title,
  html[data-universe-theme='dark'] #herramientas .payment-event strong,
  html[data-universe-theme='dark'] #herramientas .day-title,
  html[data-universe-theme='dark'] #herramientas .study-subject,
  html[data-universe-theme='dark'] #herramientas .study-topic,
  html[data-universe-theme='dark'] #herramientas .gam-number,
  html[data-universe-theme='dark'] #herramientas .rank-name,
  html[data-universe-theme='dark'] #herramientas .rank-score {
    color: #ffffff !important;
    -webkit-text-fill-color: initial !important;
  }

  html[data-universe-theme='dark'] #herramientas .tool-copy,
  html[data-universe-theme='dark'] #herramientas .result-label,
  html[data-universe-theme='dark'] #herramientas .cepre-career-note,
  html[data-universe-theme='dark'] #herramientas .cepre-career-meta,
  html[data-universe-theme='dark'] #herramientas .uni-status,
  html[data-universe-theme='dark'] #herramientas .arch-copy,
  html[data-universe-theme='dark'] #herramientas .arch-status,
  html[data-universe-theme='dark'] #herramientas .countdown-label,
  html[data-universe-theme='dark'] #herramientas .countdown-unit,
  html[data-universe-theme='dark'] #herramientas .competition-table small,
  html[data-universe-theme='dark'] #herramientas .payment-weekday,
  html[data-universe-theme='dark'] #herramientas .payment-event small,
  html[data-universe-theme='dark'] #herramientas .payment-event .event-detail,
  html[data-universe-theme='dark'] #herramientas .payment-note,
  html[data-universe-theme='dark'] #herramientas .gam-label,
  html[data-universe-theme='dark'] #herramientas .ranking-live-summary,
  html[data-universe-theme='dark'] #herramientas .rank-row.rank-note {
    color: #dbeafe !important;
    -webkit-text-fill-color: initial !important;
  }

  html[data-universe-theme='dark'] #herramientas .tool-kicker,
  html[data-universe-theme='dark'] #herramientas .countdown-number,
  html[data-universe-theme='dark'] #herramientas .countdown-pill,
  html[data-universe-theme='dark'] #herramientas .arch-formula,
  html[data-universe-theme='dark'] #herramientas .competition-table th,
  html[data-universe-theme='dark'] #herramientas .payment-event span,
  html[data-universe-theme='dark'] #herramientas .payment-day.has-payment,
  html[data-universe-theme='dark'] #herramientas .payment-day.has-event,
  html[data-universe-theme='dark'] #herramientas .payment-day small,
  html[data-universe-theme='dark'] #herramientas .study-time,
  html[data-universe-theme='dark'] #herramientas .rank-pos {
    color: #60a5fa !important;
    -webkit-text-fill-color: initial !important;
  }

  html[data-universe-theme='dark'] #herramientas .competition-table,
  html[data-universe-theme='dark'] #herramientas .competition-table thead,
  html[data-universe-theme='dark'] #herramientas .competition-table tbody,
  html[data-universe-theme='dark'] #herramientas .competition-table tr,
  html[data-universe-theme='dark'] #herramientas .competition-table th,
  html[data-universe-theme='dark'] #herramientas .competition-table td {
    background: #050505 !important;
    border-color: rgba(96,165,250,.22) !important;
  }

  html[data-universe-theme='dark'] #herramientas .competition-table th {
    background: #000000 !important;
  }

  html[data-universe-theme='dark'] #herramientas .segmented button.active,
  html[data-universe-theme='dark'] #herramientas .payment-day.has-payment,
  html[data-universe-theme='dark'] #herramientas .payment-day.has-event,
  html[data-universe-theme='dark'] #herramientas .payment-day.type-pc,
  html[data-universe-theme='dark'] #herramientas .payment-day.type-exam,
  html[data-universe-theme='dark'] #herramientas .payment-day.type-vocacional,
  html[data-universe-theme='dark'] #herramientas .payment-day.type-admision {
    background: #0a0a0a !important;
    border-color: rgba(96,165,250,.52) !important;
  }

  html[data-universe-theme='dark'] #herramientas .payment-day.empty {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html[data-universe-theme='dark'] #herramientas .calendar-progress span {
    background: linear-gradient(90deg,#60a5fa,#2563eb) !important;
  }

  html[data-universe-theme='dark'] #herramientas .ranking-list::-webkit-scrollbar-track {
    background: #000000 !important;
  }

  html[data-universe-theme='dark'] #herramientas .ranking-list::-webkit-scrollbar-thumb {
    background: #2563eb !important;
  }

  html[data-universe-theme='dark'] #mapa,
  html[data-universe-theme='dark'] #mapa .map-container,
  html[data-universe-theme='dark'] #mapa .map-overlay-badge,
  html[data-universe-theme='dark'] #biblioteca .teacher-map-card,
  html[data-universe-theme='dark'] #biblioteca .teacher-map-notes,
  html[data-universe-theme='dark'] #biblioteca .teacher-room-chip {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(96,165,250,.34) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.68) !important;
  }

  html[data-universe-theme='dark'] #mapa .map-overlay-badge .mob-title,
  html[data-universe-theme='dark'] #biblioteca .teacher-map-card .teacher-name,
  html[data-universe-theme='dark'] #biblioteca .teacher-room-chip strong {
    color: #ffffff !important;
  }

  html[data-universe-theme='dark'] #mapa .map-overlay-badge .mob-sub,
  html[data-universe-theme='dark'] #biblioteca .teacher-map-card .teacher-meta,
  html[data-universe-theme='dark'] #biblioteca .teacher-room-chip {
    color: #dbeafe !important;
  }

  html[data-universe-theme='dark'] #mapa iframe {
    background: #000000 !important;
    filter: grayscale(.82) invert(.90) contrast(.92) hue-rotate(180deg);
  }

  html[data-universe-theme='dark'] #biblioteca .teacher-map-img {
    background: #000000 !important;
    border-color: rgba(96,165,250,.34) !important;
    filter: brightness(.82) contrast(1.08);
  }
    
    

/* ===== Páginas físicas de UNIVERSE para Blogger ===== */
html[data-universe-page] #blogger-header,
html[data-universe-page] #sidebar-wrapper,
html[data-universe-page] #blogger-footer,
html[data-universe-page] #Header1,
html[data-universe-page] #PageList1,
html[data-universe-page] #Navbar1,
html[data-universe-page] #Attribution1,
html[data-universe-page] .header-outer,
html[data-universe-page] .tabs-outer,
html[data-universe-page] .navbar,
html[data-universe-page] .widget.Header,
html[data-universe-page] .widget.PageList,
html[data-universe-page] .post-title,
html[data-universe-page] .post-header,
html[data-universe-page] .post-footer,
html[data-universe-page] .post-share-buttons,
html[data-universe-page] .share-buttons,
html[data-universe-page] .share-buttons-container,
html[data-universe-page] .byline,
html[data-universe-page] .comments,
html[data-universe-page] #comments,
html[data-universe-page] .comment-form,
html[data-universe-page] .feed-links,
html[data-universe-page] .post-icons,
html[data-universe-page] .Attribution,
html[data-universe-page] .blog-feeds,
html[data-universe-page] .blog-pager,
html[data-universe-page] .footer-outer,
html[data-universe-page] .sidebar-container,
html[data-universe-page] .widget.BlogArchive,
html[data-universe-page] .widget.Profile,
html[data-universe-page] .post-author,
html[data-universe-page] .post-labels,
html[data-universe-page] .post-timestamp,
html[data-universe-page] .post-location { display:none !important; }

html[data-universe-page] .content-outer,
html[data-universe-page] .content-inner,
html[data-universe-page] .main-inner,
html[data-universe-page] #content-wrapper {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}

html[data-universe-page],
html[data-universe-page] body {
  width:100% !important;
  height:100% !important;
  min-height:100% !important;
  margin:0 !important;
  overflow:hidden !important;
}

html[data-universe-page] #page-content {
  position:fixed !important;
  z-index:1 !important;
  inset:0 !important;
  box-sizing:border-box !important;
  width:100vw !important;
  height:100vh !important;
  height:100dvh !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
}

html[data-universe-page] body > *:not(#page-content):not(#peru-clock):not(#universe-theme-toggle):not(#universe-game-button):not(#current-news-button):not(#universe-game-panel):not(#universe-code-cursor):not(script):not(style):not(link) {
  display:none !important;
}

html[data-universe-page] body:has(#temario-panel.open) #page-content,
html[data-universe-page] body:has(#temario-main-panel.open) #page-content,
html[data-universe-page] body:has(#quiz-panel.open) #page-content,
html[data-universe-page] body:has(#account-panel.open) #page-content,
html[data-universe-page] body:has(#actualidad-panel.open) #page-content,
html[data-universe-page] body:has(#current-news-panel.open) #page-content,
html[data-universe-page] body:has(#chat-panel.open) #page-content,
html[data-universe-page] body:has(#universe-game-panel.active) #page-content {
  overflow:hidden !important;
}

html[data-universe-page]:not([data-universe-page='home']) #main-wrapper,
html[data-universe-page]:not([data-universe-page='home']) #page_body,
html[data-universe-page]:not([data-universe-page='home']) #Blog1,
html[data-universe-page]:not([data-universe-page='home']) #Blog1 .widget-content,
html[data-universe-page]:not([data-universe-page='home']) #Blog1 .blog-posts,
html[data-universe-page]:not([data-universe-page='home']) #Blog1 .post-outer-container,
html[data-universe-page]:not([data-universe-page='home']) #Blog1 .post-outer,
html[data-universe-page]:not([data-universe-page='home']) #Blog1 article,
html[data-universe-page]:not([data-universe-page='home']) #Blog1 .post,
html[data-universe-page]:not([data-universe-page='home']) #Blog1 .post-body-container,
html[data-universe-page]:not([data-universe-page='home']) #Blog1 .post-body {
  display:block !important;
  box-sizing:border-box !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
}

html[data-universe-page]:not([data-universe-page='home']) #main-wrapper {
  min-height:calc(100vh - 64px);
  padding:0 !important;
}

.universe-static-page {
  --universe-page-gutter:clamp(1rem,4vw,4.5rem);
  width:100%;
  max-width:none;
  min-height:100%;
  margin:0;
  padding:0;
  overflow:visible;
  background:var(--navy);
  color:var(--white);
}

.universe-page-stage {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  padding:clamp(4.5rem,6vw,5.5rem) var(--universe-page-gutter) 0;
}

.universe-page-stage-inner {
  box-sizing:border-box;
  width:min(1600px,100%);
  min-width:0;
  margin-inline:auto;
}

.universe-page-stage-inner > .section,
.universe-page-stage-inner > .ranking-section,
.universe-page-stage-inner > .universe-legal-page,
.universe-page-stage-inner > .universe-exams-page,
.universe-page-stage-inner > .universe-library-layout,
.universe-library-layout > .section {
  box-sizing:border-box;
  width:100% !important;
  max-width:none !important;
  margin-inline:auto !important;
  padding-inline:0 !important;
  padding-top:clamp(1.75rem,3.2vw,3rem) !important;
}

.universe-page-stage :where(.section-label,.section-title,.section-sub) {
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}
.universe-page-stage .section-label { display:flex; width:max-content; max-width:100%; }
.universe-static-page .section-title { max-width:980px; text-wrap:balance; }
.universe-static-page .section-sub { max-width:820px; text-wrap:pretty; }

html[data-universe-page='ranking'] .universe-page-stage-inner,
html[data-universe-page='library'] .universe-page-stage-inner { width:min(1720px,100%); }
html[data-universe-page='terms'] .universe-page-stage-inner,
html[data-universe-page='privacy'] .universe-page-stage-inner { width:min(1380px,100%); }

/* Las capas cerradas no deben interceptar enlaces ni controles de la pagina. */
#universe-code-cursor,
#current-news-overlay:not(.open),
#chat-overlay:not(.open),
#current-news-panel:not(.open),
#chat-panel:not(.open) { pointer-events:none !important; }
#current-news-overlay.open,
#chat-overlay.open,
#current-news-panel.open,
#chat-panel.open { pointer-events:auto !important; }
:root {
  --universe-arrow-cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='32' viewBox='0 0 26 32'%3E%3Cpath d='M3.5 3.5v23l6.5-5.8 5.2 10.5 4.4-2.1-5-10.2H24z' fill='%232563eb' opacity='.48'/%3E%3Cpath d='M2 2v23l6.5-5.8 5.2 10.5 4.4-2.1-5-10.2h9.4z' fill='%23050505' stroke='%23ffffff' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2,default;
}
html.universe-arrow-cursor,
html.universe-arrow-cursor body,
html.universe-arrow-cursor body * { cursor:var(--universe-arrow-cursor) !important; }
html.universe-arrow-cursor #universe-code-cursor { display:none !important; }
@media (pointer:coarse){
  html.universe-arrow-cursor,
  html.universe-arrow-cursor body,
  html.universe-arrow-cursor body * { cursor:auto !important; }
}
.universe-static-page,
.universe-static-page footer,
.universe-static-page a,
.universe-static-page button { position:relative; pointer-events:auto; }

footer .footer-links ul { display:grid; gap:.12rem; padding-left:0; list-style:none; }
footer .footer-links a,
footer .footer-legal a {
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:.32rem .48rem;
  margin-left:-.48rem;
  border-radius:6px;
  transition:color .18s ease,background .18s ease,transform .18s ease;
}
footer .footer-links a:hover,
footer .footer-legal a:hover {
  background:rgba(37,99,235,.10);
  color:var(--electric) !important;
  transform:translateX(2px);
}
footer a:focus-visible {
  outline:2px solid var(--electric);
  outline-offset:2px;
}

/* Calendario principal: sección independiente, amplia y alineada a la derecha. */
.hero-layout.hero-layout-single {
  grid-template-columns:minmax(0,1fr) !important;
}
.hero-layout.hero-layout-single > * { max-width:900px; }
.universe-calendar-section {
  box-sizing:border-box;
  width:min(1600px,100%);
  margin:0 auto;
  padding:clamp(3rem,6vw,5.5rem) clamp(1rem,4.2vw,4.5rem);
  display:grid;
  grid-template-columns:minmax(240px,.42fr) minmax(0,1.25fr);
  gap:clamp(1.5rem,4vw,4rem);
  align-items:start;
}
.universe-calendar-intro {
  position:sticky;
  top:88px;
  min-width:0;
}
.universe-calendar-intro .section-title {
  font-size:clamp(2.1rem,3.5vw,3.2rem);
  line-height:.98;
  max-width:430px;
}
.universe-calendar-stage { min-width:0; }
#cronograma-universe #payment-calendar {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:clamp(1rem,2.2vw,1.6rem) !important;
}
#cronograma-universe #payment-calendar .payment-shell {
  grid-template-columns:minmax(0,1.3fr) minmax(280px,.72fr) !important;
}
#cronograma-universe .payment-day { position:relative; overflow:visible; }
#cronograma-universe .payment-day.has-tooltip::after {
  content:attr(data-events);
  position:absolute;
  z-index:30;
  left:50%;
  bottom:calc(100% + 9px);
  width:max-content;
  max-width:min(290px,78vw);
  padding:.58rem .68rem;
  border:1px solid rgba(37,99,235,.26);
  border-radius:8px;
  background:#ffffff;
  color:#0f172a;
  box-shadow:0 14px 36px rgba(15,23,42,.18);
  font-family:'Rajdhani',sans-serif;
  font-size:.76rem;
  font-weight:700;
  line-height:1.3;
  text-align:left;
  white-space:normal;
  opacity:0;
  visibility:hidden;
  transform:translate(-50%,6px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
  pointer-events:none;
}
#cronograma-universe .payment-day.has-tooltip:hover::after,
#cronograma-universe .payment-day.has-tooltip:focus-visible::after {
  opacity:1;
  visibility:visible;
  transform:translate(-50%,0);
}
html[data-universe-theme='dark'] #cronograma-universe .payment-day.has-tooltip::after {
  border-color:rgba(96,165,250,.38);
  background:#050505;
  color:#ffffff;
  box-shadow:0 14px 36px rgba(0,0,0,.72);
}

html[data-universe-page='syllabus'] #temario,
html[data-universe-page='syllabus'] #temario-cepreuni,
html[data-universe-page='syllabus'] #horario-cepreuni,
html[data-universe-page='syllabus'] #resumenes-humanidades,
html[data-universe-page='library'] #biblioteca,
html[data-universe-page='simulators'] #simulacros,
html[data-universe-page='exams'] #examenes-cepreuni-page {
  background:transparent !important;
}

html[data-universe-page='calculator'] #herramientas .tools-header,
html[data-universe-page='calculator'] #herramientas .tools-grid,
html[data-universe-page='home'] #herramientas .tools-header,
html[data-universe-page='home'] #herramientas .tools-grid {
  width:min(1450px,100%) !important;
  max-width:1450px !important;
  margin-inline:auto !important;
}

html[data-universe-page='calculator'] #herramientas .tools-grid {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
html[data-universe-page='calculator'] #cepre-calculator,
html[data-universe-page='calculator'] #uni-calculator { grid-column:span 1 !important; }
html[data-universe-page='calculator'] #competition-table { grid-column:1 / -1 !important; }

#biblioteca .ciclo-list { display:grid !important; grid-template-columns:minmax(0,1fr) !important; }
#biblioteca .ciclo-item { width:100% !important; }
#biblioteca .ciclo-body,
#biblioteca .doc-grid { display:grid !important; grid-template-columns:repeat(auto-fill,minmax(168px,1fr)) !important; align-items:stretch !important; gap:clamp(.7rem,1vw,1rem) !important; width:100% !important; max-width:none !important; margin:0 !important; }
#biblioteca .ciclo-item:not(.open) .ciclo-body { display:none !important; }
#biblioteca .doc-card { width:100% !important; max-width:none !important; min-width:0 !important; min-height:142px; margin:0 !important; flex-direction:column; align-items:flex-start; justify-content:space-between; }
#biblioteca .lib-content:not(.active) { display:none !important; }

.universe-library-layout {
  box-sizing:border-box;
  width:100%;
  padding:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(250px,320px);
  align-items:start;
  gap:clamp(1rem,2vw,1.5rem);
}
.universe-library-layout #biblioteca {
  width:100% !important;
  max-width:none !important;
  min-width:0;
  padding-right:0 !important;
}
.library-resource-rail {
  position:sticky;
  top:82px;
  margin:clamp(6.8rem,10vw,9rem) clamp(1rem,3vw,3.2rem) 3rem 0;
  display:grid;
  gap:.72rem;
}
.library-resource-rail h2 { margin:0 0 .25rem; font-size:1.08rem; }
.library-rail-card {
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:.72rem;
  align-items:center;
  padding:.82rem;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--card);
  color:var(--white);
  text-decoration:none;
  box-shadow:var(--shadow-sm);
}
.library-rail-card:hover { border-color:var(--electric); transform:translateY(-2px); }
.library-rail-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:7px; background:rgba(37,99,235,.14); color:var(--electric); font-weight:900; }
.library-rail-card strong,.library-rail-card small { display:block; }
.library-rail-card small { margin-top:.12rem; color:var(--gray); line-height:1.25; }

html[data-universe-page='simulators'] #simulacros,
html[data-universe-page='syllabus'] #temario,
html[data-universe-page='syllabus'] #temario-cepreuni,
html[data-universe-page='syllabus'] #horario-cepreuni,
html[data-universe-page='syllabus'] #resumenes-humanidades,
html[data-universe-page='ranking'] #ranking-cepreuni {
  box-sizing:border-box;
  width:100% !important;
  max-width:none !important;
  overflow:visible !important;
}
html[data-universe-page='simulators'] .simulacros-grid { grid-template-columns:repeat(auto-fit,minmax(260px,1fr)) !important; }

.universe-exams-page { min-height:calc(100vh - 64px); padding:clamp(6.5rem,10vw,9rem) clamp(1rem,5vw,5rem) 4rem; }
.universe-exams-shell { width:min(1500px,100%); margin:auto; }
.universe-exams-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:1rem; margin-top:1.6rem; }
.universe-exam-placeholder { min-height:180px; padding:1.1rem; border:1px dashed var(--border); border-radius:8px; background:var(--card); display:flex; flex-direction:column; justify-content:space-between; }
.universe-exam-placeholder strong { font-size:1.04rem; }
.universe-exam-placeholder span { color:var(--gray); line-height:1.45; }

/* Contraste compartido: texto oscuro en claro y texto claro en oscuro. */
html:not([data-universe-theme='dark']) .universe-static-page,
html:not([data-universe-theme='dark']) .universe-static-page section,
html:not([data-universe-theme='dark']) .universe-static-page footer,
html:not([data-universe-theme='dark']) #account-panel,
html:not([data-universe-theme='dark']) #temario-main-panel,
html:not([data-universe-theme='dark']) #temario-panel,
html:not([data-universe-theme='dark']) #actualidad-panel,
html:not([data-universe-theme='dark']) #quiz-panel,
html:not([data-universe-theme='dark']) #chat-panel,
html:not([data-universe-theme='dark']) #current-news-panel {
  color:#0f172a !important;
}
html:not([data-universe-theme='dark']) :where(
  .universe-static-page h1,.universe-static-page h2,.universe-static-page h3,.universe-static-page h4,
  .universe-static-page h5,.universe-static-page h6,.universe-static-page strong,
  .section-title,.tool-title,.feature-name,.doc-title,.sim-title,.result-value,.arch-title,
  .tp-course-name,.tp-topic-title,.summary-title,.summary-topic-title,.summary-course-name,
  .teacher-name,.rank-name,.ranking-table .rank-name,.payment-month-title,.countdown-label strong,
  .library-rail-card strong,.universe-exam-placeholder strong,.legal-card h3,.footer-links h4
) {
  color:#0f172a !important;
  -webkit-text-fill-color:initial !important;
}
html:not([data-universe-theme='dark']) :where(
  .universe-static-page p,.universe-static-page li,.universe-static-page td,.universe-static-page small,
  .section-sub,.tool-copy,.feature-desc,.doc-meta,.sim-meta,.result-label,.arch-copy,.arch-status,
  .summary-body,.summary-detail,.summary-line,.summary-topic-name,.summary-course-count,
  .teacher-entry,.ranking-summary,.ranking-table td,.payment-note,.payment-event small,
  .countdown-label,.countdown-unit,.library-rail-card small,.universe-exam-placeholder span,
  .legal-card li,.footer-tagline,.footer-links a,.footer-copy,.footer-legal
) {
  color:#475569 !important;
  -webkit-text-fill-color:initial !important;
}
html:not([data-universe-theme='dark']) :where(
  .legal-card,.universe-exam-placeholder,.library-rail-card,.summary-hub,.summary-main,
  .summary-topic-panel,.summary-course-btn,.summary-topic-btn,.summary-concept,.summary-table-wrap
) {
  background:#ffffff !important;
  border-color:rgba(37,99,235,.18) !important;
}
html:not([data-universe-theme='dark']) :where(input,textarea,select,.ranking-search,.chat-pi-msg) {
  background:#ffffff !important;
  color:#0f172a !important;
  border-color:rgba(37,99,235,.22) !important;
}
html:not([data-universe-theme='dark']) :where(input,textarea)::placeholder { color:#64748b !important; opacity:1; }

html[data-universe-theme='dark'] .universe-static-page,
html[data-universe-theme='dark'] .universe-static-page section,
html[data-universe-theme='dark'] .universe-static-page footer,
html[data-universe-theme='dark'] #account-panel,
html[data-universe-theme='dark'] #temario-main-panel,
html[data-universe-theme='dark'] #temario-panel,
html[data-universe-theme='dark'] #actualidad-panel,
html[data-universe-theme='dark'] #quiz-panel,
html[data-universe-theme='dark'] #chat-panel,
html[data-universe-theme='dark'] #current-news-panel {
  background:#000000 !important;
  color:#ffffff !important;
}
html[data-universe-theme='dark'] :where(
  .universe-static-page h1,.universe-static-page h2,.universe-static-page h3,.universe-static-page h4,
  .universe-static-page h5,.universe-static-page h6,.universe-static-page strong,
  .section-title,.tool-title,.feature-name,.doc-title,.sim-title,.result-value,.arch-title,
  .tp-course-name,.tp-topic-title,.summary-title,.summary-topic-title,.summary-course-name,
  .teacher-name,.rank-name,.ranking-table .rank-name,.payment-month-title,.countdown-label strong,
  .library-rail-card strong,.universe-exam-placeholder strong,.legal-card h3,.footer-links h4
) {
  color:#ffffff !important;
  -webkit-text-fill-color:initial !important;
}
html[data-universe-theme='dark'] :where(
  .universe-static-page p,.universe-static-page li,.universe-static-page td,.universe-static-page small,
  .section-sub,.tool-copy,.feature-desc,.doc-meta,.sim-meta,.result-label,.arch-copy,.arch-status,
  .summary-body,.summary-detail,.summary-line,.summary-topic-name,.summary-course-count,
  .teacher-entry,.ranking-summary,.ranking-table td,.payment-note,.payment-event small,
  .countdown-label,.countdown-unit,.library-rail-card small,.universe-exam-placeholder span,
  .legal-card li,.footer-tagline,.footer-links a,.footer-copy,.footer-legal
) {
  color:#dbeafe !important;
  -webkit-text-fill-color:initial !important;
}
html[data-universe-theme='dark'] :where(
  .legal-card,.universe-exam-placeholder,.library-rail-card,.summary-hub,.summary-main,
  .summary-topic-panel,.summary-course-btn,.summary-topic-btn,.summary-concept,.summary-table-wrap
) {
  background:#050505 !important;
  color:#ffffff !important;
  border-color:rgba(96,165,250,.34) !important;
}
html[data-universe-theme='dark'] :where(input,textarea,select,.ranking-search,.chat-pi-msg) {
  background:#000000 !important;
  color:#ffffff !important;
  border-color:rgba(96,165,250,.38) !important;
}
html[data-universe-theme='dark'] :where(input,textarea)::placeholder { color:#bfdbfe !important; opacity:1; }

html:not([data-universe-theme='dark']) :where(
  .btn-primary,.nav-cta,.sim-btn,.tool-cta,.quiz-generate-btn,.login-submit,.hero-chat-btn,
  .chat-mode-tab.active,.current-news-source,.admission-action,.ug-start,.cv-send,.cv-chat-send
),
html[data-universe-theme='dark'] :where(
  .btn-primary,.nav-cta,.sim-btn,.tool-cta,.quiz-generate-btn,.login-submit,.hero-chat-btn,
  .chat-mode-tab.active,.current-news-source,.admission-action,.ug-start,.cv-send,.cv-chat-send
) {
  color:#ffffff !important;
  -webkit-text-fill-color:initial !important;
}

.universe-panel-close.tp-back {
  display:grid !important;
  place-items:center;
  width:42px;
  height:42px;
  padding:0 !important;
  border-radius:50% !important;
  font-size:1.6rem !important;
  line-height:1 !important;
}

.universe-legal-page { padding:clamp(1.75rem,3.2vw,3rem) 0 4rem; }
.universe-legal-shell { width:min(1320px,100%); margin:0 auto; }
.universe-legal-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-top:1.7rem; }
.universe-legal-page .section-title {
  max-width:100%;
  font-size:clamp(1.8rem,4.2vw,3.55rem) !important;
  line-height:1.02 !important;
  word-break:normal;
  overflow-wrap:normal;
  text-wrap:balance;
}
.universe-legal-grid .legal-card {
  box-sizing:border-box;
  height:auto;
  min-height:190px;
  padding:clamp(1rem,1.8vw,1.35rem);
  border:1px solid rgba(37,99,235,.18);
  border-radius:8px;
  background:#ffffff;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.universe-legal-grid .legal-card h3 { margin:0 0 .75rem; }
.universe-legal-grid .legal-card ul { margin:.15rem 0 0; padding-left:1.15rem; }
.universe-legal-grid .legal-card li { margin:.42rem 0; line-height:1.55; }
.universe-legal-grid .legal-card:last-child:nth-child(odd) { grid-column:1 / -1; }
.universe-legal-grid .legal-card,
.universe-legal-grid .legal-card :where(h2,h3,p,li) { text-align:left; }

nav { flex-wrap:nowrap !important; }
nav .nav-logo { flex:0 0 auto; min-width:max-content; white-space:nowrap; text-decoration:none !important; }
nav .nav-links { display:flex !important; flex:1 1 auto; flex-wrap:nowrap !important; justify-content:center; min-width:0; overflow-x:auto; scrollbar-width:none; }
nav .nav-links::-webkit-scrollbar { display:none; }
nav .nav-links li { flex:0 0 auto; }
nav .nav-links a { white-space:nowrap; }
nav .nav-user-btn { flex:0 0 auto; }

@media(max-width:1380px) and (min-width:761px){
  nav { padding-inline:clamp(.8rem,2vw,1.5rem) !important; gap:.65rem !important; }
  nav .nav-logo { font-size:1.2rem !important; }
  nav .nav-links { justify-content:flex-start; gap:.2rem !important; }
  nav .nav-links a { padding:.5rem .66rem !important; font-size:.72rem !important; }
}

/* Un solo panel para chat mundial y soporte privado. */
.chat-mode-tabs { display:flex; gap:.45rem; padding:.65rem .75rem; border-bottom:1px solid var(--border); }
.chat-mode-tab { flex:1; border:1px solid var(--border); border-radius:999px; padding:.48rem .65rem; background:rgba(255,255,255,.06); color:var(--gray); cursor:pointer; font-family:'Rajdhani',sans-serif; font-weight:800; }
.chat-mode-tab.active { background:var(--electric); border-color:var(--electric); color:#fff; }
.chat-support-context { padding:.45rem .8rem 0; color:var(--gray); font-size:.72rem; line-height:1.35; }
.chat-support-inbox { display:grid; gap:.4rem; max-height:140px; overflow:auto; padding:.55rem .75rem; border-bottom:1px solid var(--border); }
.chat-support-thread { width:100%; border:1px solid var(--border); border-radius:8px; background:rgba(255,255,255,.05); color:var(--white); padding:.48rem .58rem; text-align:left; cursor:pointer; }
.chat-support-thread strong,.chat-support-thread span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-support-thread span { color:var(--gray); font-size:.68rem; margin-top:.1rem; }
.chat-support-thread.active { border-color:var(--electric); background:rgba(37,99,235,.14); }
html:not([data-universe-theme='dark']) .chat-mode-tab,
html:not([data-universe-theme='dark']) .chat-support-thread { background:#f8fbff; color:#0f172a; }
html:not([data-universe-theme='dark']) .chat-mode-tab.active { background:#2563eb; color:#fff; }

@media(max-width:980px){
  html[data-universe-page='calculator'] #herramientas .tools-grid { grid-template-columns:minmax(0,1fr) !important; }
  html[data-universe-page='calculator'] #cepre-calculator,
  html[data-universe-page='calculator'] #uni-calculator,
  html[data-universe-page='calculator'] #competition-table { grid-column:1 !important; }
  .universe-legal-grid { grid-template-columns:minmax(0,1fr); }
  .universe-legal-grid .legal-card:last-child:nth-child(odd) { grid-column:auto; }
  .universe-calendar-section { grid-template-columns:minmax(0,1fr); }
  .universe-calendar-intro { position:static; }
  #cronograma-universe #payment-calendar .payment-shell { grid-template-columns:minmax(0,1fr) !important; }
  .universe-library-layout { grid-template-columns:minmax(0,1fr); }
  .library-resource-rail { position:static; margin:0 1rem 3rem; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media(max-width:760px){
  nav { padding:.48rem .55rem !important; gap:.35rem !important; }
  nav .nav-logo { font-size:1.08rem !important; flex:0 0 auto; }
  nav .nav-links { display:flex !important; flex:1 1 auto; justify-content:flex-start; gap:.2rem !important; overflow-x:auto; scrollbar-width:none; }
  nav .nav-links::-webkit-scrollbar { display:none; }
  nav .nav-links a { padding:.38rem .5rem !important; font-size:.68rem !important; }
  nav .nav-user-btn { flex:0 0 auto; padding:.42rem !important; }
  nav .nav-user-btn > span { display:none; }
  .universe-static-page { --universe-page-gutter:.9rem; }
  .universe-page-stage { padding-top:4.15rem; }
  #biblioteca .ciclo-body,#biblioteca .doc-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  #biblioteca .doc-card { min-height:130px; padding:.75rem !important; }
  .library-resource-rail { grid-template-columns:minmax(0,1fr); margin-inline:.9rem; }
  .universe-legal-page { padding:1.5rem 0 2.5rem; }
  .universe-legal-page .section-title { font-size:clamp(1.55rem,7.2vw,2.35rem) !important; }
  .universe-legal-grid .legal-card { min-height:0; }
}
@media(max-width:430px){
  #biblioteca .ciclo-body,#biblioteca .doc-grid { grid-template-columns:minmax(0,1fr) !important; }
}
/* ===== fin páginas físicas ===== */
















/* UNIVERSE_MAIN_V8_START */
#chat-fab,#chat-panel,#chat-overlay,.hero-chat-panel{display:none!important}
html[data-universe-page='home'] #page-content{width:100%;overflow:hidden;background:linear-gradient(180deg,#f7fbff 0,#fff 22%,#f5f9ff 100%)}
html[data-universe-page='home'] #inicio,html[data-universe-page='home'] .section,html[data-universe-page='home'] #cronograma-universe{width:min(100%,1540px);max-width:none;margin-inline:auto;padding-inline:clamp(18px,4vw,64px)}
html[data-universe-page='home'] #inicio{min-height:auto;padding-top:clamp(95px,10vw,145px);padding-bottom:55px;border-radius:0 0 42px 42px}
html[data-universe-page='home'] .hero-content{max-width:1160px;margin-inline:auto;text-align:center}
html[data-universe-page='home'] .hero-sub{max-width:850px;margin-inline:auto;font-size:clamp(1rem,1.35vw,1.18rem)}
html[data-universe-page='home'] .hero-bullets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:1060px;margin:25px auto;text-align:left}
html[data-universe-page='home'] .hero-bullets li{margin:0;padding:15px 17px;border:1px solid rgba(59,91,255,.2);border-radius:15px;background:rgba(255,255,255,.08)}
html[data-universe-page='home'] .hero-actions,html[data-universe-page='home'] .socials{justify-content:center}
html[data-universe-page='home'] .official-access-links{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1100px;margin-inline:auto}
html[data-universe-page='home'] .admission-hub,html[data-universe-page='home'] #plataforma,html[data-universe-page='home'] #herramientas{padding-top:70px;padding-bottom:70px}
html[data-universe-page='home'] .admission-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
html[data-universe-page='home'] .vacancies-card{grid-column:1/-1}
html[data-universe-page='home'] .admission-table-card,html[data-universe-page='home'] .tool-card{border:1px solid #d7e4f2!important;border-radius:24px!important;background:#fff!important;box-shadow:0 16px 38px rgba(18,66,115,.08)!important}
html[data-universe-page='home'] .uni-table-wrap,html[data-universe-page='home'] .competition-table-wrap{border:1px solid #dce7f3;border-radius:16px;overflow:auto;max-height:620px;scrollbar-color:#7eb4e7 #edf5fc}
html[data-universe-page='home'] :is(.uni-table,.competition-table){border-collapse:separate;border-spacing:0;width:100%}
html[data-universe-page='home'] :is(.uni-table,.competition-table) th{position:sticky;top:0;z-index:3;background:#0e5fb8!important;color:#fff!important;padding:12px 13px!important;white-space:nowrap}
html[data-universe-page='home'] :is(.uni-table,.competition-table) td{padding:11px 13px!important;border-bottom:1px solid #e5edf6!important;color:#29445f!important;background:#fff}
html[data-universe-page='home'] :is(.uni-table,.competition-table) tbody tr:nth-child(even) td{background:#f5f9fd}
html[data-universe-page='home'] :is(.uni-table,.competition-table) tbody tr:hover td{background:#e8f3ff!important}
html[data-universe-page='home'] .vacancies-table th:first-child,html[data-universe-page='home'] .vacancies-table td:first-child{position:sticky;left:0;z-index:2;box-shadow:5px 0 10px rgba(20,67,110,.08)}
html[data-universe-page='home'] #herramientas .tools-grid{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:20px!important;max-width:1460px!important;margin-inline:auto!important}
html[data-universe-page='home'] #herramientas #exam-countdowns{grid-column:1/-1!important}
html[data-universe-page='home'] #herramientas #study-calendar{grid-column:span 7!important}
html[data-universe-page='home'] #herramientas #video-playlists{grid-column:span 5!important}
html[data-universe-page='home'] #herramientas #gamification-panel{grid-column:1/-1!important}
html[data-universe-page='home'] #herramientas .tool-card{padding:clamp(18px,2.3vw,30px)!important}
html[data-universe-page='home'] .countdown-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html[data-universe-page='home'] .countdown-item{border:1px solid #d6e6f5!important;border-radius:18px!important;background:linear-gradient(135deg,#f8fbff,#eef7ff)!important}
#universe-game-button,#current-news-button{z-index:2147482000!important;display:flex!important;pointer-events:auto!important}
#support-v2-fab{position:fixed;right:22px;bottom:70px;z-index:2147482500;display:flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:13px 17px;background:linear-gradient(135deg,#075dcc,#1694ed);color:#fff;box-shadow:0 14px 38px rgba(7,93,204,.38);font:900 13px/1 Inter,system-ui,sans-serif;cursor:pointer}
#support-v2-fab svg{width:23px;height:23px;fill:currentColor}#support-v2-fab i{width:9px;height:9px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 3px rgba(255,255,255,.2)}#support-v2-fab i.online{background:#35d07f}
#support-v2-hint{position:fixed;right:22px;bottom:130px;z-index:2147482490;max-width:220px;padding:11px 14px;border:1px solid #cfe1f3;border-radius:14px;background:#fff;color:#173a5e;box-shadow:0 12px 30px rgba(20,68,116,.18);font:800 13px/1.35 Inter,system-ui,sans-serif;opacity:0;transform:translateY(8px);pointer-events:none;transition:.25s}#support-v2-hint.show{opacity:1;transform:none}
#support-v2-overlay{position:fixed;inset:0;z-index:2147482501;background:rgba(5,17,31,.45);opacity:0;visibility:hidden;transition:.25s}#support-v2-overlay.open{opacity:1;visibility:visible}
#support-v2-panel{position:fixed;right:18px;bottom:18px;z-index:2147482502;width:min(92vw,760px);height:min(84vh,720px);display:flex;flex-direction:column;border:1px solid #cfe0f1;border-radius:24px;background:#fff;color:#102a43;box-shadow:0 28px 80px rgba(4,31,60,.35);overflow:hidden;opacity:0;visibility:hidden;transform:translateY(22px) scale(.98);transition:.25s;font-family:Inter,system-ui,sans-serif}#support-v2-panel.open{opacity:1;visibility:visible;transform:none}
body.support-v2-active #universe-game-button,body.support-v2-active #peru-clock,body.support-v2-active #current-news-button{z-index:2147482400!important;pointer-events:none!important;opacity:.18!important;filter:grayscale(1)!important}
.support-v2-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;background:linear-gradient(135deg,#075dcc,#1189e5);color:#fff}.support-v2-head div{display:flex;flex-direction:column;gap:3px}.support-v2-head strong{font-size:16px}.support-v2-head span{font-size:11px;opacity:.85}.support-v2-head button{width:32px;height:32px;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer}
.support-v2-admin-layout{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:0;flex:1}.support-v2-admin-layout.visitor{grid-template-columns:1fr}#support-v2-inbox{min-width:0;border-right:1px solid #dce7f2;background:#f5f9fd;overflow:auto}.support-v2-inbox-title{padding:13px 14px;color:#506b84;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.support-v2-thread{display:block;width:100%;border:0;border-top:1px solid #e0eaf4;background:transparent;padding:12px 14px;text-align:left;cursor:pointer}.support-v2-thread.active{background:#e6f2ff}.support-v2-thread strong,.support-v2-thread span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.support-v2-thread strong{font-size:12px;color:#173a5e}.support-v2-thread span{margin-top:4px;color:#71859a;font-size:10px}.support-v2-thread b{float:right;width:8px;height:8px;border-radius:50%;background:#0b79e5}
.support-v2-conversation{display:flex;min-width:0;min-height:0;flex-direction:column}.support-v2-thread-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px;border-bottom:1px solid #e0eaf4}.support-v2-thread-head div{min-width:0}.support-v2-thread-head strong,.support-v2-thread-head span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-v2-thread-head strong{font-size:13px}.support-v2-thread-head span{margin-top:2px;color:#6d8297;font-size:10px}#support-v2-solved{border:0;border-radius:999px;padding:8px 11px;background:#dcfce7;color:#167344;font-size:10px;font-weight:900;cursor:pointer}
.support-v2-name-row{display:flex;align-items:center;gap:10px;padding:9px 14px;border-bottom:1px solid #e5edf5;background:#fbfdff}.support-v2-name-row span{color:#5f758b;font-size:10px;font-weight:900;text-transform:uppercase}.support-v2-name-row input{flex:1;border:1px solid #d3e1ef;border-radius:10px;padding:8px 10px;font:inherit;outline:none}
#support-v2-messages{flex:1;min-height:0;overflow:auto;padding:15px;display:flex;flex-direction:column;gap:10px;background:#f7fafc}.support-v2-msg{max-width:82%;align-self:flex-start}.support-v2-msg.mine{align-self:flex-end}.support-v2-bubble{padding:10px 12px;border:1px solid #d8e4f0;border-radius:15px 15px 15px 4px;background:#fff;color:#243b53;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.support-v2-msg.mine .support-v2-bubble{border-color:#1678d2;border-radius:15px 15px 4px 15px;background:#0b73cf;color:#fff}.support-v2-msg.bot .support-v2-bubble{border-color:#b9dcfa;background:#eaf5ff}.support-v2-meta{margin:3px 4px 0;color:#8293a4;font-size:9px}.support-v2-bubble a{color:#075dcc!important;text-decoration:underline!important}.support-v2-msg.mine .support-v2-bubble a{color:#fff!important}.support-v2-bubble img{display:block;max-width:100%;max-height:280px;margin-top:7px;border-radius:10px}
#support-v2-closed{margin:10px 14px;padding:11px;border:1px solid #f2cd83;border-radius:12px;background:#fff7df;color:#70520e;font-size:11px;text-align:center}.support-v2-compose{padding:11px 13px;border-top:1px solid #dce7f2;background:#fff}.support-v2-compose textarea{width:100%;height:66px;resize:none;border:1px solid #ccddec;border-radius:12px;padding:10px 12px;font:12px/1.4 Inter,system-ui,sans-serif;outline:none}.support-v2-compose>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.support-v2-attach,.support-v2-send{border:0;border-radius:999px;padding:9px 12px;font-size:10px;font-weight:900;cursor:pointer}.support-v2-attach{background:#eaf4ff;color:#075dcc}#support-v2-file{display:none}.support-v2-send{background:#075dcc;color:#fff}#support-v2-image-preview{display:flex;align-items:center;gap:9px;padding:8px 13px;border-top:1px solid #e1eaf3}#support-v2-image-preview[hidden],#support-v2-closed[hidden],#support-v2-inbox[hidden],#support-v2-solved[hidden],#support-v2-compose[hidden],.support-v2-name-row[hidden]{display:none!important}#support-v2-image-preview img{width:54px;height:44px;object-fit:cover;border-radius:8px}#support-v2-image-preview button{border:0;background:#fee2e2;color:#991b1b;border-radius:8px;padding:7px 9px;cursor:pointer}
@media(max-width:900px){html[data-universe-page='home'] .hero-bullets,html[data-universe-page='home'] .official-access-links,html[data-universe-page='home'] .admission-info-grid{grid-template-columns:1fr}html[data-universe-page='home'] .vacancies-card{grid-column:auto}html[data-universe-page='home'] #herramientas .tools-grid{grid-template-columns:1fr!important}html[data-universe-page='home'] #herramientas :is(#exam-countdowns,#study-calendar,#video-playlists,#gamification-panel){grid-column:1!important}html[data-universe-page='home'] .countdown-grid{grid-template-columns:1fr}.support-v2-admin-layout{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:620px){#support-v2-fab{right:82px;bottom:62px;padding:12px}#support-v2-fab span{display:none}#support-v2-hint{right:14px;bottom:120px}#support-v2-panel{inset:8px;width:auto;height:auto;border-radius:18px}.support-v2-admin-layout{grid-template-columns:1fr}.support-v2-admin-layout.admin #support-v2-inbox{max-height:150px;border-right:0;border-bottom:1px solid #dce7f2}.support-v2-msg{max-width:92%}}
/* UNIVERSE_MAIN_V8_END */
