/* css/congresos.css */
.congresos-socid-section {
    width: 100%;
    padding: 80px 20px;
    flex: 1;
}

.congresos-socid-header {
    text-align: center;
    margin-bottom: 60px;
}

.congresos-socid-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.congresos-socid-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.congresos-socid-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.congresos-socid-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 650px;
    display: flex;
    flex-direction: column;
}

.congresos-socid-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(178, 31, 31, 0.2);
}

.congresos-card-image {
    height: 75%;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.congresos-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.congresos-socid-card:hover .congresos-card-image img {
    transform: scale(1.05);
}

.congresos-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(178, 31, 31, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.congresos-socid-card:hover .congresos-image-overlay {
    opacity: 1;
}

.congresos-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.congresos-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #b21f1f;
    margin-bottom: 10px;
    line-height: 1.3;
}

.congresos-card-date {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 5px 12px;
    background: #ffeaea;
    border-radius: 20px;
    display: inline-block;
}

.congresos-card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.congresos-card-button {
    background: #b21f1f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.congresos-card-button:hover {
    background: #8a1818;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(178, 31, 31, 0.4);
}

.congresos-card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.congresos-card-button:hover::before {
    left: 100%;
}

/* Modal Styles */
.congresos-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.congresos-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.congresos-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.8);
    transition: transform 0.4s ease;
    background: white;
}

.congresos-modal.active .congresos-modal-content {
    transform: scale(1);
}

.congresos-modal-content img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85vh;
    object-fit: contain;
}

.congresos-close-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    background: #b21f1f;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.congresos-close-modal:hover {
    background: #8a1818;
    transform: rotate(90deg) scale(1.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .congresos-socid-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .congresos-socid-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .congresos-socid-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .congresos-socid-card {
        height: 600px;
    }
    
    .congresos-socid-title {
        font-size: 2.5rem;
    }
    
    .congresos-socid-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .congresos-socid-section {
        padding: 60px 15px;
    }
    
    .congresos-socid-title {
        font-size: 2rem;
    }
    
    .congresos-card-content {
        padding: 20px;
    }
    
    .congresos-card-title {
        font-size: 1.2rem;
    }
    
    .congresos-socid-card {
        height: 550px;
    }
}