/* ==========================================================================
   CREATION HANDS ANIMATION — MBA NZANG
   Inspirado en pensatori-irrazionali.com/contact ("La Creación": Humano & IA)
   ========================================================================== */

/* Contenedor del lienzo de fondo */
.hands-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #000000;
}

#handsCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Viñeteado radial oscuro para garantizar legibilidad del contenido superpuesto */
.hands-vignette-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(0, 0, 0, 0.0) 0%,
        rgba(0, 0, 0, 0.25) 55%,
        rgba(0, 0, 0, 0.8) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Indicador sutil de interacción */
.hands-touch-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4), inset 0 0 15px rgba(0, 243, 255, 0.3);
    opacity: 0.7;
    animation: touchPulse 2.8s ease-in-out infinite;
}

@keyframes touchPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Adaptación de transparencia Glassmorphic en contacto.html */
body.samsung-theme.has-hands-bg {
    background: #000000 !important;
}

body.samsung-theme.has-hands-bg main,
body.samsung-theme.has-hands-bg section,
body.samsung-theme.has-hands-bg .contact-container,
body.samsung-theme.has-hands-bg .contact-hero,
body.samsung-theme.has-hands-bg .page-banner-samsung {
    position: relative;
    z-index: 2;
}

/* Paneles de contacto con translucidez */
body.samsung-theme.has-hands-bg .contact-form-card,
body.samsung-theme.has-hands-bg .contact-card,
body.samsung-theme.has-hands-bg .contact-info-card,
body.samsung-theme.has-hands-bg .contact-info-panel,
body.samsung-theme.has-hands-bg .form-container {
    background: rgba(12, 12, 16, 0.72) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

/* En ia.html: el hero revela las manos sutilmente detrás */
body.samsung-theme.has-hands-bg .ai-hero-section {
    background: transparent !important;
}

body.samsung-theme.has-hands-bg .ai-hero-inner {
    position: relative;
    z-index: 3;
}

body.samsung-theme.has-hands-bg .ai-telemetry-card {
    background: rgba(14, 14, 18, 0.75) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

@media (max-width: 768px) {
    .hands-touch-indicator {
        width: 40px;
        height: 40px;
    }
}
