:root {
    --ancho-pantalla: 100vw;
    --alto-pantalla: 100vh;
}

html {
    scroll-behavior: smooth;
}

header {
    position: fixed;
    /* Posición fija para que permanezca en su lugar al hacer scroll */
    top: 0;
    left: 0;
    z-index: 1000;
    /* Se asegura que se superponga a otros elementos */
}

#header-nav {
    transition: background-color 0.2s ease-in;
    width: 100%;
    box-sizing: border-box;
    /* Transición de color */
}

#header-nav.blanco {
    background-color: white;
}

#icono-negro {
    display: none;
}

#icono-negro.muestratenegro {
    display: flex;
}

#btn-cerrar-menu-servicios {
	cursor:pointer;
}

header #menu-header .pagina-menu:hover h2 a,
header #menu-header .pagina-menu h2 a.activo {
    text-shadow: 0 0 1px rgba(69, 69, 69, 0.871);
    /* Ajusta el color y el tamaño según lo oscuro que desees */
    /*font-size: 1.2rem;*/
    border-bottom: 3px solid;
    padding-top: 4px;
    padding-bottom: 1px;
}


header #menu-header .pagina-menu h2.coloreado {
    color: #181818;
}

#nav-boton {
    padding: 12px 40px;
}

#nav-boton.colorboton,
#burguer-menu.colorboton {
    background-color: #B7B7B76E;
    color: #141414;
}

#burguer-menu {
    max-width: 45px;
    display: none;
}

#burguer-menu .elementor-icon-wrapper {
    display: flex;
    align-self: center;
}


#burguer-menu svg {
    cursor: pointer;
    transition: transform 1s ease-in-out;
}

#rect1-08-3,
#rect1-08-7,
#rect1 {
    transition: transform 1s ease, opacity 1s ease;
    transform-origin: center;
}

#burguer-menu svg.transformar element.style {
    fill: #141414 !important;
}

/* Estilos al activar la clase `transformar` */
#burguer-menu svg.transformar #rect1-08-3 {
    transform: translateY(50px) translateX(-50px) rotate(45deg);
    /* Línea superior */
}

#burguer-menu svg.transformar #rect1-08-7 {
    transform: translateY(-50px) translateX(-50px) rotate(-45deg);
    /* Línea inferior */
}

#burguer-menu svg.transformar #rect1 {
    opacity: 0;
    /* Oculta la línea central */
}

#enlaces-menu-servicios h2:hover,
#main-menu-mobil h2:hover {
    color: #f67200;
}

#menu-servicios {
    transition: opacity 0.2s ease-in, visibility 0.2s ease-in;
    box-sizing: border-box;
    width: 100%;
}

#menu-servicios.abierto {
    opacity: 1;
    visibility: visible;
}

#menu-servicios.cerrado {
    opacity: 0;
    visibility: hidden;
    height: 0px;
    min-height: 0vh;
}

#flecha-abajo .elementor-icon-wrapper {
    display: flex;
    align-self: center;
}

.rotar-abrir {
    transition: transform 1s ease;
    /* Ajusta la duración de la transición si es necesario */
    transform: rotate(-180deg);
    /* Rotación en sentido horario */
}

.rotar-cerrar {
    transition: transform 1s ease;
    transform: rotate(0deg);
    /* Rotación en sentido antihorario */
}

#main-menu-mobil {
    display: none;
}

/* Bloquear el scroll del body al abrir el menú */
.no-scroll {
    overflow: hidden;
}

/* Contenedor del menú para la versión móvil */
header.fijado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Tamaño completo de la pantalla */
    overflow-y: hidden;
    /* Permitir scroll en el menú */
    z-index: 1000;
    box-sizing: border-box;
}

#btn-cerrar2 {
    display: none;
}

.elementor-widget-button{
	cursor:pointer;
}

@media only screen and (max-width: 1024px) and (min-width: 768px) {
    #menu-servicios {
        background-color: rgb(214, 214, 214);
        padding: 15px 25px;
    }

    #enlaces-menu-servicios h2 {
        font-size: 2.2rem;
    }

    #container-contacto-boton {
        flex-direction: column;
    }

    #container-contacto-iconos {
        order: 99;
        align-self: flex-end;
    }

    #btn-cerrar-menu-servicios-container {
        align-self: flex-end;
    }

    #contacto {
        text-align: end;
    }

    #contacto h2 {
        font-size: 1.1rem;
        line-height: 1.2rem;
    }

    #iconosfbig-container {
        align-self: flex-end;
        margin-top: 5px;
    }

    #minicarousel .minicarousel-item {
        padding: 0px;
    }

    #minicarousel .minicarousel-item h2 {
        font-size: 1.8rem;
    }
}

@media only screen and (max-width: 800px) and (min-width: 768px) {
    #minicarousel .minicarousel-item h2 {
        font-size: 1.4rem;
    }

    #enlaces-menu-servicios h2 {
        font-size: 2rem;
    }
}

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


    header.fijado {
        overflow-y: auto;
        /* Permitir scroll en el menú */
    }

    /*Header*/
    #header-nav {
        padding: 10px 15px;
    }

    #nav-content {
        column-gap: 10px;
        margin-top: 7px;
        align-content: flex-start;
    }

    #nav-menu-container {
        justify-content: end;
    }

    #menu-header {
        display: none;
    }

    #nav-boton {
        height: 45px;
        padding: 12px 24px;
        align-content: center;
        box-sizing: border-box;
    }

    #btn-cerrar2 {
        display: flex;
    }


    #nav-boton .elementor-button-text {
        font-weight: 500;
        /*color: rgb(56, 56, 56);*/
    }

    #menu-servicios {
        padding: 5px 10px;
    }

    #burguer-menu {
        display: flex;
    }

    #enlaces-menu-servicios {
        display: none;
    }

    #enlaces-servicios-submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        /* Colapsado inicialmente */
        overflow: hidden;
        /* Ocultar contenido desbordante */
        opacity: 0;
        /* Ocultar inicialmente */
        transform: scaleY(0);
        /* Escalar a 0 para ocultar */
        transform-origin: top;
        /* Escalar desde la parte superior */
        transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
    }

    /* Submenú visible */
    #enlaces-servicios-submenu.open {
        max-height: fit-content;
        padding: 25px 0px 40px 15px;
        /* Ajustar según el contenido */
        opacity: 1;
        /* Hacer visible */
        transform: scaleY(1);
        /* Escalar a 1 para mostrar */
    }

    /*
    #enlaces-servicios-submenu.oculto {
        display: none;
    }

    #enlaces-servicios-submenu.mostrado {
        display: flex;
    } 
    */

    #main-menu-mobil {
        display: flex;
        margin: 10px 0px 40px;
    }

    #menu-servicios #direccion {
        display: none;
    }

    #menu-servicios #btn-cerrar-menu-servicios-container {
        display: none;
    }

    #menu-servicios #contacto h2 {
        font-size: 1.1rem;
    }

    #minicarousel {
        margin-top: 20px;
    }

    #minicarousel .minicarousel-item {
        margin: 5px 0px;
    }
}

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

    #header-nav {
        padding: 10px 10px;
    }

    #main-menu-mobil>h2 {
        font-size: 2.35rem;
    }
}