@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*Agregar estos 2 en todo proyecto + minheigt 100vh*/
body{
    min-height: 100vh;
    padding-top: 50px;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

body::-webkit-scrollbar{
    width: 10px;
    background-color: #0f0e2c;
}


body::-webkit-scrollbar-thumb{
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border-right: 2px solid #0f0e2c;
}

section{
    /*padding: 2rem 9%;*/
    max-width: 100%;
    width: 90%;
    margin: 40px auto;
}

.header-nav{
    background-color: rgba(192, 155, 85);
    box-shadow: 3px 3px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.barraDesplegable, .barraFija{
    width: 100%;
    list-style: none;
    display: flex;
    /*flex-direction:row;*/
    justify-content: flex-end;
    align-items: center;
}
.barraDesplegable li, .barraFija li{
    height: 50px;
}
.header-nav a{
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #000; 
    /*Tiene font size 16 px*/
    transition: font-size 0.3s ease;
}
/*La transicion no se aplica al primer elemento*/
.header-nav li:not(:first-child) a:hover{
    font-size: 18px;
    color: bisque;
}
.header-nav li:first-child{
    margin-right: auto;
}

.barraDesplegable{
    position:fixed;
    top:0;
    right:0;
    height: 100vh;
    width: 250px;
    z-index: 10;
    box-shadow: -10px 0 10px rgba(0,0,0,0.1);
    -webkit-backdrop-filter: blur(15px); /*Para Safari y otros navegadores*/
    backdrop-filter: blur(15px);
    background-color: rgba(192, 155, 85,0.7);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.barraDesplegable li{
    width: 100%;
}

.barraDesplegable a{
    width: 100%;
}


@media screen and (max-width:500px){
    .barraFija li{
        display:none;
    }
    .barraFija li:first-child{
        display:block;
    }
    .barraFija li:last-child{
        display:block;
    }
}
@media screen and (max-width:400px){ /*Hay que ver si se quedan borrosas las letras*/
    .barraDesplegable{
        width: 100%;
    }
}

@media screen and (min-width:500px){
    .barraFija li:last-child{
        display:none;
    }

}


/*shadow: 0 0 13px 0 rgba(185,185,185,0.25);*/

.faq{
    padding-bottom: 30px;
    border-bottom: 3px solid #0f0e2c;
}

.faq-titulo{
    color: #3a3a3a;
    font-weight: 700;
    font-size: 36px;
    text-align: center;
    margin: 60px 0;
    padding-bottom: 20px;
    border-bottom: 3px solid #0f0e2c;
}

.categorias{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap:20px;
    margin-bottom: 60px;
} 

.categoria{
    cursor: pointer;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background:#fff;
    font-weight: 700;
    color:#666666;
    border: 3px solid transparent;
    transition: 0.3s ease all;
}
.categoria:hover{
    box-shadow: 0 0 13px 0 rgba(185,185,185,0.25);
    color:#111812;

}

.categoria:hover path{
    fill:  rgba(192, 155, 85);
}

.categoria svg{
    width: 64px;
    margin-bottom: 15px;
}

.categoria path{
    fill: #666666;
    transition: 0.3s ease all;
}

.categoria.activa{
    border: 3px solid rgba(192, 155, 85);
    color:#111812;
}

.categoria.activa path{
    fill:  rgba(192, 155, 85);
}

/*PREGUNTAS*/

.contenedor-preguntas{
    display: none; /*Inicialmente none para cambiarlo si activo*/ 
    grid-template-columns: 1fr;
    gap: 40px;
}

.contenedor-preguntas.activo{
    display: grid;
}

.contenedor-pregunta{
    background-color: #fff;
    padding: 40px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s ease all;
    cursor: pointer;
}

.contenedor-pregunta:hover{
    box-shadow: 0 0 13px 0 rgba(185,185,185,0.25);
}

.contenedor-pregunta.activa{
    border: 3px solid #0f0e2c;
}

.pregunta{
    font-weight: 700;
    font-size: 20px;
    line-height: 20px;
    display:flex;
    justify-content: space-between;
    align-items: center;
    /*padding-bottom: 20px;*/
}

.pregunta img{
    width: 15px;
    transition: transform 0.3s ease; /* Añade esta línea */
}

.respuesta{
    color:#787878;
    line-height: 30px;
    max-height: 0; /*Este se cambiara con JS para mostrar la respuesta*/
    opacity: 0;
    transition: 0.3s ease all;
}

.contenedor-pregunta.activa .respuesta{
    opacity: 1;
    margin-top: 20px;
}

.contenedor-pregunta.activa img{
    transform: rotate(45deg);
}


@media screen and (max-width:800px){
    .categorias{
        grid-template-columns: repeat(2,1fr);
        margin-bottom: 30px;
    }

    .categoria{
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
    }

    .categoria svg{
        width: 30px;
        margin-right: 10px;
        margin-bottom: 0;
    }
}

@media screen and (max-width:500px){
    .categorias{
        grid-template-columns: 1fr;
        margin-bottom: 30px;
    }

}

.faq2{
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
}

.faq2-contenedor{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:20px;
}

.faq2-contenedor h3{
    font-size: 25px;
}

.faq2-btn{
    /*background-color: #0f0e2c;
    text-align: center;

    width: 150px;
    height: 40px;*/
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0f0e2c;
    color: #fff; /* Color del texto */
    text-align: center;
    width: 150px;
    height: 40px;
    border-radius: 20px; /* Bordes redondeados */
    
    font-weight: bold; /* Texto en negrita */
    text-decoration: none;
}



/* Seccion formulario */


.form-content{
    background-color: #0f0e2c;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 10px -10px 0 rgb(192, 155, 85);
    display: flex;
    flex-direction:row;
    gap:25px;
    align-items: center;
    justify-content: center;
}

.form-content h3{
    color: #F4F6F9;
    size: 40px;
    margin-bottom: 20px;
}

form{
    flex:1;
    display: flex;
    flex-direction: column;
    width: 50%;
}

label{
    font-size: 17px;
    color: #959AAB;
    margin-bottom: 10px;
}

input, textarea{
    padding: 17px 14px;
    background-color: #333646;
    border: 0;
    font-size: 15px;
    color:#F4F6F9;
    margin-bottom: 20px;
    border-radius: 10px;
    resize: none;
}
.form-content form input:focus , .form-content form textarea:focus{
    outline: 2px solid rgb(192, 155, 85);
}

.form-btn{
    background-color: rgb(192, 155, 85);
    width: 150px;
    align-self: flex-end;
    cursor: pointer;
}

.form-btn:hover{
    background-color: rgb(192, 155, 50);
}

.form-text{
    flex:1;
}

.form-text p{
    color: #BBB;
    margin-bottom: 20px;
}

.form-text h4{
    color:#fff;
    margin-bottom: 15px;
}


@media screen and (max-width:800px){
    .form-content {
        flex-direction: column;
        align-items: center;
    }
    .form-content, form{
        width: 100%;
    }
    /* Cambiar el orden de los hijos */
    form {
        order: 2;
    }

    .form-text {
        order: 1;
        padding-bottom: 20px;
        border-bottom: #bbb solid 3px;
    }
}






.footer {
    background-color: #0f0e2c; /*333*/
    color: white;
    /*padding: 70px 0;*/
    padding-top: 60px;
    padding-bottom: 20px;
    max-width: 100%;
    width: 100%;
}
.footer-main{
    width: 100%;
    margin:auto;
    /*display: flex;
    justify-content: center;*/
}
.footer-row{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Alinea los elementos a la izquierda */
    /*flex:.75;*/
    padding-left: 30px;
    
}
.footer-list{ /*footer-row ul*/
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
}
.footer-col{
    width: 25%;
    padding: 0 15px;
}
.footer-col h4{
    font-size: 18px;
    color: #fff;
    /*text-transform: capitalize;*/
    margin-bottom: 35px;
    font-weight: 800;
    position:relative;
}
.footer-col h4::before{ /*lines de decoracion*/
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: rgba(192, 155, 85);
    height: 2px;
    box-sizing: border-box;
    width: 55px;
    text-align: center;
}

.footer-list li:not(:last-child){
    margin-bottom: 10px;
}

.footer-list li a{
    font-size: 16px;
    /*text-transform: capitalize;*/
    color: #bbb;
    text-decoration: none;
    text-align: center;
    font-weight: 400;
    transition: all 0.3s ease;
}
.footer-list li a:hover{
    color: #fff;
    padding-left: 8px;
}

.footer-col .social-links a, .form-text .social-links a{
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255,255,255,0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    font-size: 18px;
    line-height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.4s ease;    
}
.footer-col .social-links a:hover, .form-text .social-links a:hover{
    color:#24262b;
    background-color: #fff;
}

.footer-copyright{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px;
    height: 50px;
    border-top: #bbb solid 3px;
}

@media screen and (max-width: 756px){
    
    .footer-col{
        width: 25%;
        /*margin-bottom: 30px;*/
    }
}
@media screen and (max-width: 547px){
    .footer-col{
        width: 100%;
    }
    .footer-list{
        margin: 10px 0;
    }
    .footer-col h4{
        margin-bottom: 20px;
    }
    
}
