/* @import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap");

body {
    background: #f6f8fb;
    font-family: 'Inter', system-ui, sans-serif;
}

.upload-modern {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px;
    cursor: pointer;
    transition: all .25s ease;
    background: #fafbff;
}

.upload-modern:hover {
    border-color: #4f46e5;
    background: #eef2ff;
    transform: scale(1.01);
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f9fafc;
}


.navbar {
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.navbar-dark .navbar-brand {
    color: #ffffff;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    transition: all .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .10);
}


.hero {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    box-shadow: 0 12px 40px rgba(79, 70, 229, .25);
}


footer {
    font-size: 0.9rem;
    color: #6c757d;
}


.btn-lg {
    border-radius: 12px;
    padding: .8rem 1.8rem;
}

#btnDescargarZip {
    white-space: normal;
    line-height: 1.25;
}

.results-panel {
    min-height: 320px;
    max-height: min(78vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.results-panel .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 1rem;
}

.results-panel #resultsCard {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.results-panel #resultsContent {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.results-actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin-top: auto;
    padding-top: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28px);
}


.results-scroll::-webkit-scrollbar {
    width: 6px;
}

.results-scroll::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 10px;
}

.results-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
}

.results-panel--filled {
    min-height: 520px;
    max-height: min(82vh, 880px);
}


.card canvas {
    max-width: 100%;
    height: auto;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.admin-table tbody tr:hover {
    background-color: #f1f5ff;
}

.admin-table td,
.admin-table th {
    padding: 0.75rem 0.9rem;
}

.admin-table-wrap {
    max-height: 420px;
    overflow-y: auto;
}

.btn-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

#diferenciasEscenarios {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.card.bg-light .canvas-container,
.card.bg-light canvas {
    display: block;
}

.card.bg-light canvas {
    min-height: 280px;
    height: 100%;
}

@media (min-width: 1200px) {
    .card.bg-light .card-body {
        padding: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    .results-panel {
        max-height: none;
    }

    .results-panel--filled {
        min-height: 420px;
    }
}

.perm-gated {
    display: none !important;
}


.login-container {
    width: 100%;
    max-width: 450px;
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header-custom {
    background: linear-gradient(135deg, #667eea 0%, #3617d0 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    border: none;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-circle img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.card-header-custom h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.card-header-custom p {
    margin: 0.5rem 0 0;
    opacity: 0.95;
    font-size: 0.95rem;
}

.card-body-custom {
    padding: 2rem;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-control::placeholder {
    color: #aaa;
}

.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 10;
}

.form-control.with-icon {
    padding-left: 2.75rem;
}

.btn-login {
    border: none;
    border-radius: 10px;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.alert-custom {
    border-radius: 10px;
    border: none;
    padding: 1rem;
    margin-top: 1rem;
}

.card-footer-custom {
    background: #f8f9fa;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.card-footer-custom p {
    margin: 0;
    color: #666;
    font-size: 0.875rem;
}

@media (max-width: 576px) {
    .card-header-custom {
        padding: 2rem 1.5rem;
    }
    
    .card-body-custom {
        padding: 1.5rem;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
    }
    
    .logo-circle img {
        width: 40px;
        height: 40px;
    }
} */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap");

body {
    background: #f6f8fb;
    font-family: 'Inter', system-ui, sans-serif;
}

.h3-color{
    color: #6C32D3 !important;
}

.upload-modern {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px;
    cursor: pointer;
    transition: all .25s ease;
    background: #fafbff;
}

.upload-modern:hover {
    border-color: #6C32D3;
    background: #f3eefe;
    transform: scale(1.01);
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f9fafc;
}

.navbar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.navbar-dark .navbar-brand {
    color: #ffffff;
}

.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 2px 12px rgba(0, 0, 0, 0.05);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.navbar-light .navbar-nav .nav-link {
    color: #4a4a6a;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #6C32D3;
    background: #f3eefe;
}

.navbar-light .navbar-nav .nav-link.active {
    color: #6C32D3;
    font-weight: 600;
}

.navbar-light .navbar-brand {
    color: var(--fn-text-primary);
}

/* ── NAVBAR ─────────────────────────────────────────────── */

.app-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e8e8f0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.app-navbar__brand {
    display: flex;
    align-items: center;
    padding-right: 16px;
    flex-shrink: 0;
}

.app-navbar__divider {
    width: 1px;
    height: 28px;
    background: #e8e8f0;
    margin: 0 8px;
    flex-shrink: 0;
}

.app-navbar__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6C32D3;
    letter-spacing: 0.02em;
    padding: 0 8px;
    flex-shrink: 0;
}

.app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #4a4a6a;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.app-nav-item i {
    font-size: 16px;
    line-height: 1;
    display: block;
}

.app-nav-item span {
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1;
}

.app-nav-item:hover,
.app-nav-item:focus {
    background: #f3eefe;
    color: #6C32D3;
}

.app-navbar__logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid #6C32D3;
    color: #6C32D3;
    background: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.app-navbar__logout:hover {
    background: #f3eefe;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    transition: all .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .10);
}

.hero {
    background: linear-gradient(135deg, #6C32D3, #8c57e8);
    color: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    box-shadow: 0 12px 40px rgba(108, 50, 211, .25);
}

footer {
    font-size: 0.9rem;
    color: #6c757d;
}

.btn-lg {
    border-radius: 12px;
    padding: .8rem 1.8rem;
}

#btnDescargarZip {
    white-space: normal;
    line-height: 1.25;
}

.results-panel {
    min-height: 320px;
    max-height: min(78vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.results-panel .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 1rem;
}

.results-panel #resultsCard {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.results-panel #resultsContent {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.results-actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin-top: auto;
    padding-top: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28px);
}

.results-scroll::-webkit-scrollbar {
    width: 6px;
}

.results-scroll::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 10px;
}

.results-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
}

.results-panel--filled {
    min-height: 520px;
    max-height: min(82vh, 880px);
}

.card canvas {
    max-width: 100%;
    height: auto;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.admin-table tbody tr:hover {
    background-color: #f3eefe;
}

.admin-table td,
.admin-table th {
    padding: 0.75rem 0.9rem;
}

.admin-table-wrap {
    max-height: 420px;
    overflow-y: auto;
}

.btn-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

#diferenciasEscenarios {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.card.bg-light .canvas-container,
.card.bg-light canvas {
    display: block;
}

.card.bg-light canvas {
    min-height: 280px;
    height: 100%;
}

@media (min-width: 1200px) {
    .card.bg-light .card-body {
        padding: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    .results-panel {
        max-height: none;
    }

    .results-panel--filled {
        min-height: 420px;
    }
}

.perm-gated {
    display: none !important;
}

/* ── LOGIN ──────────────────────────────────────────────────────────── */

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header-custom {
    background: linear-gradient(135deg, #2f1262 0%, #6C32D3 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    border: none;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-circle img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.main-logo-circle {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.main-logo-circle img {
        width: 120px;
        height: 120px;
}

.card-header-custom h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.card-header-custom p {
    margin: 0.5rem 0 0;
    opacity: 0.95;
    font-size: 0.95rem;
}

.card-body-custom {
    padding: 2rem;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #6C32D3;
    box-shadow: 0 0 0 0.2rem rgba(108, 50, 211, 0.15);
}

.form-control::placeholder {
    color: #aaa;
}

.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 10;
}

.form-control.with-icon {
    padding-left: 2.75rem;
}

.btn-login {
    border: none;
    border-radius: 10px;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    background: #6C32D3;
    color: white;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 50, 211, 0.4);
    background: #5a27b5;
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

.alert-custom {
    border-radius: 10px;
    border: none;
    padding: 1rem;
    margin-top: 1rem;
}

.card-footer-custom {
    background: #f8f9fa;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.card-footer-custom p {
    margin: 0;
    color: #666;
    font-size: 0.875rem;
}

@media (max-width: 576px) {
    .card-header-custom {
        padding: 2rem 1.5rem;
    }

    .card-body-custom {
        padding: 1.5rem;
    }

    .logo-circle {
        width: 70px;
        height: 70px;
    }

    .logo-circle img {
        width: 40px;
        height: 40px;
    }
}

/* ── TABLAS ESCENARIOS ──────────────────────────────────────────────── */

#tablaEscenarios .sticky-col,
#tablaEscenariosUVR .sticky-col {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    min-width: 180px;
    border-right: 2px solid #dee2e6 !important;
}

#tablaEscenarios thead .sticky-col,
#tablaEscenariosUVR thead .sticky-col {
    background: #f8f9fa;
}

#tablaEscenarios th,
#tablaEscenarios td,
#tablaEscenariosUVR th,
#tablaEscenariosUVR td {
    min-width: 180px;
    white-space: nowrap;
    padding: 6px 12px;
}