@charset "utf-8";
/* CSS Document */

/* --- Estilos Generales --- */
body { 
    background-color: #f0f2f5; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card { border-radius: 15px; }

#buscar { 
    border: 2px solid #212529; 
    height: 55px; 
    font-size: 1.3rem; 
    border-radius: 10px; 
    text-align: center; 
}

/* --- Ajuste de Tabla y Fuentes --- */
.table td {
    font-size: 1.1rem;
    vertical-align: middle;
    padding: 15px;
}

/* --- Contenedor de Video Preview --- */
.video-preview {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #ddd;
    background: #000;
    transition: 0.3s;
    display: block;
}

.video-container {
    cursor: pointer;
    position: relative;
    width: 180px;
    margin: auto;
}

.video-container:hover .video-preview { 
    filter: brightness(0.6); 
    transform: scale(1.02); 
}

.video-alt {
    width: 180px; 
    height: 180px; 
    background:#eee; 
    border-radius:12px; 
    display: none; 
    align-items:center; 
    justify-content:center; 
    font-size:12px; 
    color:#999; 
    border:1px dashed #ccc;
    margin: auto;
}

.overlay-zoom { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    color: white; 
    font-size: 12px; 
    opacity: 0; 
    transition: 0.3s;
    background: rgba(0,0,0,0.6); 
    padding: 8px 12px; 
    border-radius: 20px;
    pointer-events: none;
    z-index: 2;
}

.video-container:hover .overlay-zoom { opacity: 1; }

/* --- Casilla de Descuento Alineada (Desktop) --- */
.contenedor-desc {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    gap: 15px;
}

.span-resultado {
    font-size: 1.1rem !important;
    font-weight: bold;
    white-space: nowrap; 
}

/* --- Modal --- */
.modal-content { 
    background-color: #000; 
    color: #fff; 
    border-radius: 20px; 
}

/* --- DISEÑO RESPONSIVO (MÓVIL) --- */
@media (max-width: 768px) {
    .table-responsive thead { display: none; }
    
    .table-responsive tr { 
        display: block; 
        margin-bottom: 1.5rem; 
        border: 1px solid #dee2e6; 
        border-radius: 15px; 
        background: #fff; 
        padding: 10px;
    }
    
    .table-responsive td { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
    }

    /* OCULTAR ETIQUETA "VISTA PREVIA" SOLO EN MÓVIL */
    .col-video::before { 
        display: none !important; 
    }
    
    .col-video { 
        display: block !important; 
        text-align: center !important; 
        border-bottom: 2px solid #f8f9fa !important;
    }

    .table-responsive td:last-child { border-bottom: none; }
    
    .table-responsive td::before { 
        content: attr(data-label); 
        font-weight: bold; 
        color: #555;
    }

    .contenedor-desc {
        flex-direction: column; 
        align-items: flex-end;
        gap: 5px;
    }
    
    .video-preview, .video-container, .video-alt {
        width: 100% !important;
        max-width: 200px; /* Video un poco más grande en móvil ahora que no hay texto al lado */
        height: 200px !important;
    }
}
/* Estilo adicional para Cliente Final (Gris/Oscuro) */
.table-cliente-final thead {
    background-color: #212529 !important;
    color: white;
}

/* Ajuste para que la tabla de cliente final no se vea tan técnica */
.precio-destacado {
    font-size: 1.4rem;
    color: #000;
    font-weight: 800;
}