/*
Theme Name:   GeneratePress Child
Theme URI:    https://generatepress.com
Description:  GeneratePress Child Theme
Author:       Your Name
Author URI:   https://yourwebsite.com
Template:     generatepress
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  generatepress-child
*/
@font-face {
	font-family: 'Segoe UI';
	src: url('fonts/SegoeUI-Bold.woff2') format('woff2');
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}
/* @font-face {
	font-family: 'Segoe UI';
	src: url('fonts/SegoeUI-BoldItalic.woff2') format('woff2');
	font-weight: bold;
	font-style: italic;
	font-display: swap;
} */
/* @font-face {
	font-family: 'Segoe UI';
	src: url('fonts/SegoeUI-Italic.woff2') format('woff2');
	font-weight: normal;
	font-style: italic;
	font-display: swap;
} */
@font-face {
    font-family: 'Segoe UI';
    src: url('fonts/SegoeUI.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Segoe UI', sans-serif;
}

/** FLATSOME */

.youtube-video-place {
	/*background-image: url('https://infrico.com/wp-content/uploads/2023/11/maxresdefault.jpg');*/
	background-size: cover;
    background-color: transparent;
    margin-bottom: 30px;
    position: relative;
    padding-top: 50px;
    overflow: hidden;
    cursor: pointer;
    height: 280px;
	width: 300px;
}

.youtube-video-place .play-button {
    width: 90px;
    height: 60px;
    background-color: #333;
    box-shadow: 0 0 30px rgba( 0,0,0,0.6 );
    z-index: 1;
    opacity: 0.8;
    border-radius: 6px;
}
.youtube-video-place .play-button:before {
    content: "";
    border-style: solid;
    border-width: 15px 0 15px 26.0px;
    border-color: transparent transparent transparent #fff;
}
.youtube-video-place img,
.youtube-video-place .play-button {
    cursor: pointer;
}
.youtube-video-place img,
.youtube-video-place iframe,
.youtube-video-place .play-button,
.youtube-video-place .play-button:before {
    position: absolute;
}
.youtube-video-place .play-button,
.youtube-video-place .play-button:before {
    top: 50%;
    left: 50%;
    transform: translate3d( -50%, -50%, 0 );
}


/** NUEVO 2026 */
/* Ocultar en móviles (pantallas menores a 768px) */
@media (max-width: 767px) {
    .ocultar-mobile {
        display: none !important;
    }
}

/* Ocultar en escritorio (pantallas mayores a 768px) */
@media (min-width: 768px) {
    .ocultar-desktop {
        display: none !important;
    }
}

.contenedor {
    max-width: 1280px; /* Ajusta el ancho según tu preferencia */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.linea-titulo{
    position: relative;
    padding-bottom: 15px;
}
.linea-titulo.izquierda:before, .linea-abajo.izquierda:before {
    left: 0;
}
.linea-titulo.derecha:before, .linea-abajo.derecha:before {
    right: 0;
}

.linea-titulo:before, .linea-abajo:before {
    content: "";
    position: absolute;
    bottom: 0;
    height: 1px;
    width: 50%;
    border-bottom: 1px solid #000;
}


.rounded-lg
{
    border-radius: 8px;
}





/* Stack 3rd level menu items under 2nd level */
.main-navigation ul ul ul {
    position: relative;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    box-shadow: none;
    display: none; /* Hidden by default */
}

/* Show 3rd level when 2nd level is hovered */
.main-navigation ul ul li:hover > ul {
    display: block;
}

/* Optional: Indent the 3rd level for clarity */
.main-navigation ul ul ul li a {
    padding-left: 30px;
}


@media (min-width: 769px) {
    /* Hace que el submenú ocupe todo el ancho */
    nav .main-nav .mega-menu {
        position: static;
    }

    nav .main-nav .mega-menu > ul {
        position: absolute;
        width: 100%;
        left: 0 !important;
        display: flex;
        flex-wrap: wrap;
    }

    /* Estilo para los títulos de las columnas (Nivel 2) */
    nav .main-nav .mega-menu > ul > li > a {
        font-weight: bold;
    }

    /* Fuerza a que el tercer nivel sea siempre visible */
    nav .main-nav .mega-menu ul ul {
        /* display: block !important;
        position: static;
        width: 100%; */
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        height: auto;
    }

    /* Configuración de columnas */
    /* nav .main-nav .mega-menu > ul > li {
        display: inline-block;
        width: 25%; 
        
        vertical-align: top;
    }

    nav .main-nav .mega-menu.mega-menu-col-3 > ul > li {
        width: 33.3333%;
    } */
}




/* 1. Estructura base del mega-menu */
.mega-menu > .sub-menu {
    display: flex !important; /* Convertimos el contenedor en fila */
    flex-wrap: wrap;
    width: 800px; /* Ajusta el ancho total de tu menú */
    padding: 20px !important;
}

/* 2. Cada columna (Nivel 2) */
.mega-menu > .sub-menu > .menu-item {
    flex: 1 1 30%; /* Divide el espacio en 3 columnas */
    list-style: none;
}

/* 3. Título del nivel 2 (Estilo de cabecera) */
.mega-menu > .sub-menu > .menu-item > a {
    font-weight: bold;
    color: #fff;
    pointer-events: none; /* Opcional: evita que el título sea clickeable */
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 4. Lista del nivel 3 (Grid de 6 items) */
.mega-menu > .sub-menu > .menu-item > .sub-menu {
    position: static !important; /* Mantiene la sublista dentro de la columna */
    display: grid !important;
    grid-template-columns: repeat(6, 1fr); /* Crea 2 columnas dentro de cada columna */
    gap: 10px;
    padding-left: 0 !important;
}

.mega-menu > .sub-menu > .menu-item > .sub-menu > .menu-item > a {
    font-size: 14px;
    padding: 5px 0;
}




.custom-mega-panel {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 99999 !important;
    color: #fff;
    /* box-shadow: 0px 10px 15px rgba(0,0,0,0.1); */

    background-color: rgb(0 0 0 / .6);
    border: 1px solid #fff;
    border-radius: 0;

    padding: 0;
}
.custom-mega-panel ul {
    list-style: none;
    margin: 0;
}
.custom-mega-panel h4{
    font-weight: bold;
    color: #fff;
    pointer-events: none; /* Opcional: evita que el título sea clickeable */
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 1em;
    text-transform: uppercase;
    padding: 15px 20px;
}

.custom-mega-panel li, .custom-mega-panel>li{
    padding:10px 20px;
    padding-top: 5px;
    padding-bottom: 5px;
}


/* Estado activo para cualquiera */
.custom-mega-panel.is-active {
    display: grid !important;
    /* grid-template-columns: repeat(6, 1fr); */
    /* gap: 20px; */
    /* padding: 20px 0; */
}
.custom-mega-panel.mega-panel-empresa.is-active {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    /* gap: 20px; */
    /* padding: 20px 0; */
}

.mega-panel-productos p {
    color: #fff;    
    margin-top: 5px;
}
.gb-element-653acfe2 > div a, .custom-mega-panel li a {
    color: #fff;    
    text-decoration: none;
    transition: color 0.25s ease-in-out; 
}
.gb-element-653acfe2 > div:hover a, .custom-mega-panel li a:hover {
    color: rgba(0,148,211,0.85);
}
@media (max-width: 768px) {
    .custom-mega-panel { display: none !important; }
}
/* .splide {
    visibility: hidden;
}


.splide.is-initialized {
    visibility: visible;
} */

/* El contenedor padre del slider */
.splide {
    width: 100%;
    /* Define la relación de aspecto, ej: 16/9 o 21/9 para estilo cine */
    aspect-ratio: 16 / 9; 
    /* Fondo de carga mientras la imagen aparece */
    background: #f0f0f0; 
    overflow: hidden;
}

/* Forzar que las imágenes dentro ocupen ese espacio */
/* 1. El contenedor del slide debe tener el ratio */
.splide__slide {
    /* aspect-ratio: 16 / 9; 
    overflow: hidden;    */
    width: 100%;
    flex-shrink: 0;
}

/* 2. El picture debe comportarse como un bloque que ocupa todo */
.splide__slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* 3. ESTA ES LA CLAVE: La imagen dentro del picture */
.splide__slide picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto evita que se estire y la centra */
    object-position: center;
}
@media (max-width: 768px) {
    .splide {
        /* Define aquí el aspecto ratio para móvil, ej: 4/5 */
        aspect-ratio: 4 / 5; 
    }
}

