:root{
    --verde: #3ca55c;
    --aqua: #4CB8C4
}

*{
    margin: 0; padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif; /* Corregido Geneve a Geneva */
    outline: none; border: none;
    text-decoration: none;
    transition: .2s linear; /* Corregido liner a linear */
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    overflow-x: hidden;
}

header{
    position: fixed;
    top: 0; left: 0; right: 0;
    background-color: #fff;
    padding: 2rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

header .logo{
    font-size: 3rem;
    color: #333;
    font-weight: bolder;
    text-transform: none;
}

header .logo span:nth-child(1){
    color: var(--verde);
}

header .logo span:nth-child(2){
    color: var(--aqua);
}

header .navbar a{
    font-size: 2rem;
    padding: 0 1.5rem;
    color: #666;
}

header .navbar a:hover{
    color: var(--aqua);
}

header .icons a{
    font-size: 2.5rem;
    color: #333;
    margin-left: 1.5rem;
}

header .icons a:hover{
    color: var(--aqua);
}

header #toggler{
    display: none;
}

header .fa-bars{
    font-size: 3rem;
    color: #333;
    border-radius: .5rem;
    padding: .5rem 1.5rem;
    cursor: pointer;
    border: .1rem solid rgba(0,0,0,.3);
    display: none;
}





/*Noticias del blog*/

h1{
    padding-top: 100px;
    text-align: center;
    align-items: center;
    font-size: 25px;
}


.btn{
    display: inline-block;
    margin-top: 1rem;
    border-radius: 5rem;
    background: #333;
    color: #fff;
    padding: .9rem 3.5rem;
    cursor: pointer;
    font-size: 1.7rem;
}

.btn:hover{
    background: var(--verde);
}
.principal{
    width: 80%;
    height: auto;
    overflow: hidden;
    margin: 40px auto;
    border-radius: 10px;

}

.principal .publicaciones {
    width: 80%;
    height: auto;
    overflow: hidden;
    margin: 40px auto;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 6rem;
}


.principal .publicaciones .post {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 7px;
    background: #fdfdfd;
    border-left-style: solid;
    border-left-width: 10px;
    border-left-color: #4CB8C4;
    border-radius: 5px;
    box-shadow: 0px 0px 5px #4CB8C4;
    margin-bottom: 2rem;
}

.principal .publicaciones .post h2{
    color: #6e6e6e;
    font-size: 22px;
    text-align: center;
}

.principal .publicaciones .post .img-post{
    float: left;
    margin: 7px 7px 7px 0px;
    padding: 5px;
}


.principal .publicaciones .post p{
    padding: 5px;
}

.principal .publicaciones .post p strong, .datos-publicaciones{
    font-size: 12px;
}

.principal .publicaciones .post .parrafo-post{
    font-size: 16px;
    color: #848484;
}

.principal .publicaciones .post p .datos-publicaciones{
    color: var(--verde);
}


.heading{
    text-align: center;
    font-size: 4rem;
    color: #333;
    padding: 1rem;
    margin: 2rem 0;
    background: var(--aqua);
    color: #fff;
    margin-top: 9rem;
}

.ejercitate{
    padding: 2rem 9%;
}

/*Ejercitate*/

.ejercitate .row{
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    padding-bottom: 3rem;
}

.ejercitate .row .video-container{
    flex: 1 1 40rem;
    position: relative; 
}

.ejercitate .row .video-container video{
    width: 100%;
    border: 1.5rem solid #fff;
    border-radius: .5rem;
    box-shadow: 0 .5rem 1rem, rgba(0,0,0,.1);
    height: 100%;
    object-fit: cover;

}

.ejercitate .row .content{
    flex: 1 1 40rem;
}

.ejercitate .row .content h3{
    font-size: 3rem;
    color: #333;
    text-align: center;
}

.ejercitate .row .content p{
    font-size: 1.5rem;
    color: #999;
    padding: .5rem 0;
    padding-top: 1rem;
    line-height: 1.5;
}

/*Media queries*/
@media (max-width: 991px){
    html{
        font-size: 55%;
    }
    header{
        padding: 2rem;
    }

    .principal {
        width: 90%; /* Ajuste de ancho para pantallas medianas */
        margin: 20px auto;
    }

    .principal .publicaciones {
        width: 100%; /* La sección de publicaciones toma todo el ancho */
        margin-left: 0;
    }

    .principal .publicaciones .post {
        margin-bottom: 20px; /* Espacio entre posts */
    }

    section{
        padding: 2rem;
    }

    .ejercitate .row .video-container iframe {
        width: 100%; /* El iframe toma el 100% del contenedor */
        height: auto; /* Ajusta la altura automáticamente */
        aspect-ratio: 16/9; /* Mantiene la relación de aspecto */
    }
}

@media (max-width: 768px){
    header .fa-bars{
        display: block;
    }

    header .navbar{
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #eee;
        border-top: .1rem solid rgba(0,0,0,.1);
        display: none;
    }

    header #toggler:checked ~ .navbar{
        display: block;
    }

    header .navbar a{
        margin: 1.5rem;
        padding: 1.5rem;
        background: #fff;
        border: .1rem solid rgba(0,0,0,.1);
        display: block;
    }

    .principal {
        width: 95%; /* Aún más ancho para pantallas más pequeñas */
    }

    .principal .publicaciones {
        grid-template-columns: 1fr; /* Una sola columna en pantallas pequeñas */
    }

    .principal .publicaciones .post {
        display: block;
    }

    .principal .publicaciones .post .img-post {
        float: none;
        display: block;
        margin: 0 auto 10px; /* Centrar la imagen y agregar margen inferior */
    }

    .ejercitate .row .video-container iframe {
        width: 100%; /* El iframe toma el 100% del contenedor */
        height: auto; /* Ajusta la altura automáticamente */
        aspect-ratio: 16/9; /* Mantiene la relación de aspecto */
    }
}

@media (max-width: 450px){
    html{
        font-size: 50%;
    }

    .principal {
        width: 100%;
    }

    .principal .publicaciones .post {
        padding: 10px; /* Ajustar el padding en pantallas muy pequeñas */
    }

    .principal .publicaciones .post .parrafo-post {
        font-size: 14px; /* Ajustar el tamaño de la fuente */
    }

    .ejercitate .row .video-container iframe {
        width: 100%; /* El iframe toma el 100% del contenedor */
        height: auto; /* Ajusta la altura automáticamente */
        aspect-ratio: 16/9; /* Mantiene la relación de aspecto */
    }
}


.footer{
    padding: 2rem 9%;
    margin-top: 15rem;
}

.footer .box-container{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
 }

 .footer .box-container .box{
    flex: 1 1 25rem;
 }

 .footer .box-container .box h3{
    color: #333;
    font-size: 2.5rem;
    padding: 1rem 0;
 }

 .footer .box-container .box a{
    display: block;
    color: #666;
    font-size: 1.5rem;
    padding: 1rem 0;
 }

 .footer .box-container .box a:hover{
    color: var(--verde);
    text-decoration: underline;
 }

 .footer .box-container .box img{
    margin-top: 1rem;
 }

 .footer .credit{
    text-align: center;
    padding: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 2.5rem;
    font-size: 2rem;
    color: #333;
    border-top: .1rem solid rgba(0,0,0,.1);
 }

 .footer .credit span {
    color: var(--verde);
 }



 /*Icono de wasa*/
 .btn-wsp{
    position:fixed;
    width:60px;
    height:60px;
    line-height: 63px;
    bottom:25px;
    right:25px;
    background:#25d366;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    font-size:35px;
    box-shadow: 0px 1px 10px rgba(0,0,0,0.3);
    z-index:100;
    transition: all 300ms ease;
}
.btn-wsp:hover{
    background: #20ba5a;
}
@media only screen and (min-width:320px) and (max-width:768px){
    .btn-wsp{
        width:63px;
        height:63px;
        line-height: 66px;
	}
}
