@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #06152f;
    --navy-deep: #030a18;
    --navy-soft: #09244a;
    --teal: #13bfb2;
    --teal-dark: #079c96;
    --lime: #c8e84e;
    --white: #ffffff;
    --off-white: #f7fafc;
    --soft-blue: #eef9fb;
    --text-dark: #07162f;
    --text-muted: #657187;
    --border: #dbe4ef;
    --border-focus: #13bfb2;
    --danger: #d94b4b;
    --shadow-card: 0 34px 90px rgba(0, 0, 0, 0.24);
    --shadow-soft: 0 18px 45px rgba(6, 21, 47, 0.16);
    --radius-xl: 36px;
    --radius-lg: 22px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(19, 191, 178, 0.20), transparent 28%),
        radial-gradient(circle at bottom left, rgba(200, 232, 78, 0.10), transparent 24%),
        linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 48%, #041021 100%);
    color: var(--white);
}

.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    overflow: hidden;
}

/* PANEL IZQUIERDO */

.welcome-panel {
    position: relative;
    min-height: 100vh;
    padding: 56px 64px 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(3, 10, 24, 0.90) 0%, rgba(6, 21, 47, 0.78) 50%, rgba(3, 10, 24, 0.98) 100%),
        url('../assets/bg-nexo.jpg');
    background-size: cover;
    background-position: center bottom;
}

.welcome-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(19, 191, 178, 0.18), transparent 26%),
        radial-gradient(circle at 84% 58%, rgba(200, 232, 78, 0.12), transparent 30%);
    pointer-events: none;
}

.welcome-panel::after {
    content: "";
    position: absolute;
    width: 760px;
    height: 760px;
    right: -390px;
    top: 110px;
    border-radius: 50%;
    border: 1px solid rgba(19, 191, 178, 0.20);
    box-shadow:
        0 0 0 34px rgba(19, 191, 178, 0.035),
        0 0 0 70px rgba(19, 191, 178, 0.030),
        0 0 0 108px rgba(19, 191, 178, 0.025),
        0 0 0 150px rgba(19, 191, 178, 0.020);
    pointer-events: none;
}

.brand,
.welcome-content,
.quote-box,
.panel-footer {
    position: relative;
    z-index: 2;
}

.brand {
    margin-bottom: 48px;
}

.logo,
.footer-logo {
    font-size: 54px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--white);
}

.logo span,
.footer-logo span {
    color: var(--teal);
}

.brand-subtitle {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.welcome-content h1 {
    max-width: 560px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.04;
    font-weight: 500;
    letter-spacing: -2.5px;
}

.welcome-content h1 span {
    display: block;
    margin-top: 10px;
    font-weight: 800;
    color: var(--teal);
}

.welcome-content h1::after {
    content: "";
    display: block;
    width: 92px;
    height: 5px;
    margin: 34px 0 28px;
    border-radius: 99px;
    background: var(--lime);
}

.intro-text {
    max-width: 540px;
    font-size: 20px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.benefits {
    margin-top: 48px;
    display: grid;
    gap: 26px;
}

.benefit-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 22px;
    align-items: center;
}

.benefit-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border: 1.5px solid rgba(19, 191, 178, 0.85);
    border-radius: 50%;
    background: rgba(19, 191, 178, 0.08);
    box-shadow: inset 0 0 28px rgba(19, 191, 178, 0.10);
}

.benefit-icon span {
    font-size: 28px;
    line-height: 1;
}

.benefit-item h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
}

.benefit-item p {
    max-width: 390px;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.76);
}

.quote-box {
    max-width: 520px;
    margin-top: 64px;
}

.quote-mark {
    display: block;
    height: 36px;
    font-size: 82px;
    line-height: 0.8;
    font-weight: 800;
    color: var(--lime);
}

.quote-box p {
    font-size: 24px;
    line-height: 1.35;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.quote-box p::first-letter {
    color: var(--white);
}

.panel-footer {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 44px;
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-logo {
    font-size: 32px;
}

.panel-footer p {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.panel-footer p::first-letter {
    color: var(--teal);
}

/* PANEL DERECHO */

.form-panel {
    position: relative;
    min-height: 100vh;
    padding: 60px 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(19, 191, 178, 0.18), transparent 24%),
        radial-gradient(circle at 18% 84%, rgba(200, 232, 78, 0.11), transparent 24%);
    pointer-events: none;
}

.form-card {
    position: relative;
    z-index: 2;
    width: min(100%, 650px);
    padding: 10px 30px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
    color: var(--text-dark);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.form-header {
    margin-bottom: 34px;
    text-align: center;
}

.user-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, rgba(200, 232, 78, 0.25), transparent 34%),
        linear-gradient(135deg, rgba(19, 191, 178, 0.18), rgba(19, 191, 178, 0.06));
    color: var(--navy);
}

.user-icon span {
    font-size: 42px;
    line-height: 1;
}

.form-header h2 {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text-dark);
}

.form-header h2::after {
    content: "";
    display: block;
    width: 68px;
    height: 4px;
    margin: 20px auto 18px;
    border-radius: 99px;
    background: var(--teal);
}

.form-header p {
    max-width: 380px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
}

.registration-form {
    display: grid;
    gap: 22px;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 5px rgba(19, 191, 178, 0.12);
    transform: translateY(-1px);
}

.input-icon {
    width: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--text-muted);
    opacity: 0.86;
}

.input-wrapper input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.input-wrapper input::placeholder {
    color: #98a4b5;
}

.field-error {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--danger);
}

.time-alert {
    margin-top: 8px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 20px;
    align-items: center;
    border: 1.5px solid rgba(19, 191, 178, 0.30);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(19, 191, 178, 0.10), rgba(247, 250, 252, 0.96));
}

.time-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0870b7, var(--teal));
    color: var(--white);
    box-shadow: 0 14px 30px rgba(19, 191, 178, 0.24);
}

.time-icon span {
    font-size: 30px;
    line-height: 1;
}

.time-alert h3 {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.time-alert p {
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
    color: #183154;
}

.acceptance-group {
    display: grid;
    gap: 8px;
    margin-top: 2px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 16px;
    line-height: 1.55;
    color: #33435f;
    cursor: pointer;
}

.checkbox-label input {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    flex: 0 0 22px;
    accent-color: var(--teal);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--teal-dark);
    font-weight: 700;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.primary-button {
    width: 100%;
    min-height: 66px;
    margin-top: 8px;
    border: 0;
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: var(--white);
    font-family: inherit;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.2px;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(7, 156, 150, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-button span {
    display: inline-block;
    margin-left: 18px;
    font-size: 28px;
    line-height: 0;
    vertical-align: -2px;
    transition: transform 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 24px 42px rgba(7, 156, 150, 0.40);
}

.primary-button:hover span {
    transform: translateX(5px);
}

.primary-button:active {
    transform: translateY(0);
}

.security-note {
    position: absolute;
    right: 54px;
    bottom: 34px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 240px;
    color: rgba(255, 255, 255, 0.88);
}

.security-note span {
    font-size: 30px;
}

.security-note p {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .welcome-panel {
        padding: 44px 42px 34px;
    }

    .form-panel {
        padding: 44px 42px;
    }

    .form-card {
        padding: 46px 44px;
    }

    .welcome-content h1 {
        font-size: 52px;
    }
}

@media (max-width: 980px) {
    .page {
        grid-template-columns: 1fr;
    }

    .welcome-panel {
        min-height: auto;
        padding: 40px 28px 46px;
    }

    .brand {
        margin-bottom: 42px;
    }

    .welcome-content h1 {
        max-width: 720px;
        font-size: 46px;
    }

    .intro-text {
        max-width: 720px;
        font-size: 18px;
    }

    .benefits {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .benefit-item {
        grid-template-columns: 58px 1fr;
        gap: 16px;
    }

    .benefit-icon {
        width: 56px;
        height: 56px;
    }

    .benefit-icon span {
        font-size: 23px;
    }

    .quote-box {
        margin-top: 42px;
    }

    .panel-footer {
        margin-top: 34px;
    }

    .form-panel {
        min-height: auto;
        padding: 42px 24px 72px;
    }

    .form-card {
        width: min(100%, 720px);
    }

    .security-note {
        position: static;
        justify-content: center;
        margin-top: 28px;
        max-width: none;
    }
}

@media (max-width: 680px) {
    body {
        background: var(--navy);
    }

    .welcome-panel {
        padding: 34px 22px 38px;
    }

    .logo {
        font-size: 42px;
    }

    .brand-subtitle {
        font-size: 12px;
        line-height: 1.6;
    }

    .welcome-content h1 {
        font-size: 40px;
        letter-spacing: -1.8px;
    }

    .welcome-content h1::after {
        margin: 26px 0 22px;
    }

    .intro-text {
        font-size: 17px;
    }

    .benefits {
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .benefit-item p {
        max-width: none;
    }

    .quote-box p {
        font-size: 21px;
    }

    .panel-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .form-panel {
        padding: 28px 16px 40px;
    }

    .form-card {
        padding: 34px 22px;
        border-radius: 28px;
    }

    .user-icon {
        width: 78px;
        height: 78px;
        margin-bottom: 20px;
    }

    .user-icon span {
        font-size: 34px;
    }

    .form-header h2 {
        font-size: 28px;
    }

    .form-header p {
        font-size: 16px;
    }

    .input-wrapper {
        min-height: 56px;
    }

    .input-icon {
        width: 48px;
        flex-basis: 48px;
        font-size: 18px;
    }

    .input-wrapper input {
        font-size: 15px;
    }

    .time-alert {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
    }

    .time-icon {
        width: 56px;
        height: 56px;
    }

    .checkbox-label {
        font-size: 15px;
    }

    .primary-button {
        min-height: 62px;
        font-size: 17px;
    }
}

@media (max-width: 420px) {
    .welcome-content h1 {
        font-size: 34px;
    }

    .intro-text {
        font-size: 16px;
    }

    .benefit-item {
        grid-template-columns: 52px 1fr;
    }

    .benefit-icon {
        width: 50px;
        height: 50px;
    }

    .benefit-item h3 {
        font-size: 16px;
    }

    .benefit-item p {
        font-size: 14px;
    }

    .quote-box {
        display: none;
    }

    .form-card {
        padding: 30px 18px;
    }

    .form-header h2 {
        font-size: 25px;
    }
}

.logo-link,
.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    width: 190px;
    height: auto;
    display: block;
}

.footer-brand-logo {
    width: 128px;
    height: auto;
    display: block;
}


.brand-logo {
    width: 150px;
}

.footer-brand-logo {
    width: 110px;
}




/* PÁGINA DE INSTRUCCIONES */

.instructions-card {
    max-height: 95%;
    overflow-y: auto;
}

.instructions-card::-webkit-scrollbar {
    width: 8px;
}

.instructions-card::-webkit-scrollbar-track {
    background: rgba(219, 228, 239, 0.45);
    border-radius: 99px;
}

.instructions-card::-webkit-scrollbar-thumb {
    background: rgba(19, 191, 178, 0.55);
    border-radius: 99px;
}

.instructions-content {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.instruction-block {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 15px;
    border: 1.5px solid rgba(219, 228, 239, 0.95);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.instruction-block:hover {
    transform: translateY(-2px);
    border-color: rgba(19, 191, 178, 0.40);
    box-shadow: 0 16px 36px rgba(6, 21, 47, 0.08);
}

.featured-instruction {
    background:
        linear-gradient(135deg, rgba(19, 191, 178, 0.12), rgba(247, 250, 252, 0.96));
    border-color: rgba(19, 191, 178, 0.30);
}

.instruction-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-soft), var(--teal));
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.instruction-block h3 {
    margin-bottom: 7px;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
}

.instruction-block p {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-muted);
}

.start-alert {
    margin-top: 15px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 20px;
    align-items: center;
    border: 1.5px solid rgba(200, 232, 78, 0.40);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(200, 232, 78, 0.16), rgba(19, 191, 178, 0.08));
}

.start-alert h3 {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.start-alert p {
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
    color: #183154;
}

.instructions-actions {
    margin-top: 28px;
}

@media (max-width: 680px) {
    .instructions-card {
        max-height: none;
        overflow-y: visible;
    }

    .instruction-block {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .start-alert {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
    }
}




/* =========================================================
   PÁGINA DE PRÁCTICA - NEXO
========================================================= */

.practice-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(19, 191, 178, 0.20), transparent 28%),
        radial-gradient(circle at bottom left, rgba(200, 232, 78, 0.13), transparent 25%),
        linear-gradient(135deg, #030a18 0%, #06152f 50%, #041021 100%);
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

.practice-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 330px 1fr;
}

/* SIDEBAR */

.practice-sidebar {
    position: relative;
    padding: 46px 38px 36px;
    background:
        linear-gradient(180deg, rgba(3, 10, 24, 0.94), rgba(6, 21, 47, 0.96));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.practice-sidebar::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    left: -380px;
    bottom: -260px;
    border-radius: 50%;
    border: 1px solid rgba(19, 191, 178, 0.28);
    box-shadow:
        0 0 0 34px rgba(19, 191, 178, 0.04),
        0 0 0 72px rgba(19, 191, 178, 0.035),
        0 0 0 112px rgba(200, 232, 78, 0.03);
}

.practice-sidebar > * {
    position: relative;
    z-index: 2;
}

.practice-brand {
    margin-bottom: 82px;
}

.practice-logo {
    width: 190px;
    height: auto;
    display: block;
}

.practice-text-logo {
    font-size: 52px;
    margin-bottom: 10px;
}

.practice-brand p {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.84);
}

.side-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(19, 191, 178, 0.35), rgba(19, 191, 178, 0.10));
    font-size: 32px;
    box-shadow: 0 18px 36px rgba(19, 191, 178, 0.20);
}

.side-kicker {
    margin-bottom: 14px;
    color: #13bfb2;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.practice-side-content h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1px;
    color: #ffffff;
}

.side-description {
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.76);
}

.side-alert {
    margin-top: 48px;
    padding: 26px 24px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(19, 191, 178, 0.16), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(19, 191, 178, 0.18);
}

.side-alert-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #c8e84e;
    color: #06152f;
    font-size: 20px;
    font-weight: 900;
}

.side-alert h3 {
    margin: 0 0 10px;
    color: #c8e84e;
    font-size: 18px;
    font-weight: 900;
}

.side-alert p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    line-height: 1.55;
}

.side-security {
    position: absolute;
    left: 38px;
    right: 38px;
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.side-security span {
    font-size: 34px;
}

.side-security p {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

/* MAIN */

.practice-main {
    min-width: 0;
    padding: 42px 54px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.practice-card {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 48px 64px 54px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(19, 191, 178, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(200, 232, 78, 0.12), transparent 30%),
        #ffffff;
    color: #07162f;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.practice-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 46px;
}

.practice-label {
    margin: 0;
    color: #079c96;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.practice-counter {
    display: flex;
    align-items: baseline;
    gap: 18px;
}

.practice-counter strong {
    color: #079c96;
    font-size: 28px;
    font-weight: 900;
}

.practice-counter span {
    color: #697386;
    font-size: 17px;
    font-weight: 600;
}

/* STEP PROGRESS */

.step-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    width: min(100%, 880px);
    margin: 0 auto 56px;
}

.step-progress::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #dde5ef;
}

.step-item {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
}

.step-item span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #dde5ef;
    color: #697386;
    font-size: 20px;
    font-weight: 900;
}

.step-item.active span {
    border: 0;
    background: linear-gradient(135deg, #13bfb2, #079c96);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(19, 191, 178, 0.28);
}

.step-item.completed span {
    border-color: #13bfb2;
    color: #079c96;
}

/* QUESTION */

.question-area {
    text-align: center;
}

.question-status {
    margin: 0 0 18px;
    color: #697386;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-area h2 {
    max-width: 980px;
    min-height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07162f;
    font-size: clamp(34px, 3.5vw, 50px);
    line-height: 1.17;
    font-weight: 900;
    letter-spacing: -1.6px;
}

/* RANGE */

.range-section {
    position: relative;
    width: min(100%, 920px);
    margin: 52px auto 0;
    padding-top: 44px;
}

.range-value-bubble {
    width: 70px;
    height: 56px;
    margin: 0 auto 26px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(7, 156, 150, 0.28);
    border-radius: 12px;
    color: #079c96;
    background: #ffffff;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(6, 21, 47, 0.10);
}

.nexo-range {
    --range-progress: 50%;
    width: 100%;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

.nexo-range::-webkit-slider-runnable-track {
    height: 14px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, #13bfb2 0%, #9fdc42 var(--range-progress), #dbe4ef var(--range-progress), #dbe4ef 100%);
}

.nexo-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 58px;
    height: 58px;
    margin-top: -22px;
    border-radius: 50%;
    border: 9px solid #13bfb2;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(19, 191, 178, 0.35);
}

.nexo-range::-moz-range-track {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #13bfb2, #c8e84e);
}

.nexo-range::-moz-range-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 9px solid #13bfb2;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(19, 191, 178, 0.35);
}

.range-numbers {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    color: #079c96;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.range-labels {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    color: #697386;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    text-align: center;
}

.selection-message {
    width: fit-content;
    max-width: 100%;
    margin: 44px auto 0;
    padding: 18px 26px;
    border: 1.5px solid rgba(19, 191, 178, 0.26);
    border-radius: 16px;
    background: rgba(19, 191, 178, 0.08);
    color: #067f79;
    font-size: 17px;
    font-weight: 900;
    text-align: center;
}

.practice-actions {
    width: min(100%, 680px);
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

.practice-primary-button,
.practice-secondary-button {
    min-height: 68px;
    border: 0;
    border-radius: 16px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.practice-primary-button {
    background: linear-gradient(135deg, #13bfb2, #079c96);
    color: #ffffff;
    box-shadow: 0 20px 38px rgba(7, 156, 150, 0.30);
}

.practice-secondary-button {
    background: #f2f5f8;
    color: #07162f;
}

.practice-primary-button:hover,
.practice-secondary-button:hover {
    transform: translateY(-2px);
}

.practice-primary-button:disabled,
.practice-secondary-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.practice-bottom-note {
    width: min(100%, 760px);
    margin: 28px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.55;
    text-align: center;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .practice-layout {
        grid-template-columns: 1fr;
    }

    .practice-sidebar {
        min-height: auto;
        padding: 30px 28px;
    }

    .practice-brand {
        margin-bottom: 30px;
    }

    .practice-side-content {
        display: none;
    }

    .side-security {
        display: none;
    }

    .practice-main {
        padding: 28px 20px 42px;
    }
}

@media (max-width: 760px) {
    .practice-card {
        padding: 32px 20px 34px;
        border-radius: 24px;
    }

    .practice-card-header {
        flex-direction: column;
        margin-bottom: 34px;
    }

    .practice-counter {
        flex-direction: column;
        gap: 4px;
    }

    .step-progress {
        margin-bottom: 38px;
    }

    .step-item span {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .step-progress::before {
        top: 20px;
    }

    .question-area h2 {
        min-height: 140px;
        font-size: 30px;
    }

    .range-section {
        margin-top: 34px;
    }

    .range-labels {
        font-size: 12px;
        gap: 6px;
    }

    .practice-actions {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}




/* EVALUACIÓN REAL */

.real-progress-bar {
    width: 100%;
    height: 10px;
    margin: -18px 0 34px;
    border-radius: 999px;
    background: #dbe4ef;
    overflow: hidden;
}

.real-progress-bar div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #13bfb2, #c8e84e);
}

.timer-box {
    width: fit-content;
    margin: 0 auto 34px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 999px;
    background: rgba(19, 191, 178, 0.10);
    border: 1px solid rgba(19, 191, 178, 0.24);
    color: #07162f;
}

.timer-box span {
    font-size: 14px;
    font-weight: 800;
    color: #697386;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.timer-box strong {
    min-width: 38px;
    color: #079c96;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.timer-box strong.timer-warning {
    color: #d94b4b;
}

.real-actions {
    width: min(100%, 360px);
    margin: 48px auto 0;
}

.real-actions .practice-primary-button {
    width: 100%;
}




/* =========================================================
   PÁGINA DE GRACIAS - NEXO
========================================================= */

.gracias-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(19, 191, 178, 0.25), transparent 30%),
        radial-gradient(circle at bottom left, rgba(200, 232, 78, 0.14), transparent 28%),
        linear-gradient(135deg, #030a18 0%, #06152f 52%, #041021 100%);
    color: #07162f;
}

.gracias-page {
    min-height: 100vh;
    padding: 42px 24px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.gracias-page::before {
    content: "";
    position: absolute;
    width: 760px;
    height: 760px;
    left: -380px;
    bottom: -360px;
    border-radius: 50%;
    border: 1px solid rgba(19, 191, 178, 0.24);
    box-shadow:
        0 0 0 36px rgba(19, 191, 178, 0.035),
        0 0 0 78px rgba(19, 191, 178, 0.030),
        0 0 0 122px rgba(200, 232, 78, 0.020);
}

.gracias-page::after {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -340px;
    top: -280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(19, 191, 178, 0.24), transparent 62%);
}

.gracias-card {
    position: relative;
    z-index: 2;
    width: min(100%, 860px);
    padding: 58px 60px 46px;
    border-radius: 36px;
    background:
        radial-gradient(circle at top left, rgba(19, 191, 178, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(200, 232, 78, 0.12), transparent 30%),
        #ffffff;
    text-align: center;
    box-shadow: 0 36px 95px rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.gracias-logo {
    margin: 0 auto 34px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gracias-logo img {
    width: 220px;
    max-width: 60%;
    height: auto;
    display: block;
    object-fit: contain;
}

.gracias-logo-text {
    font-size: 58px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 4px;
    color: #06152f;
}

.gracias-logo-text span {
    color: #13bfb2;
}

.gracias-check {
    width: 96px;
    height: 96px;
    margin: 0 auto 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #13bfb2, #8bd84f);
    color: #ffffff;
    font-size: 54px;
    font-weight: 900;
    box-shadow: 0 24px 48px rgba(7, 156, 150, 0.34);
}

.gracias-kicker {
    margin: 0 0 16px;
    color: #079c96;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.2px;
}

.gracias-card h1 {
    margin: 0;
    color: #07162f;
    font-size: clamp(40px, 5vw, 62px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -2px;
}

.gracias-line {
    width: 84px;
    height: 4px;
    margin: 28px auto 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, #13bfb2, #c8e84e);
}

.gracias-message {
    max-width: 650px;
    margin: 0 auto;
    color: #5f6b7d;
    font-size: 19px;
    line-height: 1.65;
    font-weight: 500;
}

.gracias-alert {
    max-width: 600px;
    margin: 42px auto 0;
    padding: 26px 30px;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 22px;
    align-items: center;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(19, 191, 178, 0.10), rgba(247, 250, 252, 0.96));
    border: 1.5px solid rgba(19, 191, 178, 0.22);
    text-align: left;
}

.gracias-alert-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: #079c96;
    font-size: 32px;
    box-shadow: 0 16px 34px rgba(6, 21, 47, 0.10);
}

.gracias-alert h2 {
    margin: 0 0 8px;
    color: #079c96;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
}

.gracias-alert p {
    margin: 0;
    color: #183154;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 500;
}

.gracias-footer-note {
    max-width: 680px;
    margin: 38px auto 0;
    padding-top: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #dbe4ef;
    color: #697386;
}

.gracias-footer-note span {
    font-size: 24px;
}

.gracias-footer-note p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

@media (max-width: 760px) {
    .gracias-page {
        padding: 28px 16px;
    }

    .gracias-card {
        padding: 42px 24px 34px;
        border-radius: 28px;
    }

    .gracias-logo img {
        width: 170px;
        max-width: 70%;
    }

    .gracias-check {
        width: 82px;
        height: 82px;
        font-size: 44px;
    }

    .gracias-message {
        font-size: 16px;
    }

    .gracias-alert {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 22px;
    }

    .gracias-alert-icon {
        margin: 0 auto;
    }

    .gracias-footer-note {
        flex-direction: column;
        gap: 8px;
    }
}



/* =========================================================
   ADMIN LOGIN - NEXO
========================================================= */

.admin-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(19, 191, 178, 0.26), transparent 30%),
        radial-gradient(circle at bottom left, rgba(200, 232, 78, 0.13), transparent 28%),
        linear-gradient(135deg, #030a18 0%, #06152f 52%, #041021 100%);
    color: #07162f;
}

.admin-login-page {
    min-height: 100vh;
    padding: 42px 24px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.admin-login-page::before {
    content: "";
    position: absolute;
    width: 780px;
    height: 780px;
    left: -410px;
    bottom: -390px;
    border-radius: 50%;
    border: 1px solid rgba(19, 191, 178, 0.26);
    box-shadow:
        0 0 0 34px rgba(19, 191, 178, 0.035),
        0 0 0 76px rgba(19, 191, 178, 0.030),
        0 0 0 118px rgba(200, 232, 78, 0.020);
    pointer-events: none;
}

.admin-login-page::after {
    content: "";
    position: absolute;
    width: 640px;
    height: 640px;
    right: -320px;
    top: -300px;
    border-radius: 50%;
    border: 1px solid rgba(19, 191, 178, 0.22);
    box-shadow:
        0 0 0 32px rgba(19, 191, 178, 0.032),
        0 0 0 70px rgba(19, 191, 178, 0.026),
        0 0 0 108px rgba(19, 191, 178, 0.020);
    pointer-events: none;
}

.admin-login-card {
    position: relative;
    z-index: 2;
    width: min(100%, 720px);
    padding: 58px 62px 48px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(19, 191, 178, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(200, 232, 78, 0.10), transparent 30%),
        #ffffff;
    box-shadow: 0 36px 95px rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.admin-login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 42px;
}

.admin-login-logo img {
    width: 250px;
    max-width: 72%;
    height: auto;
    display: block;
    object-fit: contain;
}

.admin-login-logo-text {
    font-size: 58px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 4px;
    color: #06152f;
}

.admin-login-logo-text span {
    color: #13bfb2;
}

.admin-login-header {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 22px;
    align-items: center;
    margin-bottom: 34px;
}

.admin-login-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, rgba(200, 232, 78, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(19, 191, 178, 0.16), rgba(19, 191, 178, 0.06));
    color: #079c96;
    font-size: 34px;
}

.admin-login-header h1 {
    margin: 0;
    color: #07162f;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1px;
}

.admin-login-header p {
    margin: 10px 0 0;
    color: #657187;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 500;
}

.admin-login-error {
    margin-bottom: 24px;
    padding: 15px 18px;
    border-radius: 16px;
    background: rgba(217, 75, 75, 0.10);
    border: 1px solid rgba(217, 75, 75, 0.26);
    color: #b42323;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.admin-login-form {
    display: grid;
    gap: 22px;
}

.admin-form-group {
    display: grid;
    gap: 10px;
}

.admin-form-group label {
    color: #07162f;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.admin-input-wrapper {
    min-height: 62px;
    display: flex;
    align-items: center;
    border: 1.5px solid #dbe4ef;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.94);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-input-wrapper:focus-within {
    border-color: #13bfb2;
    box-shadow: 0 0 0 5px rgba(19, 191, 178, 0.12);
    transform: translateY(-1px);
}

.admin-input-wrapper span {
    width: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    color: #657187;
    font-size: 22px;
    opacity: 0.9;
}

.admin-input-wrapper input {
    width: 100%;
    min-height: 60px;
    padding: 0 18px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #07162f;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
}

.admin-input-wrapper input::placeholder {
    color: #98a4b5;
    font-weight: 500;
}

.admin-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 2px;
}

.admin-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #183154;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.admin-remember input {
    width: 19px;
    height: 19px;
    accent-color: #13bfb2;
    cursor: pointer;
}

.admin-forgot {
    color: #079c96;
    font-size: 15px;
    font-weight: 800;
}

.admin-login-button {
    width: 100%;
    min-height: 66px;
    margin-top: 8px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #13bfb2, #079c96);
    color: #ffffff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 20px 38px rgba(7, 156, 150, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.admin-login-button span {
    margin-right: 10px;
}

.admin-login-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 26px 46px rgba(7, 156, 150, 0.40);
}

.admin-login-button:active {
    transform: translateY(0);
}

.admin-login-divider {
    margin: 42px 0 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #98a4b5;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.admin-login-divider::before,
.admin-login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #dbe4ef;
}

.admin-login-note {
    max-width: 520px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: center;
    color: #657187;
}

.admin-login-note-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(19, 191, 178, 0.10);
    color: #079c96;
    font-size: 28px;
}

.admin-login-note p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
}

@media (max-width: 760px) {
    .admin-login-page {
        padding: 28px 16px;
    }

    .admin-login-card {
        padding: 42px 24px 34px;
        border-radius: 28px;
    }

    .admin-login-logo {
        margin-bottom: 34px;
    }

    .admin-login-logo img {
        width: 190px;
        max-width: 75%;
    }

    .admin-login-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .admin-login-icon {
        margin: 0 auto;
    }

    .admin-login-header h1 {
        font-size: 30px;
    }

    .admin-login-header p {
        font-size: 16px;
    }

    .admin-login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-login-note {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .admin-login-note-icon {
        margin: 0 auto;
    }
}


/* =========================================================
   ADMIN DASHBOARD - NEXO
========================================================= */

.admin-dashboard-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    background: #f5f8fb;
    color: #07162f;
}

.admin-dashboard-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px 1fr;
}

/* SIDEBAR */

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 34px 18px 22px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at bottom right, rgba(19, 191, 178, 0.18), transparent 34%),
        linear-gradient(180deg, #030a18 0%, #06152f 58%, #041021 100%);
    color: #ffffff;
    overflow: hidden;
}

.admin-sidebar::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -330px;
    bottom: -230px;
    border-radius: 50%;
    border: 1px solid rgba(19, 191, 178, 0.22);
    box-shadow:
        0 0 0 36px rgba(19, 191, 178, 0.035),
        0 0 0 78px rgba(19, 191, 178, 0.028);
    pointer-events: none;
}

.admin-sidebar > * {
    position: relative;
    z-index: 2;
}

.admin-sidebar-logo {
    padding: 6px 18px 36px;
}

.admin-sidebar-logo img {
    width: 205px;
    height: auto;
    display: block;
}

.admin-sidebar-logo-text {
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff;
}

.admin-sidebar-logo-text span {
    color: #13bfb2;
}

.admin-nav {
    display: grid;
    gap: 10px;
}

.admin-nav-item {
    min-height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 13px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-nav-item span {
    width: 28px;
    font-size: 21px;
    text-align: center;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.admin-nav-item.active {
    background: linear-gradient(135deg, #13bfb2, #079c96);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(7, 156, 150, 0.26);
}

.admin-sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 22px;
}

.admin-logout-link {
    min-height: 54px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 13px;
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-logout-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-secure-box {
    padding: 22px 20px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;
    border-radius: 18px;
    background: rgba(19, 191, 178, 0.12);
    border: 1px solid rgba(19, 191, 178, 0.18);
}

.admin-secure-box div {
    font-size: 30px;
}

.admin-secure-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.55;
}

.admin-secure-box strong {
    display: block;
    margin-bottom: 6px;
    color: #13bfb2;
    font-size: 14px;
}

/* MAIN */

.admin-main {
    min-width: 0;
    padding: 38px 36px 46px;
}

.admin-topbar {
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-topbar h1 {
    margin: 0;
    color: #07162f;
    font-size: 38px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.4px;
}

.admin-topbar p {
    margin: 10px 0 0;
    color: #657187;
    font-size: 16px;
    font-weight: 500;
}

.admin-user-box {
    padding: 12px 18px 12px 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(6, 21, 47, 0.06);
}

.admin-user-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #13bfb2, #079c96);
    color: #ffffff;
    font-size: 22px;
}

.admin-user-box strong {
    display: block;
    color: #07162f;
    font-size: 15px;
    font-weight: 900;
}

.admin-user-box span {
    display: block;
    margin-top: 3px;
    color: #657187;
    font-size: 13px;
    font-weight: 700;
}

/* KPI */

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}

.admin-kpi-card {
    padding: 26px;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 20px;
    align-items: center;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    box-shadow: 0 16px 38px rgba(6, 21, 47, 0.06);
}

.admin-kpi-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    font-size: 30px;
    font-weight: 900;
}

.admin-kpi-icon.teal {
    background: rgba(19, 191, 178, 0.16);
    color: #079c96;
}

.admin-kpi-icon.green {
    background: rgba(139, 216, 79, 0.22);
    color: #4a9c1e;
}

.admin-kpi-icon.blue {
    background: rgba(46, 160, 225, 0.18);
    color: #1689c8;
}

.admin-kpi-icon.yellow {
    background: rgba(255, 193, 49, 0.24);
    color: #b77a00;
}

.admin-kpi-card p {
    margin: 0 0 6px;
    color: #07162f;
    font-size: 14px;
    font-weight: 900;
}

.admin-kpi-card h2 {
    margin: 0;
    color: #07162f;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.admin-kpi-card span {
    display: block;
    margin-top: 8px;
    color: #657187;
    font-size: 14px;
    font-weight: 600;
}

/* PANELS */

.admin-summary-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-panel,
.admin-table-panel {
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    box-shadow: 0 16px 38px rgba(6, 21, 47, 0.06);
}

.admin-panel-header {
    margin-bottom: 24px;
}

.admin-panel-header h2,
.admin-table-header h2 {
    margin: 0;
    color: #07162f;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.admin-panel-header p,
.admin-table-header p {
    margin: 8px 0 0;
    color: #657187;
    font-size: 14px;
    font-weight: 600;
}

.admin-status-list {
    display: grid;
    gap: 14px;
}

.admin-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #07162f;
    font-size: 15px;
    font-weight: 800;
}

.admin-status-row div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-status-row small {
    color: #657187;
    font-size: 13px;
}

.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.completed {
    background: #13bfb2;
}

.status-dot.progress {
    background: #ffc131;
}

.status-dot.registered {
    background: #98a4b5;
}

.status-dot.abandoned {
    background: #d94b4b;
}

.admin-status-bar {
    height: 9px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
}

.admin-status-bar span {
    height: 100%;
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, #13bfb2, #079c96);
}

.admin-status-bar span.progress-bar {
    background: linear-gradient(90deg, #ffc131, #f0a000);
}

.admin-status-bar span.registered-bar {
    background: linear-gradient(90deg, #98a4b5, #657187);
}

.admin-status-bar span.abandoned-bar {
    background: linear-gradient(90deg, #d94b4b, #b42323);
}

/* CONTROL */

.admin-control-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-control-card {
    padding: 22px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(19, 191, 178, 0.10), transparent 38%),
        #f7fafc;
    border: 1px solid #dbe4ef;
}

.admin-control-card span {
    display: block;
    color: #657187;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.admin-control-card strong {
    display: block;
    margin-top: 12px;
    color: #07162f;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.admin-control-card p {
    margin: 10px 0 0;
    color: #657187;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

/* TABLE */

.admin-table-panel {
    padding: 0;
    overflow: hidden;
}

.admin-table-header {
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #dbe4ef;
}

.admin-table-button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #ffffff;
    color: #183154;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1050px;
}

.admin-table th {
    padding: 18px 22px;
    background: #f7fafc;
    color: #183154;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 1px solid #dbe4ef;
}

.admin-table td {
    padding: 18px 22px;
    color: #183154;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(19, 191, 178, 0.035);
}

.admin-table td strong {
    display: block;
    color: #07162f;
    font-size: 14px;
    font-weight: 900;
}

.admin-table td small {
    display: block;
    margin-top: 4px;
    color: #657187;
    font-size: 12px;
    font-weight: 600;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.admin-status-pill.status-completed {
    color: #067f79;
    background: rgba(19, 191, 178, 0.14);
}

.admin-status-pill.status-progress {
    color: #9a6800;
    background: rgba(255, 193, 49, 0.18);
}

.admin-status-pill.status-registered {
    color: #4b5565;
    background: rgba(152, 164, 181, 0.16);
}

.admin-status-pill.status-abandoned {
    color: #b42323;
    background: rgba(217, 75, 75, 0.12);
}

.admin-answer-progress {
    display: grid;
    gap: 8px;
}

.admin-answer-progress span {
    color: #183154;
    font-size: 13px;
    font-weight: 900;
}

.admin-answer-progress div {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
}

.admin-answer-progress b {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #13bfb2, #c8e84e);
}

.admin-view-button {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(19, 191, 178, 0.10);
    color: #079c96;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-view-button:hover {
    background: #13bfb2;
    color: #ffffff;
}

.admin-empty-state {
    text-align: center;
    padding: 38px !important;
    color: #657187 !important;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
    .admin-dashboard-layout {
        grid-template-columns: 260px 1fr;
    }

    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .admin-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
        padding: 24px 18px;
    }

    .admin-sidebar-logo {
        padding-bottom: 20px;
    }

    .admin-sidebar-bottom {
        margin-top: 24px;
    }

    .admin-main {
        padding: 26px 18px 36px;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-kpi-grid {
        grid-template-columns: 1fr;
    }

    .admin-control-grid {
        grid-template-columns: 1fr;
    }

    .admin-table-header {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* =========================================================
   ADMIN EVALUACION DETALLE - NEXO
========================================================= */

.evaluation-detail-main {
    background:
        radial-gradient(circle at top right, rgba(0, 194, 168, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(233, 30, 142, 0.05), transparent 26%),
        #f5f8fb;
}

.evaluation-detail-header {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.back-dashboard-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    color: #183154;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-dashboard-link:hover {
    color: #00c2a8;
    transform: translateX(-2px);
}

.evaluation-detail-header h1 {
    margin: 0;
    color: #07162f;
    font-size: 38px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.4px;
}

.evaluation-detail-header p {
    margin: 10px 0 0;
    color: #657187;
    font-size: 16px;
    font-weight: 500;
}

.download-pdf-button {
    min-height: 54px;
    padding: 0 24px;
    border: 1.5px solid #00c2a8;
    border-radius: 14px;
    background: #ffffff;
    color: #07162f;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(6, 21, 47, 0.06);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.download-pdf-button:hover {
    transform: translateY(-2px);
    background: #00c2a8;
    color: #ffffff;
    box-shadow: 0 20px 42px rgba(0, 194, 168, 0.28);
}

/* KPI SUPERIOR */

.evaluation-kpi-grid {
    display: grid;
    grid-template-columns: 1.9fr 0.78fr 0.9fr 0.9fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.participant-summary-card,
.evaluation-stat-card,
.top-strengths-card,
.domain-results-card,
.all-strengths-card {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(6, 21, 47, 0.06);
}

.participant-summary-card {
    padding: 26px;
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 24px;
    align-items: center;
}

.participant-avatar {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 18%, rgba(0, 194, 168, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(0, 194, 168, 0.18), rgba(0, 123, 255, 0.08));
    font-size: 48px;
    color: #00c2a8;
}

.participant-name-row {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.participant-name-row h2 {
    margin: 0;
    color: #07162f;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.participant-data dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.participant-data dl div {
    min-width: 0;
}

.participant-data dt {
    margin-bottom: 4px;
    color: #657187;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.participant-data dd {
    margin: 0;
    color: #183154;
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
}

.evaluation-stat-card {
    padding: 22px;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 132px;
}

.evaluation-stat-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    background: #00c2a8;
}

.evaluation-stat-icon.success {
    background: linear-gradient(135deg, #00c2a8, #21b979);
}

.evaluation-stat-icon.blue {
    background: linear-gradient(135deg, #007bff, #3abfe5);
}

.evaluation-stat-icon.purple {
    background: linear-gradient(135deg, #7b2dff, #9a5cff);
}

.evaluation-stat-card span {
    display: block;
    margin-bottom: 8px;
    color: #657187;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.evaluation-stat-card strong {
    display: block;
    color: #07162f;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
}

.evaluation-stat-card small {
    display: block;
    margin-top: 8px;
    color: #657187;
    font-size: 13px;
    font-weight: 700;
}

/* LAYOUT CENTRAL */

.evaluation-content-grid {
    display: grid;
    grid-template-columns: 0.86fr 1.64fr;
    gap: 20px;
    margin-bottom: 20px;
}

.top-strengths-card,
.domain-results-card,
.all-strengths-card {
    padding: 26px;
}

.section-title-row {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.section-title-row h2 {
    margin: 0;
    color: #07162f;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.section-title-row p {
    margin: 8px 0 0;
    color: #657187;
    font-size: 14px;
    font-weight: 600;
}

/* TOP 10 */

.top-strengths-list {
    display: grid;
    gap: 15px;
}

.top-strength-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 6px 0;
}

.strength-rank {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(6, 21, 47, 0.12);
}

.strength-rank.small {
    width: 27px;
    height: 27px;
    font-size: 11px;
}

.top-strength-item strong {
    display: block;
    color: #07162f;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 900;
}

.top-strength-item small {
    display: block;
    margin-top: 4px;
    color: #657187;
    font-size: 12px;
    font-weight: 700;
}

.top-strength-item b {
    color: #00a878;
    font-size: 16px;
    font-weight: 900;
}

/* DOMINIOS */

.domain-segment-bar {
    width: 100%;
    height: 42px;
    margin-bottom: 28px;
    display: flex;
    overflow: hidden;
    border-radius: 13px;
    background: #edf2f7;
    box-shadow: inset 0 0 0 1px rgba(6, 21, 47, 0.05);
}

.domain-segment-bar div {
    min-width: 7%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.20);
}

.domain-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.domain-mini-card {
    padding: 18px 14px;
    text-align: center;
    border-right: 1px solid #dbe4ef;
}

.domain-mini-card:last-child {
    border-right: 0;
}

.domain-mini-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    color: var(--domain-color);
    font-size: 34px;
    line-height: 1;
}

.domain-mini-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--domain-color);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.domain-mini-card h3 {
    margin: 0;
    color: var(--domain-color);
    font-size: 18px;
    line-height: 1.08;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.4px;
}

.domain-mini-card p {
    min-height: 38px;
    margin: 10px 0 12px;
    color: var(--domain-color);
    font-size: 12px;
    line-height: 1.32;
    font-weight: 700;
}

.domain-mini-card strong {
    display: block;
    color: var(--domain-color);
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

/* 34 FORTALEZAS */

.all-strengths-card {
    margin-bottom: 22px;
}

.evaluation-note-mini {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(0, 194, 168, 0.10);
    color: #008c7a;
    font-size: 13px;
    font-weight: 900;
}

.all-strengths-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 26px;
}

.all-strength-item {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 36px;
}

.all-strength-item strong {
    color: #183154;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.all-strength-item b {
    color: #00a878;
    font-size: 13px;
    font-weight: 900;
}

.evaluation-legal-note {
    margin: 0 0 6px;
    color: #657187;
    font-size: 13px;
    font-weight: 600;
}

/* RESPONSIVE DETALLE */

@media (max-width: 1380px) {
    .evaluation-kpi-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .participant-summary-card {
        grid-column: span 3;
    }

    .evaluation-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1120px) {
    .domain-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .domain-mini-card {
        border-right: 0;
        border-bottom: 1px solid #dbe4ef;
    }

    .domain-mini-card:last-child {
        border-bottom: 0;
    }

    .all-strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .evaluation-detail-header {
        flex-direction: column;
    }

    .download-pdf-button {
        width: 100%;
    }

    .evaluation-kpi-grid {
        grid-template-columns: 1fr;
    }

    .participant-summary-card {
        grid-column: auto;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .participant-avatar {
        margin: 0 auto;
    }

    .participant-name-row {
        justify-content: center;
    }

    .participant-data dl {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .evaluation-stat-card {
        grid-template-columns: 54px 1fr;
    }

    .domain-segment-bar {
        height: auto;
        min-height: 42px;
        flex-wrap: wrap;
    }

    .domain-segment-bar div {
        min-width: 100%;
        min-height: 34px;
    }

    .all-strengths-grid {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        flex-direction: column;
    }
}




/* =========================================================
   CONTROL DE COBERTURA DEL INSTRUMENTO
========================================================= */

.instrument-coverage-card {
    margin-bottom: 22px;
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    box-shadow: 0 16px 38px rgba(6, 21, 47, 0.06);
}

.coverage-summary-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.coverage-pill {
    min-height: 30px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.coverage-pill.coverage-solid {
    color: #067f79;
    background: rgba(0, 194, 168, 0.14);
}

.coverage-pill.coverage-acceptable {
    color: #9a6800;
    background: rgba(255, 193, 49, 0.20);
}

.coverage-pill.coverage-weak {
    color: #b42323;
    background: rgba(217, 75, 75, 0.13);
}

.coverage-pill.coverage-empty {
    color: #4b5565;
    background: rgba(152, 164, 181, 0.18);
}

.coverage-alert-box {
    margin-bottom: 24px;
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    align-items: center;
    border-radius: 18px;
    background: rgba(0, 194, 168, 0.08);
    border: 1px solid rgba(0, 194, 168, 0.20);
}

.coverage-alert-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #00c2a8;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.coverage-alert-box h3 {
    margin: 0 0 6px;
    color: #07162f;
    font-size: 17px;
    font-weight: 900;
}

.coverage-alert-box p {
    margin: 0;
    color: #657187;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

.coverage-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
}

.coverage-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.coverage-table th {
    padding: 15px 18px;
    background: #f7fafc;
    color: #183154;
    font-size: 12px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 1px solid #dbe4ef;
}

.coverage-table td {
    padding: 15px 18px;
    color: #183154;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.coverage-table tr:last-child td {
    border-bottom: 0;
}

.coverage-table tr:hover td {
    background: rgba(0, 194, 168, 0.035);
}

.coverage-rank {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf2f7;
    color: #183154;
    font-size: 12px;
    font-weight: 900;
}

.coverage-strength-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coverage-strength-name span {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border-radius: 50%;
}

.coverage-strength-name strong {
    color: #07162f;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 900;
}

.coverage-domain {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
}

@media (max-width: 760px) {
    .instrument-coverage-card {
        padding: 22px 18px;
    }

    .coverage-summary-pills {
        width: 100%;
    }

    .coverage-alert-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .coverage-alert-icon {
        margin: 0 auto;
    }
}




/* =========================================================
   VALIDACION DE CONSISTENCIA
========================================================= */

.consistency-card {
    margin-bottom: 20px;
    padding: 24px 26px;
    display: grid;
    grid-template-columns: 1.15fr 1.5fr 1fr;
    gap: 22px;
    align-items: center;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    box-shadow: 0 16px 38px rgba(6, 21, 47, 0.06);
}

.consistency-main {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    align-items: center;
}

.consistency-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c2a8, #007bff);
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
}

.consistency-kicker {
    margin: 0 0 6px;
    color: #00a891;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.consistency-main h2 {
    margin: 0;
    color: #07162f;
    font-size: 21px;
    font-weight: 900;
}

.consistency-main p {
    margin: 7px 0 0;
    color: #657187;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
}

.consistency-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.consistency-metric {
    padding: 15px 14px;
    border-radius: 16px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
}

.consistency-metric span {
    display: block;
    margin-bottom: 8px;
    color: #657187;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.consistency-metric strong {
    display: block;
    color: #07162f;
    font-size: 18px;
    font-weight: 900;
}

.consistency-result {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.consistency-result span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.consistency-result p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.consistency-result.consistency-high {
    background: rgba(0, 194, 168, 0.08);
    border-color: rgba(0, 194, 168, 0.22);
    color: #067f79;
}

.consistency-result.consistency-high span {
    background: rgba(0, 194, 168, 0.18);
    color: #067f79;
}

.consistency-result.consistency-review {
    background: rgba(255, 193, 49, 0.10);
    border-color: rgba(255, 193, 49, 0.28);
    color: #9a6800;
}

.consistency-result.consistency-review span {
    background: rgba(255, 193, 49, 0.22);
    color: #9a6800;
}

.consistency-result.consistency-incomplete {
    background: rgba(217, 75, 75, 0.08);
    border-color: rgba(217, 75, 75, 0.22);
    color: #b42323;
}

.consistency-result.consistency-incomplete span {
    background: rgba(217, 75, 75, 0.14);
    color: #b42323;
}

@media (max-width: 1180px) {
    .consistency-card {
        grid-template-columns: 1fr;
    }

    .consistency-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .consistency-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .consistency-icon {
        margin: 0 auto;
    }

    .consistency-metrics {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   LECTURA EJECUTIVA DEL PERFIL
========================================================= */

.executive-profile-card {
    margin-bottom: 20px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(0, 194, 168, 0.08), transparent 28%),
        #ffffff;
    border: 1px solid #dbe4ef;
    box-shadow: 0 16px 38px rgba(6, 21, 47, 0.06);
}

.executive-profile-header {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.executive-kicker {
    margin: 0 0 7px;
    color: #00a891;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.executive-profile-header h2 {
    margin: 0;
    color: #07162f;
    font-size: 26px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.7px;
}

.executive-profile-header p {
    margin: 9px 0 0;
    color: #657187;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.executive-domain-badge {
    min-width: 240px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(0, 194, 168, 0.06);
    border: 1px solid color-mix(in srgb, var(--executive-domain-color) 30%, transparent);
}

.executive-domain-badge span {
    display: block;
    margin-bottom: 8px;
    color: #657187;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.executive-domain-badge strong {
    display: block;
    color: var(--executive-domain-color);
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
}

.executive-domain-badge small {
    display: block;
    margin-top: 7px;
    color: #657187;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.executive-profile-intro {
    margin-bottom: 24px;
    padding: 22px;
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 18px;
    align-items: center;
    border-radius: 20px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
}

.executive-profile-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
}

.executive-profile-intro h3 {
    margin: 0;
    color: #07162f;
    font-size: 22px;
    font-weight: 900;
}

.executive-profile-intro p {
    margin: 7px 0 0;
    color: #183154;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 700;
}

.executive-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.executive-insight-card {
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
}

.executive-insight-card span {
    display: block;
    margin-bottom: 8px;
    color: #00a891;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.executive-insight-card h3 {
    margin: 0 0 16px;
    color: #07162f;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.executive-insight-card ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 11px;
}

.executive-insight-card li {
    color: #183154;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
}

.executive-insight-card li strong {
    color: #07162f;
    font-weight: 900;
}

.executive-top-five-interpretation {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.executive-strength-pill {
    padding: 16px;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: flex-start;
    border-radius: 18px;
    background: rgba(247, 250, 252, 0.9);
    border: 1px solid #dbe4ef;
}

.executive-strength-rank {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--strength-color);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.executive-strength-pill h4 {
    margin: 0;
    color: var(--strength-color);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
}

.executive-strength-pill p {
    margin: 6px 0 0;
    color: #657187;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

@media (max-width: 1280px) {
    .executive-insight-grid {
        grid-template-columns: 1fr;
    }

    .executive-top-five-interpretation {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .executive-profile-header {
        flex-direction: column;
    }

    .executive-domain-badge {
        width: 100%;
        min-width: 0;
    }

    .executive-profile-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .executive-profile-icon {
        margin: 0 auto;
    }

    .executive-top-five-interpretation {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ACCESO.PHP - PANTALLA DE ACCESO A EVALUACION NEXO
========================================================= */

.access-body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #07162f;
}

.access-body * {
    box-sizing: border-box;
}

.access-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.access-left {
    position: relative;
    padding: 64px 72px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-right: 1px solid #dbe4ef;
}

.access-logo-box {
    width: 100%;
    margin-bottom: 190px;
}

.access-logo {
    width: 190px;
    height: auto;
    display: block;
}

.access-brand-fallback {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #7B2DFF;
}

.access-copy {
    max-width: 620px;
}

.access-kicker {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.8px;
    color: #183154;
}

.access-copy h1 {
    margin: 0 0 22px;
    font-size: 58px;
    line-height: 0.98;
    letter-spacing: -2px;
    color: #07162f;
}

.access-copy h1 span {
    color: #7B2DFF;
}

.access-copy h1::after {
    content: "";
    display: block;
    width: 82px;
    height: 5px;
    margin-top: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7B2DFF, #00C2A8);
}

.access-copy p {
    margin: 0;
    max-width: 560px;
    font-size: 20px;
    line-height: 1.55;
    color: #4e5d72;
}

.access-security {
    position: absolute;
    left: 72px;
    bottom: 70px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 520px;
    padding: 22px 24px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
}

.access-security-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #7B2DFF;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    flex: 0 0 auto;
}

.access-security strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    color: #07162f;
}

.access-security span {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: #657187;
}

.access-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px;
    background:
        radial-gradient(circle at bottom right, rgba(0, 194, 168, 0.16), transparent 42%),
        radial-gradient(circle at top left, rgba(123, 45, 255, 0.10), transparent 36%),
        #f4f7fb;
}

.access-card {
    width: 100%;
    max-width: 540px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe4ef;
    border-radius: 30px;
    box-shadow: 0 34px 90px rgba(7, 22, 47, 0.14);
    padding: 46px;
}

.access-card-header {
    margin-bottom: 26px;
}

.access-pill {
    display: inline-block;
    margin-bottom: 18px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(0, 194, 168, 0.12);
    color: #008b7b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.access-card h2 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.08;
    color: #07162f;
}

.access-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #657187;
}

.access-form-group {
    margin-bottom: 18px;
}

.access-form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: #183154;
}

.access-input {
    width: 100%;
    height: 62px;
    border: 1px solid #cfd9e6;
    border-radius: 17px;
    padding: 0 18px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #07162f;
    background: #ffffff;
    outline: none;
    text-transform: uppercase;
}

.access-input::placeholder {
    color: #9aa7b8;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.access-input:focus {
    border-color: #7B2DFF;
    box-shadow: 0 0 0 4px rgba(123, 45, 255, 0.12);
}

.access-error {
    margin-bottom: 18px;
    padding: 15px 16px;
    border-radius: 16px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.access-button {
    width: 100%;
    height: 62px;
    border: none;
    border-radius: 17px;
    background: linear-gradient(135deg, #7B2DFF, #00C2A8);
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(123, 45, 255, 0.22);
}

.access-button:hover {
    filter: brightness(0.98);
}

.access-note {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e5ebf2;
    font-size: 13px;
    line-height: 1.45;
    color: #657187;
    text-align: center;
}

@media (max-width: 1100px) {
    .access-left {
        padding: 52px;
    }

    .access-logo-box {
        margin-bottom: 140px;
    }

    .access-copy h1 {
        font-size: 48px;
    }

    .access-copy p {
        font-size: 17px;
    }

    .access-security {
        left: 52px;
        bottom: 52px;
        max-width: 430px;
    }

    .access-right {
        padding: 44px;
    }

    .access-card {
        padding: 38px;
    }
}

@media (max-width: 900px) {
    .access-page {
        grid-template-columns: 1fr;
    }

    .access-left {
        min-height: auto;
        padding: 34px;
    }

    .access-logo-box {
        margin-bottom: 54px;
    }

    .access-copy h1 {
        font-size: 38px;
        letter-spacing: -1.2px;
    }

    .access-copy p {
        font-size: 16px;
    }

    .access-security {
        position: static;
        margin-top: 34px;
        max-width: 100%;
    }

    .access-right {
        padding: 28px;
    }

    .access-card {
        max-width: 100%;
        padding: 30px;
        border-radius: 24px;
    }

    .access-card h2 {
        font-size: 30px;
    }
}



/* =========================================================
   ADMIN / CODES.PHP - GENERADOR DE CÓDIGOS DE ACCESO
========================================================= */

.admin-code-alert {
    width: 100%;
    margin-bottom: 22px;
    padding: 15px 18px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.admin-code-alert.success {
    background: #ecfdf8;
    border: 1px solid #99f6e4;
    color: #04786b;
}

.admin-code-alert.error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

/* =========================================================
   ADMIN CODES / BLOQUE DE GENERACIÓN
========================================================= */

.admin-codes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 26px;
}

.admin-codes-generator-panel,
.admin-codes-copy-panel {
    min-height: 100%;
}

.admin-codes-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-codes-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-codes-field label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #183154;
}

.admin-codes-field input,
.admin-codes-field select {
    width: 100%;
    height: 44px;
    border: 1px solid #d3deeb;
    border-radius: 12px;
    padding: 0 13px;
    font-size: 14px;
    color: #07162f;
    background: #ffffff;
    outline: none;
}

.admin-codes-field input:focus,
.admin-codes-field select:focus {
    border-color: #7B2DFF;
    box-shadow: 0 0 0 4px rgba(123, 45, 255, 0.10);
}

.admin-codes-primary-button {
    grid-column: 1 / -1;
    height: 46px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #7B2DFF, #00C2A8);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(123, 45, 255, 0.18);
}

.admin-codes-primary-button:hover {
    filter: brightness(0.98);
}

.admin-codes-secondary-button {
    height: 42px;
    border: 1px solid #d3deeb;
    border-radius: 12px;
    background: #ffffff;
    color: #183154;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-codes-secondary-button:hover {
    border-color: #7B2DFF;
    color: #7B2DFF;
}

.admin-codes-copy-area {
    width: 100%;
    min-height: 170px;
    resize: vertical;
    border: 1px solid #d3deeb;
    border-radius: 14px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #07162f;
    background: #f8fafc;
    line-height: 1.45;
    margin-bottom: 14px;
    outline: none;
}

.admin-code-empty-box {
    min-height: 170px;
    border: 1px dashed #cfd9e6;
    border-radius: 14px;
    background: #f8fafc;
    color: #657187;
    font-size: 14px;
    line-height: 1.45;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px;
}

/* =========================================================
   ADMIN CODES / FILTROS Y ACCIONES
========================================================= */

.admin-codes-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-codes-filters {
    display: grid;
    grid-template-columns: 180px minmax(260px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    background: #f8fafc;
}

.admin-codes-filters div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-codes-filters label {
    font-size: 11px;
    font-weight: 800;
    color: #183154;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.admin-codes-filters input,
.admin-codes-filters select {
    width: 100%;
    height: 42px;
    border: 1px solid #d3deeb;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 13px;
    color: #07162f;
    background: #ffffff;
    outline: none;
}

.admin-codes-filters input:focus,
.admin-codes-filters select:focus {
    border-color: #7B2DFF;
    box-shadow: 0 0 0 4px rgba(123, 45, 255, 0.10);
}

.admin-codes-light-link {
    height: 42px;
    padding: 0 10px;
    color: #657187;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-codes-light-link:hover {
    color: #7B2DFF;
}

/* =========================================================
   ADMIN CODES / COPIAR DISPONIBLES
========================================================= */

.admin-codes-copy-available {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-codes-copy-available textarea {
    flex: 1;
    min-height: 46px;
    max-height: 90px;
    resize: vertical;
    border: 1px solid #d3deeb;
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
    color: #07162f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    outline: none;
}

/* =========================================================
   ADMIN CODES / TABLA
========================================================= */

.admin-codes-table td strong {
    display: block;
}

.admin-codes-table td small {
    display: block;
    margin-top: 4px;
    color: #657187;
    font-size: 11px;
    line-height: 1.25;
}

.admin-code-value {
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.4px;
    color: #07162f;
    font-size: 13px;
}

.admin-code-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.code-status-available {
    background: #ecfdf8;
    color: #04786b;
}

.code-status-used {
    background: #eef4ff;
    color: #1d4ed8;
}

.code-status-blocked {
    background: #fff1f2;
    color: #be123c;
}

.admin-code-inline-form {
    margin: 0;
}

.admin-code-small-button {
    height: 32px;
    border: 1px solid #d3deeb;
    border-radius: 10px;
    background: #ffffff;
    color: #183154;
    padding: 0 11px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.admin-code-small-button:hover {
    border-color: #7B2DFF;
    color: #7B2DFF;
}

.admin-code-small-button.danger {
    border-color: #fecdd3;
    color: #be123c;
    background: #fff7f8;
}

.admin-code-small-button.danger:hover {
    background: #fff1f2;
}

/* =========================================================
   ADMIN CODES / RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
    .admin-codes-grid {
        grid-template-columns: 1fr;
    }

    .admin-codes-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .admin-codes-form {
        grid-template-columns: 1fr;
    }

    .admin-codes-filters {
        grid-template-columns: 1fr;
    }

    .admin-codes-copy-available {
        flex-direction: column;
    }
}

.admin-code-action-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

/* =========================================================
   ADMIN / TEAM_GRID.PHP - CUADRÍCULA DE EQUIPO
========================================================= */

.team-grid-selector-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(7, 22, 47, 0.06);
    overflow: hidden;
}

.team-grid-selector-main {
    padding: 22px;
}

.team-grid-selector-actions {
    padding: 22px;
    border-left: 1px solid #dbe4ef;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-grid-selector-actions small {
    color: #657187;
    font-size: 12px;
    line-height: 1.35;
}

.team-grid-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr)) auto auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
}

.team-grid-filters div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.team-grid-filters label {
    font-size: 11px;
    font-weight: 800;
    color: #183154;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.team-grid-filters input,
.team-grid-filters select {
    width: 100%;
    height: 42px;
    border: 1px solid #d3deeb;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 13px;
    color: #07162f;
    background: #ffffff;
    outline: none;
}

.team-grid-filters input:focus,
.team-grid-filters select:focus {
    border-color: #7B2DFF;
    box-shadow: 0 0 0 4px rgba(123, 45, 255, 0.10);
}

.team-grid-primary-button {
    height: 42px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7B2DFF, #00C2A8);
    color: #ffffff;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.team-grid-secondary-button,
.team-grid-pdf-button {
    width: 100%;
    height: 42px;
    border: 1px solid #d3deeb;
    border-radius: 12px;
    background: #ffffff;
    color: #183154;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.team-grid-secondary-button:hover {
    border-color: #7B2DFF;
    color: #7B2DFF;
}

.team-grid-pdf-button {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.team-grid-light-link {
    height: 42px;
    padding: 0 10px;
    color: #657187;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-grid-light-link:hover {
    color: #7B2DFF;
}

/* =========================================================
   TEAM GRID / RESULTADOS Y SELECCIONADOS
========================================================= */

.team-grid-results-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 22px;
    margin-bottom: 24px;
}

.team-grid-search-list,
.team-grid-selected-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow: auto;
    padding-right: 4px;
}

.team-grid-person-row,
.team-grid-selected-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #ffffff;
}

.team-grid-selected-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
}

.team-grid-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7B2DFF, #00C2A8);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-grid-avatar.compact {
    width: 34px;
    height: 34px;
    font-size: 11px;
}

.team-grid-person-info strong,
.team-grid-selected-row strong {
    display: block;
    color: #07162f;
    font-size: 14px;
}

.team-grid-person-info span,
.team-grid-selected-row small {
    display: block;
    margin-top: 2px;
    color: #657187;
    font-size: 12px;
    line-height: 1.3;
}

.team-grid-person-info small {
    display: block;
    margin-top: 4px;
    color: #8a97aa;
    font-size: 11px;
    line-height: 1.3;
}

.team-grid-small-button,
.team-grid-remove-button {
    height: 32px;
    border: 1px solid #d3deeb;
    border-radius: 10px;
    background: #ffffff;
    color: #183154;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.team-grid-small-button:hover {
    border-color: #7B2DFF;
    color: #7B2DFF;
}

.team-grid-remove-button {
    border-color: #fecdd3;
    color: #be123c;
    background: #fff7f8;
}

.team-grid-selected-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 30px;
    border-radius: 999px;
    background: #ecfdf8;
    color: #04786b;
    font-size: 11px;
    font-weight: 800;
}

.team-grid-empty {
    padding: 22px;
    border: 1px dashed #cfd9e6;
    border-radius: 15px;
    background: #f8fafc;
    color: #657187;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.team-grid-empty.large {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   TEAM GRID / KPI
========================================================= */

.team-grid-kpi-text {
    font-size: 16px !important;
    line-height: 1.15 !important;
    max-width: 180px;
}

/* =========================================================
   TEAM GRID / LAYOUT PRINCIPAL
========================================================= */

.team-grid-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.team-grid-matrix-panel {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(7, 22, 47, 0.06);
    padding: 22px;
    min-width: 0;
}

.team-grid-insights-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.team-grid-matrix-wrapper {
    width: 100%;
    overflow: auto;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    background: #ffffff;
}

.team-grid-matrix {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1900px;
    width: 100%;
}

.team-grid-matrix th,
.team-grid-matrix td {
    border-right: 1px solid #e5ebf2;
    border-bottom: 1px solid #e5ebf2;
}

.team-grid-domain-header {
    background: #ffffff;
    border-top: 4px solid;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: center;
}

.team-grid-strength-header {
    height: 128px;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    background: #f8fafc;
    vertical-align: bottom;
    padding: 0;
    border-top: 2px solid;
}

.team-grid-strength-header span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: inline-block;
    height: 118px;
    line-height: 1.05;
    font-size: 9px;
    font-weight: 800;
    color: #183154;
    text-align: left;
    padding: 8px 0;
}

.team-grid-sticky {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #ffffff;
}

.team-grid-person-col {
    min-width: 220px;
    width: 220px;
    text-align: left;
    padding: 12px;
    font-size: 12px;
    font-weight: 900;
    color: #07162f;
}

.team-grid-person-cell {
    min-width: 220px;
    width: 220px;
    padding: 10px;
    z-index: 2;
}

.team-grid-person-mini {
    display: flex;
    align-items: center;
    gap: 9px;
}

.team-grid-person-mini > span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #7B2DFF;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-grid-person-mini strong {
    display: block;
    color: #07162f;
    font-size: 12px;
    line-height: 1.2;
}

.team-grid-person-mini small {
    display: block;
    color: #657187;
    font-size: 10px;
    margin-top: 2px;
}

.team-grid-rank-cell {
    width: 42px;
    height: 42px;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
    font-weight: 900;
    color: #07162f;
    background: #ffffff;
}

.team-grid-rank-cell.rank-top-five {
    background: var(--domain-color);
    color: #ffffff;
}

.team-grid-rank-cell.rank-top-ten {
    background: color-mix(in srgb, var(--domain-color) 72%, white);
    color: #ffffff;
}

.team-grid-rank-cell.rank-middle {
    background: color-mix(in srgb, var(--domain-color) 18%, white);
    color: #07162f;
}

.team-grid-rank-cell.rank-low {
    background: #f8fafc;
    color: #657187;
}

.team-grid-rank-cell.rank-empty {
    background: #ffffff;
    color: #cbd5e1;
}

.team-grid-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    color: #657187;
    font-size: 12px;
    font-weight: 700;
}

.team-grid-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.team-grid-legend b {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-top-five {
    background: #7B2DFF;
}

.legend-top-ten {
    background: #00C2A8;
}

.legend-middle {
    background: #dbeafe;
}

.legend-low {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

/* =========================================================
   TEAM GRID / INSIGHTS
========================================================= */

.team-grid-domain-list,
.team-grid-frequency-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-grid-domain-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #183154;
    font-size: 13px;
    font-weight: 800;
}

.team-grid-domain-row div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-grid-domain-row span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.team-grid-domain-row small {
    color: #657187;
    font-size: 11px;
}

.team-grid-domain-bar {
    height: 7px;
    background: #edf2f7;
    border-radius: 999px;
    overflow: hidden;
}

.team-grid-domain-bar b {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.team-grid-frequency-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #edf2f7;
}

.team-grid-frequency-row:last-child {
    border-bottom: none;
}

.team-grid-frequency-row > span {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-grid-frequency-row strong {
    display: block;
    color: #07162f;
    font-size: 13px;
    line-height: 1.2;
}

.team-grid-frequency-row small {
    display: block;
    color: #657187;
    font-size: 11px;
    margin-top: 2px;
}

.team-grid-frequency-row b {
    color: #07162f;
    font-size: 14px;
}

.team-grid-help-box {
    border: 1px solid #99f6e4;
    background: #ecfdf8;
    border-radius: 18px;
    padding: 18px;
    color: #07162f;
}

.team-grid-help-box strong {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.team-grid-help-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #315267;
}

/* =========================================================
   TEAM GRID / RESPONSIVE
========================================================= */

@media (max-width: 1400px) {
    .team-grid-filters {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid-main-layout {
        grid-template-columns: 1fr;
    }

    .team-grid-insights-panel {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
}

@media (max-width: 1100px) {
    .team-grid-selector-panel,
    .team-grid-results-grid {
        grid-template-columns: 1fr;
    }

    .team-grid-selector-actions {
        border-left: none;
        border-top: 1px solid #dbe4ef;
    }
}

@media (max-width: 760px) {
    .team-grid-filters {
        grid-template-columns: 1fr;
    }

    .team-grid-person-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .team-grid-person-status {
        grid-column: 1 / -1;
    }

    .team-grid-insights-panel {
        grid-template-columns: 1fr;
    }
}

.team-grid-excel-button {
    height: 42px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #007BFF, #00C2A8);
    color: #ffffff;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(0, 123, 255, 0.16);
}

.team-grid-excel-button:hover {
    filter: brightness(0.98);
}


/* =========================================================
   INSTRUCCIONES.PHP - ACCIONES FINALES
========================================================= */

.instructions-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(219, 228, 239, 0.9);
}

.instructions-back-link {
    color: #7B2DFF;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.instructions-back-link:hover {
    text-decoration: underline;
}

.instructions-start-button {
    min-width: 210px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7B2DFF, #00C2A8);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 14px 28px rgba(0, 194, 168, 0.22);
}

.instructions-start-button span {
    font-size: 22px;
    line-height: 1;
    position: relative;
    top: -1px;
}

.instructions-start-button:hover {
    filter: brightness(0.98);
}

@media (max-width: 640px) {
    .instructions-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .instructions-start-button {
        width: 100%;
    }

    .instructions-back-link {
        text-align: center;
    }
}

/* =========================================================
   GLOBAL RESPONSIVE SAFETY - NEXO
   Evita cortes, encimados y desbordes en todas las páginas.
========================================================= */

html {
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

input,
select,
textarea,
button {
    max-width: 100%;
    font-family: inherit;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* Evita que textos largos rompan contenedores */
p,
span,
strong,
small,
label,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Tablas y matrices con scroll horizontal controlado */
.admin-table-wrapper,
.team-grid-matrix-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* El contenido admin nunca debe salirse por ancho */
.admin-dashboard-layout,
.admin-main,
.admin-panel,
.admin-table-panel,
.team-grid-matrix-panel {
    min-width: 0;
}

/* =========================================================
   ACCESO.PHP - RESPONSIVE REAL
========================================================= */

.access-body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f5f8fc;
}

.access-page {
    width: 100%;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
    align-items: stretch;
}

.access-left,
.access-right {
    min-width: 0;
    min-height: 100svh;
    box-sizing: border-box;
}

.access-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(24px, 4vh, 56px);
    padding: clamp(36px, 5vw, 78px);
    overflow: visible;
}

.access-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(36px, 5vw, 78px);
    overflow: visible;
}

.access-logo-box {
    flex-shrink: 0;
}

.access-logo {
    width: clamp(150px, 12vw, 220px);
    max-width: 100%;
    height: auto;
    display: block;
}

.access-copy {
    max-width: 640px;
}

.access-copy h1 {
    font-size: clamp(48px, 5.2vw, 76px);
    line-height: 0.98;
    margin: 0 0 22px;
    letter-spacing: -1.5px;
}

.access-copy p {
    max-width: 560px;
    margin-bottom: 0;
}

.access-security {
    width: 100%;
    max-width: 620px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.access-card {
    width: min(100%, 520px);
    max-width: 520px;
    box-sizing: border-box;
}

/* Pantallas bajas: reduce aire vertical para que no se encime */
@media (max-height: 790px) and (min-width: 981px) {
    .access-left,
    .access-right {
        justify-content: flex-start;
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .access-left {
        gap: 28px;
    }

    .access-logo {
        width: 150px;
    }

    .access-copy h1 {
        font-size: clamp(42px, 4.7vw, 62px);
        line-height: 1;
        margin-bottom: 16px;
    }

    .access-security {
        margin-top: 4px;
    }

    .access-card {
        max-width: 500px;
    }
}

/* Tablets y pantallas medianas */
@media (max-width: 980px) {
    .access-page {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .access-left,
    .access-right {
        min-height: auto;
        padding: 42px 28px;
    }

    .access-left {
        justify-content: flex-start;
        gap: 28px;
    }

    .access-right {
        padding-top: 20px;
        padding-bottom: 56px;
    }

    .access-copy h1 {
        font-size: clamp(42px, 10vw, 64px);
        line-height: 1;
    }

    .access-security {
        max-width: 100%;
    }

    .access-card {
        width: 100%;
        max-width: 620px;
    }
}

/* Celulares */
@media (max-width: 560px) {
    .access-left,
    .access-right {
        padding-left: 20px;
        padding-right: 20px;
    }

    .access-copy h1 {
        font-size: clamp(38px, 12vw, 52px);
    }

    .access-kicker {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .access-security {
        align-items: flex-start;
    }

    .access-card {
        border-radius: 24px;
        padding: 28px 22px;
    }
}

/* =========================================================
   ADMIN RESPONSIVE SAFETY
========================================================= */

@media (max-width: 1100px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .admin-summary-grid,
    .team-grid-results-grid,
    .team-grid-main-layout,
    .admin-codes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .admin-dashboard-layout {
        display: block;
    }

    .admin-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }

    .admin-main {
        width: 100%;
        padding: 24px 18px;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .admin-user-box {
        width: 100%;
    }
}