/* ==========================================================================
   1. IMPORTACIONES, REBOOT & TIPOGRAFÍA
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Boldonse&display=swap');

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html {
    height: 100%;
    font-size: 16px; /* Ajuste del tamaño base estándar UI */
}

body { 
    font-family: Arial, Helvetica, sans-serif; 
    background-color: #121212; 
    color: #e0e0e0; 
    font-size: 1rem; /* 16px para texto general */
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* ==========================================================================
   2. HEADER, BARRA SUPERIOR Y WIDGETS INTEGRADOS
   ========================================================================== */
.header-container {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    flex-shrink: 0;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.banner-info-bar {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 16px;
    font-size: 0.875rem; /* 14px */
    gap: 12px;
}

.info-widgets-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.header-overlay-text {
    font-family: 'Boldonse', sans-serif;
    font-weight: 900;
    font-size: 1.125rem; /* 18px */
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-right: 6px;
}

.widget-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e0e0e0;
    white-space: nowrap;
}

.info-widgets-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.header-link {
    color: #8ab4f8;
    font-size: 0.875rem; /* 14px */
    text-decoration: underline;
    transition: color 0.15s ease, opacity 0.15s ease;
    padding: 4px 0; /* Mayor área interactiva */
}

.header-link:hover {
    color: #c58af9;
    opacity: 0.9;
}


/* ==========================================================================
   3. LAYOUT CENTRAL DE BÚSQUEDA Y CENTRADO AUTOMÁTICO
   ========================================================================== */
.central-layout {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-title {
    font-family: 'Boldonse', sans-serif;
    text-transform: uppercase;
    font-size: 2.35rem; /* Ajustado para mayor presencia en pantallas normales */
    text-align: center;
    color: #e8eaed;
    margin-bottom: 14px;
    user-select: none;
}


/* Colores de la bandera para "TRI" */
.page-title .flag-yellow { color: #fcd116; }
.page-title .flag-blue { color: #003893; }
.page-title .flag-red { color: #ce1126; }

/* Color para "NY" */
.page-title .title-dark { color: #000000; }


/* ==========================================================================
   4. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.search-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-top: none;
    width: 100%;
    max-width: 680px;
    margin: 12px auto 0 auto;
    font-size: 0.812rem; /* 13px */
    line-height: 1.3;
    color: #9aa0a6;
    text-align: center;
    background-color: transparent;
    flex-shrink: 0;
}

.footer-text a { color: #8ab4f8; text-decoration: none; }
.footer-text a:hover { text-decoration: underline; }
.footer-text a:visited { color: #c58af9; }
.brand-subtle { color: #8ab4f8; font-weight: bold; }

.footer-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}


/* ==========================================================================
   5. MEDIA QUERIES RESPONSIVAS BÁSICAS
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        height: auto;
        min-height: 36px;
    }
    
    .banner-info-bar {
        flex-wrap: wrap;
        padding: 6px 12px;
        gap: 6px;
    }

    .info-widgets-left {
        gap: 8px;
        flex-wrap: wrap;
    }

    .info-widgets-right {
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 6px;
    }

    .header-actions {
        align-items: flex-end;
    }

    .central-layout {
        padding: 0 12px;
    }
}