.eventos-section,
.eventos-section * {
    box-sizing: border-box;
}

.eventos-section {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
}

.eventos-section .header-section {
    text-align: center;
    margin-bottom: 3rem;
}

.eventos-section .calendar-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #e3f2fd;
    color: #3165b0;
    padding: .5rem 1rem;
    border-radius: 20px;
    font-size: .875rem;
    margin-bottom: 1.5rem;
}

.eventos-section .main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.eventos-section .gradient-text {
    background: linear-gradient(
        90deg,
        #3165b0,
        #64b5f6,
        #3165b0
    );
    background-size: 200% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation:
        tcEventosGradient 3s ease-in-out infinite;
}

@keyframes tcEventosGradient {
    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.eventos-section .subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.eventos-section .carousel-container {
    position: relative;
    padding: 1rem 0;
}

.eventos-section .scroll-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1.5rem .5rem;
    scrollbar-width: none;
}

.eventos-section .scroll-grid::-webkit-scrollbar {
    display: none;
}

.eventos-section .event-card {
    background: #fff;
    border-radius: 24px;
    padding: 120px 1.5rem 1.5rem;
    flex: 0 0 320px;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    box-shadow:
        0 10px 25px rgba(0,0,0,.05);
    position: relative;
    overflow: hidden;
    transition:
        all .4s cubic-bezier(.165,.84,.44,1);
    border: 1px solid transparent;
}

.eventos-section .event-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px rgba(49,101,176,.15);
    border-color: #e3f2fd;
}

.eventos-section .event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 75px;

    background-image:
    var(
        --tc-eventos-card-image,
        url('https://tecnologicocomfenalco.edu.co/wp-content/uploads/2026/01/CACHITO-01-scaled.jpg')
    );
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.eventos-section .icon-box {
    position: absolute;
    top: 60px;
    left: 1.5rem;
    z-index: 10;
    width: 50px;
    height: 50px;
    background: #fff;
    color: #3165b0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 10px rgba(0,0,0,.1);
    transition: all .3s ease;
}

.eventos-section .event-card:hover .icon-box {
    background: #3165b0;
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.eventos-section .event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 1rem 0;
    line-height: 1.3;
    position: relative;
    z-index: 5;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.eventos-section .detail-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #6b7280;
    margin-bottom: .6rem;
    font-size: .9rem;
}

.eventos-section .detail-item
.material-symbols-outlined {
    font-size: 20px;
    color: #3165b0;
    flex-shrink: 0;
}

.eventos-section .btn-agendar {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background:
        linear-gradient(
            135deg,
            #3165b0,
            #3f7acc
        );
    color: #fff;
    padding: .8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    z-index: 5;
    transition: all .3s ease;
}

.eventos-section .event-card:hover
.btn-agendar {
    background:
        linear-gradient(
            135deg,
            #5420ad,
            #8b5cf6
        );

    box-shadow:
        0 5px 15px rgba(49,101,176,.3);

    transform: scale(1.02);
}

.eventos-section .scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow:
        0 4px 10px rgba(0,0,0,.1);
    color: #3165b0;
}

.eventos-section .scroll-arrow.left {
    left: -10px;
}

.eventos-section .scroll-arrow.right {
    right: -10px;
}

.eventos-section .carousel-dots {
    text-align: center;
    margin-top: 1rem;
}

.eventos-section .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    display: inline-block;
    margin: 0 4px;
    transition: all .3s ease;
}

.eventos-section .dot.active {
    width: 20px;
    border-radius: 4px;
    background: #3165b0;
}

@media (max-width: 768px) {

    .eventos-section .main-title {
        font-size: 2.2rem;
    }

    .eventos-section .scroll-arrow {
        display: none;
    }

    .eventos-section .event-card {
        flex: 0 0 85vw;
        width: 85vw;
        min-width: 85vw;
        max-width: 85vw;
    }

    .eventos-section .event-title {
        -webkit-line-clamp: 4;
    }
}