/* Fondo general blanco */
body.form-body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* ðŸ‘ˆ Fondo blanco puro */
    margin: 90px; /*espacio entre el formulario y el header*/
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/*BODY DEL LOGIN*/
body.login-body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* ðŸ‘ˆ Fondo blanco puro */
    margin: 70; /*espacio entre el formulario y el header*/
    padding: 0;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/*BODY DEL DASHBOARD*/
body.dashboard-body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* ðŸ‘ˆ Fondo blanco puro */
    margin: 70; /*espacio entre el formulario y el header*/
    padding: 0;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/*BODY DEL HISTORIAL BONIFICACIONES*/
body.historial-body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* ðŸ‘ˆ Fondo blanco puro */
    margin: 70; /*espacio entre el formulario y el header*/
    padding: 0;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Contenedor del login - Peque?o y centrado */
.login-container {
    width: 100%;
    max-width: 450px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
    text-align: center;
}

.login-container label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.login-container input[type="text"],
.login-container input[type="password"],
.login-container input[type="email"],
.login-container input[type="date"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fdfdfd;
    box-shadow: 0 0 5px #aaa;
    border: none;
}

.theme-toggle-container {
    text-align: center;
    margin-top: 20px;
}

.dark-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.dark-toggle:hover {
    background-color: rgba(0,0,0,0.1);
}

/*Textbox en general, no lo selects*/
.input-sin-margen + .input-sin-margen {
    margin-top: 0 !important;
	width: 100%;
    max-width: none;
    margin-bottom: 0;
}

.input-textbox {
    width: 100% !important;
    max-width: 96% !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    margin-bottom: 10px !important;
}

.login-container input:focus,
select:focus {
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
    background: #ffffff;
    border: 1px solid #27ae60;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #27ae60; /* ðŸ‘ˆ Verde oscuro */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-container button:hover {
    background-color: #2ecc71;
    box-shadow: 0 0 10px #2ecc71, 0 0 20px #2ecc71;
}

/* TÃ­tulo con efecto neÃ³n verde */
.neon-text {
    color: #3498db; /* ðŸ‘ˆ NeÃ³n verde brillante */
    text-shadow: 0 0 10px #3498db, 0 0 20px #3498db;	
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 0px;
    display: block;
}

/* selects comunes con estilo suave */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
select {
    width: 100%; /*tama?o de los select*/
    padding: 8px; /* ðŸ‘‰ Reducido de 12px a 8px. Ensancha el textbox*/
    margin-bottom: 5px; /* ðŸ‘‰ Reducido de 20px a 15px. Distancia entre los textbox */
	margin-top: 10px;
    border-radius: 4px;
    font-size: 14px; /* ðŸ‘‰ Reducido de 16px a 14px */
    transition: all 0.3s ease;
    background: #fdfdfd;
    box-shadow: 0 0 5px #aaa;
    border: none;
}

/* Efecto al enfocar un input o select */
input:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 8px #27ae60, 0 0 15px #2ecc71;
    background: #ffffff;
    border: 1px solid #27ae60;
}

/* Campo edad (readonly) */
.edad-carga {
    background: #eee;
    color: #2c3e50;
    cursor: default;
    box-shadow: 0 0 5px #ccc;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Botones principales - Verde oscuro brillante */
button,
.option-btn {
    padding: 4px 12px;
    background-color: transparent; /* ðŸ‘ˆ Verde oscuro */
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 25%;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
    transition: all 0.3s ease;
    margin: 10px 5px;
    display: inline-block;
    min-width: 150px;
    text-align: center;
}

button:hover,
.option-btn:hover {
    background-color: none;
    box-shadow: 0 0 10px #2ecc71, 0 0 20px #2ecc71;
    transform: scale(1.02);
}

/* Botones peque?os con solo contorno */
.accionsearch-btn {
    padding: 2px 8px;
	display: inline-block;
    margin: 2px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Botones de acci¨®n MODIFICAR Y ELIMINAR DEL SEARCH.PHP: siempre en l¨ªnea */
.modificarsearch-btn,
.eliminarsearch-btn {
    display: inline-flex !important;   /* Fuerza el modo horizontal */
    align-items: center;
    justify-content: center;
    margin: 0 6px !important;          /* Espacio entre ellos */
    font-size: 13px !important;
    padding: 6px 10px !important;
    min-width: 80px;
    text-align: center;
    border: 2px solid;
    border-radius: 6px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.modificarsearch-btn {
    color: #155DFC;
    border: 2px solid #155DFC;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
}

.modificarsearch-btn:hover {
    box-shadow: 0 0 15px #155DFC;
    background-color: #e8ffe8;
}

.eliminarsearch-btn {
    color: #FB2C36;
    border: 2px solid #FB2C36;
    box-shadow: 0 0 8px #FB2C36;
}

.eliminarsearch-btn:hover {
    box-shadow: 0 0 15px #e74c3c;
    background-color: #ffe6e6;
}

/* Barra superior con usuario y cierre de sesi¨®n */
.top-user-bar {
    position: fixed;
	margin:8px;/*SUBE O BAJA EL HEADER*/
    top: 0;
    left: 50%;
	transform: translateX(-50%);
    width: 98%;
	max-width: 98%;
    background-color: #DBEAFE; /*color de fondo de la barra*/
    padding: none;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
	border-radius:10px; /*esquinas redondeadas de la barra superior*/		
	flex-wrap: wrap;
}

/* Espaciado para que el contenido no quede tapado por la barra superior */
.dashboard-body,
.search-body {
    margin-top: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
}

/* Informaci¨®n del usuario */
.user-info h2 {
    margin: 3px;
    font-size: 14px;
    color: #333;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 5px #e74c3c, 0 0 10px #e74c3c;
    transition: all 0.3s ease;
    font-weight: bold;
    position: relative;
}

.logout-btn:hover {
    background: none;
    box-shadow: 0 0 10px #c0392b, 0 0 20px #e74c3c;
}

/* Contenedor principal del formulario */
.form-container {
    width: 90%;
    max-width: 750px; /* ?? Cambiar esto para agrandar el contenedor del formulario */
    padding: 20px;     /* Menos padding */
    margin: 40px auto; /* Centrado con menos espacio */
    background-color: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/*Container del index.php*/
.form-container2 {
	width: 90%;
    max-width: 450px; /* ?? Cambiar esto para agrandar el contenedor del formulario */
    padding: 20px;     /* Menos padding */
    margin: 40px auto; /* Centrado con menos espacio */
    background-color: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-container input[type="text"],
.form-container input[type="password"] {
    width: 80%;	
	max-width: 300px;	
    padding: 8px 10px;
    margin: 10px 0;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/*boton de inicio de sesi¨®n en el index.php*/
.form-container button {
    
    padding: 10px 16px;
    font-size: 15px;	
}

/* ================================
   TEMA OSCURO - FONDO DEL FORMULARIO
   ================================ */

/* Fondo del contenedor del formulario */
body[data-theme="dark"] .form-container {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db !important;
}

/* Fondo del formulario de login */
body[data-theme="dark"] .login-form {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db !important;
}

/* Asegurar que el t¨ªtulo sea visible */
body[data-theme="dark"] .neon-text {
    color: #3498db !important;
    text-shadow: 0 0 5px #3498db, 0 0 10px #3498db !important;
}

/* Scroll vertical si contenido excede altura */
.form-container::-webkit-scrollbar {
    width: 6px;
}

.form-container::-webkit-scrollbar-thumb {
    background: #27ae60;
    border-radius: 10px;
}

/* SEARCH.PHP Tabla de resultados con scroll horizontal */
.tabla-scroll-horizontal {
    overflow-x: auto;
    max-width: 100%;
    padding: 10px 0;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 20px 0;
}

.data-table {
    width: 95%;
    min-width: 1200px;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;		
}

/*COLUMNA ACCIONES DEL SEARCH.PHP, D¨®NDE VAN LOS BOTONES DE MODIFICAR Y ELIMINAR, PARA QUE QUEDEN UNO AL LADO DEL OTRO*/
.acciones {
    display: flex;
    flex-direction: row;     /* ? Ahora est¨¢n en fila */
    gap: 5px;                /* Espacio entre botones */
    align-items: center;
}

.data-table th,
.data-table td {
    min-width: 150px;
    max-width: 200px;
    padding: 10px 13px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    white-space: nowrap;
}

.data-table thead th {
    background-color: #ecf0f1;
    color: #2c3e50;
    font-weight: bold;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    box-shadow: inset 0 2px 0 #27ae60;
}

/* Columnas clave */
.data-table th:nth-child(1),
.data-table td:nth-child(1) { min-width: 110px; }
.data-table th:nth-child(2),
.data-table td:nth-child(2) { min-width: 130px; }
.data-table th:nth-child(11),
.data-table td:nth-child(11) { min-width: 110px; }
.data-table th:nth-child(23),
.data-table td:nth-child(23) { max-width: 250px; white-space: normal; word-wrap: break-word; } /* Columna de direccion particular */

/* Checklist organizado en tabla con scroll */
.checklist-table-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    background: #f9f9f9;
}

.checklist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.checklist-table td {
    padding: 5px;
    vertical-align: top;
    font-size: 14px;
}

.checklist-table label {
    display: flex;
    align-items: center;
    text-align: left;
}

.checklist-table input[type="checkbox"] {
    margin-right: 10px;
    vertical-align: top;
}

/* Celda con texto largo truncado */
.truncate {
    max-width: 150px; /* Ancho m¨¢ximo de la celda */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    padding: 12px 15px;
}

/* Opcional: Cambiar color al hacer hover */
.truncate:hover {
    background-color: #f0f8ff;
    transition: all 0.3s ease;
}

/*TABLA SECCI¨®N GESTION DE USUARIOS*/
.checklist-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.checklist-table thead {
    background-color: var(--btn-save);
    color: green;
}

.checklist-table th,
.checklist-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.checklist-table tr:hover {
    background-color: transparent;
}

.checklist-table select {
    width: auto;
    padding: 6px 10px;
    font-size: 13px;
    margin-right: 10px;
}

/*Textbox p¨¢gina users.php*/
.input-pequeno {
    width: 70%;
    max-width: 250px;
    margin: 10px auto;
    display: block;
    padding: 8px;
    font-size: 10px;
}

 /*botones secci¨®n gesti¨®n de usuarios: agregar usuario y modificar o eliminar usuario de la bd*/ 
 .btn-pequeno {
    padding: 6px 10px !important;
    font-size: 12px !important;
    min-width: auto !important;
    width: auto !important;
}

.btn-pequeno:hover {
	background:none;
}

/*BOTON CERRAR SESION TAMAÑO EXCLUSIVO PARA EL HEADER*/
.btn-logout {
	padding: 6px 10px !important;
    font-size: 12px !important;
    min-width: auto !important;
    width: auto !important;
	box-shadow: 0 0 5px #e74c3c, 0 0 10px #e74c3c !important;
}

.btn-logout:hover {
	background:none;
}

/*BOTON DASHBOARD TAMAÑO EXCLUSIVO PARA EL HEADER*/
.dashboard-btn2 {
	padding: 6px 12px !important;
    font-size: 12px !important;
    min-width: auto !important;
    width: auto !important;
	box-shadow: 0 0 5px #2569fa, 0 0 10px #2569fa;
}

.dashboard-btn2:hover {
	background:none;
}

.btn-pdf,
.btn-limpiar,
.btn-mostrar,
.guardar-btn,
.editar-btn,
.modificar-btn {
    padding: 6px 8px;
    color: var(--btn-delete);
    border: 2px solid var(--btn-delete);
    background-color: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;    
    transition: all 0.3s ease;
    margin: 10px 5px;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.eliminar-btn,
.eliminar-carga {
    padding: 6px 8px;
    color: var(--btn-delete);
    border: 2px solid var(--btn-delete);
    background-color: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;    
    transition: all 0.3s ease;
    margin: 10px 5px;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.eliminar-btn {
    background-color: #e74c3c;
    color: white;
    border: 2px solid #c0392b;
    padding: 6px 8px;
    margin: 10px 5px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 100px;
    display: inline-block;
}

.eliminar-btn:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

/* Estados de vigencia por edad */
.vigente td {
    border-left: 4px solid #2ecc71 !important;
}

.expira-pronto td {
    border-left: 4px solid #f1c40f !important;
}

.beneficio-terminado td {
    border-left: 4px solid #e74c3c !important;
}

.estado-vigente {
    color: #2ecc71;
    font-weight: bold;
}

.estado-expira-pronto {
    color: #e67e22;
    font-weight: bold;
}

.estado-beneficio-terminado {
    color: #e74c3c;
    font-weight: bold;
}

/* Separacion entre afiliados */
.tabla-separada {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}


/* Formulario de busqueda SEARCH.PHP compacto debajo del header */
.search-form-top {
	width: 98%;
	max-width: 98%;
    margin: 65px auto 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    background-color: #f9f9f9;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
}

#search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
	
}

#search-form input[type="text"],
#search-form input[type="number"] {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 12px;/*Ancho de los botones Buscar por RUT, Nombre o Apellido, Min-Max*/
}

#search-form label {
    font-size: 12px;
    margin-right: 5px;
    white-space: nowrap;
}

#search-form button {
    padding: 6px 8px;
    color: var(--btn-delete);
    border: 2px solid var(--btn-delete);
    background-color: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;    
    transition: all 0.3s ease;
    margin: 10px 5px;
    display: inline-block;
    min-width: auto;
    width: auto;
    text-align: center;
}

#search-form button:hover {
    background: #2980b9;
}

#search-form button.btn-mostrar:hover {
    background: #27ae60;
}

#search-form button.btn-pdf:hover {
    background: #d35400;
}

/* Cargas familiares - estilo opcional */
.cargas-familiares {
    padding: 5px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 5px;
}

.cargas-familiares ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cargas-familiares li {
    margin: 3px 0;
    padding: 5px;
    background: #f1f1f1;
    border-radius: 4px;
}

.no-cargas {
    font-size: 13px;
    color: #888;
    text-align: center;
    padding: 5px;
}

/* Agrupaci¨®n de afiliado + cargas familiares */
.grupo-afiliado {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 30px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.grupo-afiliado legend {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    padding: 5px 15px;
    background: #ecf0f1;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
    position: relative;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Ne¨®n para Activa/o */
.grupo-activo legend {
    border-color: #27ae60;
    box-shadow: 0 0 8px #27ae60, 0 0 15px #27ae60;
}

/* Ne¨®n para Jubilada/o */
.grupo-jubilado legend {
    border-color: #8e44ad;
    box-shadow: 0 0 8px #8e44ad, 0 0 15px #8e44ad;
}

/* Ne¨®n para Fallecida/o */
.grupo-fallecido legend {
    border-color: #e74c3c;
    box-shadow: 0 0 8px #e74c3c, 0 0 15px #e74c3c;
}

/* Ne¨®n para Desvinculada/o */
.grupo-desvinculado legend {
    border-color: #3498db;
    box-shadow: 0 0 8px #3498db, 0 0 15px #3498db;
}

/* Ne¨®n para Desafiliada/o */
.grupo-desafiliado legend {
    border-color: #d9a711;
    box-shadow: 0 0 8px #d9a711, 0 0 15px #d9a711;
}

/* Ne¨®n para Desafiliada/o */
.grupo-sancionado legend {
    border-color: #FF8904;
    box-shadow: 0 0 8px #FF8904, 0 0 15px #FF8904 !important;
}

/* Estilo para cargas familiares */
.no-cargas {
    font-size: 14px;
    color: #888;
    text-align: center;
    padding: 10px;
    margin: 10px 0;
    background-color: #fefefe;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

/* Campo RUT solo en formato 11.111.111-1 */
.rut,
.rut-carga {
    width: 250px;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fdfdfd;
    box-shadow: 0 0 3px #bbb;
    border: none;
}

.rut:focus,
.rut-carga:focus {
    outline: none;
    box-shadow: 0 0 8px #2ecc71;
    border: 1px solid #27ae60;
}

/* Mensaje de validaci¨®n */
.rut-error,
.telefono-error,
.correo-error {
    margin-top: 5px;
    font-size: 0.9em;
    display: block;
    color: red;
    text-shadow: none;
}

.valid-success {
    color: green;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

.orange {
    color: orange;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

/* Cargas familiares */
.carga-item {
    display: inline-block;
    width: 100%;
    max-width: 700px; /* Mismo ancho que el contenedor principal */
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.carga-item:hover {
    box-shadow: 0 0 15px #27ae6044;
}

/* Pie de pagina - Fijo en la base */
.main-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #2D9966;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 9999;
    font-size: 0.9em;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
}

.footer-content {
    animation: neon-glow 2s ease-in-out infinite alternate;
}

@keyframes neon-glow {
    0% { text-shadow: 0 0 5px #27ae60, 0 0 10px #2ecc71; }
    100% { text-shadow: 0 0 8px #2ecc71, 0 0 15px #27ae60; }
}

/* Boton flotante para ir arriba */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 50%;
    width: 15px;
    height: 25px;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #2ecc71;
    box-shadow: 0 0 15px #2ecc71, 0 0 25px #27ae60;
}

/* Botones comunes */
.logout-btn {
    background-color: transparent;
    color: #2c3e50;
    border: none;
    padding: 6px 14px;
    margin: 5px;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-btn:hover {
	background:none;
}


.logout-btn:hover {
    box-shadow: 0 0 10px #27ae60, 0 0 20px #2ecc71;
}

@media (max-width: 600px) {
    .form-container {
        width: 95%;
        max-width: 100%;
        margin: 20px auto;
        padding: 15px;
    }

    .carga-item {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .form-container {
        width: 95%;
        max-width: 100%;
        padding: 20px;
        margin: 40px auto;
    }

    .form-container input,
    .form-container button {
        font-size: 13px;
    }
}

/* Nuevo estilo para search.php - Contenedor al 100% del ancho */
.search-container {
    width: 100%;
    max-width: 100%;
    padding: 1px;
    margin: 0;
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ajuste de celdas para evitar solapamiento */
.data-table td, .data-table th {
    white-space: normal;
    padding: 0px 2px; /* M¨¢s espacio vertical y horizontal */
    min-width: 160px;  /* Ajuste para que no se sobrepongan */
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
	font-size: 12px; /*Tama?o de las fuentes de la tabla*/
	word-wrap: break-word;
	border-right: 1px solid #c9c9c9;
	border-left: 1px solid #c9c9c9;
}

.tabla-scroll-vertical-horizontal {
  width: 98%;
  max-width: 98%;
  margin: 10px auto;
  padding: 2px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #d0ece7;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);

  /* ? ALTURA DINÁMICA: Ocupa todo el espacio disponible SIN desbordar */
  max-height: calc(100vh - 270px);
  min-height: 300px; /* Evita que desaparezca en pantallas pequeñas */
  /* Activa scrolls cuando sea necesario */
  overflow-y: auto;
  overflow-x: auto;

  /* Scroll visible y estilizado */
  scrollbar-width: thin;
  scrollbar-color: #27ae60 #f1f1f1;
}

/* ================================
   ESTILO PARA CARGAS INACTIVAS EN MODO OSCURO
   ================================ */

/* Estilo base para el estado de la carga */
.estado-carga {
    font-weight: bold;
    text-align: center;
}

/* Carga Activa - Verde brillante */
.estado-carga[style*="green"] {
    color: #2ecc71 !important;
}

/* Carga Inactiva - Rojo brillante */
.estado-carga[style*="red"] {
    color: #e74c3c !important;
}

/* Modo oscuro: Carga Activa */
body[data-theme="dark"] .estado-carga[style*="green"] {
    color: #2ecc71 !important;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

/* Modo oscuro: Carga Inactiva */
body[data-theme="dark"] .estado-carga[style*="red"] {
    color: #e74c3c !important;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
    background-color: rgba(231, 76, 60, 0.1) !important;
    border-radius: 4px;
    padding: 2px 6px;
}

/* Estilo del scrollbar horizontal */
.tabla-scroll-vertical-horizontal::-webkit-scrollbar {
  height: 10px;    /* Alto del scroll horizontal */
  width: 10px;     /* Ancho del scroll vertical */
}

.tabla-scroll-vertical-horizontal::-webkit-scrollbar-thumb {
  background: #27ae60;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

.tabla-scroll-vertical-horizontal::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

/* Asegura que la tabla interna no se achique */
.tabla-scroll-vertical-horizontal .data-table {
    max-width: 98%;
    width: auto;
    border-collapse: collapse;
    font-size: 12px;
}

/* Ajuste de la tabla para scroll y ancho */
.data-table {
    min-width: 98%;   /* La tabla ocupa al menos el ancho del contenedor */
    width: auto;       /* No uses max-content si quieres control */
    border-collapse: collapse;
    font-size: 12px;
    table-layout: auto; /* ?Clave para controlar el ancho de celdas! */
}

/* Mejora visual de los encabezados */
.data-table thead th {
    background-color: #ecf0f1;
    color: #2c3e50;
    font-weight: bold;
	font-size: 12px;
    position: static;
    top: 0;
    z-index: 2;
    box-shadow: inset 0 2px 0 #27ae60;
    white-space: nowrap;
    min-width: 160px;
    padding: 6px 5px;
}

/* Mejora del cuerpo de la tabla */
.data-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* ================================
   TEMA OSCURO
   ================================ */
body[data-theme="dark"] {
    background-color: #121212;
    color: #e0e0e0;
}

body[data-theme="dark"] .form-container,
body[data-theme="dark"] .search-form-top,
body[data-theme="dark"] table,
body[data-theme="dark"] .checklist-table,
body[data-theme="dark"] .top-user-bar,
body[data-theme="dark"] .button-group button,
body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
    background-color: #1e1e1e;
    color: #ffffff;
    border-color: #444;
}

body[data-theme="dark"] .form-container h2,
body[data-theme="dark"] .search-form-top h2,
body[data-theme="dark"] th,
body[data-theme="dark"] .neon-text {
    color: ##FAFAF9;
}

body[data-theme="dark"] .guardar-btn,
body[data-theme="dark"] .modificar-btn,
body[data-theme="dark"] .dashboard-btn,
body[data-theme="dark"] .logout-btn,
body[data-theme="dark"] .dark-toggle {
    background-color: #2B7FFF;
    color: white;
    border: none;
}

body[data-theme="dark"] .guardar-btn:hover,
body[data-theme="dark"] .modificar-btn:hover,
body[data-theme="dark"] .dashboard-btn:hover,
body[data-theme="dark"] .logout-btn:hover,
body[data-theme="dark"] .dark-toggle:hover {
    background-color: transparent; /*fondo del bot¨®n del sol para el tema*/
}

/* ================================
   MEJORA DE BORDES EN TEMA OSCURO
   ================================ */

/* Bordes m¨¢s definidos para inputs y selects en tema oscuro */
body[data-theme="dark"] input[type="text"],
body[data-theme="dark"] input[type="email"],
body[data-theme="dark"] input[type="password"],
body[data-theme="dark"] input[type="date"],
body[data-theme="dark"] input[type="number"],
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
    border: 2px solid #444 !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px rgba(100, 100, 255, 0.15) !important;
}

/* Efecto al enfocar: borde m¨¢s brillante */
body[data-theme="dark"] input[type="text"]:focus,
body[data-theme="dark"] input[type="email"]:focus,
body[data-theme="dark"] input[type="password"]:focus,
body[data-theme="dark"] input[type="date"]:focus,
body[data-theme="dark"] input[type="number"]:focus,
body[data-theme="dark"] select:focus,
body[data-theme="dark"] textarea:focus {
    border: 2px solid #FAFAF9 !important; /* Morado brillante */
    outline: none;
    box-shadow: 0 0 10px rgba(98, 0, 234, 0.4), 0 0 15px rgba(98, 0, 234, 0.3) !important;
    background-color: #2a2a2a !important;
}

/* Mejora para selects desplegables */
body[data-theme="dark"] select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236200ea'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px !important;
}

/* Para que los placeholders tambi¨¦n sean visibles */
body[data-theme="dark"] ::placeholder {
    color: #aaaaaa;
    opacity: 1;
}

body[data-theme="dark"] a {
    color: #FAFAF9;
}

body[data-theme="dark"] a:hover {
    color: #d7a8ff;
}

/* Mejora visual de inputs */
body[data-theme="dark"] input, 
body[data-theme="dark"] select, 
body[data-theme="dark"] textarea {
    box-shadow: 0 0 5px rgba(100, 100, 255, 0.2);
}

/* Ajuste para el datepicker de jQuery UI */
body[data-theme="dark"] .ui-widget {
    font-family: inherit;
}

body[data-theme="dark"] .ui-widget-content {
    background: #1e1e1e;
    border: 1px solid #444;
    color: #e0e0e0;
}

body[data-theme="dark"] .ui-state-default,
body[data-theme="dark"] .ui-widget-content .ui-state-default {
    background: #2d2d2d;
    border: 1px solid #555;
    color: #e0e0e0;
}

#theme-icon {
    transition: transform 0.3s ease, font-size 0.3s ease;
    font-size: 10px;
    display: inline-block;
}

#theme-toggle:hover #theme-icon {
    transform: rotate(180deg) scale(1.5);
}

/* Bot¨®n de cambio de tema - Fondo morado brillante */
.dark-toggle {
    background-color: #080400 !important; /* Morado intenso (Material Design) */
    color: white !important;
    border-radius: 100% !important;
    box-shadow: 0 0 10px #080400, 0 0 20px #080400 !important;
    transition: all 0.3s ease !important;
}

/* Hover: efecto brillante */
.dark-toggle:hover {
    background-color: #080400 !important;
    box-shadow: 0 0 15px #080400, 0 0 25px #080400 !important;
    transform: scale(1.5) !important;
}

/* En tema oscuro, mantener el estilo */
body[data-theme="dark"] .dark-toggle {
    background-color: transparent !important;
    box-shadow: 0 0 10px #fcd386, 0 0 20px #fcd386 !important;
}

body[data-theme="dark"] .dark-toggle:hover {
    background-color: transparent !important;
    box-shadow: 0 0 15px #fcd386, 0 0 25px #fcd386 !important;
}

/* Texto del header en tema oscuro */
body[data-theme="dark"] .user-info h2 {
    color: #ffffff !important; /* Morado claro (Material Design) */	
	text-shadow: 0 0 10px #fcd386, 0 0 20px #fcd386 !important;/*Mensaje de bienvenida del header.php*/
}

body[data-theme="dark"] .user-info h2 strong {
    color: #ffffff !important;
}

/* Tema oscuro para la tabla de bonificaciones sociales */
body[data-theme="dark"] .checklist-table-container {
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

body[data-theme="dark"] .checklist-table-container h4 {
    color: ##FAFAF9;
    text-align: center;
    margin-bottom: 10px;
}

body[data-theme="dark"] .checklist-table {
    width: 100%;
    border-collapse: collapse;
}

body[data-theme="dark"] .checklist-table td {
    padding: 8px;
}

body[data-theme="dark"] .checklist-table label {
    color: #e0e0e0;
}

body[data-theme="dark"] .checklist-table input[type="checkbox"] {
    accent-color: #bb86fc;
}

body[data-theme="dark"] .input-textbox {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
}

/* Fondo del contenedor de cargas en tema oscuro */
body[data-theme="dark"] #cargas-container {
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Fondo de cada carga familiar en tema oscuro */
body[data-theme="dark"] .carga-item {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Inputs y selects dentro de cargas en tema oscuro */
body[data-theme="dark"] .carga-item input,
body[data-theme="dark"] .carga-item select,
body[data-theme="dark"] .carga-item textarea {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
}

/* Borde ne¨®n en modo oscuro */
body[data-theme="dark"].focused input:focus,
body[data-theme="dark"].focused select:focus {
    border: 2px solid #FAFAF9 !important;
    box-shadow: 
        0 0 8px rgba(187, 134, 252, 0.3),
        0 0 14px rgba(187, 134, 252, 0.2),
        0 0 20px rgba(187, 134, 252, 0.15) !important;
}

/* Eliminar efecto hover en la tabla de bonificaciones sociales */
.checklist-table-container table tbody tr:hover,
.checklist-table-container table tbody td:hover,
.checklist-table-container table tbody td:hover input[type="checkbox"] {
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
}

/* Asegurar que no haya cambios al pasar el cursor */
.checklist-table-container table tbody td {
    transition: none !important;
}

/* Opcional: Si usas jQuery UI, evita su estilo de hover */
.checklist-table-container .ui-state-hover,
.checklist-table-container .ui-state-focus,
.checklist-table-container .ui-widget-content .ui-state-hover,
.checklist-table-container .ui-widget-content .ui-state-focus {
    background: none !important;
    border: none !important;
    font-weight: normal !important;
}

.checklist-table-container input[type="checkbox"]:hover {
    transform: scale(1.3); /* Efecto sutil al pasar el mouse */
    transition: transform 0.2s ease;
}

/* ================================
   MEJORA DE TABLA DE RESULTADOS (search.php) - TEMA OSCURO
   ================================ */

/* Eliminar efecto hover no deseado en filas */
.data-table tbody tr:hover {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Asegurar que las celdas no cambien al pasar el mouse */
.data-table tbody td:hover {
    background: none !important;
}

/* Sin transiciones bruscas */
.data-table tbody td, .data-table tbody tr {
    transition: none !important;
}

/* Estilo limpio para la tabla en tema oscuro */
body[data-theme="dark"] .tabla-scroll-vertical-horizontal {
    background-color: #1e1e1e;
    border: 1px solid #444;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
}

body[data-theme="dark"] .tabla-scroll-vertical-horizontal::-webkit-scrollbar-thumb {
    background: #21BCFF;
}

body[data-theme="dark"] .data-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
    table-layout: auto;
}

body[data-theme="dark"] .data-table th,
body[data-theme="dark"] .data-table td {
    border-bottom: 1px solid #444;
    border-right: 1px solid #333;
    padding: 4px 4px;
    text-align: left;
    color: #e0e0e0;
    background-color: #1e1e1e;
}

/* Encabezados m¨¢s destacados */
body[data-theme="dark"] .data-table thead th {
    background-color: #444 !important;
    color: #FAFAF9;
    font-weight: bold;
    box-shadow: inset 0 2px 0 #196601;
    position: sticky;
    top: 0;
    z-index: 2;
    border-right: 1px solid #555;
	border-left: 1px solid #555;
    border-bottom: none;
}

/* Alternar colores de filas (opcional, para mejor lectura) */
body[data-theme="dark"] .data-table tbody tr:nth-child(even) {
    background-color: #242424;
}

body[data-theme="dark"] .data-table tbody tr:nth-child(odd) {
    background-color: #1e1e1e;
}

/* Botones de acci¨®n en tema oscuro */
body[data-theme="dark"] .modificarsearch-btn,
body[data-theme="dark"] .eliminarsearch-btn {
    color: #ffffff;
    border: 1px solid #555;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
    background-color: #2d2d2d;
}

body[data-theme="dark"] .modificarsearch-btn {
    color: #64b5f6;
    border-color: #64b5f6;
}

body[data-theme="dark"] .modificarsearch-btn:hover {
    background-color: #1a3a6e;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.4);
}

body[data-theme="dark"] .eliminarsearch-btn {
    color: #ef5350;
    border-color: #ef5350;
}

body[data-theme="dark"] .eliminarsearch-btn:hover {
    background-color: #5e1a1a;
    box-shadow: 0 0 10px rgba(239, 83, 80, 0.4);
}

/* Celdas con texto largo (truncado) */
body[data-theme="dark"] .truncate {
    color: #e0e0e0;
}

body[data-theme="dark"] .truncate:hover {
    background-color: #2d2d2d;
}

/* Scrollbar personalizado en tema oscuro */
.tabla-scroll-vertical-horizontal::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.tabla-scroll-vertical-horizontal::-webkit-scrollbar-thumb {
    background: #21BCFF;
    border-radius: 10px;
}

.tabla-scroll-vertical-horizontal::-webkit-scrollbar-track {
    background: #FAFAF9;
}

/* ================================
   MEJORA DE GRUPOS DE AFILIADOS EN TEMA OSCURO
   ================================ */

/* Fondo del contenedor de grupo en tema oscuro */
body[data-theme="dark"] .grupo-afiliado {
    background-color: #1e1e1e !important;
    border: 1px solid #444 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Fondo de la leyenda (legend) en tema oscuro */
body[data-theme="dark"] .grupo-afiliado legend {
    background-color: #2d2d2d !important;
    color: #FAFAF9 !important;
    border-color: #555 !important;
    box-shadow: 0 0 8px rgba(187, 134, 252, 0.3), 0 0 15px rgba(187, 134, 252, 0.2) !important;
}

/* Asegurar que el texto dentro del grupo sea visible */
body[data-theme="dark"] .grupo-afiliado,
body[data-theme="dark"] .grupo-afiliado * {
    color: #e0e0e0 !important;
}

/* Opcional: Ajustar el borde seg¨²n el estado (Activo, Jubilado, etc.) */
body[data-theme="dark"] .grupo-activo legend {
    border-color: #27ae60 !important;
    box-shadow: 0 0 8px #27ae60, 0 0 15px #27ae60 !important;
}

body[data-theme="dark"] .grupo-jubilado legend {
    border-color: #8e44ad !important;
    box-shadow: 0 0 8px #8e44ad, 0 0 15px #8e44ad !important;
}

body[data-theme="dark"] .grupo-fallecido legend {
    border-color: #e74c3c !important;
    box-shadow: 0 0 8px #e74c3c, 0 0 15px #e74c3c !important;
}

body[data-theme="dark"] .grupo-desvinculado legend {
    border-color: #3498db !important;
    box-shadow: 0 0 8px #3498db, 0 0 15px #3498db !important;
}

body[data-theme="dark"] .grupo-desafiliado legend {
    border-color: #d9a711 !important;
    box-shadow: 0 0 8px #d9a711, 0 0 15px #d9a711 !important;
}

body[data-theme="dark"] .grupo-sancionado legend {
    border-color: #FF8904 !important;
    box-shadow: 0 0 8px #FF8904, 0 0 15px #FF8904 !important;
}

/* Borde m¨¢s grueso y claro para los grupos */
body[data-theme="dark"] .grupo-afiliado {
    border: 2px solid #F5F5F4 !important;
    box-shadow: 0 0 10px rgba(100, 100, 100, 0.2) !important;
}

/* Fondo oscuro para la fila de "No hay cargas" */
body[data-theme="dark"] .no-cargas-familiares {
    background-color: transparent !important;
    color: #FF8904 !important;
    text-align: left;
    padding: 0px;
    font-style: italic;    
	text-shadow: 0 0 8px #FF8904, 0 0 15px #FF8904 !important;
}

/* ================================
   TEMA OSCURO - BOTONES DEL DASHBOARD
   ================================ */

/* Fondo y color general para botones en tema oscuro */
body[data-theme="dark"] .form-container {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #444;
}

body[data-theme="dark"] .form-container h3 {
    color: ##FAFAF9;
}

/* Estilo para los botones del dashboard */
body[data-theme="dark"] .option-btn {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db !important;
    transition: all 0.3s ease !important;
}

/* Hover en botones del dashboard */
body[data-theme="dark"] .option-btn:hover {
    background-color: #3a3a3a !important;
    box-shadow: 0 0 10px #FFB93B, 0 0 20px #FFB93B !important;
    transform: scale(1.02) !important;
}

/* Eliminar vi?etas (puntos negros) de la lista de opciones */
.options-list {
    list-style: none; /* Elimina los puntos */
    padding-left: 0; /* Elimina el sangrado por defecto */
    margin: 0;
}

.options-list li {
    margin: 10px 0;
}

/* Asegurar que los enlaces tambi¨¦n respeten el color */
body[data-theme="dark"] .options-list a {
    text-decoration: none;
}

body[data-theme="dark"] .options-list li {
    margin: 10px 0;
}

/* Personalizaci¨®n completa de los selects */
select {
    /* Fondo y estilo general */	
    background-color: #fdfdfd;
    border: none;
    border-radius: 4px;
    padding: 8px 30px 8px 12px; /* Espacio extra a la derecha para la flecha */
    font-size: 14px;
    box-shadow: 0 0 5px #aaa;
    appearance: none; /* Elimina el estilo por defecto */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232B7FFF'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Efecto al enfocar */
select:focus {
    outline: none;
    box-shadow: 0 0 8px #27ae60, 0 0 15px #2ecc71;
    border: 1px solid #27ae60;
}

/* Flecha en tema oscuro */
body[data-theme="dark"] select {
    background-color: #2d2d2d;
    color: #e0e0e0;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bb86fc'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
}

/* ================================
   BOT¨®N "AGREGAR CARGA" CON ¨ªCONO ANIMADO
   ================================ */

/* Estilo base del bot¨®n */
.agregar-carga-btn {
    background-color: #27ae60 !important;
    color: white !important;
    border: none !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    margin: 10px 5px;
    display: inline-block;
    min-width: 180px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* Estilo del ¨ªcono + */
.btn-plus {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: white;
    color: #27ae60;
    border-radius: 50%;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
}

/* Animaci¨®n al pasar el mouse */
.agregar-carga-btn:hover .btn-plus {
    transform: rotate(90deg) scale(1.2);
    background-color: #27ae60;
    color: white;
}

/* Modo oscuro */
body[data-theme="dark"] .agregar-carga-btn {
    background-color: #2b7fff !important;
    color: white !important;
}

body[data-theme="dark"] .agregar-carga-btn:hover {
    background-color: #1447e6 !important;
}

body[data-theme="dark"] .btn-plus {
    color: #2b7fff;
    background-color: white;
}

body[data-theme="dark"] .agregar-carga-btn:hover .btn-plus {
    background-color: #1447e6;
    color: white;
}

/*Bot¨®n: "Mostrar Todo" (?? Animado)*/
.refresh-btn .icon {
    transition: transform 0.6s ease-in-out;
}
.refresh-btn:hover .icon {
    transform: rotate(180deg);
}

/*Bot¨®n: "Limpiar Filtros" (?? Animado)*/
.clean-btn .icon {
    transition: transform 0.3s ease;
}
.clean-btn:hover .icon {
    transform: scale(1.2) rotate(-10deg);
}

/*Bot¨®n: "Exportar a PDF Completo" (?? Animado)*/
.pdf-btn .icon {
    transition: transform 0.4s ease, text-shadow 0.4s ease;
}
.pdf-btn:hover .icon {
    transform: rotate(-5deg) scale(1.1);
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

/*Bot¨®n: "PDF Reducido" (?? Animado)*/
.pdf-mini-btn .icon {
    transition: transform 0.3s ease;
}
.pdf-mini-btn:hover .icon {
    transform: rotate(10deg) scale(1.1);
}

/*Bot¨®n: "Exportar a Excel" (?? Animado)*/
.excel-btn .icon {
    transition: transform 0.4s ease, filter 0.4s ease;
}
.excel-btn:hover .icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 5px #27ae60);
}

/* ================================
   BOTONES ANIMADOS - Estilo base
   ================================ */
.animated-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin: 5px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    color: #333;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
}

.animated-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.animated-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.animated-btn .icon {
    font-size: 16px;
    display: inline-block;
}

/* Tema oscuro */
body[data-theme="dark"] .animated-btn {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
}

body[data-theme="dark"] .animated-btn:hover {
    box-shadow: 0 4px 15px rgba(100, 100, 255, 0.4);
}

/* ================================
   ESTILO UNIFICADO PARA BOTONES DEL SEARCH.PHP
   ================================ */

/* Clase base para todos los botones animados */
.animated-btn {
    /* Estilo base coherente con el resto del sistema */
    background-color: transparent !important;
    color: #333 !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 6px;
    padding: 6px 10px;
    margin: 5px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
}

/* Hover: efecto ne¨®n azul (como pediste) */
.animated-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 8px #2B7FFF,
        0 0 15px #2B7FFF;
}

/* Deshabilitado */
.animated-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Icono dentro del bot¨®n */
.animated-btn .icon {
    font-size: 12px;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Animaci¨®n del ¨ªcono al hacer hover */
.animated-btn.refresh-btn:hover .icon,
.animated-btn.clean-btn:hover .icon,
.animated-btn.pdf-btn:hover .icon,
.animated-btn.pdf-mini-btn:hover .icon,
.animated-btn.excel-btn:hover .icon {
    transform: rotate(10deg) scale(1.1);
}

/* Fondo oscuro para la fila de "No hay cargas" */
.no-cargas-familiares {
    background-color: transparent !important;
    text-shadow: 0 0 8px #FF8904, 0 0 15px #FF8904 !important;
	color: #FF8904;
    text-align: left;
    padding: 0px;
    font-style: italic;
    
}

/* ================================
   TEMA OSCURO - Botones del search.php
   ================================ */

body[data-theme="dark"] .animated-btn {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
    box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
}

body[data-theme="dark"] .animated-btn:hover {
    box-shadow: 
        0 0 8px #2B7FFF,
        0 0 15px #2B7FFF;
}

/* Asegurar que los botones se vean bien en el contenedor */
.search-form-top .animated-btn {
    margin: 2px 5px;
}

/* Responsive: en pantallas peque?as */
@media (max-width: 768px) {
    .animated-btn {
        font-size: 12px;
        padding: 6px 10px;
        flex-wrap: wrap;
    }
    .animated-btn .icon {
        font-size: 14px;
    }
}

/* ================================
   REDUCIR TAMA?O DE BOTONES EN SEARCH.PHP
   ================================ */

/* Aplica a todos los botones del search.php */
.search-body button,
.search-body .animated-btn {
    padding: 6px 8px !important;   /* Ajusta el relleno (m¨¢s peque?o) */
    font-size: 12px !important;     /* Fuente m¨¢s peque?a */
    min-width: auto !important;     /* Permite que el bot¨®n se achique */
    height: auto;                   /* Altura autom¨¢tica */
    line-height: 1;                 /* Ajusta la altura del texto */
}

/* Animaci¨®n de pulso para el ¨ªcono */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Aplicar animaci¨®n al ¨ªcono */
.back-to-top .arrow-up-icon {
    transition: transform 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

/* Efecto al hacer hover */
.back-to-top:hover .arrow-up-icon {
    transform: rotate(-45deg) scale(1.3);
}

/* Carrusel de consejos - Con animaci¨®n de deslizamiento */
.consejos-bar {
    width: 30%;
    padding: 6px 0;
    background-color: transparent;
    border-radius: 70px;
    margin: 5px 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    cursor: default;
}

.consejo-texto {
    display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: #FF8904;
	white-space: nowrap;
	padding: 0 20px;
	font-style: italic;
	animation: slideText 25s linear infinite;
	animation-play-state: running;
	text-shadow: 0 0 8px #FF8904, 0 0 15px #FF8904 !important;

    /* Animaci¨®n de deslizamiento */
    animation: slideText 20s linear infinite; /* Ajusta el tiempo aqu¨ª */
    animation-play-state: running;
}

.consejos-bar:hover .consejo-texto {
    animation-play-state: paused;
}

@keyframes slideText {
    0% {
        /* Comienza completamente fuera del contenedor, a la derecha */
        transform: translateX(100%);
        opacity: 0;
    }
    10% {
        /* Aparece suavemente al entrar */
        opacity: 1;
    }
    90% {
        /* Mantiene opaco durante el recorrido */
        opacity: 1;
    }
    100% {
        /* Termina completamente fuera del contenedor, a la izquierda */
        transform: translateX(-100%);
        opacity: 0;
    }
}
/* ================================
   ESTILOS UNIFICADOS - CONTENEDOR DE SELECCI¨®N MASIVA + BOTONES DE EXPORTACI¨®N
   ================================ */

/* ================================
   TEMA CLARO - ESTADOS BASE
   ================================ */
#contenedor-seleccion-masiva {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    /*box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;*/
    transition: all 0.3s ease;
}

/* Efecto de hover en tema claro */
#contenedor-seleccion-masiva:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    /*box-shadow: 0 0 15px #3498db, 0 0 30px #3498db;*/
    transform: translateY(-1px);
}

/* Estado cuando hay elementos seleccionados */
#contenedor-seleccion-masiva[data-seleccionados="true"] {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    /*box-shadow: 0 0 15px #3498db, 0 0 30px #3498db;*/
}

/* Hover cuando hay elementos seleccionados */
#contenedor-seleccion-masiva[data-seleccionados="true"]:hover {
    /*box-shadow: 0 0 15px #FDC745, 0 0 30px #FDC745;*/
}

/* ================================
   TEMA OSCURO - ESTADOS
   ================================ */
body[data-theme="dark"] #contenedor-seleccion-masiva {
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: #e0e0e0;
    /*box-shadow: 0 0 10px #3498db, 0 0 20px #3498db;*/
}

/* Efecto de hover en tema oscuro */
body[data-theme="dark"] #contenedor-seleccion-masiva:hover {
    background-color: #2d2d2d;
    /*box-shadow: 0 0 15px #3498db, 0 0 30px #3498db;*/
    transform: translateY(-1px);
}

/* Estado cuando hay elementos seleccionados en tema oscuro */
body[data-theme="dark"] #contenedor-seleccion-masiva[data-seleccionados="true"] {
    background-color: #2a4d2a;
    border: 1px solid #458c45;
    color: #a3d9a3;
    /*box-shadow: 0 0 15px #3498db, 0 0 30px #3498db;*/
}

/* Hover cuando hay elementos seleccionados en tema oscuro */
body[data-theme="dark"] #contenedor-seleccion-masiva[data-seleccionados="true"]:hover {
    box-shadow: 0 0 15px #3498db, 0 0 30px #3498db;
}

/* Bot¨®n para filtrar beb¨¦s */
.btn-bebe {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px #3498db, 0 0 30px #3498db;
}

.btn-bebe:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 0 15px #3498db, 0 0 30px #3498db;
}

.btn-bebe:active {
    transform: translateY(0);
}

/* ================================
   BOTONES DE FILTRO R¨¢PIDO
   ================================ */

/* Estilo base de los botones */
.btn-filtro-rapido {
    padding: 6px 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: none;
    margin: 2px;
}

.btn-filtro-rapido:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px #3498db, 0 0 30px #3498db;
}

/* Colores espec¨ªficos */
.btn-bebe {
    background-color: #e74c3c;
    color: white;
}

.btn-nino {
    background-color: #3498db;
    color: white;
}

.btn-adolescente {
    background-color: #9b59b6;
    color: white;
}

.btn-joven {
    background-color: #1abc9c;
    color: white;
}

.btn-adulto {
    background-color: #f39c12;
    color: white;
}

.btn-jubilado {
    background-color: #2c3e50;
    color: white;
}

/* ================================
   TEMA OSCURO - BOTONES DE FILTRO
   ================================ */

body[data-theme="dark"] .btn-filtro-rapido {
    box-shadow: 0 0 15px #3498db, 0 0 30px #3498db;
}

body[data-theme="dark"] .btn-filtro-rapido:hover {
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.5);
}

/* Tema oscuro: Colores ajustados */
body[data-theme="dark"] .btn-bebe {
    background-color: #c0392b;
}

body[data-theme="dark"] .btn-nino {
    background-color: #2980b9;
}

body[data-theme="dark"] .btn-adolescente {
    background-color: #8e44ad;
}

body[data-theme="dark"] .btn-joven {
    background-color: #16a085;
}

body[data-theme="dark"] .btn-adulto {
    background-color: #d35400;
}

body[data-theme="dark"] .btn-jubilado {
    background-color: #34495e;
}

/*RESPONSIVE*/

/* Pantallas pequeñas: laptops comunes (1366x768) */
@media (max-height: 768px), (max-width: 1366px) and (max-height: 800px) {
  .tabla-scroll-vertical-horizontal {
    max-height: calc(100vh - 340px) !important; /* Ajuste fino */
  }

@media (max-height: 768px), (max-width: 1366px) and (max-height: 800px) {
  .dashboard-body {
    max-height: calc(100vh - 110px) !important; /* Ajuste fino */
  }