/* ============================
   DS Hero Carousel Styles
   ============================ */

.ds-hero-carousel-wrapper {
    position: relative;
    width: 100%;
}

.ds-hero-carousel {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    background: #000;
}

/* ============================
   SLIDES CONTAINER
   ============================ */
.ds-hero-slides {
    position: relative;
    width: 100%;
    height: 100%; /* Ocupar toda la altura del carousel */
}

.ds-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ocupar toda la altura incluyendo sección estática */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5% 5% 0 5%; /* Padding solo arriba y lados */
}

.ds-hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* ============================
   CONTENT STYLES
   ============================ */
.ds-hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    align-self: center;
    margin: 0 auto 6% auto;
    text-align: center;
}

.ds-hero-title {
    margin-bottom: 40px;
}

.title-line {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
    margin-bottom: 5px;
}

.title-part-1,
.title-part-2,
.title-part-3 {
    font-family: 'Gobold', sans-serif;
    font-size: 64px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0px 0px 15px rgba(0,0,0,0.25);
}

.title-part-1,
.title-part-3 {
    color: #ffffff !important; /* Forzar color blanco siempre */
}

.title-part-2 {
    color: #FF1493 !important; /* Forzar color magenta siempre */
}

.title-part-4 {
    font-family: 'Southing', serif;
    font-size: 74px;
    color: white !important;
    margin-left: 10px;
    background: #9400D3 !important;
    padding: 0 1rem 1rem 1rem;
    border-radius: 32px 32px 0 32px;
    display: inline-block;
    line-height: 0.5em;
}

/* ============================
   STATIC SECTION STYLES (Posicionada sobre la imagen de fondo)
   ============================ */
.ds-hero-static {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    display: flex;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

.ds-hero-static-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    width: 80%;
}

.ds-static-left,
.ds-static-right {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex: 1;
}

.ds-static-left {
    align-items: flex-start;
}

.ds-static-right {
    align-items: flex-end;
}

.static-text {
    color: #ffffff !important; /* Forzar color blanco siempre */
    font-size: 20px;
    font-family: "Geolica";
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.static-text:hover {
    opacity: 1;
}

.ds-static-center {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    width: 180px;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: scale(1.05);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Eliminar el botón de play */
.play-button {
    display: none;
}

/* ============================
   CTA BUTTON STYLES - Posicionado debajo del contenido estático
   ============================ */
.ds-hero-cta-container {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    margin-top: 1rem;
}

.ds-hero-cta {
    display: inline-block;
}

.ds-cta-button {
    display: inline-flex;
    align-items: center;
    font-family: "Gobold";
    gap: 10px;
    background-color: #A1DC17 !important; /* Forzar verde lima siempre */
    color: #614F9F !important; /* Forzar texto negro siempre */
    padding: 0.85rem 2.5rem 0.85rem 3rem;
    border-radius: 20px;
    text-decoration: none;    
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(154, 205, 50, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.16px;
}

.ds-cta-button:hover {
    background-color: #8fbc20 !important; /* Forzar verde más oscuro al hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 205, 50, 0.4);
    color: #614F9F !important; 
    text-decoration: none;
}

.ds-cta-button svg {
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.ds-cta-button:hover svg {
    transform: translateX(5px);
}

/* ============================
   RESPONSIVE STYLES
   ============================ */


/* Mobile Styles */
@media (max-width: 767px) {    
    .ds-hero-carousel {
        height: 90vh;
    }
    
    .ds-hero-slide {
        padding: 4% 4% 0 4%;
        justify-content: center;
        text-align: center;
        align-items: flex-start;
    }
    
    .ds-hero-content {
        max-width: 100%;
        margin-bottom: 10%;
    }
    
    .title-line {
        margin-bottom: 8px;
    }
    
    .title-part-1,
    .title-part-2,
    .title-part-3 {
        font-size: 38px;
    }
    
    .title-part-4 {
        font-size: 48px;
    }
    
    .ds-hero-title {
        margin-bottom: 25px;
    }
    
    .ds-hero-static {
        height: 45%;
        padding: 0 4%;
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }
    
    .ds-static-left,
    .ds-static-right {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        flex: none;
        order: 1;
        display: none;
    }
    
    .ds-static-center {
        flex: none;
        order: 0;
    }
    
    .video-container {
        width: 15%;
        aspect-ratio: 16/9;
    }
    
    .static-text {
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    .ds-hero-cta-container {
        padding: 0;
        margin-top: 0;
    }
    
    .ds-cta-button {
        font-size: 16px;
    }
}


/* ============================
   ANIMATIONS & TRANSITIONS
   ============================ */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide content animations */
.ds-hero-slide.active .ds-hero-title {
    animation: slideInFromLeft 0.8s ease 0.3s both;
}

.ds-hero-slide.active .ds-hero-cta {
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Static content entrance animation */
.ds-hero-static {
    animation: fadeInUp 1s ease 1s both;
}

/* ============================
   LOADING & PERFORMANCE
   ============================ */
.ds-hero-slide {
    will-change: opacity, transform;
}

.ds-hero-slide img,
.ds-hero-slide video {
    will-change: auto;
}

/* Preload optimization */
.ds-hero-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000000, #333333);
    z-index: -1;
}

/* ============================
   ACCESSIBILITY
   ============================ */
.ds-cta-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.video-container:focus {
    outline: 2px solid #9acd32;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .ds-hero-slide,
    .ds-cta-button,
    .video-container {
        transition: none;
    }
    
    .ds-hero-slide.active .ds-hero-title,
    .ds-hero-slide.active .ds-hero-cta,
    .ds-hero-static {
        animation: none;
    }
}