/* History page styles */
.container-historia {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.timeline {
    width: 100%;
    height: fit-content;
    margin: 0;
    padding: 0;
    position: relative;
}

.swiper-container {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.swiper-slide:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.swiper-slide-content {
    position: absolute;
    text-align: center;
    color: #ffffff;
    width: 90%;
    max-width: 800px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.timeline-title {
    font-size: 24px;
    margin: 0;
    padding-bottom: 15px;
}

.swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 100%;
    background: #999;
    opacity: 0.8;
    margin: 0 8px;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    background: #c8102e;
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    background-size: 40px 40px;
    cursor: pointer;
    z-index: 10;
}

.swiper-button-next {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
}

.swiper-button-prev {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E");
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .timeline-title {
        font-size: 20px;
    }
    
    .swiper-slide-content {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .timeline-title {
        font-size: 16px;
    }
    
    .swiper-pagination-bullet {
        width: 15px;
        height: 15px;
    }
}

/* Fix for WordPress admin bar */
body.admin-bar .container-historia {
    height: calc(100vh - 201px);
}

@media (max-width: 782px) {
    body.admin-bar .container-historia {
        height: calc(100vh - 85px);
    }
}