
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background: #fff;
    padding: 20px;
    text-align: center;
}

header img {
    max-width: 150px;
}

section {
    padding: 40px 20px; 
    width: 100%;
}

section:hover strong {
    color: #2c3e50;; 
}

strong {
    color: #16a085; 
    font-weight: 800;
    transition: color 0.5s ease;
}

#banner {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

#banner img {
    width: 100%;       
    height: 60vh;     
    object-fit: cover;  
    display: block;
}

#banner h1 {
    padding: 20px;
    text-align: center;
    background: #2c3e50;
    color: #fff;
}

#servicios {
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
}

.pastilla {
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    border-bottom: 4px solid transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.pastilla:active {
    background-color: #e8f8f5; 
    transform: scale(0.98);
}

.pastilla:hover {
    border-bottom: 4px solid #16a085;
    transform: translateY(-8px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); 
    cursor: pointer;
    background-color: #ffffff;
}

.pastilla:hover h3 {
    color: #16a085;
}

.pastilla img {
    width: 60px;
    margin-bottom: 10px;
    filter: brightness(1.2); 
    transition: 0.3s;
}

.redes a:active img {
    transform: scale(0.9); 
    transition: 0.1s;
}

.redes a img {
    transition: filter 0.3s ease, transform 0.3s ease;
}

.redes a:hover img {
    filter: sepia(1) saturate(5) hue-rotate(130deg); 
    transform: rotate(10deg) scale(1.2);
}

#nosotros {
    padding: 60px 40px;
    background: #fff;
}

.imagen-presentacion img {
    width: 100%;
    border-radius: 8px;
}

.texto-nota h2 {
    
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 3px solid #2c3e50;
    display: inline-block;
    padding-bottom: 10px;
}

.texto-nota p {
    margin-bottom: 25px;
    text-align: justify;
}

#opiniones {
    padding: 20px;
}

.review {
    background-color: #ffffff; 
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    border-left: 6px solid #2c3e50; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.review p {
    font-style: italic;
    color: #555;
    margin: 0;
}

.review img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.review:hover .estrellas img {
    transform: scale(1.2);
}

.cabecera-review {
    display: flex; 
    align-items: center;
    gap: 15px; 
    margin-bottom: 15px;
}

.cabecera-review img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.datos-cliente h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.estrellas {
    display: flex;
    justify-content: flex-start; 
    gap: 4px; 
    margin: 10px 0; 
}
.estrellas img {
    width: 14px; 
    height: auto;
    filter: brightness(0); 
    transition: transform 0.3s ease;
}

footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; 
}

.info-alumno p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.redes {
    display: flex;
    justify-content: center;
    gap: 20px; 
}

.redes img {
    height: auto;
    width: 30px;
    margin: 10px;
    transition: 0.3s ease;
}


@keyframes aparecer {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#banner h1 {
    animation: aparecer 1.5s ease-out;
}

.bloque-nosotros {
    margin-bottom: 40px;
}

.col-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}



 
@media (min-width: 768px) {
    #servicios {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 20px;
    }
}
@media (min-width: 1024px) {
    #servicios {
        grid-template-columns: 1fr 1fr 1fr 1fr; 
        max-width: 1200px;
        margin: 0 auto; 
    }

    #nosotros {
        max-width: 1200px;
        margin: 0 auto;
        padding: 80px 20px;
        display: block; 
    }

   
    .bloque-nosotros {
        display: flex;
        align-items: center;
        gap: 60px;
        margin-bottom: 100px; 
    }

    .col-img img {
        height: 400px;
        margin-bottom: 0;
    }

    .col-img, .col-txt {
        flex: 1;
    }

    .bloque-nosotros.alternado {
        flex-direction: row-reverse;
    }

    #opiniones {
        display: flex;
        justify-content: space-between;
        max-width: 1200px; 
        margin: 40px auto; 
    }

    .review {
        width: 48%;
    }
}