/* =========================================
   PLUXDOM CARRUSEL 3D - FLUJO CORREGIDO ✅
   Archivo: /wp-content/themes/PLUXDOM-ULTRA/css/carrusel-3d.css
   ========================================= */

/* --- CONTENEDOR PRINCIPAL - CON ESPACIO DE FLUJO --- */
.pluxdom-c3d-container {
    width: 100%;
    margin: 0 auto;
    perspective: 1200px;
    position: relative;
    
    /* 👇 CLAVE: Altura mínima que reserva espacio en el flujo */
    min-height: 280px; /* Mobile: viewport(205px) + padding inferior */
    
    /* 👇 Empuja contenido siguiente */
    margin-bottom: 0px;
    padding-bottom: 60px; /* Espacio para los dots */
    
    /* Asegura flujo correcto */
    display: block;
    z-index: 1;
}

/* --- VIEWPORT - BASE DEL ESPACIO 3D --- */
.pluxdom-c3d-viewport {
    width: 100%;
    height: 200px; /* Mobile first */
    position: relative;
    transform-style: preserve-3d;
    
    /* 👇 Asegura que el viewport contribuya al flujo */
    display: block;
    margin: 0 auto;
}

/* --- TRACK - MOVIMIENTO 3D --- */
.pluxdom-c3d-track {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

/* --- CARD - POSICIONAMIENTO 3D (sin romper flujo del contenedor) --- */
.pluxdom-c3d-card {
    position: absolute;
    width: 92%;
    height: 240px; /* Un poco más alto que el viewport para efecto */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: all 0.6s ease;
    
    /* 👇 Asegura que no interfiera con flujo externo */
    will-change: transform, opacity;
}

/* --- IMAGEN DE FONDO --- */
.pluxdom-c3d-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- OVERLAY DEGRADADO --- */
.pluxdom-c3d-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.2) 50%,
        transparent 100%
    );
    pointer-events: none; /* 👈 Permite clicks a través del overlay */
}

/* --- ESTADOS 3D --- */
.pluxdom-c3d-active {
    transform: translate(-50%, -50%) scale(1);
    z-index: 5;
    opacity: 1;
}

.pluxdom-c3d-prev {
    transform: translate(-120%, -50%) scale(0.85);
    opacity: 0.4;
    pointer-events: none; /* 👈 No intercepta clicks */
}

.pluxdom-c3d-next {
    transform: translate(20%, -50%) scale(0.85);
    opacity: 0.4;
    pointer-events: none;
}

.pluxdom-c3d-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* --- BADGE ESTADO (IZQUIERDA ARRIBA) --- */
.pluxdom-c3d-badge-state {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #c21f00;
    color: #fff;
    padding: 6px 14px;
    font-size: 11px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 3;
    white-space: nowrap;
}

/* --- BADGE TIPO (DERECHA ARRIBA) --- */
.pluxdom-c3d-badge-tipo {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(128, 128, 128, 0.9);
    color: #fff;
    padding: 6px 14px;
    font-size: 11px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 3;
    white-space: nowrap;
}

/* --- INFO INFERIOR --- */
.pluxdom-c3d-bottom-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

/* --- PRECIO --- */
.pluxdom-c3d-price-display {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pluxdom-price-label {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.pluxdom-price-value {
    color: #FFD700;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.pluxdom-price-unit {
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 500;
    margin-left: 2px;
}

/* --- BOTÓN VER --- */
.pluxdom-c3d-btn-ver {
    background: #fff;
    color: #000;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pluxdom-c3d-btn-ver:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* --- DOTS DE NAVEGACIÓN - CORREGIDO ✅ --- */
.pluxdom-c3d-dots {
    position: relative;
    top: 30px;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    z-index: 4;
}

.pluxdom-c3d-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pluxdom-c3d-dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.1);
}

.pluxdom-c3d-dot.active {
    background: #FFD700;
    transform: scale(1.2);
}

/* --- LÍNEA DECORATIVA SUPERIOR --- */
.linea-sutil-carrusel {
    position: absolute;
    top: -10px; /* 👈 Ajustado para no interferir con flujo */
    left: 0;
    z-index: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgb(255 215 0), transparent);
    pointer-events: none;
}

/* =========================================
   TABLET (768px - 1199px)
   ========================================= */
@media (min-width: 768px) {
    .pluxdom-c3d-container {
        min-height: 480px; /* viewport(400px) + padding */
        margin-bottom: 32px;
        padding-bottom: 70px;
    }

    .pluxdom-c3d-viewport {
        height: 400px;
    }

    .pluxdom-c3d-card {
        width: 600px;
        height: 360px;
    }

    .pluxdom-price-value {
        font-size: 24px;
    }

    .pluxdom-c3d-btn-ver {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .pluxdom-c3d-dots {
        bottom: 18px;
    }
}

/* =========================================
   DESKTOP (1200px+)
   ========================================= */
@media (min-width: 1200px) {
    .pluxdom-c3d-container {
        min-height: 520px;
        margin-bottom: 40px;
        padding-bottom: 75px;
    }

    .pluxdom-c3d-card {
        width: 750px;
        height: 420px;
    }
    
    .pluxdom-c3d-viewport {
        height: 450px;
    }
}

/* =========================================
   FIX: PREVENIR SUPERPOSICIÓN CON CONTENIDO SIGUIENTE
   ========================================= */
.pluxdom-c3d-container + *,
.pluxdom-c3d-container + .site-main,
.pluxdom-c3d-container + #pluxdom-page-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 1;
}

/* =========================================
   CLEARFIX FINAL - GARANTIZA ALTURA DEL CONTAINER
   ========================================= */
.pluxdom-c3d-container::after {
    content: '';
    display: table;
    clear: both;
    height: 0;
    visibility: hidden;
}

/* =========================================
   ACCESIBILIDAD & INTERACTIVIDAD
   ========================================= */
.pluxdom-c3d-card:focus-within {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.pluxdom-c3d-btn-ver:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.pluxdom-c3d-dot:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}





/* =========================================
   OCULTAR BOTONES PREV / NEXT GRISES
   (elimina el punto gris arriba izquierda y cualquier flecha lateral)
   ========================================= */




/* =========================================
   OCULTAR BOTONES PREV / NEXT GRISES
   (elimina el punto gris arriba izquierda y cualquier flecha lateral)
   ========================================= */

@media (max-width: 1024px) {

    button#pluxdom-c3d-prev,
button#pluxdom-c3d-next {

    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    }

}















