/**
 * Header TopBar — Fecha + CTA Subscribe
 * 
 * Bloque 1 del header refactorizado.
 * - Desktop/Tablet: Fecha (izq) + CTA (der)
 * - Mobile (≤768px): OCULTO completamente
 * - Oculto en otros contextos (single, archive, search, 404)
 * 
 * @package InformeDigital
 */

/* ==========================================================
   BASE: TopBar wrapper
========================================================== */
.informe-header-topbar {
    position: relative;
    z-index: 10; /* Fase 2: TopBar = 10 < HeaderMain = 100 < Offcanvas = 200 */
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

/* Override: remover padding del container dentro del topbar */
.informe-header-topbar .informe-container {
    padding-left: 0;
    padding-right: 0;
}

.informe-header-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    max-width: var(--header-max-width, 1320px);
    margin: 0 auto;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: var(--header-padding-desktop, 20px);
    padding-right: var(--header-padding-desktop, 20px);
}

/* ==========================================================
   FECHA
========================================================== */
.informe-header-topbar__date {
    font-family: MarcinAntB, sans-serif;
    font-size: .75rem;
    letter-spacing: .05em;
    text-transform: none;
    color: #000;
}

/* ==========================================================
   CTA (Suscribite)
========================================================== */
.informe-header-topbar__cta-link {
    box-sizing: border-box;
    font-family: MarcinAntB, sans-serif;
    font-size: .6875rem;
    line-height: 1.36;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    padding: .125rem .5rem .0625rem;
    border-radius: .125rem;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    font-weight: 700;
    min-width: 1.6875rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: .0625rem solid transparent;
    white-space: nowrap;
    background: var(--color-primary);
}

/* ==========================================================
   PADDING LATERAL: Ahora aplicado globalmente via variables
   en .informe-header-topbar__inner (arriba)
   
   ELIMINADO: Padding específico para no-home ya no es necesario
   porque usamos las mismas variables que el resto del sitio.
========================================================== */

/* ==========================================================
   VISIBILIDAD POR CONTEXTO
   
   - HOME: visible
   - SINGLE/ARCHIVE/SEARCH/404: oculto
========================================================== */
.informe-header-topbar--single,
.informe-header-topbar--archive,
.informe-header-topbar--search,
.informe-header-topbar--404 {
    display: none;
}

/* ==========================================================
   RESPONSIVE: Tablet (769px - 1024px)
   Fecha + CTA visible, padding ajustado
========================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .informe-header-topbar__inner {
        min-height: 28px;
        padding-top: 4px;
        padding-bottom: 4px;
        padding-left: var(--header-padding-tablet, 20px);
        padding-right: var(--header-padding-tablet, 20px);
    }
}

/* ==========================================================
   RESPONSIVE: Mobile (≤768px)
   TopBar OCULTO completamente
========================================================== */
@media (max-width: 768px) {
    .informe-header-topbar {
        display: none;
    }
}
