/*
Theme Name: Profesores UdeG 2.0
Theme URI: http://www.profesores-udg.com.mx/
Description: Tema modernizado para Profesores UdeG
Version: 2.7
Author: Abraham Morales
Author URI: https://www.abrahammoca.com
*/

/* =============================================
   IMPORTAR FUENTES
   ============================================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;700&display=swap");

/* =============================================
   VARIABLES DE COLOR (Paleta del sitio)
   ============================================= */
:root {
    --color-bg-dark:      #1a1f2e;
    --color-bg-card:      #252b3b;
    --color-nav-bg:       #1e2433;
    --color-nav-hover:    rgba(255,255,255,0.08);
    --color-accent:       #4299e1;
    --color-accent-dark:  #2b6cb0;
    --color-accent-hover: #63b3ed;
    --color-table-header: #1a2f55;
    --color-table-row:    #ffffff;
    --color-table-row-alt:#f7f9fc;
    --color-table-border: #d1dce8;
    --color-text-main:    #2d3748;
    --color-text-light:   #e2e8f0;
    --color-text-muted:   #718096;
    --color-link:         #2b6cb0;
    --color-link-hover:   #1a4a8a;
    --color-white:        #ffffff;
    --color-shadow:       rgba(0,0,0,0.12);
    --border-radius:      8px;
    --transition:         all 0.25s ease;
}

/* =============================================
   RESET Y BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-size: 14px;
    font-family: "Inter", "Open Sans", "Helvetica", Arial, sans-serif;
    background-color: #f0f4f8;
    color: var(--color-text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

li {
    list-style-type: none;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/* =============================================
   CONTENEDOR PRINCIPAL
   ============================================= */
.container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

/* =============================================
   CABECERA / LOGO
   ============================================= */
.logo {
    padding-top: 12px;
    padding-bottom: 8px;
}

.logo img {
    max-height: 70px;
    width: auto;
}

/* =============================================
   NAVBAR PRINCIPAL
   ============================================= */
nav.navbar {
    font-size: 13px !important;
    padding: 0 !important;
    border-radius: 0;
}

.navbar {
    background: linear-gradient(135deg, var(--color-nav-bg) 0%, #2d3748 100%);
    margin-top: 8px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px var(--color-shadow);
}

.navbar li {
    border-right: 1px solid rgba(255,255,255,0.08);
}

.navbar li:last-child {
    border-right: none;
}

.navbar li:first-child {
    margin-left: 0;
}

.navbar li:hover {
    background: var(--color-nav-hover);
}

.navbar li a {
    color: var(--color-text-light) !important;
    text-decoration: none;
    line-height: 42px;
    padding: 0 14px !important;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition);
    display: block;
}

.navbar li a:hover {
    color: var(--color-accent-hover) !important;
    text-decoration: none;
}

.navbar li.current-menu-item a,
.navbar li.current-page-item a {
    color: var(--color-accent-hover) !important;
    background: rgba(66, 153, 225, 0.15);
}

/* Toggler móvil */
.navbar-toggler {
    border-color: rgba(255,255,255,0.3) !important;
    margin: 6px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='https://freepixel-prod.s3.amazonaws.com/thumb/free-svg-minimalist-three-line-hamburger-menu-icon-commonly-th-6-align-center-alt-c-os-360522.jpg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dropdown del menú */
.navbar-nav .menu-item-has-children {
    position: relative;
}

.navbar-nav .menu-item-has-children > a::after {
    display: inline-block;
    margin-left: .4em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

.navbar-nav .menu-item-has-children ul {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    z-index: 1000;
    background: var(--color-nav-bg);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    min-width: 200px;
    padding: 6px 0;
}

.navbar-nav .menu-item-has-children ul li a {
    width: 100%;
    padding: 8px 16px !important;
    line-height: 1.5 !important;
    border-right: none;
    font-size: 13px;
}

.navbar-nav .menu-item-has-children:hover ul {
    display: block;
}

/* =============================================
   ÁREA PRINCIPAL (MAIN)
   ============================================= */
.main {
    margin-top: 16px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px var(--color-shadow);
    padding: 24px;
    margin-bottom: 20px;
}

/* =============================================
   PÁGINA DE INICIO - BUSCADOR
   ============================================= */
.titleBuscar {
    color: var(--color-accent-dark);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.buscadorIndex {
    text-align: center;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 24px auto;
}

.buscadorIndex input[type="text"],
.buscadorIndex .form-control {
    border: 2px solid var(--color-table-border);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding: 10px 16px;
    font-size: 15px;
    transition: var(--transition);
}

.buscadorIndex input[type="text"]:focus,
.buscadorIndex .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(66,153,225,0.2);
    outline: none;
}

.buscadorIndex button,
.buscadorIndex .btn {
    background: var(--color-accent-dark);
    color: var(--color-white);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.buscadorIndex button:hover,
.buscadorIndex .btn:hover {
    background: var(--color-accent);
}

/* =============================================
   WIDGETS DE INICIO
   ============================================= */
.headerWidget {
    text-align: center;
    background: var(--color-table-header);
    color: var(--color-white);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 14px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.anuncio-pat {
    display: inline-block;
}

.anuncio-pat img {
    max-width: 100px;
    max-height: 100px;
}

/* =============================================
   SIDEBAR / PANEL DERECHO
   ============================================= */
.side-right {
    list-style-type: none;
    padding: 0;
}

/* =============================================
   IMÁGENES DE PERFIL DE PROFESOR
   ============================================= */
.img-prof {
    text-align: center;
}

.img-prof img {
    max-width: 100%;
    max-height: 350px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px var(--color-shadow);
}

/* =============================================
   COMENTARIOS
   ============================================= */
.comments {
    padding: 16px;
}

/* =============================================
   ADSENSE
   ============================================= */
.adsense {
    list-style-type: none;
}

/* =============================================
   NAVEGACIÓN ALFABÉTICA (LETRAS A-Z)
   ============================================= */

/* Contenedor de la fila de letras */
.alphabet-nav {
    width: 100%;
    margin: 0 0 20px 0;
}

.alphabet-nav table,
table.alphabet-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
    margin-bottom: 16px;
}

/* BOTONES DE LETRA - clase .boton (antes #boton con id duplicados) */
td.boton,
.boton {
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    padding: 8px 4px;
    background-color: var(--color-white);
    color: var(--color-accent-dark);
    border: 2px solid var(--color-accent);
    border-radius: 6px;
    transition: var(--transition);
    min-width: 32px;
    white-space: nowrap;
    user-select: none;
}

td.boton:hover,
.boton:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(43, 108, 176, 0.3);
}

td.boton.active,
.boton.active {
    background-color: var(--color-table-header);
    color: var(--color-white);
    border-color: var(--color-table-header);
}

/* Fallback: si el PHP sigue usando #boton (id) */
#boton {
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    padding: 8px 4px;
    background-color: var(--color-white);
    color: var(--color-accent-dark);
    border: 2px solid var(--color-accent);
    border-radius: 6px;
    transition: var(--transition);
    min-width: 32px;
    white-space: nowrap;
    /* *** CORRECCIÓN CRÍTICA: eliminar margin-left:900px *** */
    margin-left: 0;
    margin-bottom: 0;
    height: auto;
    max-width: none;
    width: auto;
}

#boton:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent-dark);
    cursor: pointer;
}

/* =============================================
   TABLA DE PROFESORES
   ============================================= */

/* Contenedor responsivo */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border-radius: var(--border-radius);
}

/* Tabla base */
#table,
table.profesores-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--color-shadow);
    margin-bottom: 0;
}

/* Fila de encabezado */
#filaDeDatos,
tr.header-row {
    background-color: var(--color-table-header);
}

#filaDeDatos td,
tr.header-row td,
#filaDeDatos th {
    background-color: var(--color-table-header);
    color: var(--color-white);
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 14px 16px;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.1);
}

#filaDeDatos td:last-child,
tr.header-row td:last-child {
    border-right: none;
}

/* Filas de datos */
#table tbody tr,
#bordeSegundaFila tr {
    border-bottom: 1px solid var(--color-table-border);
    transition: background-color 0.15s ease;
}

#table tbody tr:nth-child(odd),
#bordeSegundaFila tr:nth-child(odd) {
    background-color: var(--color-table-row);
}

#table tbody tr:nth-child(even),
#bordeSegundaFila tr:nth-child(even) {
    background-color: var(--color-table-row-alt);
}

#table tbody tr:hover,
#bordeSegundaFila tr:hover {
    background-color: #e8f0fe;
}

#table tbody td,
#bordeSegundaFila td {
    padding: 12px 16px;
    text-align: center;
    color: var(--color-text-main);
    font-size: 14px;
    vertical-align: middle;
    border: none;
}

/* Primera columna (nombre): alineada a la izquierda */
#table tbody td:first-child {
    text-align: left;
    padding-left: 20px;
}

/* Links dentro de la tabla */
#table tbody td a,
#bordeSegundaFila td a {
    color: var(--color-link);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

#table tbody td a:hover,
#bordeSegundaFila td a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Columnas de ancho específico */
#table tbody td:nth-child(1) { width: 55%; }
#table tbody td:nth-child(2) { width: 30%; }
#table tbody td:nth-child(3) { width: 15%; }

/* Texto de "No hay comentarios" */
#table tbody td:nth-child(2),
#bordeSegundaFila td:nth-child(2) {
    color: var(--color-text-muted);
    font-style: italic;
    font-size: 13px;
}

/* Anular estilos de Bootstrap que sobrescriben la tabla */
.table {
    margin-bottom: 0;
}

/* =============================================
   TÍTULO DE PÁGINA DE CENTRO
   ============================================= */
.page-title-centro {
    font-family: "Inter", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-accent);
}

/* Estilos para el título generado inline en cuaad.php */
.main strong span[style] {
    font-family: "Inter", sans-serif !important;
    font-size: 26px !important;
    color: var(--color-text-main) !important;
}

/* =============================================
   PANEL FACEBOOK SLIDE
   ============================================= */
.slide_likebox {
    float: right;
    width: 288px;
    height: 345px;
    background: url(https://lh6.googleusercontent.com/-VW_GzzYnZJ0/TkiZQFcBc2I/AAAAAAAABmg/fa9_qWV8Cu4/fb_bg.png) no-repeat !important;
    display: block;
    right: -250px;
    padding: 0;
    position: fixed;
    top: 130px;
    z-index: 1002;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}

div.likeboxwrap {
    margin-top: 2px;
    margin-left: -5px;
    width: 238px;
    height: 325px;
    background-color: #fff;
    overflow: hidden;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}

div.likeboxwrap iframe { margin: -1px; }

/* =============================================
   DATO CHICO
   ============================================= */
#dato-chico {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* =============================================
   FOOTER
   ============================================= */
.row.text-center[style] {
    background-color: var(--color-nav-bg);
    color: var(--color-text-light);
    padding: 16px 0;
    margin-top: 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.row.text-center p {
    color: var(--color-text-light);
    font-size: 13px;
    margin: 0;
}

/* =============================================
   PUBLICIDAD / ANUNCIOS
   ============================================= */
.publicidad {
    text-align: center;
    margin: 12px 0;
}

/* =============================================
   UTILIDADES
   ============================================= */
.text-center { text-align: center !important; }

/* =============================================
   RESPONSIVE — MÓVIL
   ============================================= */
@media (max-width: 768px) {
    .main {
        padding: 16px 12px;
        margin-top: 10px;
    }

    .titleBuscar {
        font-size: 22px;
    }

    .buscadorIndex {
        max-width: 100%;
    }

    /* Letras A-Z más compactas en móvil */
    td.boton,
    .boton,
    #boton {
        font-size: 11px;
        padding: 5px 2px;
        min-width: 24px;
        border-width: 1px;
    }

    /* Tabla: columna de nombre ocupa más espacio */
    #table tbody td:nth-child(1) { width: 50%; }
    #table tbody td:nth-child(2) { width: 35%; }
    #table tbody td:nth-child(3) { width: 15%; }

    #filaDeDatos td {
        font-size: 11px;
        padding: 10px 8px;
        letter-spacing: 0.5px;
    }

    #table tbody td {
        font-size: 12px;
        padding: 10px 8px;
    }

    .navbar li a {
        line-height: 36px;
    }
}

@media (max-width: 480px) {
    td.boton,
    .boton,
    #boton {
        font-size: 10px;
        padding: 4px 1px;
        min-width: 20px;
    }

    .page-title-centro,
    .main strong span[style] {
        font-size: 20px !important;
    }
}



/* =======================================================
   ANULACIONES BOOTSTRAP — Alta especificidad
   Estas reglas se cargan al final para ganar a Bootstrap
   ======================================================= */

/* ---- LETRAS A-Z: forzar estilo botón ---- */
.table td#boton,
table td#boton,
.table td.boton,
table td.boton,
.alphabet-table td,
.alphabet-table td.boton {
    background-color: #ffffff !important;
    color: #2b6cb0 !important;
    border: 2px solid #4299e1 !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-align: center !important;
    padding: 7px 4px !important;
    cursor: pointer !important;
    min-width: 30px !important;
    max-width: 40px !important;
    transition: all 0.2s ease !important;
    /* Eliminamos el margin roto */
    margin: 0 !important;
    height: auto !important;
    width: auto !important;
    vertical-align: middle !important;
    /* Separación entre celdas */
    margin-right: 2px !important;
}

.table td#boton:hover,
table td#boton:hover,
.table td.boton:hover,
table td.boton:hover,
.alphabet-table td:hover {
    background-color: #4299e1 !important;
    color: #ffffff !important;
    border-color: #2b6cb0 !important;
    box-shadow: 0 3px 8px rgba(43,108,176,0.35) !important;
    transform: translateY(-1px) !important;
}

.table td.boton.active,
.alphabet-table td.active {
    background-color: #1a2f55 !important;
    color: #ffffff !important;
    border-color: #1a2f55 !important;
}

/* Separación entre celdas de la tabla alfabética */
.alphabet-table,
table.alphabet-table {
    border-collapse: separate !important;
    border-spacing: 4px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    border: none !important;
    background: transparent !important;
}

/* ---- TABLA DE PROFESORES: encabezado azul marino ---- */
table#table.table,
table#table {
    border-collapse: collapse !important;
    width: 100% !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12) !important;
    margin-bottom: 0 !important;
}

/* Fila de encabezado — fondo azul marino */
table#table tr#filaDeDatos td,
table#table thead tr td,
table#table thead tr th,
#filaDeDatos td,
#filaDeDatos th {
    background-color: #1a2f55 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    padding: 14px 16px !important;
    border: none !important;
    border-right: 1px solid rgba(255,255,255,0.12) !important;
    border-top: none !important;
    border-bottom: none !important;
}

#filaDeDatos td:last-child,
#filaDeDatos th:last-child {
    border-right: none !important;
}

/* Filas de datos: alternadas */
table#table.table tbody tr:nth-child(odd) td,
table#table tbody tr:nth-child(odd) td {
    background-color: #ffffff !important;
}

table#table.table tbody tr:nth-child(even) td,
table#table tbody tr:nth-child(even) td {
    background-color: #f7f9fc !important;
}

table#table.table tbody tr:hover td,
table#table tbody tr:hover td {
    background-color: #e8f0fe !important;
}

table#table.table tbody td,
table#table tbody td {
    padding: 12px 16px !important;
    text-align: center !important;
    color: #2d3748 !important;
    font-size: 14px !important;
    vertical-align: middle !important;
    border: none !important;
    border-bottom: 1px solid #d1dce8 !important;
}

/* Primera columna: nombre alineado a la izquierda */
table#table.table tbody td:first-child,
table#table tbody td:first-child {
    text-align: left !important;
    padding-left: 20px !important;
}

/* Links de nombres */
table#table tbody td a,
table#table.table tbody td a {
    color: #2b6cb0 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

table#table tbody td a:hover,
table#table.table tbody td a:hover {
    color: #4299e1 !important;
    text-decoration: underline !important;
}

/* Columna "Comentarios" — texto gris italic */
table#table.table tbody td:nth-child(2),
table#table tbody td:nth-child(2) {
    color: #718096 !important;
    font-style: italic !important;
    font-size: 13px !important;
}

/* ---- ELIMINAR bordes extra que pone Bootstrap ---- */
.table thead th,
.table thead td {
    border-bottom: none !important;
}

.table td,
.table th {
    border-top: none !important;
}

/* ---- ANUNCIO entre tabla alfabética y tabla de profesores ---- */
.publicidad {
    text-align: center !important;
    margin: 12px 0 !important;
}

/* ---- TÍTULO DEL CENTRO ---- */
.page-title-centro {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    text-align: center !important;
    margin-bottom: 24px !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid #4299e1 !important;
    font-family: "Inter", sans-serif !important;
}

/* Compatibilidad con el <strong><span> inline del cuaad.php antiguo */
.main table td strong span,
.main > div > table td strong span {
    font-family: "Inter", sans-serif !important;
    font-size: 26px !important;
    color: #2d3748 !important;
}

/* =======================================================
   DIRECTORIOS Y BUSCADOR — CENTROS, MATERIAS Y PUNTUACIÓN
   ======================================================= */

.proudg-search-header {
    margin-bottom: 20px;
    text-align: center;
}

.proudg-search-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #2b6cb0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.proudg-search-header h1 {
    margin: 0 0 7px;
    color: #18243a;
    font-family: "Inter", sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.proudg-search-header p {
    margin: 0;
    color: #718096;
    font-size: 13px;
}

.proudg-search-form {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(190px, 235px) auto;
    align-items: end;
    gap: 12px;
    padding: 17px;
    border: 1px solid #d5e0ee;
    border-radius: 10px;
    background: #f7faff;
}

.proudg-search-field {
    display: block;
    margin: 0;
}

.proudg-search-field > span:first-child {
    display: block;
    margin-bottom: 6px;
    color: #44536a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.proudg-search-control {
    position: relative;
    display: block;
}

.proudg-search-control i {
    position: absolute;
    top: 50%;
    left: 13px;
    color: #718096;
    transform: translateY(-50%);
}

.proudg-search-control input,
.proudg-search-field select {
    width: 100%;
    height: 44px;
    border: 1px solid #bac9dc;
    border-radius: 7px;
    background: #fff;
    color: #26354c;
    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.proudg-search-control input {
    padding: 9px 12px 9px 38px;
}

.proudg-search-field select {
    padding: 9px 34px 9px 12px;
}

.proudg-search-control input:focus,
.proudg-search-field select:focus {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(66,153,225,.14);
    outline: none;
}

.proudg-search-submit {
    height: 44px;
    padding: 0 22px;
    border: 1px solid #1769e8;
    border-radius: 7px;
    background: linear-gradient(135deg, #2479f3, #0a5ddd);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(17,104,238,.18);
}

.proudg-search-submit i {
    margin-right: 7px;
}

.proudg-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 11px;
    color: #64748b;
    font-size: 11px;
}

.proudg-active-filters strong {
    color: #344057;
}

.proudg-active-filters span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid #bfd4f4;
    border-radius: 999px;
    background: #eef5ff;
    color: #205da9;
}

.proudg-active-filters a {
    margin-left: auto;
    color: #2b6cb0;
    font-weight: 700;
}

.proudg-search-ad {
    margin: 16px 0 !important;
}

.proudg-results-meta {
    margin: 0 0 8px;
    color: #718096;
    font-size: 12px;
}

.proudg-results-meta strong {
    color: #1a2f55;
    font-size: 14px;
}

.proudg-directory-table-wrap {
    border: 1px solid #d8e1ed;
    border-radius: 9px;
}

table.proudg-directory-table {
    table-layout: fixed;
}

table.proudg-center-table {
    min-width: 830px;
}

table.proudg-search-table {
    min-width: 1120px;
}

table.proudg-center-table th:nth-child(1),
table.proudg-center-table thead td:nth-child(1) { width: 27%; }
table.proudg-center-table th:nth-child(2),
table.proudg-center-table thead td:nth-child(2) { width: 45%; }
table.proudg-center-table th:nth-child(3),
table.proudg-center-table thead td:nth-child(3) { width: 16%; }
table.proudg-center-table th:nth-child(4),
table.proudg-center-table thead td:nth-child(4) { width: 12%; }

table.proudg-search-table th:nth-child(1) { width: 15%; }
table.proudg-search-table th:nth-child(2) { width: 21%; }
table.proudg-search-table th:nth-child(3) { width: 39%; }
table.proudg-search-table th:nth-child(4) { width: 14%; }
table.proudg-search-table th:nth-child(5) { width: 11%; }

table.proudg-directory-table tbody td.proudg-profesor-cell,
table.proudg-directory-table tbody td.proudg-materias-cell {
    text-align: left !important;
    font-style: normal !important;
}

.proudg-materias-cell {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.proudg-materias-links {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: #738197;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

table#table tbody td a.proudg-materia-link,
a.proudg-materia-link {
    display: inline !important;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #245f9f !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: inherit;
    text-decoration: none !important;
    transition: color .16s ease;
}

table#table tbody td a.proudg-materia-link:hover,
a.proudg-materia-link:hover,
a.proudg-materia-link:focus-visible {
    color: #174e8e !important;
    text-decoration: underline !important;
    outline: none;
}

.proudg-materia-separator {
    color: #a1adbd;
    font-size: 11px;
}

.proudg-materias-empty {
    color: #8793a6;
    font-size: 11px;
    font-style: italic;
}

table.proudg-directory-table tbody td.proudg-comentarios-cell {
    color: #718096 !important;
    font-size: 12px !important;
    font-style: italic !important;
    text-align: center !important;
    white-space: nowrap;
}

table.proudg-directory-table tbody td.proudg-puntuacion-cell {
    text-align: center !important;
    white-space: nowrap;
}

.proudg-centro-cell a {
    display: block;
    text-decoration: none !important;
}

.proudg-centro-cell strong,
.proudg-centro-cell span {
    display: block;
}

.proudg-centro-cell strong {
    color: #1a5ba6;
    font-size: 12px;
    letter-spacing: .03em;
}

.proudg-centro-cell span {
    margin-top: 2px;
    color: #7a879a;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.3;
}

.proudg-empty-results td {
    padding: 44px 20px !important;
    text-align: center !important;
}

.proudg-empty-results i,
.proudg-empty-results strong,
.proudg-empty-results span {
    display: block;
}

.proudg-empty-results i {
    margin-bottom: 9px;
    color: #4299e1;
    font-size: 24px;
}

.proudg-empty-results strong {
    color: #2d3748;
    font-size: 14px;
}

.proudg-empty-results span {
    margin-top: 5px;
    color: #718096;
    font-size: 12px;
}

.proudg-search-page .navigation.pagination {
    margin-top: 16px;
}

.proudg-search-page .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.proudg-search-page .page-numbers {
    padding: 7px 11px;
    border: 1px solid #cad6e5;
    border-radius: 6px;
    background: #fff;
    color: #2b6cb0;
    font-size: 12px;
    text-decoration: none;
}

.proudg-search-page .page-numbers.current,
.proudg-search-page .page-numbers:hover {
    border-color: #1a2f55;
    background: #1a2f55;
    color: #fff;
}

@media (max-width: 767px) {
    .proudg-search-header h1 { font-size: 22px; }
    .proudg-search-form { grid-template-columns: 1fr; padding: 14px; }
    .proudg-search-submit { width: 100%; }
    .proudg-active-filters { align-items: flex-start; }
    .proudg-active-filters a { width: 100%; margin: 3px 0 0; }
    table.proudg-directory-table tbody td { width: auto !important; }
}



/* =======================================================
   HOME PAGE — HERO + BUSCADOR + WIDGETS
   ======================================================= */

/* ---- HERO SECTION ---- */
.hero-section {
    background: linear-gradient(135deg, #1a2f55 0%, #1e2433 60%, #0f1729 100%);
    padding: 60px 20px 50px 20px;
    margin-top: 0;
    text-align: center;
}

.hero-title {
    color: #ffffff;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    font-family: "Inter", "Open Sans", sans-serif;
}

.hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin-bottom: 32px;
    font-weight: 400;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Buscador hero */
.hero-search-form {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

.hero-input-wrap {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    background: #ffffff;
}

.hero-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 24px;
    font-size: 15px;
    color: #2d3748;
    background: #ffffff;
    font-family: "Inter", sans-serif;
    border-radius: 50px 0 0 50px;
}

.hero-input::placeholder {
    color: #a0aec0;
}

.hero-btn {
    background: #4299e1;
    color: #ffffff;
    border: none;
    padding: 16px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    transition: background 0.2s ease;
    font-family: "Inter", sans-serif;
    white-space: nowrap;
}

.hero-btn:hover {
    background: #2b6cb0;
}

/* ---- CONTENEDOR WIDGETS HOME ---- */
.home-widgets-container {
    margin-top: 32px;
    margin-bottom: 32px;
}

/* ---- TARJETA DE WIDGET ---- */
.widget-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
    overflow: hidden;
    margin-bottom: 20px;
}

.widget-header {
    background: linear-gradient(135deg, #1a2f55 0%, #243a63 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-header .fa {
    font-size: 14px;
    opacity: 0.85;
}

/* Lista de entradas dentro del widget */
.widget-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.widget-list li,
.widget-list .titleRSS {
    padding: 9px 18px;
    font-size: 13.5px;
    color: #4a5568;
    border-bottom: 1px solid #edf2f7;
    transition: background 0.15s ease;
    line-height: 1.5;
    display: block;
}

.widget-list li:last-child,
.widget-list .titleRSS:last-child {
    border-bottom: none;
}

.widget-list li:hover,
.widget-list .titleRSS:hover {
    background: #f7faff;
}

.widget-list li a,
.widget-list .titleRSS a {
    color: #2b6cb0;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.widget-list li a:hover,
.widget-list .titleRSS a:hover {
    color: #4299e1;
    text-decoration: underline;
}

/* Anuncio dentro del widget */
.widget-body-ad {
    padding: 14px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- FOOTER ---- */
.row.text-center p,
footer p {
    color: #718096;
    font-size: 13px;
    padding: 12px 0 8px;
    margin: 0;
}

/* ---- RESPONSIVE HOME ---- */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 16px 36px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-input {
        padding: 13px 16px;
        font-size: 14px;
    }

    .hero-btn {
        padding: 13px 20px;
        font-size: 14px;
    }

    .home-widgets-container {
        margin-top: 20px;
    }
}



/* =======================================================
   CORRECCIONES CRÍTICAS — Hero full-width y footer
   (Aplicadas después de mover hero fuera del container)
   ======================================================= */

/* El hero ahora está fuera del .container del header,
   así que puede ser verdaderamente full-width */
.hero-section {
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(135deg, #1a2f55 0%, #1e2433 60%, #0f1729 100%) !important;
    padding: 60px 20px 55px !important;
    margin: 0 !important;
    text-align: center !important;
    display: block !important;
    box-sizing: border-box !important;
}

.hero-title {
    color: #ffffff !important;
    font-size: 38px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.5px !important;
    font-family: "Inter", "Open Sans", sans-serif !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.hero-subtitle {
    color: rgba(255,255,255,0.72) !important;
    font-size: 15px !important;
    margin-bottom: 32px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

.hero-search-form {
    width: 100% !important;
    max-width: 580px !important;
    margin: 0 auto !important;
    display: block !important;
}

.hero-input-wrap {
    display: flex !important;
    border-radius: 50px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    background: #ffffff !important;
    border: none !important;
}

.hero-input,
.hero-input.form-control {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
    color: #2d3748 !important;
    background: #ffffff !important;
    font-family: "Inter", sans-serif !important;
    border-radius: 50px 0 0 50px !important;
    height: auto !important;
}

.hero-input::placeholder {
    color: #a0aec0 !important;
}

.hero-btn {
    background: #4299e1 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 30px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border-radius: 0 50px 50px 0 !important;
    transition: background 0.2s ease !important;
    font-family: "Inter", sans-serif !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    min-height: 52px !important;
}

.hero-btn:hover {
    background: #2b6cb0 !important;
    color: #ffffff !important;
}

/* Contenedor de widgets */
.home-widgets-container {
    padding-top: 32px !important;
    padding-bottom: 40px !important;
}

/* Tarjetas de widgets */
.widget-card {
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 14px rgba(0,0,0,0.09) !important;
    overflow: hidden !important;
    border: none !important;
}

.widget-header {
    background: linear-gradient(135deg, #1a2f55 0%, #243a63 100%) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.4px !important;
    padding: 13px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 0 !important;
}

/* Lista de entradas del widget */
ul.widget-list,
.widget-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
}

ul.widget-list li,
.widget-list li,
ul.widget-list .titleRSS,
.widget-list .titleRSS {
    padding: 9px 18px !important;
    font-size: 13.5px !important;
    color: #4a5568 !important;
    border-bottom: 1px solid #edf2f7 !important;
    line-height: 1.5 !important;
    display: block !important;
    list-style: none !important;
    background: transparent !important;
    transition: background 0.15s ease !important;
}

ul.widget-list li:last-child,
.widget-list .titleRSS:last-child {
    border-bottom: none !important;
}

ul.widget-list li:hover,
.widget-list .titleRSS:hover {
    background: #f0f7ff !important;
}

ul.widget-list li a,
.widget-list li a,
ul.widget-list .titleRSS a,
.widget-list .titleRSS a {
    color: #2b6cb0 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

ul.widget-list li a:hover,
.widget-list .titleRSS a:hover {
    color: #4299e1 !important;
    text-decoration: underline !important;
}

/* Área de anuncio dentro de widget */
.widget-body-ad {
    padding: 16px !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Footer del sitio */
footer.site-footer {
    background: #1e2433 !important;
    margin-top: 20px !important;
    padding: 18px 0 !important;
}

footer.site-footer p {
    color: rgba(255,255,255,0.5) !important;
    font-size: 13px !important;
    margin: 0 !important;
}

/* Responsive hero */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 16px 36px !important;
    }
    .hero-title {
        font-size: 26px !important;
    }
    .hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 24px !important;
    }
    .hero-input {
        padding: 13px 16px !important;
        font-size: 14px !important;
    }
    .hero-btn {
        padding: 0 18px !important;
        font-size: 13px !important;
        min-height: 46px !important;
    }
}



/* =======================================================
   OCULTAR WIDGET DEL PLUGIN "Ver más / Bookmarks"
   que aparece después del footer vía wp_footer()
   ======================================================= */

/* El plugin de bookmarks inyecta un accordion después del footer.
   Lo ocultamos porque ya se muestra como pills en el header. */
body > div:not(.hero-section):not(.container):not(.home-widgets-container),
body > .container-fluid:last-of-type,
.wplf-bookmarks-mobile,
#wplf-mobile,
.vidoomy-widget,
/* Ocultar cualquier accordion/card que aparezca DESPUÉS de footer.site-footer */
footer.site-footer ~ div,
footer.site-footer ~ section,
footer.site-footer ~ ul,
footer.site-footer ~ .card,
footer.site-footer ~ [class*="accordion"],
footer.site-footer ~ [class*="widget"],
footer.site-footer ~ [class*="bookmark"],
footer.site-footer ~ [class*="sidebar"] {
    display: none !important;
    visibility: hidden !important;
}

/* Excepción: mantener visible el admin bar de WP */
footer.site-footer ~ #wpadminbar {
    display: block !important;
    visibility: visible !important;
}

/* =======================================================
   WIDGET ANUNCIOS — altura mínima mientras carga AdSense
   ======================================================= */
.widget-body-ad {
    padding: 16px !important;
    min-height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fafbfc !important;
}

/* El <ins> de AdSense debe ocupar todo el ancho disponible */
.widget-body-ad .adsbygoogle {
    width: 100% !important;
    min-width: 200px !important;
}



/* =======================================================
   WIDGETS HOME — tamaño fijo 300×300 (igual para los 3)
   ======================================================= */

/* Columnas iguales, ancho fijo centrado */
.home-widgets-container .row {
    justify-content: center !important;
}

.home-widgets-container .col-12.col-md-4 {
    flex: 0 0 auto !important;
    width: 370px !important;       /* un poco de margen extra para el shadow */
    max-width: 370px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Tarjeta exactamente 350×350 */
.home-widgets-container .widget-card {
    width: 350px !important;
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* El header del widget tiene altura fija */
.home-widgets-container .widget-header {
    flex-shrink: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
}

/* El cuerpo de la lista ocupa el espacio restante y hace scroll interno */
.home-widgets-container .widget-list {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    /* scroll suave y sin scrollbar visible */
    scrollbar-width: thin !important;
    scrollbar-color: #d1dce8 transparent !important;
}

.home-widgets-container .widget-list::-webkit-scrollbar {
    width: 4px !important;
}
.home-widgets-container .widget-list::-webkit-scrollbar-thumb {
    background: #d1dce8 !important;
    border-radius: 4px !important;
}

/* Área de anuncio ocupa el espacio restante */
.home-widgets-container .widget-body-ad {
    flex: 1 1 auto !important;
    min-height: unset !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    background: #fafbfc !important;
}

/* Responsive: en móvil los widgets vuelven a ser fluidos */
@media (max-width: 767px) {
    .home-widgets-container .col-12.col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .home-widgets-container .widget-card {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        max-height: none !important;
    }
}



/* =======================================================
   HEADER — Espacios perfectamente aislados
   ======================================================= */

.site-header {
    width: 100% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* WRAPPER SUPERIOR - Fondo blanco para logo + adsense */
.site-header__top-wrapper {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* CONTENEDOR PRINCIPAL - Flexbox con espacio entre elementos */
.site-header__top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 0 !important;
    min-height: 140px !important;
    gap: 30px !important; /* Espacio entre logo y ad */
}

/* CONTENEDOR LOGO - Aislado a la izquierda */
.site-header__logo-container {
    flex: 0 0 auto !important;
    max-width: 45% !important; /* No ocupa más del 45% */
}

.site-header__logo-link {
    display: block !important;
}

.site-logo-img {
    max-height: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* CONTENEDOR ADSENSE - Aislado a la derecha */
.site-header__ad-container {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    min-width: 320px !important; /* Espacio mínimo garantizado */
}

.site-header__ad-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 90px !important;
}

/* Forzar fondo transparente en el widget de adsense dentro del header */
.site-header__ad-container iframe,
.site-header__ad-container ins,
.site-header__ad-container > *,
.site-header__ad-inner iframe,
.site-header__ad-inner ins,
.site-header__ad-inner > * {
    background: transparent !important;
    vertical-align: middle !important;
}

/* WRAPPER NAVBAR - Barra de navegación completamente separada */
.site-header__navbar-wrapper {
    background-color: #151a27 !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
}

.site-header__navbar-wrapper .navbar {
    background: transparent !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    min-height: 44px !important;
}

/* Items del menú */
.site-header__navbar-wrapper .navbar-nav .nav-item,
.site-header__navbar-wrapper .navbar-nav li {
    border-right: 1px solid rgba(255,255,255,0.07) !important;
}

.site-header__navbar-wrapper .navbar-nav .nav-item:last-child,
.site-header__navbar-wrapper .navbar-nav li:last-child {
    border-right: none !important;
}

.site-header__navbar-wrapper .navbar-nav li a,
.site-header__navbar-wrapper .navbar-nav .nav-link {
    color: #e2e8f0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    padding: 0 14px !important;
    line-height: 44px !important;
    display: block !important;
    text-decoration: none !important;
    transition: color 0.2s ease, background 0.2s ease !important;
    white-space: nowrap !important;
}

.site-header__navbar-wrapper .navbar-nav li a:hover,
.site-header__navbar-wrapper .navbar-nav .nav-link:hover {
    color: #63b3ed !important;
    background: rgba(255,255,255,0.06) !important;
}

.site-header__navbar-wrapper .navbar-nav li.current-menu-item > a,
.site-header__navbar-wrapper .navbar-nav li.current_page_item > a {
    color: #63b3ed !important;
    background: rgba(66,153,225,0.15) !important;
    border-bottom: 2px solid #4299e1 !important;
}

/* Dropdown */
.site-header__navbar-wrapper .navbar-nav .menu-item-has-children {
    position: relative !important;
}

.site-header__navbar-wrapper .navbar-nav .menu-item-has-children > a::after {
    content: "" !important;
    display: inline-block !important;
    margin-left: 5px !important;
    vertical-align: middle !important;
    border-top: 4px solid currentColor !important;
    border-right: 4px solid transparent !important;
    border-left: 4px solid transparent !important;
}

.site-header__navbar-wrapper .navbar-nav .menu-item-has-children ul {
    display: none !important;
    position: absolute !important;
    top: 44px !important;
    left: 0 !important;
    z-index: 1000 !important;
    background: #1a1f2e !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
    min-width: 200px !important;
    padding: 6px 0 !important;
    list-style: none !important;
    margin: 0 !important;
}

.site-header__navbar-wrapper .navbar-nav .menu-item-has-children:hover > ul {
    display: block !important;
}

.site-header__navbar-wrapper .navbar-nav .menu-item-has-children ul li a {
    line-height: 1.4 !important;
    padding: 10px 18px !important;
    border-right: none !important;
    white-space: normal !important;
    font-size: 13px !important;
}

/* Toggler móvil */
.site-header__navbar-wrapper .navbar-toggler {
    border-color: rgba(255,255,255,0.3) !important;
    margin: 6px 0 !important;
}

/* Anular el .navbar viejo que ya no aplica */
.site-header .navbar {
    background: transparent !important;
    box-shadow: none !important;
}

/* Eliminar el fondo gris claro que Bootstrap pone por defecto */
.site-header .navbar.navbar-light.bg-light {
    background-color: transparent !important;
}

/* Responsive */
@media (max-width: 991px) {
    .site-logo-img {
        max-height: 100px !important;
        width: auto !important;
        height: auto !important;
    }
    
    .site-header__top {
        padding: 12px 0 10px !important;
        min-height: 105px !important;
        gap: 20px !important;
    }
    
    .site-header__logo-container {
        max-width: 40% !important;
    }
    
    .site-header__ad-container {
        min-width: 250px !important;
    }

    .site-header__navbar-wrapper .navbar-nav li a {
        line-height: 1.4 !important;
        padding: 10px 16px !important;
    }

    .site-header__navbar-wrapper .navbar-nav .menu-item-has-children ul {
        position: static !important;
        box-shadow: none !important;
        background: rgba(255,255,255,0.05) !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 576px) {
    .site-logo-img {
        max-height: 70px !important;
        width: auto !important;
        height: auto !important;
    }
    
    .site-header__top {
        padding: 10px 0 8px !important;
        min-height: 75px !important;
        gap: 15px !important;
    }
    
    .site-header__logo-container {
        max-width: 100% !important;
    }
    
    .site-header__ad-container {
        display: none !important; /* En móvil muy pequeño se oculta el ad del header */
    }
}
