/*
 * expo-timeline.css
 * Propuesta 4: Slider compacto con vista múltiple tipo "carousel"
 * Diseño moderno con badges, vista de 3 cards en desktop
 */

.expo-timeline {
    --card-gap: clamp(1.25rem, 2.5vw, 1.75rem);
    --timeline-primary: #ff6b35;
    --timeline-secondary: #008888;
}

.expo-timeline__titulo {
    font-family: var(--font-hero, 'Lexend', sans-serif);
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary, #0f172a);
    text-align: center;
    margin: 0 0 clamp(0.5rem, 1vw, 0.75rem);
}

.expo-timeline__subtitulo {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 500;
    color: var(--color-text-tertiary, #64748b);
    text-align: center;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Controles superiores */
.expo-timeline__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin: 0 0 clamp(2rem, 4vw, 2.5rem);
}

.expo-timeline__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: linear-gradient(135deg, var(--timeline-primary) 0%, #ff8c61 100%);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0.25rem 0.875rem rgba(255, 107, 53, 0.3);
}

.expo-timeline__arrow svg {
    width: 1.5rem;
    height: 1.5rem;
}

.expo-timeline__arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 0.5rem 1.5rem rgba(255, 107, 53, 0.4);
}

.expo-timeline__arrow:active {
    transform: scale(0.95);
}

.expo-timeline__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dots navigation */
.expo-timeline__dots {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.expo-timeline__dot {
    width: 0.875rem;
    height: 0.875rem;
    padding: 0;
    background: #cbd5e1;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expo-timeline__dot:hover {
    background: #94a3b8;
    transform: scale(1.15);
}

.expo-timeline__dot--active {
    width: 1.125rem;
    height: 1.125rem;
    background: var(--timeline-primary);
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.25);
}

/* Viewport y carousel */
.expo-timeline__viewport {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0;
}

.expo-timeline__carousel {
    display: flex;
    gap: var(--card-gap);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card individual */
.expo-timeline__card {
    flex: 0 0 100%;
    min-width: 0;
}

.expo-timeline__card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.375rem 1.25rem rgba(15, 23, 42, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.expo-timeline__card-inner:hover {
    transform: translateY(-0.375rem);
    box-shadow: 0 0.875rem 2rem rgba(15, 23, 42, 0.15);
}

/* Imagen */
.expo-timeline__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.expo-timeline__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expo-timeline__card-inner:hover .expo-timeline__image {
    transform: scale(1.08);
}

/* Badge tipo evento */
.expo-timeline__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    padding: 0.5rem 1rem;
    font-family: var(--font-hero, 'Lexend', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--timeline-secondary) 0%, #00a8a8 100%);
    border-radius: 999rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 136, 136, 0.4);
}

/* Info section */
.expo-timeline__info {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    flex: 1;
}

.expo-timeline__event-title {
    font-family: var(--font-hero, 'Lexend', sans-serif);
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-primary, #0f172a);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expo-timeline__description {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: clamp(0.875rem, 1.6vw, 0.9375rem);
    line-height: 1.6;
    color: var(--color-text-secondary, #475569);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Details (hora y ubicación) */
.expo-timeline__details {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 1.25rem);
    margin-top: auto;
    padding-top: clamp(0.75rem, 1.5vw, 1rem);
    border-top: 2px solid #f1f5f9;
}

.expo-timeline__time,
.expo-timeline__location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.expo-timeline__time {
    color: var(--timeline-primary);
}

.expo-timeline__location {
    color: var(--timeline-secondary);
}

.expo-timeline__time svg,
.expo-timeline__location svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

/* Responsive: Mobile */
@media (max-width: 47.99rem) {
    .expo-timeline__card {
        flex: 0 0 calc(100% - 1rem);
        scroll-snap-align: center;
    }

    .expo-timeline__description {
        -webkit-line-clamp: 2;
    }
}

/* Responsive: Tablet (2 cards visible) */
@media (min-width: 48rem) and (max-width: 63.99rem) {
    .expo-timeline__card {
        flex: 0 0 calc(50% - var(--card-gap) / 2);
    }

    .expo-timeline__carousel {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Responsive: Desktop (3 cards visible) */
@media (min-width: 64rem) {
    .expo-timeline__card {
        flex: 0 0 calc(33.333% - var(--card-gap) * 2 / 3);
    }

    .expo-timeline__carousel {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Tema oscuro */
[data-theme="dark"] .expo-timeline__card-inner {
    background: #1e293b;
    box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .expo-timeline__card-inner:hover {
    box-shadow: 0 0.875rem 2rem rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .expo-timeline__event-title {
    color: #f1f5f9;
}

[data-theme="dark"] .expo-timeline__description {
    color: #cbd5e1;
}

[data-theme="dark"] .expo-timeline__details {
    border-top-color: #334155;
}

[data-theme="dark"] .expo-timeline__dot {
    background: #475569;
}

[data-theme="dark"] .expo-timeline__dot:hover {
    background: #64748b;
}
