/* Cronograma - Elegante Minimalista Mejorado - TEMA CLARO */
.cronograma {
    background: 
        /* Gradiente principal */
        linear-gradient(180deg, 
            rgba(253, 252, 250, 1) 0%,
            rgba(248, 246, 243, 1) 50%,
            rgba(245, 241, 235, 1) 100%
        ),
        /* Ondas decorativas */
        radial-gradient(ellipse 800px 400px at 0% 50%, rgba(139, 115, 85, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 600px 300px at 100% 0%, rgba(139, 105, 20, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse 400px 200px at 100% 100%, rgba(139, 115, 85, 0.025) 0%, transparent 40%);
    position: relative;
}

/* Líneas decorativas muy sutiles */
.cronograma::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 200px,
            rgba(139, 115, 85, 0.005) 201px,
            rgba(139, 115, 85, 0.005) 203px
        );
    pointer-events: none;
    z-index: 0;
}

.cronograma-content {
    max-width: 800px;
    margin: 0 auto;
}

.cronograma-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.cronograma-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--text-primary);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.cronograma-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--accent-beige) 10%,
        var(--accent-beige) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideInTimeline 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.timeline-item:nth-child(odd) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(even) {
    animation-delay: 0.8s;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-time {
    text-align: right;
    padding-right: 1rem;
}

.timeline-item:nth-child(even) .timeline-time {
    grid-column: 3;
    text-align: left;
    padding-right: 0;
    padding-left: 1rem;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
}

.time-card {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    transition: var(--transition-smooth);
    position: relative;
    min-width: 80px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.time-card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid var(--bg-card);
    right: -10px;
    transform: translateY(-50%);
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .time-card::before {
    border-left: none;
    border-right: 10px solid var(--bg-card);
    left: -10px;
    right: auto;
}

.time-card:hover {
    background: rgba(248, 248, 248, 0.9);
    border-color: rgba(139, 115, 85, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.time-card:hover::before {
    border-left-color: rgba(248, 248, 248, 0.9);
}

.timeline-item:nth-child(even) .time-card:hover::before {
    border-right-color: rgba(248, 248, 248, 0.9);
}

.time-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--accent-beige);
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.timeline-dot {
    position: relative;
    z-index: 2;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 3px solid var(--accent-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.dot-inner {
    width: 4px;
    height: 4px;
    background: var(--gold-accent);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    border-color: var(--gold-accent);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(139, 105, 20, 0.2);
}

.timeline-item:hover .dot-inner {
    background: var(--accent-beige);
    transform: scale(1.5);
}

.timeline-content {
    padding-left: 1rem;
}

.timeline-item:nth-child(even) .timeline-content {
    padding-left: 0;
    padding-right: 1rem;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-beige), var(--gold-accent));
    transform: scaleX(0);
    transition: var(--transition-smooth);
    transform-origin: left;
}

.timeline-item:hover .content-card {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(139, 115, 85, 0.3);
}

.timeline-item:hover .content-card::before {
    transform: scaleX(1);
}

.event-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.event-description {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

.location-icon {
    font-size: 0.8rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.location-text {
    font-style: italic;
    letter-spacing: 0.3px;
}

/* Animaciones */
@keyframes slideInTimeline {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE DESIGN MEJORADO */
@media (max-width: 768px) {
    .cronograma-header {
        margin-bottom: 3rem;
    }
    
    .timeline-container {
        padding: 1.5rem 0;
    }
    
    .timeline-line {
        left: 32px;
    }
    
    .timeline-item {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 2.5rem;
        margin-left: 60px;
        position: relative;
        width: calc(100% - 60px); /* Ancho fijo basado en el contenedor */
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: column;
        margin-left: 60px;
        width: calc(100% - 60px); /* Mismo ancho para elementos pares */
    }
    
    .timeline-dot {
        position: absolute;
        left: -28px;
        top: 0.75rem;
        width: 14px;
        height: 14px;
        border-width: 2px;
    }
    
    .dot-inner {
        width: 3px;
        height: 3px;
    }
    
    .timeline-time {
        order: 1;
        text-align: left;
        padding: 0;
        margin-bottom: 0.75rem;
        width: 100%; /* Ancho completo */
    }
    
    .timeline-item:nth-child(even) .timeline-time {
        order: 1;
        text-align: left;
        padding: 0;
        width: 100%; /* Ancho completo */
    }
    
    .timeline-content {
        order: 2;
        padding: 0;
        width: 100%; /* Ancho completo */
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        order: 2;
        padding: 0;
        width: 100%; /* Ancho completo */
    }
    
    .time-card {
        padding: 0.5rem 1rem;
        min-width: 75px;
        font-size: 0.85rem;
        display: inline-block;
        width: auto; /* Mantiene el ancho automático solo para las time-cards */
    }
    
    .time-card::before,
    .timeline-item:nth-child(even) .time-card::before {
        display: none;
    }
    
    .time-text {
        font-size: 0.85rem;
    }
    
    .content-card {
        padding: 1.25rem;
        min-height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 100%; /* Ancho completo fijo */
        box-sizing: border-box; /* Incluye padding en el ancho total */
    }
    
    .event-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
        flex-shrink: 0; 
        width: 100%; /* Ancho completo */
    }
    
    .event-description {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        flex: 1;
        display: flex;
        align-items: flex-start;
        width: 100%; /* Ancho completo */
    }
    
    .event-location {
        font-size: 0.8rem;
        flex-shrink: 0; 
        margin-top: auto;
        width: 100%; /* Ancho completo */
    }
}

@media (max-width: 480px) {
    .cronograma-content {
        padding: 0 0.5rem;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        margin-left: 40px;
        margin-bottom: 2rem;
        width: calc(100% - 40px); /* Ancho fijo ajustado */
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 40px;
        width: calc(100% - 40px); /* Mismo ancho para elementos pares */
    }
    
    .timeline-dot {
        left: -20px;
        top: 0.5rem;
        width: 12px;
        height: 12px;
    }
    
    .time-card {
        padding: 0.4rem 0.8rem;
        min-width: 70px;
    }
    
    .time-text {
        font-size: 0.8rem;
    }
    
    .content-card {
        padding: 1rem;
        min-height: 160px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 100%; /* Ancho completo fijo */
        box-sizing: border-box;
    }
    
    .event-title {
        font-size: 1rem;
        line-height: 1.4;
        width: 100%;
    }
    
    .event-description {
        flex: 1;
        display: flex;
        align-items: flex-start;
        width: 100%;
    }
    
    .event-location {
        margin-top: auto;
        width: 100%;
    }
    
    .location-icon {
        font-size: 0.7rem;
    }
}

@media (max-width: 320px) {
    .timeline-item {
        margin-left: 35px;
        width: calc(100% - 35px); /* Ancho fijo ajustado */
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 35px;
        width: calc(100% - 35px); /* Mismo ancho para elementos pares */
    }
    
    .timeline-line {
        left: 15px;
    }
    
    .timeline-dot {
        left: -15px;
        width: 10px;
        height: 10px;
        border-width: 1px;
    }
    
    .dot-inner {
        width: 2px;
        height: 2px;
    }
    
    .time-card {
        padding: 0.3rem 0.6rem;
        min-width: 60px;
    }
    
    .content-card {
        padding: 0.75rem;
        min-height: 140px;
        width: 100%; /* Ancho completo fijo */
        box-sizing: border-box;
    }
}