/* Portada */
.inicio-container-cover{
    width: 100%;
    height: 500px;
    position: relative;
    margin-top: 80px;
    background-image: url(../img/img1.jpeg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.inicio-container-cover::before{
    content: '';
    width: 100%;
    height: 100%;
    background: rgba(38, 172, 255, 0.5);
    position: absolute;
    top: 0;
    left: 0;
}

.container-info-cover{
    max-width: 800px;
    height: 500px;
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 20px; /* Para móviles */
}

.container-info-cover h1{
    font-size: 60px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 20px;
}

.container-info-cover p{
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
}

/* Sección de Servicios */
.services-container{
    max-width: 1200px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px; /* Para móviles */
}

.services-container h2{
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.services{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.service{
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 0 20px -15px black;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service:hover{
    transform: translateY(-5px);
    box-shadow: 0 0 25px -5px black;
}

.service i{
    font-size: 40px;
    color: #46a2fd;
    margin-bottom: 20px;
}

.service h3{
    font-size: 20px;
    margin-bottom: 10px;
}

.service p{
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* Quiénes somos */
.about-us{
    max-width: 800px;
    margin: 80px auto;
    text-align: center;
    padding: 0 20px; /* Para móviles */
}

.about-us h2{
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.about-us p{
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* Últimos artículos */
.latest-articles{
    max-width: 1200px;
    margin: 80px auto;
    text-align: center;
    padding: 0 20px; /* Para móviles */
}

.latest-articles h2{
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.latest-posts{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.latest-posts .post{
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 20px -15px black;
    overflow: hidden;
    padding-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.latest-posts .post:hover{
    transform: translateY(-5px);
    box-shadow: 0 0 25px -5px black;
}

.latest-posts .post img{
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.latest-posts .post h3{
    font-size: 18px;
    margin: 20px;
    color: #333;
}

.latest-posts .post button{
    margin-left: 20px;
    margin-top: 10px;
    padding: 12px 50px; /* Ajuste uniforme */
    font-size: 16px;
    background: #46a2fd;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

.latest-posts .post button:hover{
    opacity: 0.9;
}

/* Contáctanos minimalista */
.contactanos-home{
    text-align:center;
    margin:60px auto;
    padding: 0 20px;
}

.contactanos-home button{
    padding:15px 60px;
    font-size:18px;
    background:#46a2fd;
    color:#fff;
    border:none;
    border-radius:6px;
    cursor:pointer;
    transition: all 0.3s;
}

.contactanos-home button:hover{
    opacity:0.9;
    transform: translateY(-2px);
}

/* Responsive */
@media screen and (max-width: 1200px){
    .services{
        grid-template-columns: repeat(3, 1fr);
    }
    .latest-posts{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 800px){
    .services{
        grid-template-columns: 1fr;
    }
    .latest-posts{
        grid-template-columns: 1fr;
    }
    .container-info-cover h1{
        font-size: 40px;
    }
    .container-info-cover p{
        font-size: 16px;
    }
    .service p{
        font-size: 15px;
    }
    .latest-posts .post h3{
        font-size: 16px;
    }
}

