/* =================================================================
   1. LAYOUT DEL CONTENEDOR (PROPORCIÓN Y FULL-WIDTH) 
   ================================================================= */
.mwp-slider-container {
    position: relative;
    width: 100vw;               /* Ancho total de la ventana */
    left: 50%;                  /* Técnica para romper contenedores padre */
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    /* LA MAGIA: Mantiene la proporción exacta de tu imagen (1920x600) */
    aspect-ratio: 1920 / 600; 
    height: auto;
    max-height: 600px;          /* Tope máximo para pantallas ultra anchas */
    
    overflow: hidden; 
    box-sizing: border-box;
    background-color: #000000;
}

/* =================================================================
   2. PISTA DE DESLIZAMIENTO (WRAPPER)
   ================================================================= */
.mwp-slides-wrapper {
    display: flex; 
    width: 100%; 
    height: 100%;
    transition: transform 0.8s ease-in-out;
    will-change: transform; 
}

/* =================================================================
   3. DIAPOSITIVA INDIVIDUAL (AJUSTE PERFECTO DE IMAGEN)
   ================================================================= */
.mwp-slide {
    flex: 0 0 100%; 
    min-width: 100%; 
    max-width: 100%; 
    height: 100%;
    
    /* Reglas forzadas para que no se deforme ni repita */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* =================================================================
   4. CONTROLES Y UI
   ================================================================= */
.mwp-controls {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none;
}

.mwp-prev-btn, 
.mwp-next-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); 
    color: white; 
    border: none;
    padding: 15px; 
    cursor: pointer; 
    z-index: 20; 
    font-size: 2em;
    pointer-events: auto; 
}

.mwp-prev-btn:hover, 
.mwp-next-btn:hover { 
    background: rgba(0, 0, 0, 0.8); 
}

.mwp-prev-btn { left: 10px; }
.mwp-next-btn { right: 10px; }

.mwp-pagination {
    position: absolute; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%);
    z-index: 20; 
    display: flex; 
    gap: 10px; 
    pointer-events: auto;
}

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

.mwp-dot.active { 
    background: white; 
    transform: scale(1.2); 
}

/* =================================================================
   5. OVERLAY Y TEXTO
   ================================================================= */
.mwp-slide::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    z-index: 1; 
    /* El color oscuro se removió de aquí. Ahora se controla desde "Ajustes Globales" en WP */
}

.mwp-slide-content { 
    z-index: 2; 
    padding: 20px; 
    position: relative; 
    max-width: 800px; 
}

.mwp-slide-content h2 { 
    font-size: 3em; 
    color: white; 
    margin-bottom: 10px; 
}

.mwp-btn { 
    display: inline-block; 
    padding: 10px 20px; 
    background: #ff5722; 
    color: white; 
    text-decoration: none; 
    margin-top: 15px; 
    border-radius: 4px; 
}

/* =================================================================
   6. RESPONSIVE (MÓVILES)
   ================================================================= */
@media (max-width: 768px) {
    .mwp-slider-container { 
        /* Obliga al celular a mantener la proporción completa de la imagen */
        aspect-ratio: 1920 / 600 !important; 
        height: auto !important;
        max-height: none; 
    } 
    /* Ajustamos el contenido para que quepa en esta franja más delgada */
    .mwp-slide-content {
        padding: 10px; 
    }
    .mwp-slide-content h2 { 
        font-size: 1.2rem !important; 
        margin-bottom: 5px;
    }
    .mwp-btn {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
        margin-top: 5px !important;
    }
}