/* =========================================
   ESTILOS GLOBALES Y VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #05070E;
    color: #ffffff;
}

/* =======================================================
   ESCALADO UNIFICADO PARA MONITORES GRANDES (24" / 25")
   ======================================================= */
@media (min-width: 1536px) {
    html {
        font-size: 17px;
    }
}

@media (min-width: 1920px) {
    html {
        font-size: 19px;
    }
}

/* =========================================
   CANVAS DE FONDO DINÁMICO
   ========================================= */
#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   MALLA DE FONDO ESTÁTICA (AHORA AZUL ALICLIK)
   ========================================= */
.bg-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(54, 51, 249, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(54, 51, 249, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* =========================================
   GLASSMORPHISM & MATERIALES 
   ========================================= */
.glass {
    background: rgba(5, 7, 14, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Caja de alerta con destello Azul */
.glass-blue {
    background: linear-gradient(135deg, rgba(54, 51, 249, 0.08) 0%, rgba(7, 11, 25, 0.8) 100%);
    backdrop-filter: blur(10px);
}

/* =========================================
   SELECCIÓN DE TEXTO PERSONALIZADA
   ========================================= */
::selection {
    background-color: rgba(0, 218, 192, 0.767); /* Fondo cian translúcido */
    color: #ffffff; /* Texto blanco puro */
}

/* =========================================
   SCROLLBAR FUTURISTA
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #05070E;
}
::-webkit-scrollbar-thumb {
    background: #1a365d;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3633F9; /* Azul Aliclik al pasar el mouse */
}

/* =========================================
   ANIMACIONES DE ENTRADA (REVEAL)
   ========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Microinteracción de hover con sombra Azul */
.hover-dynamic {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hover-dynamic:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(54, 51, 249, 0.15); /* Sombra Azul */
}

/* =========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
    opacity: 0; /* Inicia oculto para la animación de JS */
    transform: translateY(20px);
    pointer-events: none; /* Evita clics fantasma antes de aparecer */
}

/* Clase que activa el JS para hacerlo aparecer */
.whatsapp-float.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Efecto hover Dark Tech */
.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1) translateY(0);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

/* Pequeña rotación del icono al pasar el mouse */
.whatsapp-float:hover .whatsapp-icon {
    transform: rotate(12deg);
}

/* =========================================
   ESTILOS DEL FOOTER UNIFICADO (Redes y Tiendas)
   ========================================= */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.store-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.store-badge:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #3633F9; /* Brillo azul institucional */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(54, 51, 249, 0.2);
}

/* =========================================
   ANIMACIÓN DEL PRELOADER (BARRA DE CARGA)
   ========================================= */
@keyframes loadingBar {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}