/* General section styling */
section {
    position: relative;
    padding: 40px 0;
    background-color: #f8f9fa;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(#f00, #f0f);
    clip-path: circle(30% at right 70%);*/
    z-index: 1;
    opacity: 0.1;
}

section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(#2196f3, #e91e63);
    clip-path: circle(20% at 10% 10%);*/
    z-index: 1;
    opacity: 0.1;
}

/* Card grid styling */
.cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns layout */
    gap: 20px;
    justify-content: center;
}

/* Individual card styling */
.cards .card {
    position: relative;
    width: 100%;
    background: #fff;
    margin: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

/* Card image styling */
.cards .card .imgbox {
    width: 100%;
    height: 300px; /* altura fija para el contenedor de la imagen */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards .card .imgbox img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* Card content styling */
.cards .card .content {
    padding: 20px;
    text-align: center;
}

.cards .card .content h3 {
    font-size: 18px;
    color: #333;
    text-transform: uppercase;
    margin: 15px 0 10px 0;
}

.cards .card .content p {
    font-size: 14px;
    color: #777;
    margin: 0 0 15px 0;
}

/* Social media links styling */
.cards .card .content .sci {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.cards .card .content .sci li {
    margin: 0 10px;
}

.cards .card .content .sci li a {
    color: #333;
    font-size: 20px;
    transition: color 0.3s ease;
}

.cards .card .content .sci li a:hover {
    color: #2196f3;
}

@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr; 
        
    }
    
    .cards .card {
       width: 90%; 
    }

    section::before,
    section::after {
        clip-path: circle(50% at center); 
    }
