@import url('https://fonts.googleapis.com/css?family=Ubuntu:300,300i,400,400i,500,500i,700,700i');

/* ==========================================
   ESTILOS GENERALES Y CONTENEDORES
   ========================================== */
:root {
    --bg-color: #f5f5f5;
    --text-color: #171a1c;
    --navbar-bg: #036c79db;
    --navbar-text: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --btn-radius: 8px;
    --transition-speed: 0.3s;
    --link-hover: #00bcd4;
}

/* === MODO OSCURO: variables redefinidas con máxima prioridad === */
html.dark,
:root.dark {
    --bg-color: #0f172a;
    --text-color: #cbd5e1;
    --navbar-bg: #012f38;
    --navbar-text: #f1f5f9;
    --card-bg: #1e293b;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
    --link-hover: #22d3ee;
}

/* Fondo claro explícito (anula Bootstrap) */
html body {
    background-color: #f5f5f5 !important;
    color: #171a1c !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html, body {
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.6;
}

/* Animación global de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.contenido1, .info-uei {
    animation: fadeIn 0.6s ease-out forwards;
}

p {
    font-size: 15px;
}

/* AMPLITUD: Contenedor principal extendido para pantallas grandes */
.container {
    max-width: 1450px !important;
    width: 95% !important;
    margin: 0 auto !important;
} 

.container-fluid {
    padding-top: 0px;
    padding-bottom: 0px;
}

.contenido1 {
    padding: 20px;
    max-width: 1450px !important;
    margin: 0 auto;
}

.margin {
    padding: 0px 20px;
}

.margin-bd {
    padding: 20px 20px;
}

/* ==========================================
   BARRA DE NAVEGACIÓN (NAVBAR ESPACIOSA)
   ========================================== */
/* ==========================================
   BARRA DE NAVEGACIÓN
   ========================================== */
.navbar {
    padding-top: 0;
    padding-bottom: 0;
    border: 0;
    border-radius: 0;
    margin-bottom: 0;
    background: linear-gradient(90deg, #025f6b 0%, #036c79 60%, #027a89 100%) !important;
    box-shadow: 0 3px 16px rgba(0,0,0,0.22);
    border-bottom: 2px solid rgba(0,229,255,0.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar-default {
    background-color: transparent !important;
    transition: none;
}

/* Contenedor del navbar a ancho completo */
.navbar .container,
.navbar .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 40px;
    padding-right: 40px;
}

/* Links del navbar */
.navbar-default .navbar-nav > li > a {
    color: rgba(255,255,255,0.88) !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 22px 16px;
    position: relative;
    transition: color 0.2s ease;
}

/* Subrayado animado en hover */
.navbar-default .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: #00e5ff;
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.navbar-default .navbar-nav > li > a:hover {
    color: #ffffff !important;
    background: transparent !important;
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li.active > a::after,
.navbar-default .navbar-nav > li.open > a::after {
    transform: scaleX(1);
}

/* Estado hover general */
.navbar-nav li a:hover {
    color: #fff !important;
}

/* Elemento activo */
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.active > a:hover {
    background: rgba(0,0,0,0.15) !important;
    color: #00e5ff !important;
}

/* ==========================================
   DROPDOWN MENÚ — ESTADÍSTICA
   ========================================== */

/* Botón del dropdown cuando está abierto */
.navbar-nav > li.dropdown.open > a,
.navbar-nav > li.dropdown.open > a:hover,
.navbar-nav > li.dropdown.open > a:focus {
    background: rgba(0,0,0,0.20) !important;
    color: #00e5ff !important;
}

.navbar-nav > li.dropdown.open > a::after {
    transform: scaleX(1);
}

/* Panel del dropdown — especificidad máxima para vencer a Bootstrap 3 */
body .navbar .navbar-nav li.dropdown ul.dropdown-menu-estadistica,
body ul.dropdown-menu.dropdown-menu-estadistica,
.navbar-default .navbar-nav .dropdown-menu.dropdown-menu-estadistica,
.dropdown-menu-estadistica {
    background-color: #025f6b !important;
    background: #025f6b !important;
    border: none !important;
    border-top: 3px solid #00e5ff !important;
    border-left: 1px solid rgba(0,229,255,0.20) !important;
    border-right: 1px solid rgba(0,229,255,0.20) !important;
    border-bottom: 1px solid rgba(0,229,255,0.20) !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 10px 32px rgba(0,0,0,0.30) !important;
    min-width: 220px !important;
    padding: 6px 0 !important;
    margin-top: 0 !important;
    animation: dropdownFadeIn 0.20s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* Items del dropdown */
body .navbar .dropdown-menu-estadistica > li > a,
.dropdown-menu-estadistica > li > a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #e0f7fa !important;
    background-color: transparent !important;
    background: transparent !important;
    font-size: 13px;
    font-weight: 500;
    padding: 11px 18px;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    transition: background 0.18s ease, padding-left 0.18s ease;
    position: relative;
}

.dropdown-menu-estadistica > li:last-child > a {
    border-bottom: none;
}

/* Borde izquierdo de acento al hacer hover */
.dropdown-menu-estadistica > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #00e5ff;
    transform: scaleY(0);
    transition: transform 0.18s ease;
    border-radius: 0 2px 2px 0;
}

.dropdown-menu-estadistica > li > a:hover::before,
.dropdown-menu-estadistica > li > a:focus::before {
    transform: scaleY(1);
}

/* Iconos */
.dropdown-menu-estadistica > li > a .glyphicon {
    color: #00e5ff;
    font-size: 13px;
    width: 15px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.dropdown-menu-estadistica > li > a:hover,
.dropdown-menu-estadistica > li > a:focus {
    background: rgba(0,188,212,0.15) !important;
    color: #ffffff !important;
    padding-left: 23px;
}

.dropdown-menu-estadistica > li > a:hover .glyphicon {
    color: #ffffff;
    transform: scale(1.15);
}

/* Modo oscuro */
html.dark .dropdown-menu-estadistica {
    background: linear-gradient(160deg, #012830 0%, #011a20 100%) !important;
    border-color: rgba(34,211,238,0.20) !important;
    border-top-color: rgba(34,211,238,0.60) !important;
}
html.dark .dropdown-menu-estadistica > li > a {
    color: #a5f3fc !important;
}
html.dark .dropdown-menu-estadistica > li > a:hover {
    background: rgba(34,211,238,0.12) !important;
    color: #ecfeff !important;
}

/* Botón de Tema Minimalista */
.btn-theme-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--navbar-text) !important;
    transition: all var(--transition-speed) ease !important;
    margin-top: 7px;
}
.btn-theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: rotate(15deg) scale(1.05);
    color: var(--link-hover) !important;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}
.btn-theme-toggle i {
    font-size: 1.1rem;
}

/* Optimización del logo para que no empuje el menú hacia abajo */
.logo {
    width: auto;
    max-height: 42px;
}

/* ==========================================
   BANNER CENTRAL / CAROUSEL (MÁXIMA AMPLITUD)
   ========================================== */
.info-uei {
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    background-color: #12c8df;
    padding: 5em 2em;
    background-image: url("../img/banner.png");
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center;
    color: #fff; 
}

/* Corrección: Se reduce el padding del 20% al 2% para expandir textos y logos */
#text-info-uei {
    padding: 0% 2% !important;
    width: 100% !important;
    max-width: 100% !important;
}

#name-uei {
    color: #fff;
}

.logo-pilar3 {
    width: 10%;
    display: block;
    margin: 0 auto 0 auto;
    color: #fff;
}

/* ==========================================
   SECCIÓN DE CAPACITACIONES (VIDEOS)
   ========================================== */
.capacitaciones-section {
    padding-top: 30px;
    padding-bottom: 15px;
}

/* Diseño Flexbox para alinear todas las columnas y tarjetas en una fila */
@media (min-width: 768px) {
    .row-capacitaciones {
        display: flex;
        flex-wrap: wrap;
    }
    .row-capacitaciones > [class*="col-"] {
        display: flex;
        flex-direction: column;
    }
}

.card-capacitacion {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.card-capacitacion:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--link-hover);
}

.card-capacitacion h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.card-capacitacion .embed-responsive {
    border-radius: 8px;
    overflow: hidden;
    margin-top: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Compatibilidad con modo oscuro */
html.dark .card-capacitacion {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html.dark .card-capacitacion h4 {
    color: #cbd5e1 !important;
}

.titulo {
    color: var(--link-hover);
    border-bottom-style: solid;
    border-bottom: 2.5px solid var(--link-hover);
    margin-bottom: 20px;
    font-size: 19px;
    font-weight: 500;
}

.description {
    text-align: justify;
}

.bderecha {
    font-size: 14px;
    width: 100%;
}

/* ==========================================
   COMPONENTES UI (BOTONES Y COLORES)
   ========================================== */
.bg-blue, .bg-teal, .bg-green, .bg-red-ligth {
    background-color: #007C91;
    color: #ffffff;
}

.bg-red-dark {
    background-color: #c54d57;
    color: #ffffff;
}

.bg-white {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.bg-white:hover {
    box-shadow: var(--shadow-md);
}

.bg-skyblue {
    background-color: #00bcd4;
    color: #fff;
}

.bg-vino {
    background-color: #00ACC1;
    color: #fff;
}

.btn-user {
    width: 100%;
    font-size: 1em;
    border-radius: var(--btn-radius);
    border-color: rgba(255, 255, 255, .15);
    padding: 10px 0px;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
}

.btn-preg {
    width: 100%;
    font-size: 1em;
    border-radius: 0px;
    border-color: rgba(255, 255, 255, .15);
    background-color: #1f3e74;
    padding: 5px 0px;
}

.btn-preg:hover, .btn-preg:active, .btn-preg:focus {
    background-color: #1f3e74;
    color: white;
}

.btn-user:hover, .btn-user:active, .btn-user:focus {
    background-color: var(--link-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

a.blink {
    color: #fff;
    background-color: var(--link-hover);
    border: none;
    padding: 8px 15px;
    border-radius: var(--btn-radius);
    transition: all var(--transition-speed) ease;
    display: block;
}

a.blink:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-acces-pilar {
    padding: 0px 0px;
}

.footer {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    margin-top: 25px !important;
    padding-top: 12px;
    padding-bottom: 12px;
    color: white;
    font-size: 12px;
    line-height: 1.7;
    box-sizing: border-box;
    border-top: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
}

.footer h5 {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 4px;
    margin-bottom: 0;
    color: #fff;
}

.footer-inner {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 30px;
    overflow: hidden;
}

.footer-col-right {
    text-align: right;
}

@media (max-width: 767px) {
    .footer-col-right {
        text-align: left;
        margin-top: 10px;
    }
}

/* ==========================================
   SISTEMA DE LOGIN (OVERLAYS Y FORMS)
   ========================================== */
.overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    overflow-y: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 7%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #d03e73;
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

.login-page {
    width: 360px;
    padding: 0%;
    margin: auto;
    text-align: center;
    align-content: center;
}

.login-logo {
    width: 30%;
    display: block;
    margin: 0 auto;
}

.login-title-tes { color: #26cdf3; font-weight: bold; }
.login-title-doc { color: #ffcb6b; font-weight: bold; }
.login-title-cord { color: #ff6b6b; font-weight: bold; }

.form {
    z-index: 1;
    background: var(--card-bg);
    max-width: 360px;
    margin: 0 auto 100px;
    padding: 45px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form input, .form select {
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: var(--bg-color);
    width: 100%;
    border: 1px solid var(--border-color);
    margin: 0 0 15px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
    color: var(--text-color);
    border-radius: var(--btn-radius);
    transition: all var(--transition-speed) ease;
}

.form input:focus, .form select:focus {
    border-color: var(--link-hover);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

.form button {
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    outline: 0;
    width: 100%;
    border: 0;
    padding: 15px;
    color: #FFFFFF;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border-radius: var(--btn-radius);
    box-shadow: var(--shadow-sm);
}

.form button:hover, .form button:active, .form button:focus {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.login-btn-tesista { background: #26cdf3; }
.login-btn-docente { background: #ffcb6b; }
.login-btn-coord { background: #ff6b6b; }

.form .message {
    margin: 15px 0 0;
    color: #b3b3b3;
    font-size: 14px;
}

.form .message a {
    font-weight: bold;
    text-decoration: none;
}

.form .register-form {
    display: none;
}

.alert-danger {
    color: #fff;
    background-color: #d03e73;
}

.gi-1x {
    font-size: 1.5em;
    color: #d03e73;
}

/* MODALES */
.modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.modal-pilar { border-radius: var(--border-radius); }
.modal-pilar-title { color: #fff; background-color: var(--link-hover); }
.modal-pilar-content { color: var(--text-color); }

/* ==========================================
   OVERRIDES EXPLÍCITOS MODO OSCURO
   Sobreescriben colores hardcodeados de Bootstrap
   y clases propias del sistema
   ========================================== */

/* Body y fondo general */
html.dark body,
html.dark {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
}

/* Navbar */
html.dark .navbar-default {
    background-color: #012f38 !important;
    border-color: #0a4a55 !important;
}
html.dark .navbar-default .navbar-nav > li > a {
    color: #f1f5f9 !important;
}
html.dark .navbar-default .navbar-brand {
    color: #f1f5f9 !important;
}
html.dark .navbar-default .navbar-toggle {
    border-color: #334155;
}
html.dark .navbar-default .navbar-toggle .icon-bar {
    background-color: #f1f5f9;
}
html.dark .navbar-default .navbar-collapse {
    border-color: #0a4a55;
}

/* Fondos blancos y tarjetas */
html.dark .bg-white,
html.dark .panel,
html.dark .well {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

/* Botones de acceso (bg-teal, bg-blue, bg-green) */
html.dark .bg-blue,
html.dark .bg-teal,
html.dark .bg-green,
html.dark .bg-red-ligth {
    background-color: #006070 !important;
    border-color: #0a4a55 !important;
}

/* List group */
html.dark .list-group-item {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}
html.dark a.blink,
html.dark .list-group-item.blink {
    background-color: #22d3ee !important;
    color: #0f172a !important;
}

/* Tablas */
html.dark .table {
    color: #cbd5e1 !important;
}
html.dark .table > thead > tr > th,
html.dark .table > tbody > tr > td,
html.dark .table > tfoot > tr > td {
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
html.dark .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #1a2a3a !important;
}
html.dark .table-hover > tbody > tr:hover {
    background-color: #253347 !important;
}

/* Formularios e inputs */
html.dark .form-control,
html.dark input,
html.dark select,
html.dark textarea {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

/* Modales */
html.dark .modal-content {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}
html.dark .modal-header {
    background-color: #012f38 !important;
    border-color: #334155 !important;
}
html.dark .modal-footer {
    background-color: #162032 !important;
    border-color: #334155 !important;
}
html.dark .modal-body {
    background-color: #1e293b !important;
}
html.dark .modal-title {
    color: #f1f5f9 !important;
}

/* Banner hero */
html.dark .info-uei {
    background-color: #012f38 !important;
}

/* Cerrar modal */
html.dark .close {
    color: #f1f5f9 !important;
    opacity: 0.7;
    text-shadow: none;
}
html.dark .close:hover {
    color: #fff !important;
    opacity: 1;
}

/* Alerts */
html.dark .alert-info {
    background-color: #0c3547 !important;
    border-color: #0a4a55 !important;
    color: #93c5fd !important;
}

/* Labels y Badges de Bootstrap */
html.dark .label-warning {
    background-color: #854d0e !important;
}

/* Dropdowns */
html.dark .dropdown-menu {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
html.dark .dropdown-menu > li > a {
    color: #cbd5e1 !important;
}
html.dark .dropdown-menu > li > a:hover {
    background-color: #253347 !important;
    color: #f1f5f9 !important;
}

/* Paginación */
html.dark .pagination > li > a,
html.dark .pagination > li > span {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #22d3ee !important;
}

/* Scrollbar elegante en dark mode */
html.dark ::-webkit-scrollbar { width: 8px; }
html.dark ::-webkit-scrollbar-track { background: #1e293b; }
html.dark ::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #22d3ee; }

/* ==========================================
   ACORDEÓN — MODO CLARO (base elegante)
   ========================================== */
.panel-group .panel {
    border-radius: 8px !important;
    border: 1px solid #d1e8ec !important;
    margin-bottom: 6px !important;
    box-shadow: 0 1px 4px rgba(3, 108, 121, 0.08) !important;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.panel-group .panel:hover {
    box-shadow: 0 3px 10px rgba(3, 108, 121, 0.15) !important;
    border-color: #00bcd4 !important;
}

/* Cabecera del acordeón — modo claro */
.panel-group .panel-heading {
    background-color: #f0fafb !important;
    border-bottom: 1px solid #d1e8ec !important;
    padding: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    transition: background-color 0.25s ease;
}
.panel-group .panel-heading:hover {
    background-color: #e0f5f8 !important;
}

/* Título y link del acordeón — modo claro */
.panel-group .panel-title {
    margin: 0 !important;
}
.panel-group .panel-title > a {
    display: block !important;
    padding: 13px 18px !important;
    color: #036c79 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.panel-group .panel-title > a:hover {
    color: #00bcd4 !important;
    padding-left: 22px !important;
}

/* Ícono "+" del acordeón */
.panel-group .panel-title .glyphicon-plus {
    color: #00bcd4 !important;
    font-size: 11px !important;
    margin-right: 6px;
    transition: transform 0.25s ease;
}
.panel-group .panel-heading[aria-expanded="true"] .glyphicon-plus,
.panel-group .panel-title > a[aria-expanded="true"] .glyphicon-plus {
    transform: rotate(45deg);
}

/* Cuerpo del acordeón — modo claro */
.panel-group .panel-body {
    background-color: #ffffff !important;
    color: #334155 !important;
    border-top: 1px solid #d1e8ec !important;
    padding: 18px 20px !important;
}

/* Headings dentro del panel-body */
.panel-body h4 {
    color: #036c79 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}
.panel-body h5 {
    color: #64748b !important;
    font-size: 12px !important;
    margin-bottom: 10px !important;
}

/* ==========================================
   ACORDEÓN — MODO OSCURO
   ========================================== */

/* Panel contenedor */
html.dark .panel-group .panel {
    background-color: #1e293b !important;
    border: 1px solid #2a3f52 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
html.dark .panel-group .panel:hover {
    border-color: #22d3ee !important;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.1) !important;
}

/* Cabecera del panel */
html.dark .panel-group .panel-heading {
    background-color: #162032 !important;
    border-bottom: 1px solid #2a3f52 !important;
    border-radius: 8px 8px 0 0 !important;
    transition: background-color 0.25s ease;
}
html.dark .panel-group .panel-heading:hover {
    background-color: #1a2840 !important;
}

/* Link del título del panel */
html.dark .panel-group .panel-title > a {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
html.dark .panel-group .panel-title > a:hover {
    color: #e2e8f0 !important;
    padding-left: 22px !important;
}

/* Ícono "+" en dark mode */
html.dark .panel-group .panel-title .glyphicon-plus {
    color: #22d3ee !important;
}

/* Cuerpo del acordeón en dark mode */
html.dark .panel-group .panel-body {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-top: 1px solid #2a3f52 !important;
}

/* Headings dentro del panel-body en dark */
html.dark .panel-body h4 {
    color: #e2e8f0 !important;
}
html.dark .panel-body h5 {
    color: #64748b !important;
}

/* Estado activo (collapse abierto) — cabecera iluminada */
html.dark .panel-heading.active,
html.dark .panel-collapse.in ~ .panel-heading,
html.dark .panel-group .panel .panel-collapse.in + .panel-heading {
    background-color: #0f2233 !important;
}


/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media screen and (max-width: 520px) {
    .info-uei {
        background: #12c8df;
        padding: 3em 1em;
    }
    h3 { font-size: 16px; }
    h4 { font-size: 10px; }
    
    .logo-pilar3 {
        min-width: 30%;
        display: block;
        margin: 0 auto 0 auto;
        padding-top: 100px;
        color: #fff;
    }
    /* En pantallas móviles sí colapsamos los márgenes al mínimo */
    .container {
        margin: 0px !important;
        padding: 0px !important;
        width: 100% !important;
    }
    .contenido1 {
        padding: 10px;
    }
}

@media screen and (max-height: 800px) {
    .overlay { overflow-y: scroll; }
    .overlay a { font-size: 20px; }
    .overlay .closebtn { font-size: 40px; top: 15px; right: 35px; }
}