.ceadi-page {
      --violet: #5b3fa3;
      --violet-dark: #4a3287;
      --violet-soft: #efe9ff;
      --violet-soft-2: #f7f4ff;
      --text: #1f2330;
      --muted: #667085;
      --border: #e6e2f3;
      --white: #ffffff;
      --success-bg: #e8f7ea;
      --success-text: #1f8f45;

      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text);
      min-height: 100vh;
      padding: 40px 20px 56px;
      background:
        radial-gradient(circle at top left, rgba(91, 63, 163, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(91, 63, 163, 0.06), transparent 24%),
        #f7f7fb;
    }

    .ceadi-page * { box-sizing: border-box; }

    .ceadi-page .wrap {
      max-width: 1120px;
      margin: 0 auto;
    }
    
    
     .hero {
      background: linear-gradient(135deg, #5b3fa3 0%, #6d4fc0 100%);
      color: #fff;
      border-radius: 28px;
      padding: 42px 34px;
      box-shadow: 0 18px 45px rgba(62, 39, 121, 0.18);
      position: relative;
      overflow: hidden;
      margin-bottom: 28px;
    }

    .hero::before,
    .hero::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
    }

    .hero::before {
      width: 220px;
      height: 220px;
      top: -70px;
      right: -60px;
    }

    .hero::after {
      width: 140px;
      height: 140px;
      bottom: -40px;
      right: 140px;
    }
    
    .hero .hero-logo {
      display: block;
      width: 180px;
      max-width: 42vw;
      height: auto;
      object-fit: contain;
      flex: 0 0 auto;
    }

    .hero-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
      position: relative;
      z-index: 1;
    }
    
    .hero h1 {
      margin: 0 0 12px;
      font-size: clamp(32px, 5vw, 52px);
      line-height: 1.05;
      letter-spacing: -0.03em;
      position: relative;
      z-index: 1;
    }

    .hero p {
      margin: 0;
      max-width: 760px;
      font-size: 17px;
      line-height: 1.65;
      color: rgba(255,255,255,0.9);
      position: relative;
      z-index: 1;
    }
    









    .ceadi-page .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 999px;
      padding: 8px 14px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .02em;
      margin-bottom: 18px;
      backdrop-filter: blur(4px);
      position: relative;
      z-index: 1;
      text-decoration: none;
      color: #fff;
    }





    #correlativas-app{
      font-family: inherit;
      color: var(--text);
    }

    #correlativas-app *{ box-sizing:border-box; }

    .corr-wrap{
      width:100%;
      max-width:1120px;
      margin:0 auto;
    }

    .corr-header{
      display:flex;
      flex-wrap:wrap;
      justify-content:space-between;
      align-items:flex-start;
      gap:16px;
      margin-bottom:22px;
    }

    .corr-title h2{
      margin:0 0 6px 0;
      font-size:28px;
      line-height:1.1;
      letter-spacing:-0.02em;
    }

    .corr-title p{
      margin:0;
      color:var(--muted);
      font-size:15px;
    }

    .corr-controls{
      display:flex;
      flex-wrap:wrap;
      gap:12px;
      align-items:center;
    }

    .corr-select,
    .corr-btn{
      border-radius:14px;
      padding:12px 14px;
      font-size:14px;
      min-height: 48px;
    }

    .corr-select{
      background:#fff;
      border:1px solid var(--border);
      min-width:230px;
      color: var(--text);
      box-shadow: 0 10px 28px rgba(22, 25, 35, 0.04);
    }

    .corr-btn{
      background:var(--violet);
      color:#fff;
      cursor:pointer;
      font-weight:700;
      border:1px solid var(--violet);
      transition:.2s ease;
      box-shadow: 0 10px 28px rgba(22, 25, 35, 0.04);
    }

    .corr-btn:hover{
      transform: translateY(-2px);
      box-shadow: 0 14px 28px rgba(34, 24, 72, 0.10);
      background: var(--violet-dark);
      border-color: var(--violet-dark);
    }

    .corr-btn.secondary{
      background:#fff;
      color:var(--text);
      border:1px solid var(--border);
    }

    .corr-btn.secondary:hover{
      background:#f6f2ff;
      border-color:#d7cff0;
    }

    .legend{
      display:flex;
      flex-wrap:wrap;
      gap:10px;
      margin-bottom:20px;
    }

    .legend-item{
      display:flex;
      align-items:center;
      gap:8px;
      background:#fff;
      padding:8px 12px;
      border-radius:999px;
      font-size:13px;
      border:1px solid var(--border);
      box-shadow: 0 10px 28px rgba(22, 25, 35, 0.04);
    }

    .dot{
      width:12px;
      height:12px;
      border-radius:999px;
      display:inline-block;
    }

    .dot-none{ background:#cbd5e1; }
    .dot-regular{ background:#facc15; }
    .dot-approved{ background:#22c55e; }
    .dot-available{ background:#a855f7; }
    .dot-locked{ background:#f87171; }

    .top-grid{
      display:grid;
      grid-template-columns: 1.2fr 1fr;
      gap:20px;
      margin-bottom:22px;
    }

    .panel{
      background:var(--white);
      border-radius:24px;
      padding:24px;
      box-shadow:0 10px 28px rgba(22, 25, 35, 0.05);
      border:1px solid var(--border);
    }

    .panel h3{
      margin:0 0 10px 0;
      font-size:22px;
      letter-spacing:-0.02em;
    }

    .panel p{
      margin:0;
      color:var(--muted);
      font-size:15px;
      line-height:1.6;
    }

    .summary-list{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-top:12px;
    }

    .chip{
      display:inline-flex;
      align-items:center;
      gap:6px;
      border-radius:999px;
      padding:8px 12px;
      font-size:13px;
      font-weight:700;
      border:1px solid transparent;
    }

    .chip.ok{
      background:#f3e8ff;
      color:#7e22ce;
      border-color:#e9d5ff;
    }

    .chip.done{
      background:#dcfce7;
      color:#166534;
      border-color:#bbf7d0;
    }

    .chip.warn{
      background:#fee2e2;
      color:#b91c1c;
      border-color:#fecaca;
    }

    .levels{
      display:grid;
      gap:18px;
    }

    .level{
      background:#ffffff;
      border-radius:24px;
      padding:24px;
      box-shadow:0 10px 28px rgba(22, 25, 35, 0.05);
      border:1px solid var(--border);
    }

    .level-head{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:12px;
      margin-bottom:16px;
      flex-wrap:wrap;
    }

    .level-head h3{
      margin:0;
      font-size:22px;
      letter-spacing:-0.02em;
    }

    .level-access{
      font-size:13px;
      color:var(--muted);
      background:#faf9fe;
      padding:8px 12px;
      border-radius:999px;
      border:1px solid var(--border);
    }

    .subjects{
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
      gap:14px;
    }

    .subject{
      border-radius:20px;
      padding:14px;
      border:1px solid #e5e7eb;
      background:#fff;
      transition:.2s ease;
    }

    .subject.available{
      border-color:#d8b4fe;
      background:#faf5ff;
    }

    .subject.locked{
      border-color:#fecaca;
      background:#fff5f5;
    }

    .subject.completed{
      border-color:#86efac;
      background:#f0fdf4;
    }

    .subject.current-regular{
      border-color:#fde68a;
      background:#fffbeb;
    }

    .subject-head{
      display:flex;
      justify-content:space-between;
      gap:10px;
      align-items:flex-start;
      margin-bottom:10px;
    }

    .subject-name{
      font-weight:800;
      font-size:15px;
      line-height:1.3;
    }

    .subject-status{
      font-size:12px;
      font-weight:700;
      border-radius:999px;
      padding:6px 9px;
      white-space:nowrap;
    }

    .st-none{ background:#e2e8f0; color:#334155; }
    .st-regular{ background:#fde68a; color:#854d0e; }
    .st-approved{ background:#bbf7d0; color:#166534; }
    .st-available{ background:#e9d5ff; color:#7e22ce; }
    .st-locked{ background:#fecaca; color:#b91c1c; }

    .subject-actions{
      display:flex;
      gap:8px;
      flex-wrap:wrap;
      margin-bottom:10px;
    }

    .state-btn{
      border:none;
      border-radius:12px;
      padding:9px 12px;
      font-size:12px;
      font-weight:700;
      cursor:pointer;
      background:#f1f5f9;
      color:#334155;
      transition:.2s ease;
    }

    .state-btn:hover{
      transform: translateY(-1px);
    }

    .state-btn.active-none{ background:#cbd5e1; color:#0f172a; }
    .state-btn.active-regular{ background:#facc15; color:#713f12; }
    .state-btn.active-approved{ background:#22c55e; color:#fff; }

    .subject-meta{
      font-size:13px;
      color:#475569;
      line-height:1.5;
    }

    .subject-meta strong{
      color:#0f172a;
    }

    .needs{
      margin-top:8px;
      font-size:13px;
      color:#7f1d1d;
      line-height:1.45;
    }

    .proximamente{
      padding:24px;
      background:#fff;
      border-radius:24px;
      border:1px dashed #cbd5e1;
      color:#475569;
      text-align:center;
      box-shadow:0 10px 28px rgba(22, 25, 35, 0.04);
    }

    .footer-note {
      text-align: center;
      margin-top: 22px;
      color: var(--muted);
      font-size: 14px;
    }



      .top-grid{
        grid-template-columns:1fr;
      }

      .corr-title h2{
        font-size:24px;
      }

      .level,
      .panel{
        padding:22px;
      }
    }

    @media (max-width: 640px){
      .ceadi-page{
        padding:22px 14px 34px;
      }




      .panel,
      .level{
        padding:16px;
        border-radius:20px;
      }

      .subjects{
        grid-template-columns:1fr;
      }

      .subject{
        padding:12px;
        border-radius:16px;
      }

      .subject-actions{
        gap:6px;
      }

      .state-btn{
        padding:8px 10px;
        font-size:11px;
      }

      .corr-select{
        min-width:0;
        width:100%;
      }

      .corr-controls{
        width:100%;
      }

      .corr-header{
        gap:12px;
      }

      .subject-head{
        flex-direction:column;
        align-items:flex-start;
      }

      .subject-status{
        align-self:flex-start;
      }
    }
