
/* ====================================================== 
                        MAIN CONTENT 
   ====================================================== */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
main {
    background-color: #ffffff00;
}
body {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    line-height: 1.5;
    background-color: #f4efe6;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;

}
p {
    color: #5E4F47;
    margin-bottom: 15px;
}
a {
    color: #4C3A34;
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
    color: #5b3a29;
}
h2 {
    font-size: 35px;
    font-family: 'EB Garamond', serif;
    color: #5b3a29;
    margin: 0px 0px 10px 0px;
}
li {
    list-style-type: none;
    margin: 7px;
}

/* ====================================================== 
                        HEADER 
   ====================================================== */

header {
    background-color: #8a9b6e;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Quicksand', sans-serif;
}
.logo {
    height: 50px;
    vertical-align: middle;
}
.navegacion .Inicio {
    font-weight: bold;
    color: #f4efe6;
}
.navegacion .Inicio:hover {
    color: #5b3a29;
    transform: scale(1.05);
    transition: transform 0.3s;
}
.cabezal p {
    margin: 20px 0px 20px 0px;
}
.cabezal {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cabezal:hover {
    color: #5b3a29;
    transform: scale(1.05);
    transition: transform 0.3s;
}
.Titulo {
    color: #f4efe6;
    font-weight: bold;
    margin-right: 50px;
    text-align: center;
    font-size: 23px;
    vertical-align: middle;
}
.navegacion {
    display: inline-block;
    gap: 20px;
    margin-left: 20px;
}
.navegacion a { 
    color: #f4efe6af;
    text-decoration: none;
    margin: 13px;
    font-size: 17px;
    transition: all 0.3s ease;
}
.navegacion a:hover {
    color: #5b3a29;
    transform: scale(1.05);
    transition: transform 0.3s;
}
.usuario {   
    display: flex;
    flex-wrap: wrap;
    margin-left: auto;
}
.usuario a {
    color: #5b3a29;
    font-size: 17px;
    border-radius: 5px;
    margin: 10px;
    padding: 5px;
    background-color: #f4efe6;
    transition: all 0.3s ease;
}
.usuario a:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
    background-color: #5b3a29;
    box-shadow: #00000041 2px 2px 5px;
    color: #f4efe6;
}

/* ====================================================== 
                        BANNER 
   ====================================================== */

.titulo-banner {
    color: #4C3A34;
    line-height: 1.2;
    font-size: 100px;
    font-weight: 600 bold;
    font-family: 'EB Garamond', serif;
    text-align: center;
    vertical-align: middle;
    margin: 0px;
    padding: 0px;
    text-shadow: 2px 2px 4px #000000;
}
.banner {
    width: 100%;
    height: 300px;
    background-image: url('banner3.jpg');
    background-size:cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================================================== 
                        ARTICULO PRINCIPAL
    ====================================================== */

.articuloprincipal {
    display: grid;
    padding: 20px;
    background-color: #d7b77a;
    border-radius: 10px;
    margin: 20px;
}
.articuloprincipal h2 {
    color: #4C3A34;
    
}

/* ====================================================== 
                        ARTICULOS SECUNDARIOS
   ====================================================== */

.articuloSecundario {
    margin: 20px;
    display: grid;
    padding: 20px  40px 40px 40px ;
    background-color: #f8f3e8;
    border-radius: 10px;
    border: solid 1px;
    border-color: #d7cbb7;
}
.articuloSecundario h3 {
    color: #8A9B6E;
    font-family: 'Lora', serif;
    font-size: 25px; 
}
.articuloSecundario p {
    color: #d7b77a;
}
.articuloSecundario h2 {
    font-size: 50px;
    text-align: center;
    margin: 0px 0px 20px 0px;
}
.articulos {
    position: relative;
    background-size: 100%;
    background-position: 100%;
    border-radius: 10px;
    transition: all 0.2s ease;
    overflow: hidden;
}
.articulos img {
    transition: all 0.2s ease;
    width: 100%; 
    height: 100%;
    display: block;
}
.articulos:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
    box-shadow: #8A9B6E 2px 2px 4px;
}
.contenedor-articulos {
    display: grid;
    grid-template-columns:auto auto;
    grid-template-rows: auto auto;
    gap: 20px;
    height: auto;
    width: auto;
}
.descripcion {
    position: absolute;
    left: 0;
    width: 100%; 
    height: 100%;
    background: #5b3a29;
    border-radius: 10px;
    bottom: -100%;
    transition: bottom 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
}
.articulos:hover .descripcion {
    bottom: -65%;
}

/* ====================================================== 
                        SIDEBAR
   ====================================================== */

.lateral{
   float: right;
   display: grid;
   grid-template-rows: auto auto; 
   gap: 20px ;
}
.barra-lateral {
    padding: 10px 20px 20px 40px;
    background-color: #C8D1C0;
    width: 260px;
    height: auto;
    margin: 0px 20px 0px 20px;
    border-radius: 10px;
    overflow-wrap: break-word;
}
.barra-lateral h3 {
    color: #8A9B6E; 
    margin-bottom: 10px;
}
.barra-lateral a {
    color: #4C3A34;
    text-decoration: none;
}
.barra-lateral a:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
    color: #f4efe6;
    text-shadow: #5E4F47 1px 1px 2px;
}
.redes-sociales {
    display:flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
} 
.redes-sociales img {
    width: 60px;
    transition: all 0.3s ease;
}
.redes-sociales img:hover {
    transform: scale(1.10);
    transition: transform 0.2s;
}

/* ====================================================== 
                        FORMULARIO
   ====================================================== */
form {
    margin: 20px;
    display: grid;
    padding: 10px 30px 30px 30px;
    background-color: #C8D1C0;
    width: 260px;
    border-radius: 10px;
    overflow-wrap: break-word;
}
input {
    height: 20px;
    border: solid 0.5px #d7b77a;
    border-radius: 5px;
    font-size: 16px;
    padding: 5px;
    text-align: middle;
    font-family:'Merriweather', serif;
    color: #4C3A34;
    background-color: #f4efe6;
}
label {
    margin-top: 15px;
    color: #8a9b6e;
    font-weight: bold;
}
textarea {
    border: solid 0.5px #d7b77a;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: justify;
    font-size: 16px;
    padding: 5px;
    font-family: 'Merriweather', serif;
    background-color: #f4efe6;
    color: #4C3A34;
}
.enviar{
    height: auto;
    width: 38%;
    padding: 10px ;
    background-color: #5b3a29;
    color: #f4efe6;
    border-radius: 5px;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.enviar:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
    background-color: #f4efe6;
    box-shadow: #00000041 2px 2px 5px;
    color: #5b3a29;
}

/* ====================================================== 
                        FOOTER
   ====================================================== */

footer {
    background-color: #8a9b6e;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: static;
    clear: both;
}
footer p {
    color: #f4efe6;
    margin: 0;
    font-size: 16px;
}

/* ======================================================
                        MEDIA QUIERIES
   ====================================================== */

@media (max-width: 900px) {


    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 15px;
        gap: 10px;
        text-align: center;
    }

    .Titulo {
        margin: 0;
        display: flex;
        align-items: center;
        font-size: 22px;
    }

    .logo {
        height: 45px;
        margin-right: 10px;
    }

    .navegacion {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .usuario{
        margin: 0;
    }

    main {
        width: 100%;
        margin-right: 0;
    }

    .articuloprincipal,
    .articuloSecundario {
        margin: 0 auto;
        width: 95%;
        box-sizing: border-box;
    }


    .lateral {
        float: none;
    }
    .barra-lateral {
        position: static;
        float: none;
        width: 50%;
        margin: 20px auto;
        padding: 15px;
        box-sizing: border-box;
    }
    form {
        position: static;
        float: none;
        width: 50%;
        margin: 20px auto;
        padding: 15px;
        box-sizing: border-box;
    }


    footer {
        text-align: center;
        padding: 15px;
    }
}
@media (max-width: 600px) {


    header {
        padding: 10px 0;
    }

    .Titulo {
        font-size: 20px;
    }

    .logo {
        height: 35px;
    }

    .navegacion a {
        font-size: 14px;
        padding: 5px 10px;
    }

    .usuario {
        margin: 0;
    }
    .icono img {
        width: 20px;
        height: 20px;
    }

    .titulo-banner {
        font-size: 67px;
    }

    .articuloprincipal,
    .articuloSecundario {
        width: 93%;
        padding: 15px;
        margin: 15px;
    }

    .lateral {
        margin: 5px;
    }
    .barra-lateral {
        width: 75%;
        padding: 15px;
        margin-bottom: 0;
    }

    form {
        width: 75%;
    }

    .barra-lateral ul {
        padding-left: 20px;
    }

    body {
        font-size: 16px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    footer {
        font-size: 14px;
        padding: 12px;
    }
}
@media (max-width: 400px) {

    .navegacion {
        gap: 8px;
    }

    .navegacion a {
        font-size: 12px;
        padding: 4px 8px;
    }

    .Titulo {
        font-size: 18px;
    }

    .logo {
        height: 30px;
    }
}



