* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F5F7FA;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header-imagen {
    margin-bottom: 0;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.header-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

.nav-bar {
    background: #003B6F;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.nav-bar a:hover {
    color: #FFB81C;
}

.main-layout {
    display: flex;
    flex-wrap: wrap;
    background: white;
}

.panel-izquierdo {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    border-right: 1px solid #ddd;
}

.panel-izquierdo h3 {
    color: #2A5C38;
    margin-bottom: 15px;
    border-left: 4px solid #FFB81C;
    padding-left: 15px;
}

.temporalidad-box {
    background: #F5F7FA;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.temporalidad-box select,
.temporalidad-box input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.btn-aplicar {
    background: #2A5C38;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

.rango-fechas {
    display: none;
}

.rango-fechas.visible {
    display: block;
}

.menu-principal {
    list-style: none;
    margin-bottom: 20px;
}

.menu-principal li {
    margin-bottom: 5px;
}

.menu-principal button {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background: #F5F7FA;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #003B6F;
    transition: all 0.3s ease;
}

.menu-principal button:hover {
    background: #FFB81C;
    transform: translateX(5px);
}

.menu-principal button.activo {
    background: #2A5C38;
    color: white;
}

.submenu {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.submenu h4 {
    color: #2A5C38;
    margin-bottom: 10px;
}

.submenu-variables {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.var-btn {
    padding: 6px 12px;
    background: #E8F3E8;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.var-btn:hover {
    background: #FFB81C;
}

.var-btn.seleccionado {
    background: #2A5C38;
    color: white;
}

.btn-visualizacion {
    transition: all 0.3s ease;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    border: none;
    font-size: 1.2rem;
    position: relative;
}

.btn-visualizacion:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-grafica {
    background: #003B6F;
    color: white;
}

.btn-tabla {
    background: #2A5C38;
    color: white;
}

.btn-limpiar {
    background: #dc3545;
    color: white;
}

.btn-home {
    background: #FFB81C;
    color: #003B6F;
}

.btn-home:hover {
    background: #e5a600;
}

.modo-visualizacion-activo {
    border: 2px solid #FFB81C;
    box-shadow: 0 0 0 2px rgba(255, 184, 28, 0.3);
}

.panel-derecho {
    flex: 2.5;
    padding: 20px;
}

.imagen-container {
    background: #F5F7FA;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.imagen-container img {
    max-width: 100%;
    border-radius: 10px;
    cursor: pointer;
}

.grafica-container {
    background: #F5F7FA;
    border-radius: 15px;
    padding: 20px;
    min-height: 350px;
    margin-bottom: 20px;
    display: block;
}

.grafica-container h3 {
    color: #2A5C38;
    margin-bottom: 15px;
    border-left: 4px solid #FFB81C;
    padding-left: 15px;
}

canvas {
    max-height: 300px;
    width: 100%;
}

.tabla-container {
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 450px;
    display: none;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.tabla-datos {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.85rem;
}

.tabla-datos th {
    background: #2A5C38;
    color: white;
    padding: 10px;
    position: sticky;
    top: 0;
    font-weight: 600;
    z-index: 10;
}

.tabla-datos td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.tabla-datos tr:nth-child(even) {
    background: #f9f9f9;
}

.tabla-datos tr:hover {
    background: #E8F3E8;
}

.tabla-datos th:nth-child(1),
.tabla-datos td:nth-child(1) {
    width: 60px;
    text-align: center;
}

.tabla-datos th:nth-child(2),
.tabla-datos td:nth-child(2) {
    text-align: left;
}

.tabla-datos th:nth-child(3),
.tabla-datos td:nth-child(3) {
    width: 100px;
    text-align: center;
}

.submenu .btn-visualizacion {
    flex: 1;
    text-align: center;
    padding: 10px;
}

#modalVariables {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.footer-imagen {
    margin-top: 20px;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.footer-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.stats-grid.active {
    display: grid;
}

.stat-card {
    background: #F5F7FA;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    margin: 5px;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.stat-card h4 {
    font-size: 0.7rem;
    color: #2A5C38;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.stat-card .valor {
    font-size: 1.6rem;
    font-weight: bold;
    color: #003B6F;
    line-height: 1.2;
}

.stat-card .unidad {
    font-size: 0.65rem;
    color: #888;
    margin-top: 5px;
}

.submenu-variables {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.submenu h4 {
    margin-bottom: 15px;
    margin-top: 5px;
}

.btn-grafica:hover::after,
.btn-tabla:hover::after {
    content: attr(title);
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
    background: #003B6F;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-var-modal:hover {
    background: #E8F3E8 !important;
    border-color: #2A5C38 !important;
}

.btn-var-modal:active {
    transform: scale(0.98);
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F5F7FA;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header-imagen {
    margin-bottom: 0;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.header-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

.nav-bar {
    background: #003B6F;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.nav-bar a:hover {
    color: #FFB81C;
}

.main-layout {
    display: flex;
    flex-wrap: wrap;
    background: white;
}

.panel-izquierdo {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    border-right: 1px solid #ddd;
}

.panel-izquierdo h3 {
    color: #2A5C38;
    margin-bottom: 15px;
    border-left: 4px solid #FFB81C;
    padding-left: 15px;
}

.temporalidad-box {
    background: #F5F7FA;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.temporalidad-box select,
.temporalidad-box input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.btn-aplicar {
    background: #2A5C38;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

.rango-fechas {
    display: none;
}

.rango-fechas.visible {
    display: block;
}

.menu-principal {
    list-style: none;
    margin-bottom: 20px;
}

.menu-principal li {
    margin-bottom: 5px;
}

.menu-principal button {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background: #F5F7FA;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #003B6F;
    transition: all 0.3s ease;
}

.menu-principal button:hover {
    background: #FFB81C;
    transform: translateX(5px);
}

.menu-principal button.activo {
    background: #2A5C38;
    color: white;
}

.submenu {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.submenu h4 {
    color: #2A5C38;
    margin-bottom: 10px;
}

.submenu-variables {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.var-btn {
    padding: 6px 12px;
    background: #E8F3E8;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.var-btn:hover {
    background: #FFB81C;
}

.var-btn.seleccionado {
    background: #2A5C38;
    color: white;
}

.btn-visualizacion {
    transition: all 0.3s ease;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    border: none;
    font-size: 1.2rem;
    position: relative;
}

.btn-visualizacion:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-grafica {
    background: #003B6F;
    color: white;
}

.btn-tabla {
    background: #2A5C38;
    color: white;
}

.btn-limpiar {
    background: #dc3545;
    color: white;
}

.btn-home {
    background: #FFB81C;
    color: #003B6F;
}

.btn-home:hover {
    background: #e5a600;
}

.modo-visualizacion-activo {
    border: 2px solid #FFB81C;
    box-shadow: 0 0 0 2px rgba(255, 184, 28, 0.3);
}

.panel-derecho {
    flex: 2.5;
    padding: 20px;
}

.imagen-container {
    background: #F5F7FA;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.imagen-container img {
    max-width: 100%;
    border-radius: 10px;
    cursor: pointer;
}

.grafica-container {
    background: #F5F7FA;
    border-radius: 15px;
    padding: 20px;
    min-height: 350px;
    margin-bottom: 20px;
    display: block;
}

.grafica-container h3 {
    color: #2A5C38;
    margin-bottom: 15px;
    border-left: 4px solid #FFB81C;
    padding-left: 15px;
}

canvas {
    max-height: 300px;
    width: 100%;
}

.tabla-container {
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 450px;
    display: none;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.tabla-datos {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.85rem;
}

.tabla-datos th {
    background: #2A5C38;
    color: white;
    padding: 10px;
    position: sticky;
    top: 0;
    font-weight: 600;
    z-index: 10;
}

.tabla-datos td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.tabla-datos tr:nth-child(even) {
    background: #f9f9f9;
}

.tabla-datos tr:hover {
    background: #E8F3E8;
}

.tabla-datos th:nth-child(1),
.tabla-datos td:nth-child(1) {
    width: 60px;
    text-align: center;
}

.tabla-datos th:nth-child(2),
.tabla-datos td:nth-child(2) {
    text-align: left;
}

.tabla-datos th:nth-child(3),
.tabla-datos td:nth-child(3) {
    width: 100px;
    text-align: center;
}

.submenu .btn-visualizacion {
    flex: 1;
    text-align: center;
    padding: 10px;
}

#modalVariables {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.footer-imagen {
    margin-top: 20px;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.footer-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.stats-grid.active {
    display: grid;
}

.stat-card {
    background: #F5F7FA;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    margin: 5px;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.stat-card h4 {
    font-size: 0.7rem;
    color: #2A5C38;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.stat-card .valor {
    font-size: 1.6rem;
    font-weight: bold;
    color: #003B6F;
    line-height: 1.2;
}

.stat-card .unidad {
    font-size: 0.65rem;
    color: #888;
    margin-top: 5px;
}

.submenu-variables {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.submenu h4 {
    margin-bottom: 15px;
    margin-top: 5px;
}

.btn-grafica:hover::after,
.btn-tabla:hover::after {
    content: attr(title);
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
    background: #003B6F;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-var-modal:hover {
    background: #E8F3E8 !important;
    border-color: #2A5C38 !important;
}

.btn-var-modal:active {
    transform: scale(0.98);
}




/* LOGIN, sistema PASE */
.login-page {
    min-height: calc(100vh - 40px);
    margin: -20px;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F7FA;
}

.login-container {
    width: 100%;
    max-width: 900px;
    min-height: 520px;
    display: flex;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

/* El panel que esta a lado*/
.login-info {
    width: 45%;
    padding: 50px 40px;
    background: #003B6F;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-info::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 184, 28, 0.12);
    top: -80px;
    right: -80px;
}

.login-info::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(42, 92, 56, 0.35);
    bottom: -70px;
    left: -60px;
}

.login-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 35px;
}

.login-logo h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.login-logo .linea {
    width: 60px;
    height: 4px;
    background: #FFB81C;
    border-radius: 5px;
    margin-bottom: 20px;
}

.login-info h2 {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.login-info p {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.login-institucion {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Formulario */
.login-formulario {
    width: 55%;
    padding: 55px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-formulario h2 {
    color: #003B6F;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.login-subtitulo {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 35px;
}

.login-campo {
    margin-bottom: 22px;
}

.login-campo label {
    display: block;
    color: #003B6F;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.login-campo input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #D8DDE3;
    border-radius: 8px;
    background: #FAFBFC;
    color: #333;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.login-campo input:focus {
    border-color: #2A5C38;
    background: white;
    box-shadow: 0 0 0 3px rgba(42, 92, 56, 0.10);
}

.login-campo input::placeholder {
    color: #A5A5A5;
}

.login-button {
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: #2A5C38;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #003B6F;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 59, 111, 0.20);
}

.login-button:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    color: #999;
    font-size: 0.75rem;
}

/*Responsive*/
@media (max-width: 750px) {

    .login-container {
        flex-direction: column;
        max-width: 500px;
    }

    .login-info,
    .login-formulario {
        width: 100%;
    }

    .login-info {
        padding: 35px 30px;
    }

    .login-logo {
        margin-bottom: 20px;
    }

    .login-logo h1 {
        font-size: 2.4rem;
    }

    .login-institucion {
        margin-top: 25px;
    }

    .login-formulario {
        padding: 40px 30px;
    }
}

/*Registro desde el login*/
.login-registro {
    margin-top: 22px;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

.login-registro a {
    margin-left: 5px;
    color: #003B6F;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-registro a:hover {
    color: #2A5C38;
    text-decoration: underline;
}


/* Panele principal*/
.barra-panel {
    width: 100%;
    height: 72px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-sizing: border-box;
}

/* Marca */
.marca-pase {
    color: #003B6F;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* Usuario */
.usuario-panel {
    display: flex;
    align-items: center;
    gap: 24px;
}

.datos-sesion {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.datos-sesion strong {
    color: #333333;
    font-size: 14px;
}

.datos-sesion span {
    color: #777777;
    font-size: 12px;
}

.cerrar-sesion {
    color: #003B6F;
    text-decoration: none;
    border: 1px solid #D8DEE5;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 13px;
    transition: 0.2s;
}

.cerrar-sesion:hover {
    background-color: #003B6F;
    color: #FFFFFF;
}


/*Contenido del panel*/
.contenido-panel {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 55px 0;
}

/* =====================================================
   ENCABEZADO PASE
   ===================================================== */
.encabezado-pase {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #10376A;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}


/*.subtitulo-panel {
    color: #2A5C38;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.encabezado-panel h1 {
    color: #003B6F;
    font-size: 34px;
    font-weight: 600;
    margin: 8px 0;
}

.encabezado-panel p {
    color: #666666;
    margin: 0;
    font-size: 15px;
}*/


/* Imagen superior */
.imagen-encabezado {
    display: block;
    width: 60%;
    max-width: 2048px;
    height: auto;
    margin: 0 auto;
}




.menu-pase {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #10376a;
    margin: 0;
    padding: 0;
    border: none;
}

.menu-pase a {
    display: block;
    padding: 16px 28px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease;
}

.menu-pase a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/*  CONTENIDO DEL PANEL */
.contenido-panel {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 55px 0;
}

/* ENCABEZADO DEL CONTENIDO */
.encabezado-panel {
    margin-bottom: 40px;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid #FFB81C; 
}
.subtitulo-panel {
    color: #2A5C38;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}
.encabezado-panel h1 {
    color: #003B6F;
    font-size: 38px;
    font-weight: 800;
    margin: 8px 0;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 59, 111, 0.05);
    gap: 12px;
}
.encabezado-panel h1 {
    font-size: 34px;
    font-weight: 500; 
    margin: 0 0 8px 0;
    letter-spacing: -0.5px; 
    transform: translateY(2px);
}

/* MI CUENTA */
.seccion-cuenta {
    margin-top: 40px;
    padding: 25px 0;
}

.contenido-cuenta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contenido-cuenta h2 {
    margin: 0 0 8px 0;
    color: #003B6F;
    font-size: 23px;
    font-weight: 600;
}

.contenido-cuenta p {
    margin: 0 0 18px 0;
    color: #666666;
    font-size: 15px;
}

/* Botón modificar perfil */
.contenido-cuenta .boton-secundario {
    display: inline-block;
    padding: 11px 24px;
    background-color: #003B6F; /* Fondo azul */
    color: #FFFFFF; /* Texto blanco */
    border: 1px solid #003B6F;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 59, 111, 0.2); /* Sombra suave */
}


/* CERRAR SESIÓN*/
.cerrar-sesion-contenedor {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.cerrar-sesion {
    display: inline-block;
    padding: 8px 17px;
    border: 1px solid #003B6F;
    border-radius: 5px;
    color: #003B6F;
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cerrar-sesion:hover {
    color: #ffffff;
    background: #003B6F;
}

/* PIE DE PÁGINA PASE */
.footer-panel {
    width: 100%;
    margin: 0;
    padding: 10px 0; 
    background: #123b6f;
    max-height: 240px; 
    display: flex;
    align-items: center; 
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.imagen-pie {
    display: block;
    width: 95%;
    max-width: 2048px;
    height: auto;
    margin: 0 auto;
}


/* Info del usuario*/
.resumen-usuario {
    display: flex;
    gap: 50px;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 20px 0;
    margin-bottom: 45px;
}

.resumen-usuario div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.resumen-usuario span {
    color: #888888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resumen-usuario strong {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
}


/*Donde seleccionan que proyecto desean ver*/
.proyectos-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 45px;
}
/* Tarjetas */
.proyecto-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente todo el contenido */
    align-items: flex-start;
    min-height: 200px;
    padding: 30px 35px;
    box-sizing: border-box;
    text-decoration: none;
    background-color: #FFFFFF;
    border: 1px solid #E1E5E9;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}
.proyecto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 59, 111, 0.12);
}
.proyecto-principal {
    border-top: 5px solid #2A5C38;
}
.proyecto-secundario {
    border-top: 5px solid #003B6F;
}
.proyecto-numero {
    position: absolute;
    top: 15px;
    left: 35px;
    color: #A0AAB5;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}
.proyecto-card h2 i {
    margin-right: 8px;
    color: inherit; 
    font-size: 0.9em; 
}
.proyecto-principal h2 {
    color: #2A5C38;
}
.proyecto-secundario h2 {
    color: #003B6F;
}
.proyecto-card p {
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
.flecha-proyecto {
    position: absolute;
    bottom: 20px;
    right: 25px;
    color: #003B6F;
    font-size: 24px;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}
.proyecto-card:hover .flecha-proyecto {
    opacity: 1;
    transform: translateX(5px);
}


/*  Mi cuenta*/
.seccion-cuenta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 2px solid #F0F2F5;
    border-bottom: 2px solid #F0F2F5;
    margin-bottom: 30px;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.seccion-cuenta h2 {
    color: #003B6F;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px;
}
.seccion-cuenta p {
    color: #777777;
    font-size: 14px;
    margin: 0;
}

.boton-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #003B6F; /* Azul */
    color: #FFFFFF; /* Letras blancas */
    border: 1px solid #003B6F;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none; /* Quita el subrayado */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 59, 111, 0.2);
}
.boton-secundario:hover {
    background-color: #00294D; /* Azul más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 59, 111, 0.3);
}


/* Administracion*/
.seccion-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 25px;
    background-color: #F5F7FA;
    border-left: 4px solid #FFB81C;
    border-radius: 5px;
}

.seccion-admin > div > span {
    color: #2A5C38;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seccion-admin h2 {
    color: #003B6F;
    font-size: 18px;
    margin: 6px 0;
}

.seccion-admin p {
    color: #666666;
    font-size: 13px;
    margin: 0;
}

.boton-admin {
    background-color: #003B6F;
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 17px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
}

.boton-admin:hover {
    background-color: #00294D;
}


/* footer*/
.footer-panel {
    border-top: 1px solid #E5E7EB;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    color: #888888;
    font-size: 12px;
}


/* Responsive*/
@media (max-width: 750px) {
    .proyectos-panel {
        grid-template-columns: 1fr;
    }

    .resumen-usuario {
        flex-direction: column;
        gap: 15px;
    }

    .seccion-admin {
        flex-direction: column;
        align-items: flex-start;
    }

}

@media (max-width: 550px) {
    .barra-panel {
        padding: 0 4%;
    }

    .datos-sesion {
        display: none;
    }

    .contenido-panel {
        width: 92%;
        padding: 35px 0;
    }

    .encabezado-panel h1 {
    font-size: 32px;
    font-weight: 600; 
    color: #003B6F;
    margin: 0 0 8px 0;
    }

    .seccion-cuenta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-panel {
        flex-direction: column;
        gap: 5px;
    }

}


/*Administracion de usuarios */
.contenido-admin {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

/* Encabezado */
.encabezado-admin {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 30px;
}

.encabezado-admin > div > span {
    color: #2A5C38;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.encabezado-admin h1 {
    color: #003B6F;
    font-size: 30px;
    font-weight: 600;
    margin: 7px 0;
}

.encabezado-admin p {
    color: #666666;
    font-size: 14px;
    margin: 0;
}


/* Botón agregar */
.boton-agregar {
    background-color: #2A5C38;
    color: #FFFFFF;
    text-decoration: none;
    padding: 11px 17px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
}

.boton-agregar:hover {
    background-color: #1F462B;
}


/* Contenedor tabla */
.tabla-contenedor {
    background-color: #FFFFFF;
    border: 1px solid #E1E5E9;
    border-radius: 8px;
    overflow: hidden;
}

.tabla-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 22px;
    border-bottom: 1px solid #E5E7EB;
}

.tabla-superior h2 {
    color: #333333;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.tabla-superior span {
    color: #888888;
    font-size: 13px;
}


/* Tabla */
.tabla-scroll {
    overflow-x: auto;
}

.tabla-contenedor table {
    width: 100%;
    border-collapse: collapse;
}

.tabla-contenedor th {
    background-color: #F5F7FA;
    color: #555555;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    padding: 13px 15px;
    border-bottom: 1px solid #E1E5E9;
}

.tabla-contenedor td {
    color: #444444;
    font-size: 13px;
    padding: 15px;
    border-bottom: 1px solid #EEEEEE;
    vertical-align: middle;
}

.tabla-contenedor tbody tr:hover {
    background-color: #FAFBFC;
}


/* Etiquetas de rol */
.etiqueta-rol {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.etiqueta-rol.admin {
    color: #003B6F;
    background-color: #EAF1F8;
}

.etiqueta-rol.usuario {
    color: #2A5C38;
    background-color: #EAF2EC;
}


/* Acciones */
.acciones-usuario {
    display: flex;
    gap: 8px;
}

.acciones-usuario a {
    text-decoration: none;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
}

.accion-editar {
    color: #003B6F;
    border: 1px solid #003B6F;
}

.accion-editar:hover {
    background-color: #003B6F;
    color: #FFFFFF;
}

.accion-eliminar {
    color: #A33A3A;
    border: 1px solid #D8A5A5;
}

.accion-eliminar:hover {
    background-color: #A33A3A;
    color: #FFFFFF;
}


/* Sin usuarios */
.sin-usuarios {
    text-align: center;
    color: #888888 !important;
    padding: 35px !important;
}


/* Regresar */
.regresar-panel {
    display: inline-block;
    margin-top: 22px;
    color: #003B6F;
    text-decoration: none;
    font-size: 13px;
}

.regresar-panel:hover {
    text-decoration: underline;
}


/* Responsive */
@media (max-width: 750px) {
    .encabezado-admin {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* Formulario para agregar usuario*/
.formulario-contenedor {
    width: 100%;
    max-width: 780px;
    background: #FFFFFF;
    border: 1px solid #E1E5E9;
    border-radius: 8px;
    padding: 32px 36px;
    box-sizing: border-box;
}


/* Separación entre campos */
.campo-formulario {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}


/* Etiquetas */
.campo-formulario label {
    color: #333333;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}


/* Campos */
.campo-formulario input {
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    padding: 0 12px;
    background-color: #FFFFFF;
    border: 1px solid #D7DCE1;
    border-radius: 5px;
    color: #333333;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.campo-formulario input:hover {
    border-color: #B9C1C9;
}

.campo-formulario input:focus {
    border-color: #003B6F;
    box-shadow:
        0 0 0 3px rgba(0, 59, 111, 0.07);
}


/* Texto de ayuda */
.campo-formulario small {
    color: #888888;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 6px;
}


/* Tipo de usuario */
.rol-informativo {
    width: fit-content;
    padding: 8px 12px;
    background-color: #EAF2EC;
    border: 1px solid #D5E5D9;
    border-radius: 5px;
    color: #2A5C38;
    font-size: 12px;
    font-weight: 600;
}


/*Botones*/
.botones-formulario {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #E5E7EB;
}


.boton-cancelar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 16px;
    color: #555555;
    background-color: #FFFFFF;
    border: 1px solid #D7DCE1;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s ease;
}

.boton-cancelar:hover {
    background-color: #F5F7FA;
    border-color: #BFC6CD;
}


.boton-guardar {
    min-height: 40px;
    padding: 0 18px;
    color: #FFFFFF;
    background-color: #2A5C38;
    border: 1px solid #2A5C38;
    border-radius: 5px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease;
}

.boton-guardar:hover {
    background-color: #1F462B;
    border-color: #1F462B;
}


/* Mensajes del formulario*/
.mensaje-formulario {
    width: 100%;
    max-width: 780px;
    box-sizing: border-box;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 13px;
}

.mensaje-formulario.error {
    color: #8A3030;
    background-color: #FBECEC;
    border: 1px solid #E8C5C5;
}


/*Responsive*/

@media (max-width: 600px) {
    .formulario-contenedor {
        padding: 25px 20px;
    }
    .botones-formulario {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .boton-cancelar,
    .boton-guardar {
        width: 100%;
    }
}

.regresar-admin {
    display: inline-block;
    margin-top: 14px;
    color: #003B6F;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.regresar-admin:hover {
    text-decoration: underline;
}


/* Mesnajes de gestion*/
.mensaje-exito {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: #EAF2EC;
    border: 1px solid #D5E5D9;
    border-radius: 5px;
    color: #2A5C38;
    font-size: 13px;
}

.mensaje-error {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: #FBECEC;
    border: 1px solid #E8C5C5;
    border-radius: 5px;
    color: #8A3030;
    font-size: 13px;
}

/* Perfil*/
.seccion-cuenta.perfil {
    display: block;
    margin-top: 25px;
}

.perfil-titulo {
    margin-bottom: 25px;
}

.perfil-titulo h2 {
    margin-bottom: 5px;
    
}

.perfil-titulo p {
    margin: 0;
}


/* Campos */
.campo-perfil {
    margin-bottom: 18px;
}

.campo-perfil label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.campo-perfil input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    background-color: #fff;
}

.campo-perfil input:focus {
    outline: none;
    border-color: #777;
}

.campo-perfil small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}


/* Botones */
.perfil-botones {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}
.boton-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2A5C38; /* Verde */
    color: #FFFFFF; /* Letras blancas */
    border: 1px solid #2A5C38;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(42, 92, 56, 0.2);
}
.boton-principal:hover {
    background-color: #1F462B; /* Verde más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(42, 92, 56, 0.3);
}


/* Mensaje */
.mensaje-perfil {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 12px 15px;
    border-left: 3px solid #555;
    background-color: #f5f5f5;
    font-size: 14px;
}


/* Estilo del botón "Regresar al login" */
.volver-login {
    display: flex;
    justify-content: flex-end; /* Alinea el botón hacia la derecha */
    padding-right: 65px; /* Un poco de espacio para que no toque el borde */
}

.boton-volver-login {
    background-color: #003366; /* Azul marino igual al de la imagen */
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: normal;
    text-decoration: none; /* Quita el subrayado del enlace */
    display: inline-block;
    transition: background-color 0.3s ease;
}

.boton-volver-login:hover {
    background-color: #002244; /* Un azul un poco más oscuro al pasar el mouse */
}




/* =========================================================
   POTENCIA ELÉCTRICA
   ========================================================= */

/* Contenido principal */
.potencia-contenido {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 0 50px;
}

/* titulo */
.potencia-titulo {
    margin-bottom: 30px;
}

.potencia-titulo h1 {
    margin: 0;
    font-size: 32px;
    color: #003B6F;
    font-weight: 600;
}

.potencia-titulo h1 i {
    margin-right: 10px;
    color: #2A5C38;
}

/* area principal: filtros + imagen */
.potencia-principal {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 35px;
    align-items: start;
}

/* filtros */
.potencia-filtros {
    background: #FFFFFF;
    border: 1px solid #E1E5E9;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 12px rgba(0, 59, 111, 0.08);
}

.potencia-filtros h2 {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 21px;
    color: #003B6F;
}

.filtro-grupo {
    margin-bottom: 25px;
}

.filtro-grupo > label {
    display: block;
    font-weight: 600;
    color: #333333;
    margin-bottom: 9px;
}

/* unidad */
.selector-unidad {
    display: flex;
    gap: 8px;
}

.unidad-opcion {
    flex: 1;
}

.unidad-opcion input {
    display: none;
}

.unidad-opcion label {
    cursor: pointer;
    text-align: center;
    padding: 10px 6px;
    border: 1px solid #D8DDE3;
    border-radius: 8px;
    margin: 0;
    color: #003B6F;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.unidad-opcion label:hover {
    border-color: #003B6F;
}

.unidad-opcion input:checked + label {
    background: #003B6F;
    color: #FFFFFF;
    border-color: #003B6F;
}

/* calendario */
.calendario-contenedor {
    margin-top: 5px;
}

.calendario-contenedor input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #D8DDE3;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333333;
    background: #FFFFFF;
    outline: none;
}

.calendario-contenedor input[type="date"]:focus {
    border-color: #003B6F;
    box-shadow: 0 0 0 3px rgba(0, 59, 111, 0.07);
}

.ayuda-calendario {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #888888;
}

/* boton aplicar */
.boton-aplicar-potencia {
    width: 100%;
    border: 1px solid #2A5C38;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    background: #2A5C38;
    color: #FFFFFF;
    transition: all 0.2s ease;
}

.boton-aplicar-potencia:hover {
    background: #1F462B;
    border-color: #1F462B;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 92, 56, 0.20);
}

/* imagen + burbujas */
.paneles-potencia {
    width: 100%;
}

.paneles-imagen-contenedor {
    position: relative;
    width: 100%;
    max-width: 1096px;
    margin: 0 auto;
}

.paneles-imagen {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* burbujas */
.burbuja-potencia {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    background: #003B6F;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 59, 111, 0.30);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    z-index: 5;
}

.burbuja-potencia:hover {
    background: #2A5C38;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 5px 12px rgba(42, 92, 56, 0.35);
}

/* burbuja seleccionada */
.burbuja-potencia.seleccionada {
    background: #FFB81C;
    color: #003B6F;
    border-color: #003B6F;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 4px 10px rgba(255, 184, 28, 0.35);
}

/* resultados */
.resultados-potencia {
    margin-top: 40px;
    background: #FFFFFF;
    border: 1px solid #E1E5E9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 3px 12px rgba(0, 59, 111, 0.08);
}

.resultados-potencia h2 {
    margin-top: 0;
    color: #003B6F;
    font-size: 21px;
}

.resultados-potencia h2 i {
    color: #2A5C38;
    margin-right: 8px;
}

.sin-resultados {
    color: #666666;
    margin-bottom: 0;
}

/* selecciones */
.selecciones-potencia {
    margin-top: 15px;
    padding: 15px;
    background: #EAF2EC;
    border-left: 4px solid #2A5C38;
    border-radius: 8px;
    color: #333333;
}

.selecciones-potencia strong {
    display: block;
    margin-bottom: 8px;
    color: #2A5C38;
}

/* responsive */
@media (max-width: 900px) {
    .potencia-principal {
        grid-template-columns: 1fr;
    }
    .potencia-filtros {
        order: 1;
    }
    .paneles-potencia {
        order: 2;
    }
}

@media (max-width: 600px) {
    .potencia-contenido {
        width: 94%;
    }
    .burbuja-potencia {
        width: 36px;
        height: 36px;
        font-size: 9px;
        border-width: 2px;
    }
    .potencia-titulo h1 {
        font-size: 25px;
    }
}