:root {
    --primaryIniSec: #008080;
    --accentIniSec: #f39c12;
    --primaryBarNav: #2c3e50;
    --accentBarNav: #3498db;
    --bg-light: #f4f7f6;
    --text-dark: #2c3e50;
    --font-main: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

body.fondoIniSec {
    background-color: var(--bg-light);
    font-family: var(--font-main);
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
}

.oculto, .alert_oculto { display: none !important; }

/* Contenedores Principales */
.contenedor-principal {
    display: flex;
    flex-direction: column;
    width: 100%;  
    overflow-x: hidden;
}

.login-wrapper {
    width: 100%;
    max-width: 90%;
    margin: 20px auto;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Barra de Navegación */
.main-header { position: sticky; top: 0; z-index: 1000; width: 100%; }

.custom-navbar {
    background-color: var(--primaryBarNav);
    height: 70px; 
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    width: 95%; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}

.nav-logo img { max-height: 50px; display: block; }

.nav-title {
    color: white; font-weight: 600; font-size: 1.2rem;
    text-align: center; flex-grow: 1;
}

/* Sistema de Inputs y Formularios adaptativos */
.contenedor-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
}

.input-group { position: relative; width: 100%; }

.input-field {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ddd;
    transition: border-color 0.3s;
    position: relative;
    height: 50px;
}

.input-field i.prefix {
    color: var(--primaryIniSec);
    margin-right: 15px;
    font-size: 1.5rem;
    position: absolute;
}


.input-field input[type="text"], 
.input-field input[type="password"],
.input-field input[type="date"],
.input-field input[type="time"] {
    border: none; outline: none; width: 100%; font-size: 1rem;
    padding-top: 15px; padding-left: 40px;
    background: transparent;
}

.input-field label {
    position: absolute; left: 40px; top: 15px;
    color: #999; transition: all 0.3s; pointer-events: none;
}

.input-field input:focus + label,
.input-field input:valid + label {
    top: -5px; font-size: 0.75rem; color: var(--primaryIniSec);
}
/* Estilos específicos para Checkboxes y sus Etiquetas */
.checkbox-custom {
    width: auto !important; 
    margin-left: 40px; 
    margin-top: 15px;
    cursor: pointer;
    transform: scale(1.2); /* Lo hace un poco más grande y fácil de cliquear */
}

.label-checkbox {
    position: absolute;
    left: 70px; /* Separación del cuadrito */
    top: 14px !important; /* Lo alinea verticalmente con el checkbox */
    color: var(--text-dark) !important;
    font-size: 0.9rem !important;
    pointer-events: auto !important; /* Permite que al darle clic al texto, se marque el check */
    cursor: pointer;
}

.select-wrapper {
    display: flex; align-items: center; background: #f9f9f9;
    border-radius: 8px; padding: 5px 15px; border: 1px solid #eee;
}

.custom-select { border: none; background: transparent; width: 100%; height: 40px; margin-left: 30px; outline: none; }

/* Agrupación de Botones */
.form-actions { display: flex; flex-direction: column; width: 100%; }

.btn-primary, .btn-secondary, .btn-regresar {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 45px; border-radius: 8px; text-decoration: none; font-weight: 600;
    border: none; cursor: pointer; transition: 0.3s; padding: 0 20px;
}

.btn-primary { background: var(--accentIniSec); color: white; }
.btn-primary:hover { background: #d3890e; transform: translateY(-2px); }

.btn-secondary { background: #eee; color: #666; }
.btn-secondary:hover { background: #ddd; transform: translateY(-2px); }

.btn-regresar { background-color: var(--accentBarNav); color: white; height: 42px; }
.btn-regresar:hover { opacity: 0.9; transform: translateY(-2px); }

/* Capa de Bloqueo de Pantalla (Loading GIF) */
.pantalla-carga {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fondo oscuro semitransparente */
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 9999; /* Sobre todo el contenido */
    color: white; font-weight: bold;
}

// .pantalla-carga img { width: 80px; margin-bottom: 20px; }

.pantalla-carga img { 
    width: 80%; /* Ocupará el 20% del ancho de la ventana */
    min-width: 120px; /* Evita que se vuelva diminuto en teléfonos */
    max-width: 750px; /* Evita que se vea gigante en monitores grandes */
    height: auto;
    margin-bottom: 20px; 
}

/* Estilos para que el GIF ocupe toda la pantalla */

// .gif-fondo {
//  position: fixed;    /* Fija la imagen en la pantalla aunque hagas scroll */
//  top: 0;
//  left: 0;
//  width: 100vw;       /* Ocupa el 100% del ancho de la pantalla */
//  height: 100vh;      /* Ocupa el 100% del alto de la pantalla */
//  object-fit: cover;  /* Escala el GIF para rellenar la pantalla sin deformarse */
//  z-index: -1;        /* Envía el GIF al fondo, detrás de cualquier otro texto o botón que agregues */
//}


/* Responsive Grid */
@media (min-width: 768px) {
    .contenedor-inputs { flex-direction: row; }
    .input-group { flex: 1; }
}

@media (max-width: 600px) {
    .btn-text { display: none; }
    .btn-regresar { padding: 10px; border-radius: 50%; }
    .nav-title { font-size: 1rem; }
}
