/* Reset y estilos base */
* {
    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: white;
    min-height: 100vh;
}

/* Sección principal */
.section-grupos {
    padding: 4rem 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contenedor de tarjetas */
.sabios-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tarjetas individuales */
.sabios-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    min-height: 350px;
    border: 1px solid #e0e0e0;
}

.sabios-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Parte de la imagen */
.card-image {
    width: 40%;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 100%;
    background: linear-gradient(to right, rgba(248, 249, 250, 0), rgba(248, 249, 250, 0.7));
}

/* Contenido de la tarjeta */
.card-content {
    width: 60%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

/* Encabezado de la tarjeta */
.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2.5rem;
    color: #0d1126; /* Azul petróleo oscuro */
    background: rgba(13, 17, 38, 0.08);
    padding: 15px;
    border-radius: 50%;
    min-width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.8rem;
    color: #0d1126; /* Azul petróleo oscuro */
    flex-grow: 1;
}

/* Cuerpo de la tarjeta */
.card-body {
    flex-grow: 1;
}

.card-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #495057;
}

/* Pie de la tarjeta */
.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.card-stats {
    font-size: 1rem;
    color: #666;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    color: #0d1126; /* Azul petróleo oscuro */
}

/* Fondos por grupo */
.ghida .card-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                     url('https://images.unsplash.com/photo-1483728642387-6c3bdd6c93e5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.gipe .card-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
                     url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.gofa .card-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
                     url('https://images.unsplash.com/photo-1476231682828-37e571bc172f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.ecosurc .card-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
                     url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.dsgaa .card-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
                     url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.procing .card-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
                     url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.efecto-ambiental .card-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                     url('https://images.unsplash.com/photo-1448375240586-882707db888b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.cofa .card-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                     url('https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.fseq .card-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                     url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.geoia .card-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                     url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.hidroinformatica .card-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                     url('https://images.unsplash.com/photo-1559825481-12a05cc00344?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

/* Responsive */
@media (max-width: 1200px) {
    .sabios-container {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .card-content {
        padding: 2rem;
    }

    .card-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem;
    }

    .sabios-card {
        flex-direction: column;
        min-height: auto;
    }

    .card-image {
        width: 100%;
        height: 250px;
    }

    .card-image::after {
        width: 100%;
        height: 15px;
        background: linear-gradient(to bottom, rgba(248, 249, 250, 0), rgba(248, 249, 250, 0.7));
        bottom: 0;
        top: auto;
    }

    .card-content {
        width: 100%;
    }

    .card-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 2rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        padding: 12px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-text {
        font-size: 1rem;
    }
}
