/*
Theme Name: Troop Child Theme
Template: Impreza
Description: Tema hijo de Impreza para inyectar el sistema de diseño independiente (header/footer estáticos) en la sección de Novedades (Blog).
Version: 1.0.1
*/

/* Ocultar el header, footer y cualquier espaciador nativo de Impreza */
.l-header,
.l-footer,
.l-titlebar,
.l-subheader {
    display: none !important;
}

/* Eliminar el padding compensatorio genérico */
body.header_inpos_top,
.l-main,
.l-main-h {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Forzar que TODO el lienzo de WordPress baje exactamente el alto del nuevo header */
.l-main {
    margin-top: 72px !important;
    padding-top: 0 !important;
}

/* Anular compensaciones específicas de Impreza */
@media (min-width: 901px) {
    .header_hor .titlebar_none.sidebar_none .l-header.pos_fixed ~ .l-main .l-section:first-child,
    .header_hor .titlebar_none.sidebar_none .l-header.pos_static.bg_transparent ~ .l-main .l-section:first-child {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 600px) {
    .l-main {
        margin-top: 60px !important; /* En mobile el header es un poco más chico */
    }
    .header_hor .titlebar_none.sidebar_none .l-header.pos_fixed ~ .l-main .l-section:first-child {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* Evitar márgenes negativos que Impreza a veces mete en el primer elemento */
.l-canvas .l-main .l-section:first-child {
    margin-top: 0 !important;
}
