*{
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    list-style: none;
}
body {
    font-family: "Roboto", sans-serif;
}
.contenedor {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

/* ----HEADER---- */

header {
    width: 100%;
    background: url('../../img/blog\ portada.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center 0;
}
header .contenedor {
    position: relative;
    height: 400px;
}
header .menu {
    width: 100%;
    text-align: left;
}
header .menu a {
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    display: inline-block;
    margin: 90px 20px;
    text-decoration: none;
    position: relative;
}
header .menu a:hover {
    text-decoration: underline;
}
header .textos {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 40%;
    margin-top: auto;
}
header .textos .nombre {
    font-size: 60px;
    font-weight: 300;
}
header .textos .nombre span {
    color: #cee0d7;
    font-weight: 600;
}

/* PROXIMOS EVENTOS */

body {
    background-color: #fff;
}
.main .titulo {
    color: #799b97;
    font-size: 48px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 70px;
}

/*tarjeta horizontal*/

.hero{
    overflow: hidden;
}
.container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 65px auto;
}
.hero-content{
    flex: 1;
    width: 600px;
    margin: 0px 25px;
}
.hero-content h2{
    font-size: 28px;
    margin-bottom: 20px;
    color: #FF0000;
}
.hero-content p{
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 40px;
    color:#666;
}
.hero-content a{
    display: inline-block;
    padding: 10px 16px;
    background-color: #FF0000;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    margin-top: 10px;
    color: #fff;
}
.hero-content button:hover{
    background-color: #ff6347;
    transform: scale(1.1);
}
.hero-image{
    flex: 1;
    width: 400px;
    margin: auto;
}
img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/*tres tarjetas */

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 60px;
    margin-bottom: 60px;
}
.card, .card2, .card3 {
    width: 330px;
    background-color: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.6);
    margin: 20px;
}
.card-container2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    margin-bottom: 60px;
}
.card4, .card5, .card6 {
    width: 360px;
    background-color: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 60px;
}*/

.card img,
.card2 img,
.card3 img {
    width: 100%;
    height: auto;
}

.card-content {
    padding: 20px;
}

.card-content p {
    color: #494C4B;
    line-height: 1.3;
}

.card h3 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #009ADE;
}
.card-content .subtitulo {
    font-size: 22px;
    color: #009ADE;
    padding: 20px 0;
}
.card2 h3 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #4e6225;
}
.card2 .card-content .subtitulo {
    font-size: 22px;
    color: #4e6225;
    padding: 20px 0;
}
.card3 h3 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #005210;
}
.card3 .card-content .subtitulo {
    font-size: 22px;
    color: #005210;
    padding: 20px 0;
}

.card4 h3 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #D6832B;
}
.card4 .subtitulo {
    font-size: 26px;
    margin-bottom: 8px;
    color: #D6832B;
}

.card-content li {
    font-size: 15px;
    line-height: 20px;
    margin-bottom: 20px;
    color: #494C4B;
}
.card-content .btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: #FF0000;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 16px;
    color: #fff;
}
.card-container2 .card4 a {
    display: inline-block;
    padding: 10px 18px;
    background-color: #FF0000;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 16px;
    color: #fff;
}

/* footer */

.container {
    max-width: 1000px;
    margin: 0 auto;
}
.footer {
    background-color:#799b97;
    padding: 60px 0;
}
.footer-row {
    display: flex;
    flex-wrap: wrap;
}
.footer-link {
    width: 25%;
    padding: 0 15px;
}
.footer-link h4 {
    font-size: 26px;
    color: #ffff;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom:  2px solid #fff;
    padding-bottom: 10px;
    display: inline-block;
}
.footer-link ul li a {
    font-size: 16px;
    text-decoration: none;
    color: #fff;
    display: block;
    margin-bottom: 20px;
    transition: all .3s ease;
}
.footer-link ul li a:hover{
    color: #494C4B;
    padding-left: 4px;
}
.social-link img {
    display: inline-block;
    min-height: 40px;
    width: 40px;
    margin: 0 10px 10px 0;
}



/* MEDIA QUERIES */

/* MEDIA QUERIES TARJETA HORIZONTAL */
@media screen and (max-width: 760px) {    
    header .textos {
        position: static;
        margin: 100px 0;
    }

    header .textos .nombre {
        font-size: 40px;
    }

    /*FOOTER*/

    .container {
        max-width: 600px;
    }

    .footer-link h4 {
        font-size: 22px;
    }

    .footer-link ul li a{
        font-size: 14px;
    }

    .social-link img {
        display:flow-root;
    }

}

@media screen and (max-width: 440px) {

    .main .titulo {
        font-size: 40px;
    }

    .hero{
        margin: 0px;
    }
    .container{
        width:100%;
        flex-direction: column;
        margin: 0px;
        padding: 0px 40px;
    }
    .hero-content{
        width: 100%;
        margin: 35px 0px;
    }
    .hero-content h2{
        font-size: 28px;
    }
    .hero-content p{
        font-size: 18px;
        margin-bottom: 20px;
    }
    .hero-content button{
        font-size: 16px;
        padding: 8px 16px;
    }
    .hero-image {
        width: 90%;
    }

    /*FOOTER*/
    .container {
        max-width: 400px;
    }

    .footer-link h4 {
        font-size: 16px;
    }
    
    .footer-link ul li a{
        font-size: 12px;
        
    }

    .social-link img {
        min-height: 26px;
        width: 26px;
    }
}