/*
 Theme Name: Divi Child
 Template:   Divi
*/

/* ── Header ── 
#main-header,
#main-header.et-fixed-header {
    height: 85px;
    overflow: hidden;
    position: relative; /* el header es el contexto de posición 
    background: linear-gradient(to right, #1a1a2e, #0f3460);
}

/* ── NO tocar el container de Divi, solo controlar su alto ── 
#main-header .container {
    height: 85px;
    /* sin display:flex — dejamos que Divi lo maneje */
}

/* ── Logo: Divi lo maneja, solo limitamos el alto ── 
#main-header #logo {
    max-height: 55px;
    width: auto;
}

/* ── Ocultar menú y mobile toggle ── 
#main-header #et-top-navigation,
#main-header .et_mobile_nav_menu,
#main-header .mobile_nav {
    display: none !important;
}

/* ── Slider: absoluto respecto al header ── 
#main-header .header-slider-wrapper {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%); /* centrado vertical real 
    width: 55%;
    max-width: 580px;
    height: 75px;
    overflow: hidden;
    z-index: 99;
}

*/

/* ── Forzar dimensiones internas del slider ── 
#main-header .header-slider-wrapper .rev_slider_wrapper,
#main-header .header-slider-wrapper .rev_slider,
#main-header .header-slider-wrapper .tp-banner-container {
    width: 100% !important;
    height: 75px !important;
    max-height: 75px !important;
    overflow: hidden !important;
}

*/

/* ── Mobile ── 
@media (max-width: 980px) {
    #main-header .header-slider-wrapper {
        display: none;
    }
}


*/



/* ── FONDO ── */
.et_pb_section_0_tb_header {
    background-image: linear-gradient(to right, #ac2928, #fc0000) !important;
    background-color: transparent !important;

}

#et-boc,
.et-l--header {
    background: transparent !important;
}

#main-header,
#main-header.et-fixed-header {
    background: transparent !important;
    box-shadow: none !important;
}

/* ── ESTRUCTURA ── */
.et-l--header .et_pb_section {
    padding: 0 !important;
    min-height: 85px !important;
}

.et-l--header .et_pb_row {
    padding: 0 20px !important;
    min-height: 85px !important;
    max-width: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

/* ── COLUMNA LOGO ── */
.et-l--header .et_pb_column:first-child {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

.et-l--header .et_pb_image {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.et-l--header .et_pb_image .et_pb_image_wrap {
    display: flex !important;
    align-items: center !important;
}

/* ── COLUMNA SLIDER ── */
.et-l--header .et_pb_column:last-child {
    padding: 0 !important;
}

.et-l--header .et_pb_code_inner {
    height: 75px;
    overflow: hidden;
    width: 100%;
}

.et-l--header .rev_slider_wrapper,
.et-l--header .rev_slider {
    height: 75px !important;
    max-height: 75px !important;
}

/* ── MOBILE ── 
@media (max-width: 980px) {
    .et-l--header .et_pb_column:last-child {
        display: none !important;
    }

    .et-l--header .et_pb_column:first-child {
        justify-content: center !important;
    }
}
*/
