﻿/* Move down content because we have a fixed navbar that is 50px tall */

* {
    box-sizing: border-box;
}

body {
    padding-top: 50px;
    padding-bottom: 20px;
    /*background-color: #121212;*/ /*negro youtube*/
    /*background-color: #2e3b4e; /*gris azulado*/
    /*background-color: #CCCCCC; /*gris claro*/
    background-color: #D0D0D0; /*gris claro*/
    /*background-color: #f5f7fa; /*gris claro2*/
    /*background-color: #080273; /*azul promed*/
    /*background-color: #32A93E; /*verde*/
    /*background-color: #ECEFF1; /*gris claro AZULADO*/
    /*background-color: #F5FAF5; /*verde claro*/
}

/* Wrapping element */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/*body {
    background: linear-gradient(135deg, #080273, #4a90e2);
}*/

/* Ajuste de inputs */
@media screen and (min-width: 768px) {
    input,
    select,
    textarea {
        max-width: 280px;
    }
}

/* Estilos generales del .jumbotron */
.jumbotron {
    margin-top: 20px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100px; /* Evita que colapse */
    overflow: visible !important;
    position: relative !important;
}

/* Responsive: Portrait tablets y superiores */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }
}

/* Estilos para móviles */
@media screen and (max-width: 576px) {
    .jumbotron {
        margin-top: 10px !important;
        padding: 10px !important;
        display: block !important;
        min-height: 100px !important;
    }

    .body-content {
        padding: 10px !important;
    }

    .notification-content {
        max-width: 95% !important;
        padding: 10px !important;
    }
}

/* Ajustes para pantallas grandes */
@media screen and (min-width: 992px) {
    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }
}

/* Ajustes para pantallas extra grandes */
@media screen and (min-width: 1200px) {
    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }
}

/* Ajustes para orientación paisaje */
@media screen and (min-width: 576px) and (orientation: landscape) {
    .jumbotron {
        margin-top: 10px;
    }

    .body-content {
        padding: 10px;
    }
}

/* Notificaciones */
.notification-banner {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.notification-content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    max-width: 95%;
    width: 100%;
    position: relative;
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Ajustes para móviles */
@media (max-width: 576px) {
    .notification-content {
        max-width: 90%;
        padding: 10px;
    }
}

/* Imagen de la notificación */
.notification-content img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

/* Texto de la notificación */
.notification-text {
    font-family: 'Arial', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

    /* Colores de mensajes */
    .notification-text p#Lbl_mensaje {
        color: #FF4500;
        font-weight: bold;
    }

    .notification-text p#Lbl_aviso {
        color: #D32F2F;
        font-weight: bold;
    }

    .notification-text p#Lbl_mensaje_horas_extras {
        color: #388E3C;
        font-weight: bold;
    }

    .notification-text p#Lbl_recibo {
        color: #1976D2;
        font-weight: bold;
    }

/* Efecto hover en notificaciones */
.notification-content:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* Imagen de perfil */
.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
    display: block;
    margin: 0 auto;
}

/* Cumpleaños */
.cumpleanero {
    background-color: #f0f0f0;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
}

    .cumpleanero p {
        margin: 0;
    }

    .cumpleanero strong {
        color: #0056b3;
    }

/* Estilo de bienvenida */
.user-welcome {
    /*
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    */
    background-color: #1E3A8A;
    border-radius: 20px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    max-width: 70%;
    min-width: 200px; /* Para evitar que sea demasiado pequeño */
    width: auto; /* Se adapta al contenido */
    position: relative;
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
    word-wrap: break-word;
}

    /* Ajustar el label dentro de user-welcome */
    .user-welcome label {
        display: block;
        width: 100%; /* Asegura que se ajuste al contenedor */
        text-align: center;
        font-weight: bold;
        font-size: 1rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }

/* Ajustes para móviles */
@media (max-width: 576px) {
    .user-welcome {
        padding: 15px;
        font-size: 1rem;
    }

        .user-welcome label {
            font-size: 0.95rem;
        }
}

@media (max-width: 480px) {
    .user-welcome {
        padding: 10px;
        font-size: 0.9rem;
    }

        .user-welcome label {
            font-size: 0.85rem;
        }
}


/* GRID CON CABECERA FIJA */
.fixed-header-grid {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

    .fixed-header-grid th {
        position: sticky;
        top: 0;
        background-color: black; /* mismo color que tu cabecera */
        color: white;
        z-index: 2;
    }


.card {
    width: 250px;
    background-color: #ffffff; /* Fondo blanco para destacar sobre fondo gris */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin: 20px auto; /* Centrar la tarjeta */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: scale(1.03);
    }

.card-title {
    font-size: 1.3em;
    color: #222;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-value {
    font-size: 2.2em;
    color: #28a745; /* Verde para dar sensación de "activo" */
    font-weight: bold;
}

.count-label {
    font-weight: bold;
}

.login-icon {
    font-size: 3.5rem;
    color: #d63384; /* magenta */
}


.login-wrapper {
    min-height: 100vh; /* ocupa toda la pantalla */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa; /* gris claro */
}

.login-container {
    display: flex;
    flex-direction: column; /* apila logo y login */
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 500px; /* ancho máximo en desktop */
}

.login-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.login-icon {
    font-size: 4rem;
    color: #d63384;
}

.login-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.btn-magenta {
    background-color: white;
    border: 2px solid #2e3b4e;
    color: #2e3b4e;
    transition: all 0.3s ease;
}

    .btn-magenta:hover {
        background-color: #f0f4f8; /* gris azulado claro */
        border-color: #1c2633; /* tono más oscuro del borde */
        color: #1c2633; /* texto más fuerte en hover */
    }

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        gap: 20px;
    }

    .login-icon {
        font-size: 3rem;
    }

    .login-logo {
        width: 150px;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 15px;
    }

    .login-icon {
        font-size: 2.5rem;
    }

    .form-control,
    .btn {
        font-size: 1rem;
    }
}

.card-header {
    font-weight: bold;
    font-size: 1.2rem;
}

.form-label {
    font-weight: 500;
}

.text-danger {
    font-size: 0.9rem;
}


.badge-vencido {
    background-color: #f8d7da; /* fondo rojo claro */
    color: #dc3545; /* texto rojo */
    border: 1px solid #dc3545; /* borde rojo */
    font-weight: bold;
}


.page-comunicados .comunicado-titulo,
.page-comunicados .comunicado-mensaje {
    width: 100% !important;
}

.page-comunicados .comunicado-mensaje {
    min-height: 500px;
}

/*NUEVO LOGIN*/
.login-panel {
    width: 350px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.login-title {
    text-align: center;
    margin-bottom: 5px;
    font-size: 30px;
    font-weight: bold;
    color: #1b3c7a;
}

.login-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}

.form-control {
    height: 40px;
    border-radius: 8px;
}

.lblLogin {
    font-weight: bold;
    font-size: 16px;
}

.btn-login {
    width: 100% !important;
    height: 48px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
}

    .btn-login:hover {
        background: #0b5ed7;
        color: white;
    }

.logo {
    text-align: center;
    margin-top: 25px;
}

    .logo img {
        width: 60px;
    }

.error {
    text-align: center;
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

.login-form {
    width: 100%;
}

    .login-form .form-group {
        margin-bottom: 20px;
    }

    .login-form .form-control {
        width: 100%;
        height: 46px;
    }

    .login-form .btn {
        width: 100%;
        height: 48px;
    }


/* Asegurar tamaño legible y ancho completo por defecto en inputs con form-control */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea,
.form-control {
    width: 100%;
    font-size: 16px; /* Evita zoom automático en iOS y mantiene legibilidad */
    box-sizing: border-box;
}










