    :root{
      --bg:#0b1220;
      --bg2:#070b14;         /* sólido oscuro para topbar/menu */
      --panel:#0f1a2f;
      --muted:#93a4c7;
      --text:#eaf0ff;
      --brand:#6ee7ff;
      --brand2:#a78bfa;
      --ok:#34d399;
      --warn:#fbbf24;

      --border: rgba(255,255,255,.10);
      --border2: rgba(255,255,255,.08);
      --ring: rgba(110,231,255,.20);

      --shadow: 0 16px 60px rgba(0,0,0,.45);
      --shadow2: 0 10px 30px rgba(0,0,0,.28);

      --radius: 18px;
      --radius2: 26px;

      --max: 1120px;

      --primary-bg: #6ee7ff;
      --primary-border: #6ee7ff;
      --primary-text: #0b1220;
    }

    /* Light theme overrides */
    [data-theme="light"]{
      --bg:#f4f2ee;
      --bg2:#fffaf2;
      --panel:#ffffff;
      --muted:#5a667d;
      --text:#161b27;
      --brand:#0f766e;
      --brand2:#2563eb;
      --ok:#0f766e;
      --warn:#b45309;

      --border: rgba(22,27,39,.14);
      --border2: rgba(22,27,39,.10);
      --ring: rgba(15,118,110,.18);

      --shadow: 0 16px 60px rgba(24,32,52,.14);
      --shadow2: 0 10px 30px rgba(24,32,52,.10);

      --primary-bg: #0f766e;
      --primary-border: #0f766e;
      --primary-text: #ffffff;
    }
    [data-theme="light"] .hero-card{
      background:#ffffff;
      border-color: rgba(22,27,39,.10);
      box-shadow: 0 18px 55px rgba(18,25,40,.12);
    }
    [data-theme="light"] .hero-card:before{
      background:
        radial-gradient(340px 240px at 18% 6%, rgba(15,118,110,.14), transparent 62%),
        radial-gradient(320px 240px at 82% 0%, rgba(37,99,235,.12), transparent 62%);
    }
    [data-theme="light"] .kpi,
    [data-theme="light"] .list{
      background: rgba(15,23,42,.035);
      border-color: rgba(22,27,39,.10);
    }
    [data-theme="light"] .pill{
      background: rgba(15,23,42,.035);
      border-color: rgba(22,27,39,.10);
      color: var(--muted);
    }
    [data-theme="light"] .rowitem{
      border-top-color: rgba(22,27,39,.08);
    }
    [data-theme="light"] .tag{
      background: rgba(15,23,42,.035);
      border-color: rgba(22,27,39,.10);
      color: var(--text);
    }
    [data-theme="light"] .tag.ok{
      border-color: rgba(15,118,110,.30);
      background: rgba(15,118,110,.12);
      color: #0f3d3a;
    }
    [data-theme="light"] .tag.warn{
      border-color: rgba(180,83,9,.30);
      background: rgba(180,83,9,.12);
      color: #5a2d00;
    }

    *{ box-sizing:border-box; }
    html,body{ height:100%; }
    body{
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
      color:var(--text);
      background: var(--bg);
      line-height:1.55;
      transition: background .28s ease, color .28s ease;
    }

    a{ color:inherit; text-decoration:none; }
    .container{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }

    /* ========== TOPBAR ========== */
    .topbar{
      position:sticky;
      top:0;
      z-index:50;
      background: var(--bg2); /* ✅ sólido (no transparente) */
      border-bottom:1px solid var(--border2);
    }

    .topbar .row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      padding:14px 0;
      position:relative;
    }

    .brand{
      display:flex;
      align-items:center;
      gap:10px;
      font-weight:900;
      letter-spacing:.2px;
      flex:0 0 auto;
    }
    .logo{
      width:34px; height:34px; border-radius:10px;
      display:grid;
      place-items:center;
      background:
        radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.65), transparent 60%),
        linear-gradient(135deg, rgba(110,231,255,.95), rgba(167,139,250,.95));
      border:1px solid rgba(255,255,255,.18);
      font-size:18px;
      line-height:1;
      color:#0B1220;
    }

    /* Desktop nav */
    .nav{
      display:flex;
      align-items:center;
      gap:14px;
      color:var(--muted);
      font-weight:900;
      font-size:14px;
      flex: 1 1 auto;
      justify-content:center;
      min-width:0;
    }
    .nav a{
      padding:8px 10px;
      border-radius:12px;
      transition:.2s ease;
      white-space:nowrap;
    }
    .nav a:hover{ background: rgba(255,255,255,.06); color:var(--text); }

    .actions{ display:flex; gap:10px; align-items:center; flex:0 0 auto; }

    .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:10px;
      padding:10px 14px;
      border-radius:14px;
      border:1px solid var(--border2);
      background: rgba(255,255,255,.04);
      color:var(--text);
      font-weight:950;
      font-size:14px;
      transition: .2s ease;
      cursor:pointer;
      white-space:nowrap;
    }
    .btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.06); }
    .btn.primary{
      border-color: var(--primary-border);
      background: var(--primary-bg);
      color: var(--primary-text);
    }
    .theme-toggle{
      position:relative;
      width:44px;
      height:44px;
      padding:0;
      display:inline-flex;
      align-items:center;
      justify-content:center;
    }
    .theme-toggle .theme-icon{
      display:inline-flex;
      width:16px; height:16px;
      align-items:center; justify-content:center;
      font-size:14px;
      line-height:1;
    }
    html.theme-anim .topbar,
    html.theme-anim .mobile-panel,
    html.theme-anim .btn,
    html.theme-anim .feature,
    html.theme-anim .hero-card,
    html.theme-anim .kpi,
    html.theme-anim .list,
    html.theme-anim details,
    html.theme-anim .step,
    html.theme-anim .trust,
    html.theme-anim .cta-box,
    html.theme-anim footer{
      transition: background .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease;
    }

    /* ========== MOBILE MENU (FULL SCREEN, SOLID) ========== */
    .nav-toggle{ display:none; }

    .burger{
      display:none;
      width:44px; height:44px;
      border-radius:14px;
      border:1px solid var(--border2);
      background: rgba(255,255,255,.04);
      cursor:pointer;
      align-items:center;
      justify-content:center;
      gap:5px;
    }
    .burger span{
      display:block;
      width:18px;
      height:2px;
      background: rgba(234,240,255,.92);
      border-radius:999px;
    }

    /* Overlay + panel */
    .mobile-overlay{
      display:none;
      position:fixed;
      inset:0;
      background: rgba(0,0,0,.35);
      z-index:60;
    }
    .mobile-panel{
      display:none;
      position:fixed;
      inset:0;
      background: var(--bg2); /* ✅ sólido */
      z-index:70;
      padding: 18px 16px;
      padding-top: max(18px, env(safe-area-inset-top));
      overflow:auto;
    }
    .mobile-head{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border2);
      margin-bottom: 14px;
    }
    .close-btn{
      width:44px; height:44px;
      border-radius:14px;
      border:1px solid var(--border2);
      background: rgba(255,255,255,.04);
      cursor:pointer;
      display:grid;
      place-items:center;
      font-weight:950;
      color: var(--text);
    }

    .mobile-links{
      display:grid;
      gap:10px;
      margin-bottom: 14px;
    }
    .mobile-links a{
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding: 14px 14px;
      border-radius: 16px;
      border: 1px solid var(--border2);
      background: rgba(255,255,255,.03);
      font-weight:950;
      color: var(--text);
    }
    .mobile-links a span{
      color: var(--muted);
      font-weight:900;
      font-size: 12px;
    }

    .mobile-actions{
      display:grid;
      gap:10px;
    }
    .mobile-actions .btn{ width:100%; }

    /* checkbox open */
    .nav-toggle:checked ~ .mobile-overlay{ display:block; }
    .nav-toggle:checked ~ .mobile-panel{ display:block; }

    /* ========== HERO ========== */
    .hero{ padding: 46px 0 18px; }
    .hero-grid{
      display:grid;
      grid-template-columns: 1.12fr .88fr;
      gap: 28px;
      align-items:stretch;
    }
    .badge{
      display:inline-flex; align-items:center; gap:10px;
      padding:8px 12px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.04);
      color:var(--muted);
      font-weight:950;
      font-size:13px;
      width:fit-content;
    }
    .dot{
      width:9px; height:9px; border-radius:999px;
      background: linear-gradient(135deg, var(--brand), var(--brand2));
      box-shadow: 0 0 0 4px rgba(110,231,255,.15);
    }
    h1{
      margin:14px 0 12px;
      font-size: clamp(30px, 4.4vw, 54px);
      line-height:1.05;
      letter-spacing:-.6px;
    }
    .lead{
      color: var(--muted);
      font-size: 16px;
      max-width: 62ch;
      margin: 0 0 18px;
      font-weight:750;
    }

    .cta{
      display:flex;
      gap: 12px;
      flex-wrap:wrap;
      align-items:center;
      margin: 18px 0 12px;
    }

    /* ✅ Arreglado: “multi-institución / asistencia…” */
    .mini{
      margin-top: 10px;
      display:flex;
      flex-wrap:wrap;
      gap:10px;
    }
    .chip{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.03);
      color: var(--muted);
      font-weight:950;
      font-size: 13px;
      white-space:nowrap;
    }
    .check{
      width:18px; height:18px; border-radius:7px;
      display:inline-grid; place-items:center;
      background: rgba(52,211,153,.15);
      border:1px solid rgba(52,211,153,.35);
      color: var(--ok);
      font-size: 12px;
      flex: 0 0 auto;
    }

    .hero-card{
      border:1px solid var(--border2);
      background: rgba(255,255,255,.03);
      border-radius: var(--radius2);
      box-shadow: var(--shadow);
      padding: 18px;
      display:flex;
      flex-direction:column;
      gap: 14px;
      min-height: 340px;
      position:relative;
      overflow:hidden;
    }
    .hero-card:before{
      content:"";
      position:absolute; inset:-1px;
      background:
        radial-gradient(320px 220px at 20% 10%, rgba(110,231,255,.14), transparent 60%),
        radial-gradient(300px 220px at 80% 0%, rgba(167,139,250,.14), transparent 60%);
      pointer-events:none;
      opacity:.9;
    }
    .hero-card > *{ position:relative; }

    .card-title{
      display:flex; align-items:center; justify-content:space-between;
      gap:12px;
      padding: 10px 10px 0;
    }
    .pill{
      padding:7px 10px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.18);
      color: var(--muted);
      font-weight:950;
      font-size:12px;
      white-space:nowrap;
    }

    .kpis{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .kpi{
      border:1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.18);
      border-radius: var(--radius);
      padding: 14px;
      box-shadow: var(--shadow2);
    }
    .kpi strong{ display:block; font-size: 18px; margin-bottom: 2px; }
    .kpi span{ color: var(--muted); font-weight:900; font-size: 12px; }

    .list{
      border:1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.18);
      border-radius: var(--radius);
      padding: 14px;
    }
    .list h3{ margin:0 0 10px; font-size: 14px; color: var(--text); }
    .rowitem{
      display:flex; align-items:center; justify-content:space-between;
      gap: 10px;
      padding: 10px 0;
      border-top: 1px dashed rgba(255,255,255,.10);
      color: var(--muted);
      font-weight:900;
      font-size: 13px;
    }
    .rowitem:first-of-type{ border-top:none; padding-top:0; }
    .tag{
      padding: 6px 10px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.04);
      color: var(--text);
      font-weight:950;
      font-size: 12px;
      white-space:nowrap;
    }
    .tag.ok{ border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.12); }
    .tag.warn{ border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.12); }

    /* ========== SECTIONS ========== */
    section{ padding: 44px 0; }
    .section-head{
      display:flex; align-items:flex-end; justify-content:space-between;
      gap: 18px;
      margin-bottom: 18px;
      flex-wrap:wrap;
    }
    .section-head h2{
      margin:0;
      font-size: clamp(22px, 2.8vw, 32px);
      letter-spacing:-.4px;
    }
    .section-head p{
      margin:0;
      color: var(--muted);
      max-width: 72ch;
      font-weight:750;
    }

    .grid3{
      display:grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 14px;
    }
    .grid3 > *{ grid-column: span 4; }

    .grid2{
      display:grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 14px;
    }
    .grid2 > *{ grid-column: span 6; }

    .feature{
      border:1px solid var(--border2);
      border-radius: var(--radius2);
      background: rgba(255,255,255,.03);
      padding: 16px;
      box-shadow: var(--shadow2);
      min-height: 138px;
    }
    .feature .icon{
      width:42px; height:42px; border-radius:14px;
      display:grid; place-items:center;
      background: linear-gradient(135deg, rgba(110,231,255,.18), rgba(167,139,250,.16));
      border:1px solid rgba(255,255,255,.12);
      margin-bottom: 10px;
      font-weight:950;
    }
    .feature h3{ margin:0 0 6px; font-size: 16px; }
    .feature p{ margin:0; color: var(--muted); font-weight:750; font-size: 14px; }

    .steps{
      display:grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 14px;
    }
    .step{ grid-column: span 4; }
    .step{
      border:1px solid var(--border2);
      border-radius: var(--radius2);
      background: rgba(255,255,255,.03);
      padding: 16px;
      box-shadow: var(--shadow2);
    }
    .step .num{
      width:34px; height:34px; border-radius:14px;
      display:grid; place-items:center;
      background: rgba(0,0,0,.18);
      border:1px solid rgba(255,255,255,.12);
      font-weight:950;
      margin-bottom: 10px;
      color: var(--text);
    }
    .step p{ margin:0; color: var(--muted); font-weight:750; font-size:14px; }

    .trust{
      border:1px solid rgba(110,231,255,.20);
      background: rgba(255,255,255,.03);
      border-radius: var(--radius2);
      padding: 18px;
      box-shadow: var(--shadow2);
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap: 16px;
      flex-wrap:wrap;
    }
    .trust h3{ margin:0 0 6px; }
    .trust p{ margin:0; color: var(--muted); font-weight:750; max-width: 76ch; }

    .faq{
      display:grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 14px;
      align-items:start;
    }
    .faq-left{ grid-column: span 7; display:grid; gap:12px; }
    .faq-right{ grid-column: span 5; }

    details{
      border:1px solid var(--border2);
      background: rgba(255,255,255,.03);
      border-radius: var(--radius2);
      padding: 14px 16px;
      box-shadow: var(--shadow2);
    }
    summary{
      cursor:pointer;
      font-weight:950;
      list-style:none;
      outline:none;
    }
    summary::-webkit-details-marker{ display:none; }
    details p{
      margin: 10px 0 0;
      color: var(--muted);
      font-weight:750;
      font-size: 14px;
    }

    .cta-box{
      border:1px solid rgba(110,231,255,.25);
      background: rgba(255,255,255,.03);
      border-radius: var(--radius2);
      padding: 18px;
      box-shadow: var(--shadow2);
    }
    .cta-box h3{ margin:0 0 8px; }
    .cta-box p{ margin:0 0 14px; color: var(--muted); font-weight:750; }

    footer{
      padding: 28px 0 36px;
      border-top: 1px solid var(--border2);
      color: var(--muted);
      font-weight:400;
    }
    .footer-grid{
      display:flex; align-items:flex-start; justify-content:space-between; gap: 18px;
      flex-wrap:wrap;
    }
    .foot-links{
      display:flex; gap: 14px; flex-wrap:wrap;
      font-weight:400;
    }
    .foot-links a{ color: var(--muted); }
    .foot-links a:hover{ color: var(--text); }

    /* ========== RESPONSIVE ========== */
    @media (max-width: 980px){
      .nav{ display:none; }
      .actions{ display:none; }
      .burger{ display:flex; }

      .hero-grid{ grid-template-columns: 1fr; }
      .kpis{ grid-template-columns: 1fr; }
      .hero-card{ min-height: unset; }

      .grid3 > *{ grid-column: span 6; }
      .step{ grid-column: span 6; }

      .faq-left{ grid-column: span 12; }
      .faq-right{ grid-column: span 12; }
    }

    @media (max-width: 620px){
      .container{ width: min(var(--max), calc(100% - 28px)); }

      .grid3 > *{ grid-column: span 12; }
      .grid2 > *{ grid-column: span 12; }
      .step{ grid-column: span 12; }

      .btn{ width:100%; }
      .cta{ gap:10px; }

      /* ✅ chips lindos en móvil: 2 columnas si caben */
      .mini{
        display:grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap:10px;
      }
      .chip{
        width:100%;
        justify-content:flex-start;
        white-space:normal; /* para que no se desborde */
        line-height:1.25;
      }
    }

    @media (max-width: 420px){
      .mini{ grid-template-columns: 1fr; } /* si es muy angosto, 1 columna */
    }
