/* --- BASE CONFIG --- */
:root {
    --primary: #ffd700;
    --primary-hover: #f1c40f;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-muted: #64748b;
    --height-standard: 46px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: #e0e0e0;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* --- GRIDS AND RESULTS --- */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: #2c2c2c;
    text-align: left;
}

th a {
    display: block;
    padding: 15px;
    color: #00bc8c;
    text-decoration: none;
}

td {
    padding: 12px;
    border-bottom: 1px solid #333;
}

/* ---NO SCROLL MENU --- */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* --- VIDEO COMPONENTS --- */
.youtube-section {
    padding: 40px 20px;
}

.video-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.video-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* --- ELEMENTOS DE FORMULARIO (Agrupados) --- */
/* Unificamos selectores, inputs y el botón principal para consistencia visual */
select,
input[type="text"],
.search-input,
.filters-section,
#main-search-btn {
    height: var(--height-standard);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

select,
input[type="text"],
.search-input,
.filters-section {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    background: #ffffff;
    color: var(--text-muted);
    border: 2px solid #ccc;
    outline: none;
    padding: 0 15px;
    min-width: 0;
}

select.filters-section:disabled {
    opacity: 0.4;
    background-color: #f1f5f9;
    cursor: not-allowed;
    -webkit-text-fill-color: #64748b;
}

select.filters-section:not(:disabled) {
    opacity: 1;
    background-color: #ffffff;
    -webkit-text-fill-color: initial;
    cursor: pointer;
}

select,
input[type="text"],
.search-input-bar {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    background: #ffffff;
    color: var(--text-muted);
    border: 2px solid #ccc;
    outline: none;
    padding-left: 45px;
    min-width: 0;
}

/* Focus State Agrupado */
select:focus,
input[type="text"]:focus,
.filters-section:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

/* --- BOTONES Y FILTROS --- */
.filter-btn {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    font-size: 13px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

button.filter-btn.filter-btn-active {
    background-color: var(--primary);
    color: #121212;
    border: 2px solid var(--primary);
}

button.filter-btn.filter-btn-inactive {
    background-color: transparent;
    color: var(--text-muted);
}

#main-search-btn {
    background-color: var(--primary);
    color: #121212;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: bold;
    min-width: 140px;
}

#main-search-btn:hover {
    background-color: var(--primary-hover);
}

/* --- ESTRUCTURA Y COLUMNAS --- */
.col-main-filters {
    flex: 3;
    min-width: 0;
}

.col-side-action {
    flex: 1;
    min-width: 0;
}

/* Contenedor gris del Content Type */
.col-side-action.flex {
    display: flex !important;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    height: 46px;
    width: 100%;
    box-sizing: border-box;
    gap: 4px;
}

/* Animación de búsqueda */
.is-searching .material-symbols-outlined {
    animation: spin-reverse 1s linear infinite;
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* --- ESTILOS DE ARTÍCULOS (HTML Dinámico) --- */
.formatted-content ul {
    list-style-type: disc;
    padding-left: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.formatted-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Para sub-listas anidadas */
.formatted-content ul ul {
    list-style-type: circle;
    padding-left: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.formatted-content p {
    margin-bottom: 1.25rem;
}

.formatted-content em {
    color: #404040;
    font-style: italic;
}

/* --- MARCO Y ZOOM DE NOTICIAS --- */
.news-thumb-container {
    overflow: hidden;
    /* Corta la imagen cuando crece */
    border-radius: 12px;
    /* Cantos redondeados (ajusta a tu gusto) */
    flex-shrink: 0;
    position: relative;
    display: block;
}

.news-thumb-container img {
    transition: transform 0.5s ease;
    /* Hace que el zoom sea suave */
    display: block;
    width: 100%;
    height: 100%;
}

/* Efecto: Cuando pasas el ratón por el enlace (que tiene la clase 'group'), la imagen escala */
.group:hover .news-thumb-container img {
    transform: scale(1.1);
    /* Zoom del 10% */
}