/* RESET BÁSICO */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CABECERA */
.cabecera{
    width: 100%;
    height: 9vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 70px;
    position: relative;
    z-index: 1000;
    background-color: rgba(165, 42, 42);
}

.logo{
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.logo a{
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 26px;
}
.logo img{
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.menu{
    width: 70%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.navegacion{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
}

.navegacion li{
    position: relative;
    list-style: none;
}

.navegacion li a{
    text-decoration: none;
    color: white;
    font-size: 20px;
    padding: 10px 25px;
    display: block;
    box-sizing: border-box;
}
.navegacion li a:hover{
    color: rgb(221, 221, 159);
    border-bottom: 2px solid white;
}
.submenu{
    background-color: rgba(165, 42, 42, 0.800);
    display: none;
    position: absolute;
    min-width: 180px;
    top: 100%;
    left: 0;
}
.submenu li a{
    color: white;
    font-size: 17px;
    padding: 12px 15px;
    display: block;
}
.navegacion li:hover .submenu{
    display: block;
}

/*Main*/
.banner{
    position: relative;
    width: 100%;
    height: 70vh;
    background-image: url(../img/bannercontacto.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 50px;
}
.banner h1{
    font-size: 36px;
    color: black;
    text-align: left;
}
.banner hr{
    width: 10%;
    height: 6px;
    border: none;
    border-top: 6px solid rgb(92, 54, 35);
    margin: 10px 0;
}
.banner h2{
    font-size: 30px;
    color: black;
    margin-bottom: 10px;
    text-align: left;
}
.banner p{
    font-size: 24px;
    color: black;
    max-width: 600px;
    margin: 0;
}
.contenido{
    background-color: #faf7f2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 100vh;
    padding: 60px 30px;
    box-sizing: border-box;
}
.canales{
    text-align: center;
    width: 35%;
}
.canal{
    display: block;
    width: 100%;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #e5dcc8;
    border-radius: 8px;
    background-color: #fff;
}
.canales hr{
    width: 100px;
    height: 2px;
    border: 2px solid rgb(92, 54, 35);
    margin: 1px auto 15px auto;
}
.canal:hover{
    background-color: #f0e8da;
}
.canal i{
    font-size: 30px;
    color: rgb(92, 54, 35);
    margin-bottom: 10px;
}
.canal h3{
    font-size: 18px;
    color: rgb(92, 54, 35);
    margin-bottom: 8px;
}
.canal p{
    font-size: 15px;
    color: #666;
    margin: 3px 0;
}
.canal a{
    text-decoration: none;
    color: black;
}
.formulario{
    text-align: center;
    width: 60%;
    padding: 10px;
    border-radius: 8px;
}
.formulario h2{
   font-size: 26px;
   margin-bottom: 10px;
}
.formulario hr{
    width: 100px;
    height: 2px;
    border: 2px solid rgb(92, 54, 35);
    margin: 1px auto 15px auto;
}
.fila{
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}
#nombre, #correo, #opciones, #mensaje{
   display: block;
   width: 60%;
   max-width: 500px;
   margin: 10px auto;
   padding: 12px;
   border: 1px solid #ccc;
   border-radius: 5px;
   font-size: 14px;
}
.fila #nombre, .fila #correo{
   width: 50%;
   max-width: 245px;
   display: inline-block;
   margin: 10px 0;
}
#mensaje{
   height: 120px;
}
.formulario button{
   background-color: rgb(92, 54, 35);
   color: white;
   border: none;
   padding: 12px 30px;
   border-radius: 20px;
   font-size: 15px;
   margin-top: 15px;
}
.formulario button:hover{
   background-color: black;
}

/*Footer*/
.pie{
    background-color: brown;
    color: white;
    padding: 30px 40px 20px 40px;
}
.logo_pie{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}
.logo_pie img{
    height: 70px;
}
.logo_pie span{
    font-size: 24px;
    margin-left: 10px;
}
.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid white;
    padding-top: 20px;
    font-size: 12px;
}
.enlaces a{
    color: rgb(210, 200, 190);
    text-decoration: none;
    margin: 0 4px;
}
.enlaces a:hover{
    color: white;
}
.copyright p{
    color: rgb(210, 200, 190);
}

/*Responsive*/
@media(min-width: 769px) and (max-width: 896px){
    .cabecera{
        padding: 0 30px;
    }
    .logo{
        width: 35%;
    }
    .menu{
        width: 65%;
    }
    .logo a{
        font-size: 22px;
    }
    .logo img{
        width: 80px;
        height: 80px;
    }
    .navegacion li a{
        font-size: 17px;
        padding: 10px 15px;
    }
    .banner{
        height: 70vh;
        padding-left: 40px;
    }
    .banner h1{
        font-size: 34px;
    }
    .banner h2{
        font-size: 27px;
    }
    .banner p{
        font-size: 20px;
        max-width: 500px;
    }

    .contenido{
        padding: 50px 20px;
        gap: 20px;
    }
    .canales{
        width: 40%;
    }
    .formulario{
        width: 55%;
    }
    #nombre, #correo, #opciones, #mensaje{
        width: 80%;
    }
    .fila{
        width: 90%;
    }
    .fila #nombre,
    .fila #correo{
        width: 50%;
    }
}

@media(min-width: 513px) and (max-width: 768px){
    .cabecera{
        height: auto;
        padding: 10px 20px;
        flex-direction: column;
    }
    .logo{
        width: 100%;
        height: auto;
        justify-content: center;
        margin-bottom: 10px;
    }
    .logo img{
        width: 60px;
        height: 60px;
    }
    .logo a{
        font-size: 22px;
    }
    .menu{
        width: 100%;
        height: auto;
        justify-content: center;
    }
    .navegacion{
        width: 100%;
        height: auto;
        justify-content: center;
        flex-wrap: wrap;
    }
    .navegacion li a{
        font-size: 16px;
        padding: 10px 12px;
    }
    .banner{
        height: 65vh;
        padding: 40px 10%;
        justify-content: center;
    }
    .banner h1{
        font-size: 32px;
    }
    .banner h2{
        font-size: 27px;
    }
    .banner p{
        font-size: 18px;
        max-width: 100%;
    }
    .banner hr{
        width: 100px;
    }

    .contenido{
        flex-direction: column;
        align-items: center;
        padding: 50px 10%;
        gap: 30px;
    }
    .canales{
        width: 100%;
    }
    .formulario{
        width: 100%;
    }
    .fila{
        width: 100%;
    }
    #nombre, #correo, #opciones, #mensaje{
        width: 80%;
    }
    .fila #nombre,
    .fila #correo{
        width: 50%;
    }

    .footer{
        flex-direction: column;
        text-align: center;
    }
}

@media(min-width: 256px) and (max-width: 512px){
    .cabecera{
        height: auto;
        padding: 10px;
        flex-direction: column;
    }
    .logo{
        width: 100%;
        height: auto;
        justify-content: center;
        margin-bottom: 10px;
    }
    .logo img{
        width: 55px;
        height: 55px;
    }
    .logo a{
        font-size: 20px;
    }
    .menu{
        width: 100%;
        height: auto;
    }
    .navegacion{
        width: 100%;
        height: auto;
        justify-content: center;
        flex-wrap: wrap;
    }
    .navegacion li a{
        font-size: 14px;
        padding: 8px 9px;
    }
    .submenu{
        min-width: 150px;
    }
    .submenu li a{
        font-size: 14px;
        padding: 10px;
    }
    .banner{
        height: 65vh;
        padding: 40px 10%;
        justify-content: center;
    }
    .banner h1{
        font-size: 28px;
    }
    .banner h2{
        font-size: 23px;
    }
    .banner p{
        font-size: 16px;
        max-width: 100%;
    }
    .banner hr{
        width: 80px;
    }

    .contenido{
        flex-direction: column;
        align-items: center;
        padding: 40px 10%;
        gap: 30px;
    }
    .canales{
        width: 100%;
    }
    .canal{
        padding: 18px;
    }
    .canal i{
        font-size: 28px;
    }
    .canal h3{
        font-size: 17px;
    }
    .canal p{
        font-size: 14px;
    }
    .formulario{
        width: 100%;
        padding: 0;
    }
    .formulario h2{
        font-size: 24px;
    }
    .fila{
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    #nombre, #correo, #opciones, #mensaje{
        width: 100%;
        max-width: 100%;
    }
    .fila #nombre,
    .fila #correo{
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
    }
    #mensaje{
        height: 120px;
    }
    .formulario button{
        padding: 10px 25px;
    }

    .pie{
        padding: 30px 20px;
    }
    .logo_pie{
        flex-direction: column;
        text-align: center;
    }
    .logo_pie img{
        height: 60px;
    }
    .logo_pie span{
        font-size: 20px;
        margin-left: 0;
        margin-top: 10px;
    }
    .footer{
        flex-direction: column;
        text-align: center;
    }
    .enlaces{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}