/* =====================================================
   MULTIAIRE — HERO HOME
   ===================================================== */

.multiaire-hero {
    position: relative;
    width: 100%;
    background:
        radial-gradient(circle at 82% 30%, rgba(34, 91, 164, 0.10), transparent 32%),
        linear-gradient(135deg, #f7faff 0%, #ffffff 55%, #f2f7fc 100%);
    overflow: hidden;
    border-bottom: 1px solid #e8edf3;
}

.multiaire-hero .container {
    min-height: 520px;
    display: flex;
    align-items: center;
    padding-top: 65px;
    padding-bottom: 65px;
}

.multiaire-hero__content {
    width: 100%;
    max-width: 850px;
}

/* Texto pequeño superior */
.multiaire-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 30px;

    color: #245a9b;
    background: #eaf2fc;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

/* H1 */
.multiaire-hero h1 {
    max-width: 900px;
    margin: 0 0 20px 0;
    padding: 0;

    color: #102d50;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -1.5px;
}

/* Descripción */
.multiaire-hero__description {
    max-width: 760px;
    margin: 0 0 30px 0;

    color: #536579;
    font-size: 18px;
    line-height: 1.65;
}

/* =====================================================
   BOTONES
   ===================================================== */

.multiaire-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 38px;
}

.multiaire-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 13px 24px;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.multiaire-btn--primary {
    color: #ffffff !important;
    background: #245a9b;
    border: 2px solid #245a9b;
}

.multiaire-btn--primary:hover {
    color: #ffffff !important;
    background: #173f70;
    border-color: #173f70;
    transform: translateY(-2px);
}

.multiaire-btn--secondary {
    color: #245a9b !important;
    background: #ffffff;
    border: 2px solid #d5e0ec;
}

.multiaire-btn--secondary:hover {
    color: #173f70 !important;
    border-color: #245a9b;
    transform: translateY(-2px);
}

/* =====================================================
   BENEFICIOS
   ===================================================== */

.multiaire-hero__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 25px;
    border-top: 1px solid #dce5ef;
}

.multiaire-hero__benefits > div {
    display: flex;
    flex-direction: column;
    min-width: 190px;
    padding: 0 28px;
    border-right: 1px solid #dce5ef;
}

.multiaire-hero__benefits > div:first-child {
    padding-left: 0;
}

.multiaire-hero__benefits > div:last-child {
    border-right: 0;
}

.multiaire-hero__benefits strong {
    margin-bottom: 3px;
    color: #102d50;
    font-size: 15px;
    font-weight: 700;
}

.multiaire-hero__benefits span {
    color: #6c7c8d;
    font-size: 13px;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 991px) {

    .multiaire-hero .container {
        min-height: auto;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .multiaire-hero h1 {
        font-size: 42px;
    }

    .multiaire-hero__content {
        max-width: 100%;
    }
}


/* =====================================================
   MÓVIL
   ===================================================== */

@media (max-width: 767px) {

    .multiaire-hero .container {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .multiaire-hero__eyebrow {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .multiaire-hero h1 {
        margin-bottom: 16px;
        font-size: 34px;
        line-height: 1.12;
        letter-spacing: -0.8px;
    }

    .multiaire-hero__description {
        margin-bottom: 24px;
        font-size: 16px;
        line-height: 1.55;
    }

    .multiaire-hero__buttons {
        display: grid;
        grid-template-columns: 1fr;
        margin-bottom: 30px;
    }

    .multiaire-btn {
        width: 100%;
        min-height: 50px;
    }

    .multiaire-hero__benefits {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 22px;
    }

    .multiaire-hero__benefits > div,
    .multiaire-hero__benefits > div:first-child {
        min-width: 0;
        padding: 0;
        border-right: 0;
    }
}

/* =====================================================
   MULTIAIRE — HEADER
   ===================================================== */

.custom-header {
    position: relative;
    width: 100%;
    height: 80px;
    margin: 0;
    z-index: 999;

    display: flex;
    align-items: center;

    background: #ffffff;
    border-bottom: 1px solid #e8edf3;
}

.container-header {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-header {
    display: block;
    width: 130px;
    height: auto;
}

.general_page {
    padding-top: 0;
}

/* =====================================================
   MULTIAIRE — NUEVO HEADER DESKTOP
   Sobrescribe el header antiguo de layout.css
   ===================================================== */

@media (min-width: 801px) {

    /* Header completo */
    #masthead.box-Header {
        position: relative !important;
        width: 100% !important;
        background: #ffffff !important;
        z-index: 1000 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 2px 12px rgba(16, 45, 80, 0.08);
    }

    /* =========================
       FILA SUPERIOR
       ========================= */

    #masthead.box-Header .top-header-1 {
        float: none !important;
        width: 100%;
        height: auto !important;
        min-height: 54px;
        padding: 10px 0 !important;

        background: #ffffff !important;
        border-bottom: 1px solid #e8edf3;
    }

    #masthead.box-Header .top-header-1 .box-center {
        min-height: 34px;
        display: flex !important;
        align-items: center;
    }

    /* Teléfonos y email */
    #masthead.box-Header .top-header-1 .phone,
    #masthead.box-Header .top-header-1 .info {
        float: none !important;
        margin: 0 18px 0 0 !important;
        padding: 0 !important;

        color: #536579 !important;
        font-family: "Manrope", sans-serif;
        font-size: 13px;
        text-shadow: none !important;
    }

    #masthead.box-Header .top-header-1 .phone a,
    #masthead.box-Header .top-header-1 .info a {
        color: #536579 !important;
        text-shadow: none !important;
    }

    #masthead.box-Header .top-header-1 .phone i,
    #masthead.box-Header .top-header-1 .info i {
        color: #245a9b !important;
        margin-right: 5px;
    }

    /* Redes */
    #masthead.box-Header .top-header-1 .containerRedes {
        float: none !important;
        margin: 0 15px 0 0 !important;
    }

    #masthead.box-Header .top-header-1 .containerRedes .redes .boxIco .fab,
    #masthead.box-Header .top-header-1 .containerRedes .redes .boxIco .fa {
        color: #536579 !important;
    }

    /* Zona derecha: buscador + cuenta + favoritos + carrito */
    #masthead.box-Header .top-header-1 .box-Right-top {
        float: none !important;
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    #masthead.box-Header .top-header-1 .buscador1 {
        width: 330px !important;
        float: none !important;
        margin: 0 20px 0 0 !important;
        position: relative;
    }

    /* Iconos del usuario */
    #masthead.box-Header .boxUsers,
    #masthead.box-Header .boxUsers a {
        color: #245a9b !important;
        text-shadow: none !important;
    }

    /* =========================
       FILA LOGO + MENÚ
       ========================= */

    #masthead.box-Header .contHeader {
        float: none !important;
        width: 100%;
        padding: 13px 0 !important;

        background: #12365f !important;
        border-bottom: 1px solid #e5ebf2;
    }

    #masthead.box-Header .contHeader > .container {
        min-height: 62px;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    /* Logo */
    #masthead.box-Header .contHeader .logoHeader {
        float: none !important;
        width: 180px !important;
        padding: 0 !important;
        margin: 0 35px 0 0 !important;
        flex: 0 0 180px;
    }

    #masthead.box-Header .contHeader .logoHeader img {
        display: block;
        width: 100% !important;
        max-width: 180px;
        height: auto;
    }

    /* Menú */
    #masthead.box-Header .contHeader .boxMenu {
        float: none !important;
        margin: 0 !important;
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    #masthead.box-Header .contHeader .boxMenu a {
        color: #ffffff !important;
        text-shadow: none !important;
        font-family: "Manrope", sans-serif;
        font-weight: 600;
    }

    #masthead.box-Header .contHeader .boxMenu a:hover {
    	color: #ff6b00 !important;
    }

    /* Evita que estilos antiguos de scroll vuelvan
       a poner fondos oscuros */
   .small2 .top-header-1 {
    background: #ffffff !important;
}

.small2 .contHeader {
    background: #12365f !important;
}
    }
}

/* =====================================================
   MULTIAIRE — HEADER MÓVIL
   ===================================================== */

@media (max-width: 800px) {

    /* Header completo */
    #masthead.box-Header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #12365f !important;
        z-index: 1000 !important;
        clear: both;
    }

    /* Ocultamos elementos de escritorio */
    #masthead .top-header-1 .phone,
    #masthead .top-header-1 .info,
    #masthead .top-header-1 .buscador1 {
        display: none !important;
    }

    /* Barra superior de iconos */
    #masthead .top-header-1 {
        position: relative !important;
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #12365f !important;
    }

    #masthead .top-header-1 .box-center {
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 16px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    /* Redes sociales */
    #masthead .containerRedes {
        float: none !important;
        width: auto !important;
        margin: 0 0 0 10px !important;
    }

    #masthead .containerRedes .redes {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    #masthead .containerRedes .redes .boxIco {
        float: none !important;
        margin: 0 !important;
    }

    #masthead .containerRedes i {
        color: #ffffff !important;
    }

    /* Cuenta / favoritos / carrito */
    #masthead .box-Right-top {
        float: none !important;
        width: auto !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
    }

    /* Segunda fila: logo + hamburguesa */
    #masthead .contHeader {
        position: relative !important;
        width: 100% !important;
        min-height: 74px;
        padding: 10px 16px !important;
        margin: 0 !important;

        background: #12365f !important;
        border-top: 1px solid rgba(255,255,255,.10);

        display: block !important;
    }

    #masthead .contHeader > .container {
        position: relative;
        width: 100% !important;
        max-width: none !important;
        min-height: 54px;

        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Logo */
    #masthead .logoHeader {
        position: relative !important;
        float: none !important;

        width: 150px !important;
        max-width: 150px !important;

        margin: 0 auto !important;
        padding: 0 !important;

        z-index: 2;
    }

    #masthead .logoHeader img {
        display: block !important;
        width: 100% !important;
        max-width: 150px !important;
        height: auto !important;
    }

    /* Contenedor del menú móvil */
    #masthead .boxMenu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #masthead .menuWpM {
        position: static !important;
        width: auto !important;
        float: none !important;
    }

    /* Hamburguesa */
    #masthead .menuWpM .toggleMenu {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        position: absolute !important;
        top: 50% !important;
        left: 0 !important;

        width: 48px;
        height: 48px;

        padding: 0 !important;
        margin: 0 !important;

        transform: translateY(-50%);

        background: #245a9b !important;
        border-radius: 6px;

        z-index: 1002;
    }

    #masthead .menuWpM .toggleMenu .fa {
        font-size: 25px !important;
        color: #ffffff !important;
    }

    /* Menú abierto */
    #masthead .menuWpM .test {
        position: fixed !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: #12365f !important;
        z-index: 1001 !important;
    }

    /* El Hero comienza DESPUÉS del header */
    .multiaire-hero {
        position: relative !important;
        clear: both !important;
        z-index: 1 !important;
    }
}

/* =====================================================
   HOME - HEADER MOBILE
   Corrige el position:fixed original de .box-Header
   ===================================================== */

@media screen and (max-width: 800px) {

    body.home #masthead.box-Header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;

        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;

        background: #12365f !important;
        z-index: 100 !important;
    }

}

/* =====================================================
   HOME MOBILE - ALINEAR LOGO Y HAMBURGUESA
   ===================================================== */

@media screen and (max-width: 800px) {

    /* Franja azul */
    body.home #masthead .contHeader {
        position: relative !important;
        height: 90px !important;
        min-height: 90px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #12365f !important;
    }

    body.home #masthead .contHeader > .container {
        position: relative !important;
        height: 90px !important;
        min-height: 90px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Logo centrado */
    body.home #masthead .logoHeader {
        position: absolute !important;
        width: 145px !important;

        top: 50% !important;
        left: 50% !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: translate(-50%, -50%) !important;
        float: none !important;
    }

    body.home #masthead .logoHeader img {
        display: block !important;
        width: 145px !important;
        max-width: 145px !important;
        height: auto !important;
        margin: 0 !important;
    }

    /* Hamburguesa centrada verticalmente */
    body.home #masthead .menuWpM .toggleMenu {
        position: absolute !important;

        top: 50% !important;
        left: 15px !important;

        margin: 0 !important;
        transform: translateY(-50%) !important;

        z-index: 1002 !important;
    }

}

/* =====================================================
   BUSCADOR MOBILE MULTIAIRE - VERSION CORREGIDA
   ===================================================== */

.buscadorMobileMultiaire {
    display: none;
}

@media screen and (max-width: 800px) {

    /* Contenedor principal de logo/menu/buscador */
    body #masthead .contHeader > .container {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        position: relative !important;
        width: 100% !important;
    }

    /* Logo ocupa la primera fila */
    body #masthead .logoHeader {
        order: 1 !important;
        flex: 0 0 100% !important;
        margin: 0 auto !important;
    }

    /* Menú hamburguesa permanece sobre la fila del logo */
    body #masthead .boxMenu {
        position: absolute !important;
        left: 15px !important;
        top: 27px !important;
        z-index: 100 !important;
    }

    body #masthead .menuWpM .toggleMenu {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
    }

    /* Buscador: segunda fila */
    body #masthead .buscadorMobileMultiaire {
        display: block !important;
        order: 3 !important;

        flex: 0 0 100% !important;
        width: 100% !important;

        position: relative !important;

        margin: 12px 0 4px 0 !important;
        padding: 0 !important;

        z-index: 20 !important;
    }

    /* Ajax Search Lite */
    body #masthead .buscadorMobileMultiaire .wpdreams_asl_container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* ============================================
   HEADER MOBILE - LOGO + MENU + BUSCADOR
   ============================================ */

@media screen and (max-width: 800px) {

    /* La zona azul necesita espacio para las 2 filas */
    body #masthead .contHeader {
        min-height: 165px !important;
        padding: 10px 12px 12px !important;
    }

    body #masthead .contHeader > .container {
        min-height: 120px !important;
        display: block !important;
        position: relative !important;
    }

    /* LOGO: centrado y arriba */
    body #masthead .contHeader .logoHeader {
        position: absolute !important;
        top: 5px !important;
        left: 50% !important;

        width: 145px !important;
        max-width: 145px !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: translateX(-50%) !important;
        z-index: 20 !important;
    }

    body #masthead .contHeader .logoHeader img {
        width: 145px !important;
        max-width: 145px !important;
        height: auto !important;
    }

    /* HAMBURGUESA: misma altura que el logo */
    body #masthead .boxMenu {
        position: absolute !important;
        top: 5px !important;
        left: 15px !important;
        margin: 0 !important;
        z-index: 100 !important;
    }

    body #masthead .menuWpM .toggleMenu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 !important;
    }

    /* BUSCADOR: fila independiente debajo */
    body #masthead .buscadorMobileMultiaire {
        display: block !important;

        position: absolute !important;
        top: 72px !important;
        left: 0 !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 8px !important;

        z-index: 30 !important;
    }

    body #masthead .buscadorMobileMultiaire .wpdreams_asl_container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 800px) {

    body.home .multiaire-hero {
        padding-top: 0 !important;
    }

    body.home .multiaire-hero__content {
        padding-top: 38px !important;
    }

}

/* =========================================
   HOME MOBILE - BENEFICIOS EN 3 COLUMNAS
   ========================================= */

@media screen and (max-width: 800px) {

    body.home .multiaire-hero__benefits {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;

        width: 100% !important;
        margin-top: 28px !important;
        padding: 18px 0 !important;

        border-top: 1px solid #dbe3ec;
        border-bottom: 1px solid #dbe3ec;
    }

    body.home .multiaire-hero__benefits > div {
        width: auto !important;
        margin: 0 !important;
        padding: 0 10px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;

        text-align: center !important;
        border-right: 1px solid #dbe3ec;
    }

    body.home .multiaire-hero__benefits > div:last-child {
        border-right: 0 !important;
    }

    body.home .multiaire-hero__benefits strong {
        display: block !important;
        margin-bottom: 5px !important;

        color: #062b50 !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
    }

    body.home .multiaire-hero__benefits span {
        display: block !important;

        color: #65788d !important;
        font-size: 10px !important;
        line-height: 1.35 !important;
    }

}

/* =========================================
   ICONOS BENEFICIOS
   ========================================= */

.multiaire-benefit-icon {
    display: block;
    color: #2864a7;
    font-size: 21px;
    line-height: 1;
    margin-bottom: 9px;
}

@media screen and (max-width: 800px) {

    body.home .multiaire-hero__benefits .multiaire-benefit-icon {
        display: block !important;
        color: #2864a7 !important;
        font-size: 20px !important;
        line-height: 1 !important;
        margin: 0 0 8px 0 !important;
    }

}


/* =====================================================
   PRODUCTOS DESTACADOS MOBILE - 2 COLUMNAS
   ===================================================== */

@media screen and (max-width: 800px) {

    /* Contenedor de productos */
    .productCode .item {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    /* Cada tarjeta */
    .productCode .item > .box-prod {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        height: 100% !important;
    }

    .productCode .box-prod > li.product {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: 100% !important;
    }

    /* Imagen */
    .productCode .box-prod .imgCode {
        width: 100% !important;
        height: 145px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .productCode .box-prod .imgCode img {
        width: 100% !important;
        max-width: 145px !important;
        height: 140px !important;
        object-fit: contain !important;
    }
}

/* HOME MOBILE - compactar título Productos Destacados */
@media screen and (max-width: 800px) {

    body.home .boxTitles.boxTitlePa1 {
        min-height: 0 !important;
        height: auto !important;

        padding-top: 35px !important;
        padding-bottom: 30px !important;

        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

}

/* PRODUCTOS MOBILE - títulos alineados */
@media screen and (max-width: 800px) {

    .productCode .box-prod .titleCode {
        min-height: 66px !important;
        display: flex !important;
        align-items: flex-start !important;
    }

}

@media screen and (min-width: 801px) {

    .multiaire-hero__benefits {
        width: calc(100% - 80px) !important;
        max-width: 1200px !important;

        margin: 45px auto 0 !important;
        padding: 0 !important;

        display: flex !important;
        justify-content: space-between !important;
        align-items: stretch !important;

        box-sizing: border-box !important;
    }

    .multiaire-hero__benefits > div {
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: none !important;

        padding: 18px 28px !important;
        box-sizing: border-box !important;
    }
}

@media screen and (min-width: 801px) {

    .multiaire-hero {
        padding-bottom: 0 !important;
    }

    .multiaire-hero__content {
        padding-bottom: 35px !important;
    }

    .multiaire-hero__benefits {
        margin-top: 0 !important;
    }

}

@media screen and (min-width: 801px) {

.multiaire-hero__benefits {
        margin-top: -50px !important;
    }

    
    /* Beneficios inmediatamente después */
    .multiaire-hero__benefits {
        margin-top:0 !important;
    }
}


@media screen and (min-width: 801px) {

    .multiaire-hero .container {
        min-height: 0 !important;
        height: auto !important;

        padding-top: 55px !important;
        padding-bottom: 35px !important;
    }

}
