/*#00CE7C verde
#e49401 amarillo
#fcb907 amarillo oscuro*/

@font-face {
  font-family: "Intelo";
  src: url("http://www.ceplainmaculada.com/css/Intelo-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Intelo-Bold";
  src: url("http://www.ceplainmaculada.com/css/fonts/Intelo-Bold.ttf") format("truetype");
}

* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 font-family: 'Intelo';
}

b {
    font-weight: bolder;
}

*:before{
    box-sizing: border-box;
}


/*aqui cambio de color barra de navegacion */
.menu{
    background-color: #203f6b;
    color: #fff;
    height: 70px;
}

.menu__container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    position: relative;
}



/*aqui me permite mover las opciones hacia lado derecho */
.menu__links{
    height: 100%;
    transition: transform .5s;
    display: flex;
    align-items: center;
    margin-left: auto; /* Mover las opciones a la derecha */
    margin-right:-5%; /* Agregar espacio entre opciones y el borde derecho permite mover lado derecho  */
    position: absolute; /* Posicionar las opciones de forma absoluta */
    right: 0; /* Alinear a la derecha del contenedor */
}

.menu__item{
    list-style: none;
    position: relative;
    height: 100%;
    --clip: polygon(0 0, 100% 0, 100% 0, 0 0);
    --transform: rotate(-90deg);
}

.menu__item:hover{
    --clip: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    --transform: rotate(0);
}

.menu__link {
    color: #fff;
    text-decoration: none;
    padding: 0 20px;
    display: flex;
    height: 100%;
    align-items: center;

}

.menu__link:hover{
    background-color: #fcb907;
}


.menu__arrow{
    transform: var(--transform);
    transition: transform .3s;
    display: block;
    margin-left: 3px;
}

/*color de menu*/
.menu__nesting{
    list-style: none;
    transition:clip-path .3s;
    clip-path: var(--clip);
    position: absolute;
    right: 0;
    bottom: 0;
    width: max-content;
    transform: translateY(100%);
    background-color: #fcb907;
}

.menu__link--inside{
    padding: 30px 100px 30px 20px;
}

.menu__link--inside:hover{
    background-color: #e49401;
}

.menu__hamburguer{
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: pointer;
    display: none;
}

.menu__img{
    display: block;
    width: 36px;
}


.logo {
    display: grid;
    max-width: 15rem; /*tamaño máximo del logo boaria*/
    margin-left: -40%;

}


.menu {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
  }
  
  body {
    padding-top: 50px; /* Ajusta el valor según el tamaño de tu barra de navegación */
  }






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

    .menu__hamburguer{
        display: flex;
    }

    .menu__item{
        --clip:0;
        overflow:hidden ;
    }

    .menu__item--active{
        --transform: rotate(0);
        --background: #e49401;
    }

    .menu__item--show{
        background-color: var(--background);
    }


    .menu__links{
        position: fixed;
        margin-right: -2px;
        max-width: 500%;
        width: 100%;
        top: 70px;
        bottom: 0;
        right: 0;
        background-color: #fcb907;
        overflow-y: auto;
        display: grid;
        grid-auto-rows: max-content;
        transform: translateX(100%);
    }

    .menu__links--show{
        transform: unset;
        width: 100%;
    }

    .menu__link{
        padding: 25px 0;
        padding-left: 30px;
        height: auto;
    }

    .menu__arrow{
        margin-left: auto;
        margin-right: 20px;
    }

    .menu__nesting{
        display: grid;
        position: unset;
        width: 100%;
        transform: translateY(0);
        height: 0;
        transition: height .3s;
    }

    .menu__link--inside{
        width: 90%;
        margin-left: auto;
        border-left: 1px solid #fcb907;
    }





    @media screen and (max-width: 576px) {
        .logo {
            max-width: 10rem; /* Tamaño máximo del logo para pantallas muy pequeñas */
            margin-left: 50px; /* Ajustar el margen izquierdo para mover el logo a la derecha */
        }
    }




}