/* Infografías Section Styles */
.infografias_section {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

.infografias_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.infografia_card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.infografia_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(167, 203, 0, 0.2);
}

.infografia_image_wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
}

.infografia_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.infografia_card:hover .infografia_image {
    transform: scale(1.08);
}

.infografia_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.infografia_card:hover .infografia_overlay {
    opacity: 1;
}

.btn-expand {
    background: #0B346B;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-expand:hover {
    background: #93a700;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(167, 203, 0, 0.4);
}

.infografia_content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.infografia_content h3 {
    font-size: 18px;
    color: #000000;
    margin-bottom: 10px;
    font-weight: 700;
    border-left: 4px solid #0B346B;
    padding-left: 12px;
}

.infografia_content p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.badge-info {
    display: inline-block;
    background: #0B346B;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
}

/* Modal Styles */
.modal-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-image img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-image-title {
    color: white;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.modal-close {
    background: #0B346B;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #93a700;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .infografias_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .infografia_image_wrapper {
        height: 240px;
    }

    .infografia_content {
        padding: 20px;
    }

    .btn-expand {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .infografia_content h3 {
        font-size: 16px;
    }
}
