:root{
  --bg:#FAF6EF;
  --paper:#FFFFFF;
  --ink:#1C2233;
  --ink-soft:#6B7280;
  --ink-faint:#9CA3AF;
  --line:#E7DFCE;
  --line-soft:#F0EBDE;

  --navy:#0B5FA6;      /* Únete azul — color primario de marca / Director */
  --navy-soft:#E3EEF8;
  --orange:#F15A24;    /* Únete naranja — acento de marca / Padres / Contexto */
  --orange-soft:#FDE7DC;
  --teal:#12958A;      /* Estudiantes / Hab. Digitales */
  --teal-soft:#DDF1EE;
  --violet:#6C4A9C;    /* Docentes / Hab. Siglo XXI */
  --violet-soft:#EEE7F6;
  --slate:#3B4A63;     /* Hab. de Instrucción */
  --slate-soft:#E7EAEE;
  --gold:#B07F1E;      /* Facilitador */
  --gold-soft:#F6ECD6;
  --green:#2E8B57;
  --green-soft:#E4F3EA;

  --radius:16px;
  --radius-sm:10px;
  --shadow: 0 1px 2px rgba(28,34,51,.04), 0 8px 24px -12px rgba(28,34,51,.12);
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
h1,h2,h3,.display{font-family:'Space Grotesk',sans-serif;}
.mono{font-family:'IBM Plex Mono',monospace; letter-spacing:.02em;}
button{font-family:inherit;cursor:pointer;}
input{font-family:inherit;}
a{color:inherit;}

/* background watermark: faint compass lines */
.bg-compass{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    radial-gradient(circle at 84% 12%, rgba(22,48,92,.05) 0, rgba(22,48,92,.05) 1px, transparent 1px),
    radial-gradient(circle at 84% 12%, rgba(22,48,92,.035) 0, rgba(22,48,92,.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%;
}
.app{position:relative; z-index:1;}

/* ---------- Top-level screen switching ---------- */
.screen{display:none;}
.screen.active{display:block;}

/* ============ AUTH LAYOUT (screens 1-3) ============ */
.auth-wrap{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1.05fr 1fr;
}
@media (max-width:900px){ .auth-wrap{grid-template-columns:1fr;} .auth-side{display:none;} }

.auth-side{
  background: linear-gradient(160deg, var(--navy) 0%, #083A67 100%);
  color:#fff;
  padding:64px 56px;
  position:relative;
  overflow:hidden;
  display:flex; flex-direction:column; justify-content:space-between;
}
.auth-side::after{
  content:'';
  position:absolute; right:-140px; top:50%; transform:translateY(-50%);
  width:520px; height:520px; border-radius:50%;
  border:1px solid rgba(255,255,255,.08);
}
.auth-side::before{
  content:'';
  position:absolute; right:-40px; top:50%; transform:translateY(-50%);
  width:340px; height:340px; border-radius:50%;
  border:1px solid rgba(255,255,255,.10);
}
.brand-lockup{position:relative; z-index:2;}
.brand-mark{display:flex; align-items:center; gap:12px; margin-bottom:56px;}
.brand-mark svg{width:34px;height:34px;}
.brand-mark span{font-size:13px; letter-spacing:.14em; text-transform:uppercase; opacity:.75;}

.auth-side h1{font-size:44px; line-height:1.05; font-weight:700; margin:0 0 18px;}
.auth-side p.lead{font-size:16px; line-height:1.6; color:rgba(255,255,255,.72); margin:0 0 36px;}

.compass-hero{
  position:relative; z-index:2;
  width:230px; height:230px; margin:8px 0 40px;
}
.compass-hero .ring{
  width:100%; height:100%; border-radius:50%;
  background: conic-gradient(var(--orange) 0deg 90deg, var(--teal) 90deg 180deg, var(--violet) 180deg 270deg, var(--slate) 270deg 360deg);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.55);
}
.compass-hero .hole{
  width:66%; height:66%; border-radius:50%;
  background: #083A67;
  display:flex; align-items:center; justify-content:center;
  flex-direction:column;
  text-align:center;
}
.compass-hero .hole .k{font-size:10px; text-transform:uppercase; letter-spacing:.14em; color:rgba(255,255,255,.55);}
.compass-hero .hole .v{font-family:'Space Grotesk',sans-serif; font-size:20px; font-weight:700; margin-top:4px;}
.compass-labels{position:relative; z-index:2;}
.compass-labels .row{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px;}
.pill{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12.5px; padding:7px 12px; border-radius:999px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.85);
}
.pill .dot{width:7px;height:7px;border-radius:50%;}

.auth-foot{position:relative; z-index:2; font-size:12.5px; color:rgba(255,255,255,.45); padding-top:24px; border-top:1px solid rgba(255,255,255,.12);}

.auth-main{
  display:flex; align-items:center; justify-content:center;
  padding:48px 32px;
}
.auth-card{width:100%; max-width:600px;}
.auth-card .m-brand{display:flex;align-items:center;gap:10px;margin-bottom:36px;}
.auth-card .m-brand svg{width:26px;height:26px;}
.auth-card .m-brand b{font-family:'Space Grotesk';font-size:15px;}

.steps{display:flex; align-items:center; gap:8px; margin-bottom:28px;}
.step{
  display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--ink-faint);
}
.step .n{
  width:22px;height:22px;border-radius:50%; border:1.5px solid var(--line);
  display:flex;align-items:center;justify-content:center; font-size:11px; font-weight:600;
  color:var(--ink-faint);
}
.step.done .n{background:var(--green); border-color:var(--green); color:#fff;}
.step.now .n{background:var(--navy); border-color:var(--navy); color:#fff;}
.step.now{color:var(--ink);}
.step-line{flex:1; height:1px; background:var(--line); min-width:16px;}

.eyebrow{font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-faint); font-weight:600; margin-bottom:8px;}
.auth-card h2{font-size:26px; margin:0 0 10px;}
.auth-card p.sub{color:var(--ink-soft); font-size:14.5px; line-height:1.55; margin:0 0 28px;}

.field{margin-bottom:16px;}
.field label{display:block; font-size:13px; font-weight:600; margin-bottom:7px;}
.field .hint{font-size:12.5px; color:var(--ink-faint); margin-top:7px; line-height:1.5;}
.field input{
  width:100%; padding:13px 14px; border-radius:var(--radius-sm);
  border:1.5px solid var(--line); background:var(--paper);
  font-size:15px; color:var(--ink);
  outline:none; transition:border-color .15s;
}
.field input.mono{font-size:16px; letter-spacing:.08em;}
.field input:focus{border-color:var(--navy);}
.field .pw-wrap{position:relative;}
.field .pw-wrap button{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  background:none; border:none; font-size:12px; color:var(--ink-soft); font-weight:600;
  padding:6px 8px;
}

.btn{
  width:100%; padding:14px 18px; border-radius:var(--radius-sm); border:none;
  background:var(--navy); color:#fff; font-size:15px; font-weight:600;
  display:flex; align-items:center; justify-content:center; gap:8px;
  transition:transform .12s, box-shadow .12s;
}
.btn:hover{box-shadow:0 10px 24px -12px rgba(22,48,92,.55); transform:translateY(-1px);}
.btn.ghost{background:transparent; color:var(--ink-soft); border:1.5px solid var(--line);}
.btn.ghost:hover{box-shadow:none; transform:none; border-color:var(--ink-faint);}
.back-link{display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--ink-soft); margin-bottom:20px; background:none; border:none; padding:0; font-weight:600;}

/* profile selection cards */
.role-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:8px;}
@media (max-width:520px){.role-grid{grid-template-columns:1fr;}}
.role-card{
  border:1.5px solid var(--line); border-radius:var(--radius);
  background:var(--paper); text-align:left; position:relative; overflow:hidden;
  transition:border-color .15s, transform .12s;
}
.role-card:hover{transform:translateY(-2px); border-color:var(--ink-faint);}
.role-card.selected{border-color:var(--rc); box-shadow:0 0 0 3px var(--rc-soft);}
.role-card .bar{position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--rc);}
.role-card .ic{
  width:38px;height:38px;border-radius:10px; background:var(--rc-soft); color:var(--rc);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px;
}
.role-card .ic svg{width:19px;height:19px;}
.role-card b{display:block; font-size:14.5px; margin-bottom:3px;}
.role-card .desc{font-size:12px; color:var(--ink-faint); line-height:1.4;}

/* ============ DASHBOARD ============ */
.dash-header{
  position:sticky; top:0; z-index:10;
  background:rgba(250,246,239,.9); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.dash-header-in{
  max-width:1180px; margin:0 auto; padding:16px 28px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.dash-brand{display:flex; align-items:center; gap:10px;}
.dash-brand svg{width:26px;height:26px;}
.dash-brand b{font-family:'Space Grotesk'; font-size:15px;}
.dash-brand .cycle{font-size:11px; color:var(--ink-faint); font-weight:600;}
.dash-user{display:flex; align-items:center; gap:12px;}
.folio-chip{
  display:flex; align-items:center; gap:8px;
  background:var(--paper); border:1px solid var(--line); border-radius:999px;
  padding:6px 8px 6px 6px;
}
.folio-chip .avatar{
  width:30px;height:30px;border-radius:50%; background:var(--rc); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700;
}
.folio-chip .txt{display:flex; flex-direction:column; line-height:1.25;}
.folio-chip .txt .name{font-size:12.5px; font-weight:600;}
.folio-chip .txt .folio{font-size:11px; color:var(--ink-faint);}
.logout-btn{
  border:1.5px solid var(--line); background:var(--paper); border-radius:var(--radius-sm);
  padding:9px 14px; font-size:13px; font-weight:600; color:var(--ink-soft);
  display:flex; align-items:center; gap:6px;
}
.logout-btn:hover{border-color:#D9534F; color:#D9534F;}

.dash-body{max-width:1180px; margin:0 auto; padding:32px 28px 80px;}
.role-flag{
  display:inline-flex; align-items:center; gap:7px; padding:5px 12px; border-radius:999px;
  font-size:12px; font-weight:700; letter-spacing:.03em; text-transform:uppercase;
  background:var(--rc-soft); color:var(--rc); margin-bottom:14px;
}
.role-flag .dot{width:6px;height:6px;border-radius:50%;background:var(--rc);}
.dash-title{font-size:28px; margin:0 0 6px;}
.dash-sub{color:var(--ink-soft); font-size:14.5px; margin:0 0 30px;}

/* profile completion banner */
.profile-banner{
  background:var(--paper); border:1.5px solid var(--line); border-radius:var(--radius);
  padding:24px; margin-bottom:28px; box-shadow:var(--shadow);
}
.profile-banner.done{border-color:var(--green); background:linear-gradient(0deg, var(--green-soft), var(--paper) 70%);}
.pb-head{display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px;}
.pb-head h3{font-size:17px; margin:0 0 5px; display:flex; align-items:center; gap:8px;}
.pb-head p{margin:0; font-size:13px; color:var(--ink-soft); max-width:520px; line-height:1.5;}
.pb-status{
  font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
  padding:5px 10px; border-radius:999px; white-space:nowrap; flex-shrink:0;
}
.pb-status.pending{background:var(--orange-soft); color:var(--orange);}
.pb-status.complete{background:var(--green-soft); color:var(--green);}
.pb-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px;}
@media (max-width:760px){.pb-grid{grid-template-columns:1fr 1fr;}}
.pb-field label{display:block; font-size:11.5px; font-weight:700; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.03em; margin-bottom:6px;}
.pb-field input,.pb-field select{
  width:100%; padding:10px 12px; border-radius:8px; border:1.5px solid var(--line);
  font-size:14px; background:#fff;
}
.pb-actions{margin-top:16px; display:flex; gap:10px; align-items:center;}
.btn-sm{padding:10px 16px; font-size:13.5px; width:auto; border-radius:8px;}
.saved-note{font-size:12px; color:var(--green); font-weight:600; display:flex; align-items:center; gap:5px;}

/* consent card */
.consent-card{
  background:var(--paper); border:1.5px solid var(--line); border-radius:var(--radius);
  padding:20px 24px; margin-bottom:28px; box-shadow:var(--shadow);
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
}
.consent-card.given{border-color:var(--green); background:linear-gradient(0deg, var(--green-soft), var(--paper) 75%);}
.consent-card.pending{border-color:var(--orange); background:linear-gradient(0deg, var(--orange-soft), var(--paper) 75%);}
.consent-ic{
  width:44px;height:44px;border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.consent-card.given .consent-ic{background:var(--green-soft); color:var(--green);}
.consent-card.pending .consent-ic{background:var(--orange-soft); color:var(--orange);}
.consent-ic svg{width:21px;height:21px;}
.consent-body{flex:1; min-width:220px;}
.consent-body .c-tag{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin-bottom:3px;}
.consent-card.given .c-tag{color:var(--green);}
.consent-card.pending .c-tag{color:var(--orange);}
.consent-body h5{font-size:15.5px; margin:0 0 4px;}
.consent-body p{font-size:12.5px; color:var(--ink-soft); margin:0; line-height:1.45;}
.consent-actions{flex-shrink:0;}
.consent-toggle-btn{
  padding:10px 16px; border-radius:8px; font-size:13px; font-weight:600; border:1.5px solid var(--orange);
  background:#fff; color:var(--orange); white-space:nowrap;
}
.consent-toggle-btn:hover{background:var(--orange-soft);}
.consent-given-note{
  display:flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:var(--green);
  background:var(--green-soft); padding:8px 12px; border-radius:8px; white-space:nowrap;
}

/* main grid: compass + questionnaire cards */
.main-grid{display:grid; grid-template-columns:260px 1fr; gap:24px; align-items:start;}
@media (max-width:860px){.main-grid{grid-template-columns:1fr;}}

.compass-card{
  background:var(--paper); border:1.5px solid var(--line); border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow); text-align:center; position:sticky; top:96px;
}
.compass-card h4{font-size:12.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-faint); margin:0 0 18px; font-weight:700;}
.compass-ring{width:168px;height:168px;margin:0 auto 18px; border-radius:50%; position:relative;}
.compass-ring .hole{
  position:absolute; inset:24px; border-radius:50%; background:var(--paper);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.compass-ring .hole .pct{font-family:'Space Grotesk'; font-size:26px; font-weight:700;}
.compass-ring .hole .lab{font-size:10.5px; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.05em;}
.compass-legend{display:flex; flex-direction:column; gap:9px; text-align:left; margin-top:4px;}
.cl-item{display:flex; align-items:center; gap:9px; font-size:12.5px;}
.cl-item .sw{width:9px;height:9px;border-radius:3px; flex-shrink:0;}
.cl-item .lbl{flex:1; color:var(--ink);}
.cl-item .st{font-size:10.5px; font-weight:700; color:var(--ink-faint);}
.cl-item.na{opacity:.4;}
.cl-item.ok .st{color:var(--green);}

.q-list{display:flex; flex-direction:column; gap:14px;}
.q-card{
  background:var(--paper); border:1.5px solid var(--line); border-radius:var(--radius);
  padding:20px 22px; box-shadow:var(--shadow);
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
}
.q-ic{
  width:46px;height:46px;border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--qc-soft); color:var(--qc);
}
.q-ic svg{width:22px;height:22px;}
.q-body{flex:1; min-width:180px;}
.q-body .q-tag{font-size:11px; font-weight:700; color:var(--qc); text-transform:uppercase; letter-spacing:.04em; margin-bottom:3px;}
.q-body h5{font-size:15.5px; margin:0 0 4px;}
.q-body p{font-size:12.5px; color:var(--ink-soft); margin:0; line-height:1.4;}
.q-actions{display:flex; gap:8px; flex-wrap:wrap;}
.q-btn{
  display:flex; align-items:center; gap:7px; padding:9px 14px; border-radius:8px;
  font-size:13px; font-weight:600; border:1.5px solid var(--line); background:#fff; color:var(--ink);
  white-space:nowrap;
}
.q-btn.pending{border-color:var(--qc); color:var(--qc);}
.q-btn.pending:hover{background:var(--qc-soft);}
.q-btn.done{background:var(--green-soft); border-color:var(--green-soft); color:var(--green);}
.q-btn svg{width:14px;height:14px;}

/* facilitator */
.stat-row{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:26px;}
@media (max-width:760px){.stat-row{grid-template-columns:1fr 1fr;}}
.stat-card{background:var(--paper); border:1.5px solid var(--line); border-radius:var(--radius); padding:18px 20px; box-shadow:var(--shadow);}
.stat-card .lab{font-size:11.5px; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.04em; font-weight:700; margin-bottom:8px;}
.stat-card .val{font-family:'Space Grotesk'; font-size:26px; font-weight:700;}
.stat-card .sub{font-size:12px; color:var(--ink-soft); margin-top:4px;}

.panel{background:var(--paper); border:1.5px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden;}
.panel-head{padding:18px 22px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;}
.panel-head h3{font-size:16px; margin:0;}
.panel-head p{font-size:12.5px; color:var(--ink-faint); margin:3px 0 0;}
.search-box{display:flex; align-items:center; gap:8px; border:1.5px solid var(--line); border-radius:8px; padding:8px 12px; background:var(--bg); min-width:220px;}
.search-box svg{width:15px;height:15px; color:var(--ink-faint);}
.search-box input{border:none; background:none; outline:none; font-size:13.5px; width:100%;}

table{width:100%; border-collapse:collapse;}
thead th{
  text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-faint);
  padding:12px 22px; border-bottom:1px solid var(--line); font-weight:700; white-space:nowrap;
}
tbody td{padding:14px 22px; border-bottom:1px solid var(--line-soft); font-size:13.5px; vertical-align:middle;}
tbody tr:last-child td{border-bottom:none;}
tbody tr:hover{background:#FCFAF4;}
.cct{font-size:11.5px; color:var(--ink-faint);}
.name-cell b{display:block; font-size:13.5px;}
.name-cell span{font-size:11.5px; color:var(--ink-faint);}
.role-tag{
  display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700;
  padding:3px 9px; border-radius:999px; background:var(--rc-soft); color:var(--rc);
}
.dots{display:flex; gap:5px;}
.dots i{width:9px;height:9px;border-radius:3px; display:inline-block;}
.progress-bar{width:80px; height:auto; border-radius:4px; background:var(--line-soft); overflow:hidden;}
.progress-bar b{display:block; height:100%; background:var(--green); border-radius:4px;}

/* prototype nav (dev tool, clearly labeled) */
.proto-nav{
  position:fixed; bottom:18px; left:50%; transform:translateX(-50%); z-index:50;
  background:#0E1424; color:#fff; border-radius:14px; padding:10px 12px;
  display:flex; align-items:center; gap:8px; box-shadow:0 20px 40px -14px rgba(0,0,0,.45);
  font-size:12px; flex-wrap:wrap; max-width:92vw; border:1px dashed rgba(255,255,255,.25);
  display: none; /*Quitar este comentario para que se muestren las opciones*/
}
.proto-nav b{font-weight:700; padding-right:6px; opacity:.6; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em;}
.proto-nav button{
  background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.14);
  padding:6px 10px; border-radius:8px; font-size:11.5px; font-weight:600;
}
.proto-nav button:hover{background:rgba(255,255,255,.18);}
.proto-nav button.on{background:#fff; color:#0E1424;}

.checkicon{width:12px;height:12px;}


/*Internos*/
    :root {
        --unete-orange: #f2622e;
        --unete-orange-soft: #fde7dd;
        --unete-bg: #fdf3ea;
        --unete-green: #1f9d55;
        --unete-green-soft: #e3f6ea;
        --unete-text: #2b2b2b;
        --unete-muted: #8a8a8a;
    }
    body {
        background-color: var(--unete-bg);
        color: var(--unete-text);
    }
    .app-header {
        background-color: var(--unete-bg);
        border-bottom: 1px solid #f0ddce;
    }
    .app-header .brand-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 2px solid #f27331;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .app-title {
        font-weight: 700;
        font-size: 1.05rem;
        line-height: 1.1;
    }
    .app-subtitle {
        font-size: 0.8rem;
        color: var(--unete-muted);
    }
    /* ============== SOMBREADO / CONSULTA MYSQL ============== */
    .user-chip {
        /*background-color:#fff9c4;*/ /* resaltado igual que la imagen */
        border-radius: 24px;
        padding: 4px 14px 4px 4px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    /* =========================================================== */
    .avatar-circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--unete-orange);
        color: #fff;
        font-weight: 700;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .btn-logout {
        border: 1px solid #ddd;
        background: #fff;
        border-radius: 8px;
        font-size: 0.85rem;
      text-decoration: none;
    }
    .badge-role {
        background-color: var(--unete-orange-soft);
        color: var(--unete-orange);
        font-weight: 600;
        font-size: 0.75rem;
        letter-spacing: 0.03em;
        border-radius: 20px;
        padding: 6px 14px;
    }
    .badge-role .dot {
        width: 7px;
        height: 7px;
        background-color: var(--unete-orange);
        border-radius: 50%;
        display: inline-block;
        margin-right: 6px;
    }
    /* ============== SOMBREADO / CONSULTA MYSQL ============== */
    .highlight-block {
        /*background-color: #fff9c4;*/
        border-radius: 6px;
        padding: 2px 6px;
        display: inline-block;
    }
    /* =========================================================== */
    .page-title {
        font-weight: 700;
        font-size: 2rem;
    }
    .page-subtitle {
        color: var(--unete-muted);
    }
    .card-custom {
        background: #fff;
        border-radius: 14px;
        border: 1px solid #f0e6da;
        box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    }

    .consent-card {
        background: linear-gradient(90deg, #eafaf0 0%, #ffffff 100%);
        border: 1px solid #cdeedb;
        border-radius: 14px;
    }
    .consent-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background-color: #d3f3df;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--unete-green);
    }
    .consent-label {
        color: var(--unete-green);
        font-weight: 700;
        font-size: 0.95rem;
        letter-spacing: 0.03em;
    }
    .badge-consent-date {
        background-color: var(--unete-green-soft);
        color: var(--unete-green);
        border-radius: 20px;
        padding: 8px 16px;
        font-weight: 600;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .form-label-custom {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: var(--unete-muted);
    }
     .form-label-custom_v2 {
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: #252323;
    }
    .badge-pendiente {
        background-color: var(--unete-orange-soft);
        color: var(--unete-orange);
        font-weight: 600;
        font-size: 0.75rem;
        border-radius: 20px;
        padding: 6px 16px;
    }
    .btn-guardar {
        background-color: var(--unete-orange);
        border-color: var(--unete-orange);
        color: #fff;
        font-weight: 600;
        border-radius: 8px;
        padding: 10px 22px;
        border: 1px solid var(--unete-orange);
    }
    .btn-guardar:hover {
        background-color: #d8531f;
        border-color: #d8531f;
        color: #fff;
    }
    .help-text-inline {
        font-size: 1rem;
        color: var(--unete-muted);
    }
    .item-icon-box {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background-color: var(--unete-orange-soft);
        color: var(--unete-orange);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .item-label {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: var(--unete-orange);
    }
    .item-title {
        font-weight: 700;
        font-size: 1.05rem;
    }
    .item-desc {
        color: var(--unete-muted);
        font-size: 0.9rem;
    }
    .badge-completado {
        background-color: var(--unete-green-soft);
        color: var(--unete-green);
        font-weight: 600;
        font-size: 0.85rem;
        border-radius: 8px;
        padding: 14px 13px;
    }
    .btn-responder {
        border: 1px solid var(--unete-orange);
        color: var(--unete-orange);
        font-weight: 600;
        border-radius: 8px;
        background: #fff;
    }
    .btn-responder:hover {
        background-color: var(--unete-orange-soft);
        color: var(--unete-orange);
    }
    .sxpacio{
      width: 100%;
      height: 50px;
      display: block;
      margin: 0 auto;
    }

     .sxpacio-dos{
      width: 100%;
      height: 80px;
      display: block;
      margin: 0 auto;
    }

    .card-custom-v2 {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #f0e6da;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;

    display: block !important;
}

.card-custom-v2 .row,
.card-custom-v2 .col-12 {
    height: auto !important;
    min-height: 0 !important;
}

.form-label-custom_v2 {
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
}

.personas-container {
    display: flex;
    width: 100%;
    height: auto !important;
    min-height: 50px;
    align-items: center;
}

.personas-container .ali-cent {
    flex: 1;
    text-align: center;
}




/*Barra*/

.cantidad-slider-container {
    width: 100%;
    max-width: 100%;
    padding: 40px 0 15px;
    box-sizing: border-box;
}

.cantidad-slider-wrapper {
    position: relative;
    width: 100%;
}

/* =========================
   BARRA
   ========================= */

.cantidad-slider {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 8px;

    margin: 0;
    padding: 0;

    appearance: none;
    -webkit-appearance: none;

    background: #eadfd4;
    border-radius: 10px;

    outline: none;
    cursor: pointer;
}


/* =========================
   CÍRCULO
   ========================= */

.cantidad-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 28px;
    height: 28px;

    border-radius: 50%;
    border: 4px solid #fff;

    background: #8b5e3c;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .20);
}

.cantidad-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;

    border-radius: 50%;
    border: 4px solid #fff;

    background: #8b5e3c;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .20);
}


/* =========================
   VALOR
   ========================= */

.cantidad-slider-value {
    position: absolute;

    top: -38px;

    transform: translateX(-50%);

    min-width: 38px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    background: #8b5e3c;
    color: #fff;

    border-radius: 8px;

    font-size: 16px;
    font-weight: 700;

    pointer-events: none;

    white-space: nowrap;
}


/* Triángulo */

.cantidad-slider-value::after {
    content: "";

    position: absolute;

    bottom: -6px;
    left: 50%;

    transform: translateX(-50%);

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #8b5e3c;
}


/* =========================
   EXTREMOS
   ========================= */

.cantidad-slider-limites {
    width: 100%;

    display: flex;
    justify-content: space-between;

    margin-top: 10px;

    font-size: 13px;
    color: #777;
}

/*Termina barra*/
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    border: 1px solid #f2622e;
    margin: 0;
    flex-shrink: 0;
    margin: 5px 5px 5px 5px;
}

.checkbox-item span {
    line-height: 1.3;
}





/*Aqui nuevos css para los radio butons*/
 /* Estado visual "ya contestado / bloqueado" para campos de cantidad
       y checkboxes, que no traen el gris de deshabilitado por default. */
    .chk-bienes:disabled {
        cursor: not-allowed;
    }
    .checkbox-item:has(.chk-bienes:disabled) {
        opacity: 0.6;
    }
    /* ===================== Grupos de radio buttons (reemplazan <select>) ===================== */
    .radio-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }
    .radio-item {
        display: inline-block;
    }
    .radio-item label {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        border: 1px solid rgba(0,0,0,0.01);
        border-radius: 8px;
        padding: 0.45rem 0.9rem;
        cursor: pointer;
        margin-bottom: 0;
        transition: background-color .15s ease, border-color .15s ease;
        width: 400px;
    }
    .radio-item label:hover {
        background-color: rgba(47, 111, 237, 0.06);
    }
    .radio-item input[type="radio"] {
        cursor: pointer;
    }
    .radio-item input[type="radio"]:checked + span {
        font-weight: 600;
    }
    .radio-item input[type="radio"]:disabled,
    .radio-item input[type="radio"]:disabled + span {
        cursor: not-allowed;
    }
    .radio-item:has(input[type="radio"]:disabled) label {
        opacity: 0.6;
    }
    /* ===================== Campos de cantidad (reemplazan los sliders) ===================== */
    .cantidad-input {
        display: inline-block;
        width: 100%;
        max-width: 260px;
        border: 1px solid rgba(0,0,0,0.15);
        border-radius: 8px;
        padding: 0.45rem 0.9rem;
        font-size: 1rem;
        margin-top: 0.25rem;
        transition: border-color .15s ease, background-color .15s ease;
    }
    .cantidad-input:hover {
        background-color: rgba(47, 111, 237, 0.06);
    }
    .cantidad-input:focus {
        outline: none;
        border-color: #2f6fed;
        box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
    }
    .cantidad-input:disabled {
        opacity: 0.55;
        filter: grayscale(60%);
        cursor: not-allowed;
    }

    /*card con circulo de avance*/

     .avance-card {
        background: #fff;
        border-radius: 16px;
        padding: 28px 24px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        height: 100%;
    }
    .avance-titulo {
        text-align: center;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.06em;
        color: var(--unete-muted, #8a8a8a);
        font-weight: 600;
        margin-bottom: 18px;
    }
    .avance-donut {
        width: 170px;
        height: 170px;
        border-radius: 50%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        background: conic-gradient(#F15A24 0% calc(var(--pct) * 1%), #f6ddce calc(var(--pct) * 1%) 100%);
    }
    .avance-donut-inner {
        width: 124px;
        height: 124px;
        border-radius: 50%;
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .avance-pct {
        font-size: 1.9rem;
        font-weight: 700;
        line-height: 1.1;
        color: #1a1a1a;
    }
    .avance-pct-label {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--unete-muted, #8a8a8a);
        margin-top: 2px;
    }
    .avance-legend {
        margin-top: 22px;
        width: 100%;
        border-collapse: collapse;
    }
    .avance-legend th {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: var(--unete-muted, #8a8a8a);
        font-weight: 600;
        text-align: center;
        padding-bottom: 6px;
    }
    .avance-legend th:first-child { text-align: left; }
    .avance-legend td {
        padding: 7px 0;
        font-size: 0.85rem;
        border-top: 1px solid #f0e9e2;
        text-align: center;
        vertical-align: middle;
    }
    .avance-legend td:first-child { text-align: left; }
    .avance-legend tr:first-child td { border-top: none; }
    .avance-legend .dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin-right: 8px;
        flex-shrink: 0;
    }
    .avance-legend .icono-estado {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        font-size: 0.8rem;
        line-height: 1;
    }
    .avance-legend .icono-listo {
        background: #e4f7ec;
        color: #1a8f4c;
    }
    .avance-legend .icono-pendiente {
        background: #f0eef2;
        color: #b5b5b5;
    }
    .badge-proximamente {
        display: inline-block;
        background: #f0eef2;
        color: #8a8a8a;
        font-weight: 600;
        font-size: 0.75rem;
        padding: 6px 14px;
        border-radius: 20px;
    }
    .tabla-avance-cuestionarios th {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: var(--unete-muted, #6c7a91);
        border-top: none;
        border-bottom: 1px solid #e9ecef;
        font-weight: 600;
    }
    .tabla-avance-cuestionarios td {
        border-top: 1px solid #f0f1f3;
        vertical-align: middle;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .tabla-avance-cuestionarios .celda-avance {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
    }
    .tabla-avance-cuestionarios .celda-progress {
        width: 90px;
        margin-top: 4px;
    }
    .tabla-avance-cuestionarios tr.fila-proximamente {
        opacity: 0.6;
    }


.contestado-check {
    display: inline-block;
    margin-left: 10px;
    color: #02A724;
    font-weight: 600;
    font-size: 0.85rem;
}
.txt_docente_ctxt{
  color: #f15a24 !important;
}
.txt_docente_hd{
  color: #12958a !important;
}
.txt_docente_sxxi{
  color: #6c4a9c !important;
}
.txt_docente_hi{
  color: #3b4a63 !important;
}


/*Perfil facilitador*/
.kpi-card {
        background: #fff;
        border-radius: 16px;
        padding: 20px 22px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        height: 100%;
    }
    .kpi-label {
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 0.05em;
        color: var(--unete-muted, #8a8a8a);
        font-weight: 600;
        margin-bottom: 10px;
    }
    .kpi-value {
        font-size: 1.9rem;
        font-weight: 700;
        line-height: 1.1;
        color: #1a1a1a;
    }
    .kpi-value.kpi-value-accent { color: #F15A24; }
    .kpi-sub {
        font-size: 0.78rem;
        color: var(--unete-muted, #8a8a8a);
        margin-top: 6px;
        line-height: 1.3;
    }
    .tabla-resumen-escuelas th {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: var(--unete-muted, #6c7a91);
        border-top: none;
        border-bottom: 1px solid #e9ecef;
        font-weight: 600;
    }
    .tabla-resumen-escuelas td {
        border-top: 1px solid #f0f1f3;
        vertical-align: middle;
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
    }
    .celda-progress-escuela {
        width: 120px;
        margin-top: 4px;
    }
    .link-escuela {
        font-weight: 600;
        color: #2f6fed;
        text-decoration: underline;
    }
    .link-escuela:hover { color: #F15A24; }
    .diag-grupo-badge {
        display: inline-block;
        background: #f0eef2;
        color: #6c6c6c;
        font-weight: 600;
        font-size: 0.72rem;
        padding: 3px 10px;
        border-radius: 20px;
        margin-left: 8px;
    }
    .diag-grupo-label {
        font-weight: 700;
        font-size: 0.85rem;
        color: #1a1a1a;
    }
    .diag-fila {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 10px 0;
        border-top: 1px solid #f0f1f3;
        flex-wrap: wrap;
    }
    .diag-fila:first-of-type { border-top: none; }
    .diag-cuestionario-nombre {
        font-weight: 600;
        font-size: 0.85rem;
        width: 170px;
        flex-shrink: 0;
    }
    .diag-momento {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 220px;
    }
    .diag-momento-label {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: var(--unete-muted, #8a8a8a);
        font-weight: 700;
        width: 34px;
        flex-shrink: 0;
    }
    .diag-momento-barra {
        flex: 1;
        height: 8px;
        border-radius: 6px;
        background: #f0eef2;
        overflow: hidden;
    }
    .diag-momento-barra-fill {
        height: 100%;
        border-radius: 6px;
    }
    .diag-momento-fraccion {
        font-size: 0.78rem;
        font-weight: 600;
        white-space: nowrap;
        width: 46px;
        flex-shrink: 0;
    }
    .diag-momento-faltan {
        font-size: 0.72rem;
        color: var(--unete-muted, #8a8a8a);
        white-space: nowrap;
    }
    .diag-grupo-wrapper + .diag-grupo-wrapper { margin-top: 22px; }

    /* ===================== BLOQUE 4: FOLIOS Y ESTATUS ===================== */
    .buscador-folios {
        max-width: 360px;
        position: relative;
    }
    .buscador-folios input {
        border-radius: 8px;
        border: 1px solid #e3e1e8;
        font-size: 0.85rem;
        padding: 8px 34px 8px 34px;
        width: 100%;
        background: #faf9fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238a8a8a' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E") no-repeat 10px center;
        background-size: 15px 15px;
    }
    .buscador-folios-limpiar {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        background: transparent;
        color: var(--unete-muted, #8a8a8a);
        font-size: 1rem;
        line-height: 1;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        cursor: pointer;
        display: none;
    }
    .buscador-folios-limpiar:hover {
        background: #f0eef2;
        color: #333;
    }
    .buscador-folios-limpiar.visible {
        display: block;
    }
    .leyenda-bloque4 {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        font-size: 0.78rem;
        color: var(--unete-muted, #8a8a8a);
    }
    .leyenda-bloque4 .icono-check { color: #1a8f4c; font-weight: 700; }
    .leyenda-bloque4 .icono-cross { color: #d64545; font-weight: 700; }
    .tabla-folios-bloque4 {
        font-size: 0.82rem;
    }
    .tabla-folios-bloque4 thead tr.fila-grupos th {
        border-bottom: none;
        text-align: center;
        font-size: 0.72rem;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: var(--unete-muted, #8a8a8a);
        background: #faf9fb;
    }
    .tabla-folios-bloque4 thead tr.fila-subcolumnas th {
        text-align: center;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--unete-muted, #8a8a8a);
        padding-top: 2px;
        padding-bottom: 8px;
    }
    .tabla-folios-bloque4 td {
        vertical-align: middle;
    }
    .celda-cuestionario {
        text-align: center;
        white-space: nowrap;
    }
    .celda-cuestionario .icono-check { color: #1a8f4c; font-weight: 700; }
    .celda-cuestionario .icono-cross { color: #d64545; font-weight: 700; }
    .celda-cuestionario .icono-na { color: #cfcbd6; }
    .nombre-folio-fila { font-weight: 600; line-height: 1.15; }
    .folio-folio-fila { font-size: 0.72rem; color: var(--unete-muted, #8a8a8a); }
    .badge-perfil {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 0.72rem;
        font-weight: 600;
        color: #fff;
        white-space: nowrap;
    }
    .badge-consentimiento {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }
    .badge-consentimiento-otorgado { background: #e5f7ee; color: #1a8f4c; }
    .badge-consentimiento-pendiente { background: #fdeaea; color: #d64545; }
    .badge-consentimiento-na { background: #f0eef2; color: var(--unete-muted, #8a8a8a); }
    .fila-folio-oculta-inicial { display: none; }

    /*Cierra perfil facilitador*/
