/* 1. LIMPIEZA DE FONDOS (EXCLUYE CABECERAS Y BOTONES) */
 
.eb-container .table tbody tr, 
.eb-container .table tbody td {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}



/* 2. FONDO BLANCO GENERAL */
.eb-container, .eb-container table {
    background-color: #ffffff !important;
}

/* 3. TEXTOS DE CELDAS EN GRIS OSCURO */
.eb-container td, 
.eb-container td span:not(.btn-text) {
    color: #333333 !important;
}

/* 4. ENCABEZADO VERDE HACIENDA (ELIMINADOR DE GRIS BOOTSTRAP 5) */
.eb-container .table thead th, 
.eb-container table thead th,
.eb-container thead tr,
.eb-container thead {
    --bs-table-bg: #A4B8A6 !important; /* Anula el gris de Bootstrap 5 */
    background-color: #A4B8A6 !important;
    background: #A4B8A6 !important;
}

/* 5. TEXTO DEL ENCABEZADO SIEMPRE BLANCO */
.eb-container thead th, 
.eb-container thead th a, 
.eb-container thead th span {
    color: #ffffff !important; /* Corregido de verde a blanco */
    text-transform: uppercase !important;
    font-weight: bold !important;
}

/* 6. BOTONES AMARILLOS (INSCRIPCIÓN) */
.eb-container .btn-primary, 
.eb-container .eb-button,
.eb-container a.btn-primary,
.eb-container .btn-warning {
    background-color: #ffbb00 !important;
    color: #ffffff !important;
    border: none !important;
}

/* 7. BOTONES ADMIN (NUEVO, EDITAR, CANCELAR) */
.eb-container .btn-success { background-color: #28a745 !important; color: white !important; }
.eb-container .btn-danger { background-color: #dc3545 !important; color: white !important; }
.eb-container .btn-info { background-color: #17a2b8 !important; color: white !important; }

/* 8. CATEGORÍAS Y TÍTULOS EN AMARILLO */
.eb-event-title, 
.eb-event-title a,
.eb-container table td a,
.eb-container a[href*="category_id"] {
    color: #ffbb00 !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

/* 9. BORDES FINOS */
.eb-container .table, .eb-container table {
    border-color: #eeeeee !important;
}



/* 5. CORRECCIÓN DE TÍTULOS INVISIBLES (REEMPLAZO DE GRIS POR NEGRO/VERDE) */

/* Títulos de los módulos laterales (Calendario, Próximos Eventos) */
.eb-container h3.eb-module-title, 
.eb-container .eb-sidebar h3,
.moduletable h3 {
    color: #333333 !important; /* Negro sólido */
    font-weight: 800 !important;
    opacity: 1 !important;
    text-transform: uppercase;
    border-bottom: 2px solid #78A58E; /* Línea verde hacienda abajo */
    padding-bottom: 5px;
}

/* Títulos dentro de los mensajes de confirmación e información general */
.eb-container h2, 
.eb-container h3, 
.eb-registration-complete-message h2, 
.eb-registration-complete-message h3,
#eb-group-registration-confirmation h2,
#eb-group-registration-confirmation h3 {
    color: #333333 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    text-shadow: none !important; /* Elimina sombras que puedan dar efecto gris */
}

/* Subtítulos de secciones de formulario */
.eb-container legend {
    color: #78A58E !important; /* Verde Hacienda para distinguir secciones */
    font-weight: bold !important;
}


/* 6. ARREGLO FINAL PARA TÍTULOS DE MÓDULOS (CALENDARIO Y PRÓXIMOS) */

/* Forzar color en títulos de la barra lateral */
.t4-sidebar h3.module-title, 
.t4-sidebar .eb-module-title,
.moduletable h3,
h3.module-title {
    color: #333333 !important; /* Negro sólido */
    opacity: 1 !important;
    font-weight: 800 !important;
    visibility: visible !important;
    display: block !important;
}

/* Si los títulos tienen un enlace interno (a veces pasa en Joomla) */
h3.module-title a, 
.eb-module-title a {
    color: #333333 !important;
}

/* Línea decorativa opcional para que resalten más */
h3.module-title {
    border-bottom: 2px solid #ffbb00; /* Línea amarilla a juego con tu tema */
    padding-bottom: 10px;
    margin-bottom: 15px;
}