
/* MENU */

/* SUBMENU */

/* BUTTON */

/* Theme Options Custom CSS */


/* =========================================================
   NOVA CASA SV - HEADER MODERNO
   ========================================================= */

/* HEADER PRINCIPAL */
header,
.site-header,
#header {
    background: rgba(15, 22, 28, 0.88) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    transition: all 0.35s ease;
}

/* CONTENEDOR */
header .container,
.site-header .container,
#header .container {
    min-height: 82px;
    display: flex;
    align-items: center;
}

/* LOGO */
header img,
.site-header img,
#header img {
    max-height: 62px;
    width: auto;
    transition: transform 0.3s ease;
}

header img:hover,
.site-header img:hover,
#header img:hover {
    transform: scale(1.03);
}


/* =========================================================
   MENÚ PRINCIPAL - PC
   ========================================================= */

header nav ul li a,
.site-header nav ul li a,
#header nav ul li a {
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 30px 17px !important;
    position: relative;
    transition: all 0.3s ease;
}

/* LÍNEA AMARILLA */
header nav ul li a::after,
.site-header nav ul li a::after,
#header nav ul li a::after {
    content: "";
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: 18px;
    height: 2px;
    background: #f4c542;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

header nav ul li a:hover::after,
.site-header nav ul li a:hover::after,
#header nav ul li a:hover::after {
    transform: scaleX(1);
}

/* ELEMENTO ACTIVO */
header nav ul li.current-menu-item > a,
header nav ul li.current-menu-ancestor > a,
.site-header nav ul li.current-menu-item > a,
.site-header nav ul li.current-menu-ancestor > a,
#header nav ul li.current-menu-item > a,
#header nav ul li.current-menu-ancestor > a {
    color: #f4c542 !important;
}


/* =========================================================
   SUBMENÚ PC
   ========================================================= */

header nav ul li ul,
.site-header nav ul li ul,
#header nav ul li ul {
    background: rgba(18, 25, 31, 0.98) !important;
    border: 1px solid rgba(244,197,66,0.25);
    border-radius: 10px;
    padding: 10px 0 !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    box-sizing: border-box;
    z-index: 999999 !important;
}

header nav ul li ul li a,
.site-header nav ul li ul li a,
#header nav ul li ul li a {
    padding: 12px 20px !important;
    color: #ffffff !important;
}

header nav ul li ul li a:hover,
.site-header nav ul li ul li a:hover,
#header nav ul li ul li a:hover {
    background: rgba(244,197,66,0.12) !important;
    color: #f4c542 !important;
}


/* =========================================================
   SUBMENÚ PC - EVITAR SALIR DE LA PANTALLA
   ========================================================= */

@media (min-width: 992px) {

    header nav,
    .site-header nav,
    #header nav {
        max-width: 100vw !important;
    }

    header nav ul li ul,
    .site-header nav ul li ul,
    #header nav ul li ul {
        max-width: 280px !important;
        box-sizing: border-box !important;
    }

    /* ÚLTIMOS MENÚS HACIA LA IZQUIERDA */
    header nav > ul > li:nth-last-child(-n+2) > ul,
    .site-header nav > ul > li:nth-last-child(-n+2) > ul,
    #header nav > ul > li:nth-last-child(-n+2) > ul {
        left: auto !important;
        right: 0 !important;
    }
}


/* =========================================================
   BOTÓN COTIZAR
   ========================================================= */

.menu-item-cotizar > a,
a[href*="cotizar"],
a[href*="Cotizar"] {
    background: #f4c542 !important;
    color: #111 !important;
    border-radius: 30px !important;
    padding: 13px 24px !important;
    margin-left: 12px;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.menu-item-cotizar > a:hover,
a[href*="cotizar"]:hover,
a[href*="Cotizar"]:hover {
    background: #ffffff !important;
    color: #111 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244,197,66,0.25);
}

/* QUITAR LÍNEA DEL BOTÓN */
.menu-item-cotizar > a::after {
    display: none !important;
}


/* =========================================================
   HEADER AL HACER SCROLL
   ========================================================= */

.sticky-header,
header.sticky,
.site-header.sticky,
#header.sticky {
    background: rgba(10,16,21,0.97) !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.20);
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 991px) {

    /* HEADER */
    header,
    .site-header,
    #header {
        background: rgba(12,18,23,0.96) !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* CONTENEDOR */
    header .container,
    .site-header .container,
    #header .container {
        min-height: 70px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* LOGO */
    header img,
    .site-header img,
    #header img {
        max-height: 52px;
        max-width: 70vw;
        width: auto;
    }

    /* PANEL DEL MENÚ */
    header nav,
    .site-header nav,
    #header nav {
        background: #11191f !important;
        color: #ffffff !important;
        box-sizing: border-box !important;
        max-width: 100vw !important;
    }

    /* LISTAS */
    header nav ul,
    .site-header nav ul,
    #header nav ul {
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    /* ELEMENTOS */
    header nav ul li,
    .site-header nav ul li,
    #header nav ul li {
        box-sizing: border-box !important;
        max-width: 100% !important;
        background: transparent !important;
    }

    /* TEXTO PRINCIPAL */
    header nav > ul > li > a,
    .site-header nav > ul > li > a,
    #header nav > ul > li > a {
        color: #ffffff !important;
        background: transparent !important;
        padding: 15px 20px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }

    /* TEXTO DE SUBMENÚ */
    header nav ul li ul li a,
    .site-header nav ul li ul li a,
    #header nav ul li ul li a {
        color: #ffffff !important;
        background: transparent !important;
        padding: 13px 25px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }

    /* HOVER */
    header nav ul li a:hover,
    .site-header nav ul li a:hover,
    #header nav ul li a:hover {
        color: #f4c542 !important;
        background: rgba(244,197,66,0.08) !important;
    }

    /* ACTIVO */
    header nav ul li.current-menu-item > a,
    header nav ul li.current-menu-ancestor > a,
    .site-header nav ul li.current-menu-item > a,
    .site-header nav ul li.current-menu-ancestor > a,
    #header nav ul li.current-menu-item > a,
    #header nav ul li.current-menu-ancestor > a {
        color: #f4c542 !important;
    }

    /* QUITAR LÍNEA AMARILLA EN MÓVIL */
    header nav ul li a::after,
    .site-header nav ul li a::after,
    #header nav ul li a::after {
        display: none !important;
    }

    /* =====================================================
       IMPORTANTE:
       NO FORZAMOS position:static
       NO FORZAMOS width:100%
       NO FORZAMOS display:block
       EN LOS SUBMENÚS.
       
       EL TEMA PRAGUE CONTROLA SU APERTURA.
       ===================================================== */

    /* SUBMENÚ VISUAL */
    header nav ul li ul,
    .site-header nav ul li ul,
    #header nav ul li ul {
        background: #151e24 !important;
        color: #ffffff !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
    }

    /* SEGUNDO NIVEL */
    header nav ul li ul li ul,
    .site-header nav ul li ul li ul,
    #header nav ul li ul li ul {
        background: #19232a !important;
    }

    /* BOTÓN COTIZAR */
    .menu-item-cotizar > a {
        display: inline-block !important;
        margin: 8px 15px !important;
        max-width: calc(100% - 30px) !important;
        box-sizing: border-box !important;
    }
}