.custom-timeline-section {
    background-color: #ffffff;
    font-family: 'Corra-Montserra-Regular', sans-serif;
    overflow-x: hidden;
}

.timeline-flex-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    margin: 0 auto;
    max-width: 1200px;
}

.timeline-flex-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50px;
    right: 0;
    height: 4px;
    background-color: #2b2b2b;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-row-labels {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    padding: 2rem 0;
    pointer-events: none;
}

.label-vertical {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    text-transform: uppercase;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #888888;
    text-align: center;
    height: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.timeline-upper,
.timeline-lower {
    height: 290px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-upper {
    justify-content: flex-end;
    padding-bottom: 15px;
}

.timeline-lower {
    justify-content: flex-start;
    padding-top: 15px;
}

.timeline-axis-point {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: currentColor;
    border: 2px solid #2b2b2b;
    z-index: 3;
    margin: 5px 0;
}

.timeline-year-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: black;
    color: whie;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 0 0 4px #ffffff, 0 0 0 6px currentColor;
    z-index: 3;
    position: relative;
    transition: transform 0.2s ease;
}

.timeline-year-circle:hover {
    transform: scale(1.1);
}

.timeline-connector {
    width: 0;
    border-left: 2px dashed currentColor;
    z-index: 1;
}

.timeline-upper .timeline-connector {
    height: 35px;
    margin-top: 10px;
}

.timeline-lower .timeline-connector {
    height: 35px;
    margin-bottom: 10px;
}

.timeline-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    width: 90%;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.timeline-badge {
    color: black;
    background-color: white;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.timeline-text {
    font-size: 0.75rem;
    line-height: 1.35;
    color: #333333;
    text-align: center;
    margin: 0;
}

/* Mobile styles */
.timeline-mobile-container {
    position: relative;
    padding-left: 2.5rem;
    margin: 2rem 0;
}

.timeline-mobile-container::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 20px;
    width: 3px;
    background-color: #2b2b2b;
}

.timeline-mobile-item {
    position: relative;
    margin-bottom: 2.5rem;
}

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

.timeline-mobile-year {
    position: absolute;
    left: -41px;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: currentColor;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px currentColor;
    z-index: 2;
}

.timeline-mobile-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.timeline-mobile-group {
    margin-bottom: 16px;
}

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

.timeline-scope-badge {
    display: inline-block;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.timeline-scope-badge.scope-federal {
    background-color: #ebf8ff;
    color: #2b6cb0;
}

.timeline-scope-badge.scope-estatal {
    background-color: #fefcbf;
    color: #b7791f;
}

.timeline-mobile-badge {
    color: #ffffff;
    background-color: currentColor;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.timeline-mobile-text {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #2d3748;
    margin: 0;
}

/* Color palettes */
.color-green {
    color: #2c7e2e;
}

.color-yellow {
    color: #e9b304;
}

.color-pink {
    color: #e86b8b;
}

.color-blue {
    color: #2b78b5;
}

.color-purple {
    color: #aa5cb5;
}

.color-orange {
    color: #f37024;
}

.color-red {
    color: #c51b1e;
}

.color-grey {
    color: #707070;
}

/* 3-Level Vertical Timeline */
.lvl3-timeline-section {
    background-color: #f9f9fa;
    font-family: 'Corra-Montserra-Regular', sans-serif;
    overflow-x: hidden;
    padding: 4rem 0;
    margin-top: 2rem;
}

.lvl3-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.lvl3-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #2b2b2b;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.lvl3-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.lvl3-item.left {
    left: 0;
}

.lvl3-item.right {
    left: 50%;
}

.lvl3-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    border: 5px solid currentColor;
    top: 24px;
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s ease;
}

.lvl3-item:hover::after {
    transform: scale(1.2);
}

.lvl3-item.left::after {
    right: -12px;
}

.lvl3-item.right::after {
    left: -12px;
}

.lvl3-card {
    padding: 24px;
    background-color: #ffffff;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lvl3-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lvl3-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.lvl3-badge.estatal {
    background-color: #e6f4ea;
    color: #1e8e3e;
}

.lvl3-badge.nacional {
    background-color: #e8f0fe;
    color: var(--color4);
}

.lvl3-badge.internacional {
    background-color: #fce8e6;
    color: var(--color1);
}

.lvl3-date {
    font-family: 'Gilroy-Bold', sans-serif;
    font-weight: 700;
    color: #718096;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: block;
}

.lvl3-title {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 1.15rem;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
}

.lvl3-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .lvl3-timeline::after {
        left: 20px;
    }

    .lvl3-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }

    .lvl3-item.right {
        left: 0;
    }

    .lvl3-item.left::after,
    .lvl3-item.right::after {
        left: 8px;
    }
}

/* Opción 3: Timeline Lineal Compacta Alineada a la Izquierda */
.opt3-timeline-section {
    background-color: #ffffff;
    font-family: 'Corra-Montserra-Regular', sans-serif;
    padding: 4rem 0;
    border-top: 1px solid #edf2f7;
    margin-top: 2rem;
}

.opt3-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.opt3-item {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.opt3-date-wrapper {
    flex: 0 0 120px;
    text-align: right;
    padding-right: 25px;
    padding-top: 15px;
    position: relative;
}

.opt3-item::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: -2rem;
    width: 2px;
    background-color: #e2e8f0;
    z-index: 1;
}

.opt3-item:last-child::before {
    bottom: 0;
}

.opt3-dot {
    position: absolute;
    left: 120px;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px #ffffff;
    transition: transform 0.3s ease;
}

.opt3-item:hover .opt3-dot {
    transform: translateX(-50%) scale(1.3);
}

.opt3-content {
    flex: 1;
    padding-left: 35px;
}

.opt3-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 25px;
    border: 1px solid #edf2f7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    position: relative;
}

.opt3-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
    transform: translateX(5px);
}

.opt3-card::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 18px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    transform: rotate(45deg);
    transition: border-color 0.2s ease;
}

.opt3-card:hover::before {
    border-color: #cbd5e1;
}

.opt3-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.opt3-badge.estatal {
    background-color: var(--color1);
    color: var(--arena);
}

.opt3-badge.nacional {
    background-color: var(--color4);
    color: var(--arena);
}

.opt3-badge.internacional {
    background-color: var(--color5);
    color: var(--arena);
}

.opt3-dot.estatal {
    background-color: var(--color1);
}

.opt3-dot.nacional {
    background-color: var(--color4);
}

.opt3-dot.internacional {
    background-color: var(--color5);
}

.opt3-year {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 1.4rem;
    color: #1a202c;
    line-height: 1;
    margin-bottom: 4px;
    display: block;
}

.opt3-month {
    font-size: 0.8rem;
    color: #a0aec0;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
}

.opt3-title {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 8px;
    margin-top: 4px;
}

.opt3-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a5568;
    margin: 0;
}

/* Mobile adjustments for Opción 3 */
@media screen and (max-width: 600px) {
    .opt3-item {
        flex-direction: column;
    }

    .opt3-item::before {
        left: 20px;
        top: 50px;
        bottom: -2rem;
    }

    .opt3-date-wrapper {
        flex: none;
        text-align: left;
        padding-left: 45px;
        padding-right: 0;
        padding-top: 0;
        margin-bottom: 15px;
    }

    .opt3-year {
        display: inline-block;
        margin-right: 8px;
    }

    .opt3-month {
        display: inline-block;
    }

    .opt3-dot {
        left: 20px;
        top: 5px;
        transform: translateX(-50%);
    }

    .opt3-item:hover .opt3-dot {
        transform: translateX(-50%) scale(1.3);
    }

    .opt3-content {
        padding-left: 45px;
    }

    .opt3-card::before {
        display: none;
    }
}

/* --- VERTICAL CAROUSEL & INTERACTIVITY --- */
.v-carousel-wrapper {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 20px;
    background-color: #1a202c;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.v-carousel-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.v-carousel-slide {
    height: 450px;
    padding: 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    position: relative;
}

.v-carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.v-carousel-content {
    position: relative;
    z-index: 2;
}

.v-carousel-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.v-carousel-title {
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.v-carousel-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e2e8f0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
}

.v-carousel-slide.active-slide .v-carousel-text {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive States */
.timeline-interactive {
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.timeline-interactive:hover {
    opacity: 0.8;
}

.timeline-interactive.active {
    opacity: 1;
}

.lvl3-item.active .lvl3-card {
    border-left: 4px solid currentColor;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.opt3-item.active .opt3-card {
    border-color: #cbd5e1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateX(10px);
}

.opt3-item.active .opt3-dot {
    transform: translateX(-50%) scale(1.4);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.8), 0 0 0 8px currentColor;
}

/* Timeline Scroll Area */
.timeline-scroll-area {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.timeline-scroll-area::-webkit-scrollbar {
    width: 4px;
}

.timeline-scroll-area::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.timeline-scroll-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.timeline-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}