/* Container principal */
.ec-carousel-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Wrapper del carrusel */
.ec-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
}

/* Track container */
.ec-carousel-track-container {
    overflow: hidden;
    flex: 1;
}

/* Track */
.ec-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

/* Carta base */
.ec-carousel-card {
    width: calc(33.333% - 14px);
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #ccc;
    min-height: 320px;
    max-height: 375px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ec-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Carta individual */
.ec-card-single {
    padding: 20px;
    position: relative;
}

.ec-card-single-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.ec-card-day-name {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ec-card-day-number {
    font-size: 35px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.ec-card-date-full {
    font-size: 13px;
    color: #474747;
    margin-bottom: 10px;
}

.ec-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.ec-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ec-card-title a:hover {
    color: #007bff;
}

.ec-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ec-card-link {
    display: inline-block;
    color: #005fc8;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-decoration: underline;
}

.ec-card-link:hover {
    color: #100086;
}

.ec-card-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    opacity: 0.8;
}

/* Carta múltiple (agrupada) */
.ec-card-multiple {
    padding: 20px;
    background: #f8f9fa;
    border-left-color: #dee2e6;
    max-height: 375px;
    overflow-y: auto;
}

.ec-card-multiple-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.ec-card-multiple-header .ec-card-day-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.ec-card-multiple-header .ec-card-day-number {
    font-size: 35px;
}

/* Lista de eventos */
.ec-events-list {
    display: flex;
    flex-direction: column;
}

.ec-event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.ec-event-item:last-child {
    border-bottom: none;
}

.ec-event-info {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.ec-event-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    font-size: 15px;
}

.ec-event-time {
    font-size: 13px;
    color: #6c757d;
}

.ec-event-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.ec-event-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.ec-event-link {
    font-size: 13px;
    color: #00428b;
    text-decoration: underline;
    white-space: nowrap;
    font-weight: bold;
    background: #0043ff17;
    border-radius: 5px;
    padding: 3px;
    text-decoration-line: none;
    box-shadow: rgba(0, 0, 0, 0.15) 1px 1px 1px;
}

.ec-event-link:hover {
    color: #100086;
}

/* Flechas */
.ec-carousel-arrow {
    background-color: #333;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.ec-carousel-arrow:hover {
    background: #555;
    transform: scale(1.1);
}

.ec-carousel-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dots de paginación */
.ec-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.ec-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #616161;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.ec-carousel-dot:hover {
    background-color: #999;
    transform: scale(1.2);
}

.ec-carousel-dot.active {
    background-color: #003d7e;
    width: 12px;
    height: 12px;
}

/* Error message */
.ec-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .ec-carousel-card {
        width: calc(50% - 10px);
    }

    .ec-card-day-number {
        font-size: 42px;
    }

    .ec-card-title {
        font-size: 16px;
    }

    .ec-card-logo {
        width: 45px;
        height: 45px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .ec-carousel-wrapper {
        gap: 10px;
    }

    .ec-carousel-track {
        gap: 15px;
    }

    .ec-carousel-card {
        width: 100%;
    }

    .ec-carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .ec-card-single {
        padding: 15px;
    }

    .ec-card-multiple {
        padding: 15px;
    }

    .ec-card-day-number {
        font-size: 36px;
    }

    .ec-card-title {
        font-size: 15px;
    }

    .ec-card-excerpt {
        font-size: 13px;
    }

    .ec-event-title {
        font-size: 14px;
    }

    .ec-event-time {
        font-size: 12px;
    }

    .ec-event-logo {
        width: 30px;
        height: 30px;
    }
}