:root{--portal-purple:#6554c0;--portal-navy:#17243a}*{box-sizing:border-box}body{background:#f4f6fb;color:#243348;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}.portal-header{min-height:84px;background:white;display:flex;align-items:center;gap:36px;padding:18px max(24px,calc((100vw - 1280px)/2));border-bottom:1px solid #e2e7ef}.portal-brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--portal-navy);font-size:21px;font-weight:750}.portal-brand img{width:40px;height:40px;object-fit:contain}.portal-brand small{display:block;color:#7b8496;font-size:11px;letter-spacing:.13em;text-transform:uppercase}.portal-header nav{display:flex;align-items:center;flex-wrap:wrap;column-gap:18px;row-gap:0;min-width:0}.portal-header nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 2px;white-space:nowrap;color:#556278;text-decoration:none;font-weight:600}.portal-header nav a:hover{color:var(--portal-purple)}.portal-user{margin-left:auto;display:flex;align-items:center;gap:14px;font-size:12px;color:#65748c}.portal-main{max-width:1280px;margin:auto;padding:38px 24px 60px;min-height:calc(100vh - 160px)}h1{font-size:30px;letter-spacing:-.035em;margin:6px 0 8px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.15em;color:#7786a0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.page-heading p{margin-bottom:0}.btn{border-radius:9px}.btn-primary{background:var(--portal-purple);border-color:var(--portal-purple)}.btn-primary:hover{background:#5444aa;border-color:#5444aa}.card{border:1px solid #e3e8f2;border-radius:16px;box-shadow:0 4px 20px #16233a04;overflow:hidden}.card-header{padding:20px 24px;background:white}.card-body{padding:24px}.card-title{font-size:16px;font-weight:700}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:26px}.summary-card{padding:24px 26px;min-height:132px;border-radius:16px;color:white;display:flex;flex-direction:column;gap:14px;box-shadow:0 8px 22px #2b357813}.summary-card span{font-size:12px;font-weight:600;opacity:.9}.summary-card strong{font-size:36px;line-height:1}.summary-card.primary{background:linear-gradient(125deg,#7360d1,#5267b9)}.summary-card.secondary{background:linear-gradient(125deg,#257996,#2d6595)}.summary-card.tertiary{background:linear-gradient(125deg,#426683,#2d415f)}.table td,.table th{padding:18px 24px}.table thead th{background:#f9fafe;font-size:10px;letter-spacing:.06em;color:#74849b}.action-row{display:flex;gap:8px;flex-wrap:wrap}.status{display:inline-block;padding:5px 9px;border-radius:6px;font-size:11px;font-weight:650;white-space:nowrap}.status-activo{background:#e5f4eb;color:#24814c}.status-preparacion{background:#eeeafd;color:#6e4fc2}.status-suspendido{background:#fff0dc;color:#9f671c}.filter-row{max-width:420px}.scope-note,.portal-footer{font-size:11px;color:#8190a6}.scope-note{margin-top:16px}.portal-footer{padding:20px 24px;text-align:center;border-top:1px solid #e3e8ef}.auth-card{max-width:440px;margin:38px auto}.auth-card .card-body{padding:34px}.auth-card h1{font-size:27px}.auth-card p{line-height:1.65}.form-control,.form-select{border-radius:8px;border-color:#dce3ee;min-height:42px}.form-control:focus,.form-select:focus{border-color:#8b78d9;box-shadow:0 0 0 3px #7968ce1a}.fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:24px}.detail-grid>aside{min-width:0}.empty-state{padding:24px}.alert{border-radius:9px}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #bdabff;outline-offset:3px}@media(max-width:800px){.portal-header{padding:16px 20px;gap:16px;flex-wrap:wrap}.portal-header nav{order:3;width:100%;font-size:12px}.portal-user{gap:8px}.portal-main{padding:26px 16px 40px}.page-heading{align-items:flex-start;flex-direction:column;gap:12px}h1{font-size:26px}.summary-grid{gap:6px;grid-template-columns:minmax(0,1fr);margin-bottom:16px}.summary-card{min-height:48px;padding:8px 14px;flex-direction:row;align-items:center;justify-content:space-between}.summary-card strong{font-size:26px;flex:none}.summary-card span{min-width:0}.fields-grid,.detail-grid{grid-template-columns:1fr}.auth-card{margin:20px auto}.auth-card .card-body{padding:25px}.table td,.table th{padding:14px 18px}.portal-brand{font-size:18px}.portal-header nav{column-gap:12px;row-gap:0}.portal-user .btn{min-height:44px}.portal-header:has(nav){row-gap:4px}}
.client-logo{width:58px;height:34px;object-fit:contain;vertical-align:middle;margin-right:14px}
.portal-header nav a[aria-current="page"],.portal-header nav a[aria-current="location"]{color:#44349b;box-shadow:inset 0 -2px currentColor}
.directory-summary{margin-top:1rem}.directory-summary>summary{width:fit-content;min-height:44px;padding:.65rem .2rem;font-weight:600;cursor:pointer}.directory-summary .summary-grid{margin:.4rem 0}
.portal-account-help{margin-top:1rem}.portal-account-help a{font-weight:600}

.portal-icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.portal-icon {
    flex: none; vertical-align: middle; fill: none; stroke: currentColor;
    stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.btn > .portal-icon { margin-inline-end: .4rem; }
summary.portal-disclosure {
    display: inline-flex; align-items: center; gap: .5rem;
    min-height: 44px; list-style: none; cursor: pointer;
}
summary.portal-disclosure::-webkit-details-marker { display: none; }
details:not([open]) > summary.portal-disclosure .portal-icon { transform: rotate(-90deg); }
summary:focus-visible, .table-responsive:focus-visible { outline: 2px solid var(--portal-purple); outline-offset: -2px; }
.portal-cell-label { display: none; }
@media screen and (max-width: 640px) {
    .fields-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .portal-directory { display: block; width: 100%; margin: 0; }
    .portal-directory thead {
        position: absolute; width: 1px; height: 1px; clip-path: inset(50%);
        overflow: hidden; white-space: nowrap;
    }
    .portal-directory tbody { display: block; }
    .portal-directory tbody tr { display: grid; gap: .5rem; padding: 1rem; border-top: 1px solid #e3e8f2; }
    .portal-directory tbody tr[hidden] { display: none; }
    .portal-directory.table td { display: block; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
    .portal-directory.table td:first-child { margin-bottom: .2rem; }
    .portal-directory.table td.directory-field {
        display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
        align-items: start; column-gap: .5rem;
    }
    .portal-directory .portal-cell-label { display: block; color: #54657b; font-size: .82rem; font-weight: 600; }
    .portal-directory .portal-cell-label::before { content: attr(data-label); }
    .portal-directory .status { justify-self: start; }
    .portal-directory.table td:last-child { margin-top: .35rem; }
    .portal-directory .btn { min-height: 44px; max-width: 100%; white-space: normal; }
}
