/* Carousel Styles */

.main-carousel {
    position: relative;
    z-index: 1;
    /* Ensure it stays below the header */
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: #000;
    margin-top: 131px;
    /* 51 (top-bar) + 80 (header) */
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    /* Overlay oscuro */
}

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

/* Animations */


.carousel-slide.active .slide-title {
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.carousel-slide.active .slide-desc {
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.carousel-slide.active .slide-features {
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

.carousel-slide.active .slide-actions {
    animation: fadeInUp 0.6s ease 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Textos del Carousel - Tamaños aumentados */



.slide-badge {
    display: none;
}

.slide-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
}

.slide-desc {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0;
    line-height: 1.5;
}

.slide-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    list-style: none;
    padding: 0;
    opacity: 0;
}

.slide-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 500;
}

.slide-features li i {
    color: var(--primary-color, #da251c);
    font-size: 1.1rem;
}

.slide-actions {
    opacity: 0;
    position: relative;
    z-index: 5;
}

.slide-actions .btn {
    min-width: 160px;
    max-width: 200px;
    padding: 0.75rem 1.25rem;
    pointer-events: auto;
    cursor: pointer;
}

/* Navigation Controls */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.indicator.active {
    background: #fff;
    transform: scale(1.2);
}

/* Thumbnails */
.carousel-thumbnails {
    position: absolute;
    bottom: 80px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.thumbnail-btn {
    width: 60px;
    height: 40px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
    opacity: 0.7;
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-btn.active {
    border-color: var(--primary-color, #da251c);
    opacity: 1;
}

/* Mobile Responsive - MEJORADO */
@media (max-width: 991px) {

    .main-carousel,
    .manitas-title-block {
        height: 580px;
        margin-top: 121px;
        /* 41 (top-bar) + 80 (header) */
        margin-bottom: 0;
        border-top: none;
        padding-top: 0;
    }

    .slide-content {
        width: 92%;
        padding: 0 10px;
    }

    .slide-badge {
        font-size: 0.9rem;
        padding: 7px 16px;
    }

    .slide-title {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }

    .slide-desc {
        font-size: 1.15rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .slide-features {
        margin-bottom: 30px;
        gap: 18px;
    }

    .slide-features li {
        font-size: 1rem;
    }

    .slide-features li i {
        font-size: 1.05rem;
    }

    .carousel-thumbnails {
        display: none;
    }
}

@media (max-width: 767px) {

    .main-carousel,
    .manitas-title-block {
        height: 640px;
        margin-top: 121px;
        margin-bottom: 0;
        border-top: none;
        padding-top: 0;
    }

    .slide-image {
        object-fit: contain;
        filter: brightness(0.4);
        /* Darker for better text contrast in mobile */
    }

    .slide-content {
        top: 50%;
        transform: translate(-50%, -50%);
        width: 94%;
        max-width: 600px;
        padding: 15px 10px;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.95);
        /* Shadow to all content for contrast */
    }

    .slide-badge {
        font-size: 0.85rem;
        padding: 6px 14px;
        margin-bottom: 12px;
    }

    .slide-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
        line-height: 1.3;
        text-shadow: 2px 2px 15px rgba(0, 0, 0, 1);
    }

    .slide-desc {
        font-size: 1.05rem;
        margin-bottom: 20px;
        line-height: 1.5;
        text-shadow: 1px 1px 8px rgba(0, 0, 0, 1);
    }

    .slide-features {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        margin-bottom: 25px;
    }

    .slide-features li {
        font-size: 0.95rem;
    }

    .slide-features li i {
        font-size: 1rem;
    }

    .slide-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }

    .slide-actions .btn {
        width: auto;
        min-width: 180px;
        max-width: 220px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .carousel-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        background: rgba(255, 255, 255, 0.3);
        /* Higher visibility */
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 20px;
    }
}

@media (max-width: 480px) {

    .main-carousel,
    .manitas-title-block {
        height: 660px;
        margin-top: 121px;
        margin-bottom: 0;
        border-top: none;
        padding-top: 0;
    }

    .slide-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-desc {
        font-size: 1rem;
        line-height: 1.5;
    }

    .slide-features li {
        font-size: 0.9rem;
    }

    .slide-features li i {
        font-size: 0.95rem;
    }

    .slide-actions .btn {
        min-width: 170px;
        max-width: 210px;
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .slide-title {
        font-size: 1.8rem;
    }

    .slide-desc {
        font-size: 0.95rem;
    }

    .slide-features li {
        font-size: 0.85rem;
    }
}

@media (min-width: 1200px) {
    .main-carousel {
        height: 720px;
    }

    .slide-badge {
        font-size: 1rem;
        padding: 8px 20px;
    }

    .slide-title {
        font-size: 4.2rem;
    }

    .slide-desc {
        font-size: 1.3rem;
        line-height: 1.6;
    }

    .slide-features li {
        font-size: 1.1rem;
    }

    .slide-features li i {
        font-size: 1.15rem;
    }
}

.btn-disabled,
.slide-actions .btn-outline.btn-disabled {
    display: none !important;
}