/* ---- Sección de Eventos ---- */
.events-section {
    padding: 60px 64px;
    max-width: 1100px;
    margin: 0 auto;
}

.events-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: black;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.events-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: black;
    text-align: left;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-block {
    margin-bottom: 56px;
}

.carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

/* ---- Cards Grid (scroll horizontal) ---- */
.cards-grid {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 28px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cards-grid::-webkit-scrollbar {
    display: none;
}

.card {
    flex-shrink: 0;
    width: clamp(220px, 28vw, 320px);
    scroll-snap-align: start;
    background: white;
    border: 4px solid black;
    box-shadow: 8px 8px 0px #4E006A;
    padding: 28px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #4E006A;
}

.card-tag {
    display: inline-block;
    background: #4E006A;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.card-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    margin-bottom: 14px;
}

.card-desc {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-arrow {
    font-weight: 700;
    font-size: 14px;
    color: black;
    text-align: right;
}

/* ---- Botones de navegación ---- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 3px solid black;
    box-shadow: 4px 4px 0px black;
    color: black;
    width: 40px;
    height: 40px;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s;
    z-index: 10;
}

.carousel-btn:hover {
    transform: translateY(-50%) translate(-2px, -2px);
    box-shadow: 6px 6px 0px black;
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .events-section {
        padding: 60px 20px;
    }

    .card {
        width: clamp(200px, 80vw, 280px);
    }

    .events-title {
        font-size: 1.8rem;
    }

    .events-subtitle {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }

    .carousel-wrapper {
        padding: 0 50px;
    }
}
