/* ============================================================
   TIMELINE COMO SECCIÓN EMBEBIDA EN LA PÁGINA
   ============================================================ */

/* Contenedor general - NO fixed, es relativo */
.tm-viewport {
    position: relative;
    width: 100%;
    height: 60vh;
    background: #000;
    font-family: sans-serif;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tm-viewport::-webkit-scrollbar {
    display: none;
}

/* Secciones apiladas con fade */
.tm-year-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.tm-year-section.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* Resto del CSS igual... */
.tm-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tm-bg-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%);
}

.tm-bg-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.89;
}

.tm-interface {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    height: 100%;
}

.tm-nav-column {
    width: 35%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 60px;
    align-items: flex-end;
}

.tm-nav-column::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 0px;
    bottom: 0px;
    width: 2px;
    background-color: #000;
    z-index: 5;
}

.tm-years-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.tm-year-item {
    font-size: 20px;
    font-weight: 400;
    color: #000;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    line-height: 1;
    white-space: nowrap;
    margin: 15px 0;
    opacity: 0.4;
}

.tm-year-section.active .tm-year-item.current-year {
    font-size: 60px;
    font-weight: 500;
    color: #000;
    letter-spacing: -3px;
    opacity: 1;
}

.tm-year-item::after {
    content: '';
    position: absolute;
    right: -55px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 6;
    opacity: 0.4;
}

.tm-year-section.active .tm-year-item.current-year::after {
    width: 20px;
    height: 20px;
    right: -59px;
    opacity: 1;
}

.tm-year-item.clickable:hover {
    opacity: 0.7;
}

.tm-content-column {
    width: 65%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
}

.tm-content-wrapper {
    color: #000;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.tm-year-section.active .tm-content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.tm-content-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.tm-content-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    margin-top: 30px;
}

.tm-content-wrapper p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 15px;
}

.tm-mini-nav {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: 15px;
}

.tm-mini-nav-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tm-mini-nav-item.active {
    background: #000;
    transform: scale(1.5);
}

.tm-mini-nav-item:hover::after {
    content: attr(data-year);
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}

.tm-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    color: #000;
    font-size: 14px;
    opacity: 0.6;
    display: none !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tm-scroll-indicator svg {
    width: 24px;
    height: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.tm-viewport.scrolled .tm-scroll-indicator {
    opacity: 0;
}

@media (max-width: 768px) {

    .tm-year-item {
        font-size: 16px;
        margin: 0;
        padding: 10px;
    }

    .tm-year-section.active .tm-year-item.current-year {
        font-size: 32px;
    }



    .tm-content-column {
        width: 100%;
        padding: 30px 20px;
    }

    .tm-content-wrapper h2 {
        font-size: 1.8rem;
    }

    .tm-content-wrapper p {
        font-size: 16px;
    }

    .tm-mini-nav {
        display: none;
    }
}

/* Contenedor principal */
.timeline-container-60vh {
    width: 100%;
    height: 60vh !important;
    /* Altura forzada */
    position: relative;
    overflow: hidden;
    background: #000;
}

.swiper60vh {
    width: 100%;
    height: 100% !important;
}

/* Forzar que cada slide ocupe todo el espacio de los 60vh */
.timeline-item-60 {
    width: 100%;
    height: 100% !important;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.timeline-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--hito-color);
    background-blend-mode: multiply;
    z-index: 1;
}

.timeline-content-wrapper {
    position: relative;
    z-index: 2;
    color: white;
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    align-items: center;
}

.timeline-left-year {
    flex: 0 0 40%;
}

.year-text {
    font-size: clamp(5rem, 12vw, 10rem);
    /* Ahora sí se verá grande */
    font-weight: 900;
    line-height: 1;
    display: block;
}

.timeline-right-info {
    flex: 0 0 60%;
    padding-left: 30px;
}

.info-inner p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

/* Paginación a la derecha */
.swiper-pagination-bullets.swiper-pagination-vertical {
    right: 20px !important;
}