/* ===================================================
   DRONE 3D FLOTANTE - ESTILOS
   Para XDroneCleaner - Versión Mejorada
=================================================== */

#xdrone3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

#xdrone3d canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Indicador de carga del drone */
.drone-loading {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 168, 107, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drone-loading.show {
    opacity: 1;
}

/* Control de visibilidad del drone */
.drone-control {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: rgba(0, 168, 107, 0.95);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 168, 107, 0.4);
    transition: all 0.3s ease;
}

.drone-control:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.6);
}

.drone-control i {
    transition: transform 0.3s ease;
}

.drone-control.active i {
    transform: rotate(180deg);
}

/* Tooltip para el control */
.drone-control-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 168, 107, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drone-control:hover .drone-control-tooltip {
    opacity: 1;
}

/* Responsive - AHORA VISIBLE EN MÓVILES */
@media (max-width: 768px) {
    #xdrone3d {
        display: block; /* ✅ Ahora visible */
        transform: translateZ(0);
    }
    
    .drone-control {
        display: flex; /* ✅ Botón visible */
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 15px;
        font-size: 18px;
    }
}

/* Optimización de rendimiento */
#xdrone3d canvas {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Evitar selección accidental */
#xdrone3d * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
