:root {
    --etp-primary: #003366;
    --etp-primary-light: #0055a5;
    --etp-accent: #00d2ff;
    --etp-bg-card: #ffffff;
    --etp-text-main: #1e293b;
    --etp-text-muted: #64748b;
    --etp-competicion: #ef4444;
    --etp-formacion: #3b82f6;
    --etp-admin: #10b981;
    --etp-otro: #8b5cf6;
    --etp-radius: 12px;
    --etp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --etp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.etp-timeline-container {
    font-family: 'Outfit', sans-serif;
    color: var(--etp-text-main);
    padding: 20px 0;
}

/* Filter Bar */
.etp-filters-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.etp-filter-item {
    background: #fff;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--etp-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--etp-transition);
    border: 1px solid #e2e8f0;
}

.etp-filter-item:hover,
.etp-filter-item.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--etp-primary);
}

.etp-filter-item.active {
    border-color: var(--etp-primary-light);
    background: #f8fafc;
}

.etp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    /* Slate 400 - more visible than light grey */
}

/* Specific dots for common slugs, fallback for others */
.etp-dot-competicion {
    background: var(--etp-competicion);
}

.etp-dot-formacion {
    background: var(--etp-formacion);
}

.etp-dot-administrativo {
    background: var(--etp-admin);
}

.etp-dot-otro {
    background: var(--etp-otro);
}

/* Timeline Body */
.etp-agenda-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.etp-agenda-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.etp-agenda-month-group {
    margin-bottom: 40px;
}

.etp-agenda-month-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--etp-primary);
    margin: 0 0 20px 0 !important;
    position: relative;
}

.etp-agenda-month-title::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--etp-primary);
    border: 3px solid white;
    border-radius: 50%;
    z-index: 2;
}

/* COMPACT CARDS (Matching Sample index) */
.etp-agenda-item {
    background: white;
    padding: 20px;
    border-radius: var(--etp-radius);
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    box-shadow: var(--etp-shadow);
    border-left: 6px solid #e2e8f0;
    transition: var(--etp-transition);
}

.etp-agenda-item:hover {
    transform: translateX(10px);
}

.etp-day-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--etp-primary);
    line-height: 1;
    min-width: 30px;
}

.etp-ev-content {
    flex-grow: 1;
}

/* Category Tag Style - Vibrant */
.etp-ev-cate {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    color: var(--etp-text-muted);
}

.etp-ev-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--etp-primary);
    margin: 0 0 5px 0 !important;
}

.etp-ev-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--etp-text-muted);
    background: #f1f5f9;
    padding: 1px 8px;
    border-radius: 4px;
    margin-left: 5px;
}

.etp-ev-desc {
    font-size: 14px;
    color: var(--etp-text-muted);
    line-height: 1.5;
    margin-bottom: 0;
    /* Compact */
}

/* When there is more info, add margin to desc */
.etp-ev-footer {
    margin-top: 10px;
}

.etp-more-info {
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    color: var(--etp-primary-light);
    display: inline-block;
}

.etp-more-info:hover {
    text-decoration: underline !important;
}

/* --- COLORS & DYNAMIC TAGS --- */

/* RED (Competición, Carrera, Torneo) */
.etp-type-competicion,
.etp-type-carrera,
.etp-type-torneo {
    border-left-color: var(--etp-competicion);
}

.etp-type-competicion .etp-ev-cate,
.etp-type-carrera .etp-ev-cate,
.etp-type-torneo .etp-ev-cate {
    background: rgba(239, 68, 68, 0.1);
    color: var(--etp-competicion);
}

.etp-dot-competicion,
.etp-dot-carrera,
.etp-dot-torneo {
    background: var(--etp-competicion);
}

/* BLUE (Formación, Acto Deportivo, Social) */
.etp-type-formacion,
.etp-type-acto-deportivo,
.etp-type-social {
    border-left-color: var(--etp-formacion);
}

.etp-type-formacion .etp-ev-cate,
.etp-type-acto-deportivo .etp-ev-cate,
.etp-type-social .etp-ev-cate {
    background: rgba(59, 130, 246, 0.1);
    color: var(--etp-formacion);
}

.etp-dot-formacion,
.etp-dot-acto-deportivo,
.etp-dot-social {
    background: var(--etp-formacion);
}

/* GREEN (Admin, Cursos) */
.etp-type-administrativo,
.etp-type-admin,
.etp-type-cursos {
    border-left-color: var(--etp-admin);
}

.etp-type-administrativo .etp-ev-cate,
.etp-type-admin .etp-ev-cate,
.etp-type-cursos .etp-ev-cate {
    background: rgba(16, 185, 129, 0.1);
    color: var(--etp-admin);
}

.etp-dot-administrativo,
.etp-dot-admin,
.etp-dot-cursos {
    background: var(--etp-admin);
}

/* PURPLE (Otros) */
.etp-type-otro,
.etp-type-otros {
    border-left-color: var(--etp-otro);
}

.etp-type-otro .etp-ev-cate,
.etp-type-otros .etp-ev-cate {
    background: rgba(139, 92, 246, 0.1);
    color: var(--etp-otro);
}

.etp-dot-otro,
.etp-dot-otros {
    background: var(--etp-otro);
}

/* ORANGE (Urgente, Aviso) */
.etp-type-urgente,
.etp-type-aviso {
    border-left-color: #f97316;
}

.etp-type-urgente .etp-ev-cate,
.etp-type-aviso .etp-ev-cate {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.etp-dot-urgente,
.etp-dot-aviso {
    background: #f97316;
}

/* Responsive */
@media (max-width: 600px) {
    .etp-agenda-timeline {
        padding-left: 40px;
    }

    .etp-agenda-timeline::before {
        left: 14px;
    }

    .etp-agenda-month-title::before {
        left: -36px;
    }

    .etp-agenda-item {
        padding: 15px;
        gap: 15px;
    }

    .etp-day-num {
        font-size: 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}