/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Mar 25 2026 | 14:00:04 */
/* ==========================================================================
   1. CONTENEDOR PRINCIPAL Y FILTROS
   ========================================================================== */
.z-timeline-wrapper { 
    font-family: sans-serif; 
    max-width: 800px; 
    margin: auto; 
}

.z-timeline-filters { 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    margin-bottom: 40px; 
    flex-wrap: wrap; 
}

.filter-btn { 
    padding: 8px 16px; 
    border: 1px solid #f92552; 
    background: transparent; 
    color: #f92552; 
    border-radius: 20px; 
    cursor: pointer; 
    transition: 0.3s; 
}

.filter-btn.active, 
.filter-btn:hover { 
    background: #f92552; 
    color: white; 
}

/* ==========================================================================
   2. ESTRUCTURA DE LA LÍNEA DE TIEMPO
   ========================================================================== */
.z-timeline {
    position: relative;
    padding-left: 40px;
    margin-left: 10px;
    border-left: 6px solid #f92552;
}

.z-timeline-year-block { 
    margin-top: 50px; 
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Encabezado de Año */
.z-year-header { 
    position: -webkit-sticky; /* Soporte para Safari */
    position: sticky;        
    top: 20px;               
    z-index: 99;             /* Subimos el z-index para que nada lo tape */
    left: -53px; 
    margin-bottom: 30px;
    
    /* Estado inicial para la animación */
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    
    /* Esto es clave: permite que el sticky no se rompa */
    height: auto;
    width: fit-content;
}

/* Cuando se activa la animación */
.show-on-scroll .z-year-header,
.z-year-header.show-on-scroll { 
    opacity: 1; 
    transform: translateX(0); 
}
/* El title se mantiene igual, no hace falta tocarlo */
.year-title { 
    background: #f92552; 
    color: white; 
    display: inline-block; 
    padding: 8px 20px; 
    margin: 0 0 0 -55px ; 
    font-style: normal;
    font-size: 1.5rem;
    transform: skewX(-15deg);
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
}

.year-subtitle {
    /* Reajustamos márgenes para mantener tu diseño visual intacto 
       ahora que está fuera de .z-year-header */
    
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    border-left: 2px solid #ccc;
    padding-left: 15px;
}

/* ==========================================================================
   3. EVENTOS (TARJETAS Y PUNTOS)
   ========================================================================== */
.z-event-item { 
    position: relative; 
    margin-bottom: 40px; 
    opacity: 0; 
    transform: translateX(30px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	transition-delay: 0s !important;
}
.z-event-item.show-on-scroll {
    opacity: 1;
    transform: translateY(0);
}
/* El punto naranja en la línea */
.z-event-dot { 
    position: absolute; 
    left: -51px; 
    top: 20px; 
    width: 16px; 
    height: 16px; 
    background: #f92552; 
    border: 4px solid white; 
    border-radius: 50%; 
    z-index: 2;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Tarjeta de Resumen */
.z-event-summary { 
    cursor: pointer; 
    padding: 15px;
    position: relative; 
    transition: all 0.3s; 
}


/* Contenido de la Tarjeta */
.z-event-date {
    font-weight: bold;
    color: white;
    display: block;
    margin-bottom: 5px;
    padding: 0 10px 0 45px;
    background-color: #1f33ff;
    width: max-content;
    margin-left: -70px;
    transform: skewX(-15deg);
}
.z-event-title { margin: 0 0 10px 0; font-size: 1.2rem; }

.z-event-preview { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    margin-top: 10px; 
    padding-right: 30px; 
}

.z-thumb img { 
    width: 60px; 
    height: 60px; 
    min-width: 60px; 
    object-fit: cover; 
    border-radius: 6px; 
}

.z-excerpt { margin: 0; font-size: 0.95rem; color: #666; line-height: 1.4; }

.z-toggle-icon { 
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    transition: transform 0.4s ease; 
    color: #f92552; 
}

/* ==========================================================================
   4. SISTEMA DE ACORDEÓN (DETALLE)
   ========================================================================== */
.z-event-full { 
    display: grid; 
    grid-template-rows: 0fr; 
    transition: grid-template-rows 0.4s ease-out; 
    margin-top: -5px; 
}

.z-event-full-inner { 
    overflow: hidden; 
    padding: 0 20px; 
}

.z-event-full-inner p { margin-top: 20px; line-height: 1.6; }

.z-event-full-inner img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 8px; 
    margin: 15px 0; 
    display: block; 
}

/* ==========================================================================
   5. ESTADOS ACTIVOS Y ANIMACIONES (JS)
   ========================================================================== */

/* Cuando el evento está abierto */
.z-event-item.is-expanded .z-event-full { 
    grid-template-rows: 1fr;
    border-top: none; 
}

.z-event-item.is-expanded .z-toggle-icon { transform: translateY(-50%) rotate(180deg); }
.z-event-item.is-expanded .z-event-preview { display: none; }
.z-event-item.is-expanded .z-event-summary { 
    border-bottom-left-radius: 0; 
    border-bottom-right-radius: 0; 
    border-bottom-color: transparent; 
}

/* Cuando no hay más contenido que mostrar */
.z-event-item.no-content .z-event-summary {
    cursor: default;
}
.z-event-item.no-content .z-event-summary:hover {
    box-shadow: none;
    border-color: #eee;
}

/* Activación por Scroll */
.show-on-scroll .z-year-header,
.show-on-scroll .z-event-item { 
    opacity: 1; 
    transform: none; 
}
.show-on-scroll .z-event-dot { 
    transform: scale(1); 
	
    transition-delay: 0.3s; 
}
