.dioses-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    /* NUEVO 3D: Habilitar perspectiva para efecto Strong Center */
    perspective: 1500px;
}

.dioses-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    /* NUEVO 3D: Asegurar que los hijos mantengan el espacio 3D */
    transform-style: preserve-3d;
}

.dioses-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    z-index: 1;
    
    /* NUEVO 3D: Permite que el slide rote en 3D */
    transform-style: preserve-3d;
    /* NUEVO 3D: Punto de pivote en el centro */
    transform-origin: center center;
}

.dioses-slide.active {
    visibility: visible;
    opacity: 1;
    z-index: 2;
}

/* Background Wrapper */
.dioses-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    
    /* NUEVO 3D: Importante para que el fondo no parpadee al rotar */
    backface-visibility: hidden;
}

.dioses-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* --- CONTENEDOR FLEXBOX PARA POSICIONAMIENTO --- */
.dioses-content-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex; /* Magia Flexbox */
    
    /* La alineación se inyecta desde PHP con:
       justify-content: flex-start | center | flex-end
       align-items: flex-start | center | flex-end
       padding: (Margen Exterior)
    */
    box-sizing: border-box;

    /* NUEVO 3D: Asegurar que el contenido se mueva con la profundidad */
    transform-style: preserve-3d;
}

/* --- LA CAJA (CONTENIDO) --- */
.dioses-box {
    position: relative;
    width: 100%;
    /* Max-width inyectado desde PHP */
    
    background-color: rgba(255, 255, 255, 0.85);
    border-left: 6px solid #D4AF37;
    /* Padding inyectado desde PHP */
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);

    /* NUEVO 3D: Mejora la nitidez del texto durante la animación */
    transform: translateZ(0);
}

/* Tipografía Base (se sobreescribe desde Elementor) */
.dioses-subtitle {
    color: #D4AF37;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dioses-heading {
    color: #001f5b;
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 20px;
}

.dioses-desc {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Botón */
.dioses-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #c29d5b;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dioses-btn:hover {
    background-color: #a38246;
    transform: translateY(-2px);
}

/* Navegación */
.dioses-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    color: #001f5b;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 20;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
}

.dioses-nav button:hover {
    background: #D4AF37;
    color: white;
}

.dioses-prev {
    left: 20px;
}

.dioses-next {
    right: 20px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 767px) {
    .dioses-content-container {
        /* En móvil forzamos al centro para mejor UX */
        justify-content: center !important;
        align-items: center !important;
        padding: 20px !important;
    }
    
    .dioses-box {
        max-width: 100% !important;
        text-align: center;
        border-left: none; /* Barra lateral pasa arriba en móvil */
        border-top: 5px solid #D4AF37;
    }
    
    .dioses-heading {
        font-size: 1.8rem;
    }
}

/* ... (Todo tu CSS anterior se mantiene igual) ... */

.dioses-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.dioses-slides-wrapper {
    position: relative;
    width: 100%; height: 100%;
}

.dioses-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    visibility: hidden; opacity: 0; overflow: hidden; z-index: 1;
}

.dioses-slide.active { visibility: visible; opacity: 1; z-index: 2; }

/* Backgrounds */
.dioses-bg-wrap {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

.dioses-bg {
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
}

/* ESTILOS PARA EL VIDEO DE FONDO */
.dioses-bg-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Clave para que cubra todo sin deformarse */
    z-index: 0;
}

/* Contenedor Flex */
.dioses-content-container {
    position: relative; width: 100%; height: 100%; z-index: 10;
    display: flex; box-sizing: border-box;
}

/* Caja Contenido */
.dioses-box {
    position: relative; width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    border-left: 6px solid #D4AF37;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

/* Textos Generales */
.dioses-subtitle { margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.dioses-heading { margin: 0 0 20px; font-weight: 700; line-height: 1.2; }
.dioses-desc { margin-bottom: 25px; line-height: 1.6; }

/* Botón */
.dioses-btn-wrap { display: inline-block; }
.dioses-btn {
    display: inline-block; padding: 12px 30px; text-decoration: none; border-radius: 4px; font-weight: 600;
    transition: transform 0.3s ease, opacity 0.3s;
}
.dioses-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* Nav */
.dioses-nav button {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.3); border: none; color: #001f5b;
    width: 50px; height: 50px; cursor: pointer; z-index: 20;
    border-radius: 50%; transition: background 0.3s, color 0.3s;
}
.dioses-nav button:hover { background: #D4AF37; color: white; }
.dioses-prev { left: 20px; } .dioses-next { right: 20px; }

@media (max-width: 767px) {
    .dioses-content-container { justify-content: center !important; align-items: center !important; padding: 20px !important; }
    .dioses-box { text-align: center; border-left: none; border-top: 5px solid #D4AF37; }
}