/* 💻 ESCAPARATE DE DISPOSITIVOS PREMIUM (Versión Blindada Anticolapso) */

.showcase-container {
    position: relative;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 16 / 11;
    margin: 20px auto;
}

/* 🧊 Efecto Cristal Templado y Brillo de Pantalla */
.device-screen {
    width: 100%;
    height: 100%;
    background-color: #0b0f19;
    background-size: 100% 100%; /* 🛠️ CORRECCIÓN: Ajusta la captura completa al marco sin recortes ni zoom */
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* 🛠️ CORRECCIÓN: Apaga y fulmina los textos de "Captura POS..." del HTML */
.device-screen span {
    display: none !important;
}

.device-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 40%, rgba(255,255,255,0) 41%);
    pointer-events: none;
    z-index: 10;
}

/* 💻 MONITOR */
.css-monitor {
    position: absolute;
    top: 5%;
    left: 11%;
    width: 78%;
    aspect-ratio: 16 / 10;
    background: #020617;
    border: 2px solid #64748b; 
    outline: 8px solid #0f172a;
    border-bottom: 18px solid #1e293b;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.css-monitor::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 40px;
    background: linear-gradient(to bottom, #334155, #1e293b);
    clip-path: polygon(22% 0%, 78% 0%, 100% 100%, 0% 100%);
    z-index: -1; 
}

/* 📁 TABLET HORIZONTAL */
.css-tablet {
    position: absolute;
    bottom: 8%;
    right: 0%;
    width: 44%;
    aspect-ratio: 4 / 3;
    background: #020617;
    border: 9px solid #111827;
    border-radius: 14px;
    box-shadow: -12px 18px 35px -8px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* 📱 SMARTPHONE */
.css-phone {
    position: absolute;
    bottom: 2%;
    left: 4%;
    width: 21%;
    aspect-ratio: 9 / 19.5;
    background: #020617;
    border: 6px solid #1f2937;
    border-radius: 22px;
    box-shadow: 15px 18px 35px -8px rgba(0, 0, 0, 0.75);
    z-index: 3;
}

/* Placeholders */
.css-monitor .device-screen { background: linear-gradient(135deg, #1e40af, #3b82f6); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.85rem; }
.css-tablet .device-screen { background: linear-gradient(135deg, #065f46, #10b981); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.8rem; }
.css-phone .device-screen { background: linear-gradient(135deg, #991b1b, #ef4444); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.65rem; border-radius: 16px; }

/* ==========================================================================
   📱 MÓVILES SEGUROS (Forzado métrico con unidades basadas en el ancho de pantalla)
   ========================================================================== */
@media (max-width: 600px) {
    .showcase-container {
        width: 90%;
        max-width: 340px;
        height: 250px; /* Forzamos una altura física mínima en móviles */
        aspect-ratio: unset; /* Desactivamos el ratio dinámico que causaba el colapso */
        margin: 15px auto 30px auto;
    }

    .css-monitor {
        width: 80%;
        left: 10%;
        top: 5%;
        outline: 5px solid #0f172a;
        border-bottom-width: 12px;
    }
    
    .css-monitor::after {
        bottom: -34px;
        width: 60px;
        height: 26px;
    }

    .css-tablet {
        width: 48%;
        bottom: 8%;
        right: -2%;
        border-width: 6px;
        border-radius: 10px;
    }

    .css-phone {
        width: 22%;
        bottom: 3%;
        left: 2%;
        border-width: 4px;
        border-radius: 14px;
    }

    .css-monitor .device-screen { font-size: 0.7rem; }
    .css-tablet .device-screen { font-size: 0.65rem; }
    .css-phone .device-screen { font-size: 0.55rem; border-radius: 10px; }
}

/* ==========================================================================
   🖼️ VINCULACIÓN DE IMÁGENES REALES DEL SISTEMA
   ========================================================================== */

/* 🛠️ CORRECCIÓN: Cargado limpio con reseteo de colores de prueba */

/* 1. Imagen para el Monitor de PC */
#screen-monitor {
    background: url('/img/pos-pc.webp') no-repeat center / 100% 100%;
}

/* 2. Imagen para la Tablet Horizontal */
#screen-tablet {
    background: url('/img/pos-tablet.webp') no-repeat center / 100% 100%;
}

/* 3. Imagen para el Teléfono Celular */
#screen-phone {
    background: url('/img/pos-movil.webp') no-repeat center / 100% 100%;
}