/* RESET DE ANCHO COMPLETO PARA EL SLIDER */
.ms-hero-slider {
    position: relative;
    width: 100vw;
    height: 85vh;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background: #000;
    font-family: 'Segoe UI', sans-serif;
}

/* BARRA DE PROGRESO ELITE */
.ms-progress-bar {
    position: absolute;
    top: 0; left: 0; width: 0%; height: 5px;
    background: #2271b1;
    z-index: 100;
}

/* CONTENEDOR DE DIAPOSITIVAS */
.ms-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.ms-slide.active { display: flex; }

/* CAPA 1: FONDO CINEMATOGRÁFICO (KEN BURNS) */
.ms-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 10s linear;
}

.ms-slide.active .ms-bg-img {
    transform: scale(1.1) rotate(0.5deg);
}

/* CAPA 2: CONTENEDOR INTERACTIVO */
.ms-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
}

.ms-flex-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* TEXTO (IZQUIERDA) */
.ms-text-side {
    flex: 1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.4s;
}

.ms-slide.active .ms-text-side {
    opacity: 1;
    transform: translateY(0);
}

.ms-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.ms-description { font-size: 1.3rem; margin-bottom: 35px; opacity: 0.9; }

/* CAPA 3: PRODUCTO (DERECHA) */
.ms-product-side {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.ms-prod-floating {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6));
    opacity: 0;
    transform: translateX(100px) rotateY(-15deg);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

.ms-slide.active .ms-prod-floating {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
    animation: floatingEffect 5s ease-in-out infinite 1.7s;
}

@keyframes floatingEffect {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* BOTÓN */
.ms-btn {
    display: inline-block;
    padding: 16px 40px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: 0.3s;
}
.ms-btn:hover { background: #135e96; transform: scale(1.05); }

/* NAVEGACIÓN */
.ms-prev, .ms-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white; border: none; padding: 30px 15px;
    cursor: pointer; z-index: 100; font-size: 25px;
    backdrop-filter: blur(5px); transition: 0.3s;
}
.ms-prev:hover, .ms-next:hover { background: #2271b1; }
.ms-next { right: 0; border-radius: 15px 0 0 15px; }
.ms-prev { left: 0; border-radius: 0 15px 15px 0; }

/* MÓVIL */
@media (max-width: 900px) {
    .ms-flex-layout { flex-direction: column; text-align: center; }
    .ms-product-side { order: 1; }
    .ms-text-side { order: 2; }
    .ms-prod-floating { max-height: 250px; }
    .ms-hero-slider { height: 90vh; }
}