﻿.eventos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.evento-banner {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

    .evento-banner img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

.evento-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

    .evento-overlay h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .evento-overlay p {
        font-size: 14px;
    }
.evento-banner:hover img {
    transform: scale(1.05);
    transition: 0.3s;
}
.convocatoria-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.img-convocatoria {
    max-width: 100%;
    width: 700px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

    .img-convocatoria:hover {
        transform: scale(1.03);
    }

/* Modal */
#modalConvocatoria {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    #modalConvocatoria img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 12px;
    }

#cerrarConvocatoria {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
