/* css/style.css - Archivo Maestro v2.0 */

/* --- BASE --- */
body { 
    background-color: #001e40; 
    color: #ffffff; 
    font-size: 16px; 
    overflow-x: hidden;
}

/* Scroll Reveal (Efecto de aparición) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- GRADIENTES DE FONDO --- */
.bg-hero-gradient { background: radial-gradient(circle at 70% 30%, #003366 0%, #001e40 70%); }
.bg-marshal-gradient { background: radial-gradient(circle at 50% 0%, #1e293b 0%, #001e40 100%); }
.bg-shop-gradient { background: radial-gradient(circle at 80% 20%, #4a0418 0%, #001e40 60%); }
.bg-gps-gradient { background: radial-gradient(circle at 30% 20%, #0f3d6b 0%, #001e40 70%); }
.bg-security-gradient { background: radial-gradient(circle at 20% 50%, #1e1b4b 0%, #001e40 70%); }
.bg-platforms-gradient { background: linear-gradient(135deg, #001e40 0%, #00152e 100%); }

/* --- COMPONENTES UI GENÉRICOS --- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(0, 184, 217, 0.5);
    box-shadow: 0 0 30px rgba(0, 184, 217, 0.15);
    transform: translateY(-5px);
}

/* --- ANIMACIONES ESPECÍFICAS POR PÁGINA --- */

/* 1. Digital Card & Wallet (Escaneo) */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #00b8d9;
    box-shadow: 0 0 10px #00b8d9;
    animation: scan 3s linear infinite;
}
.wallet-card { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.wallet-card:hover { transform: translateY(-10px) rotateX(5deg); box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.4); }

/* 2. Marshal IA (Radar & Cards) */
.module-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.module-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.module-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -10px rgba(0, 184, 217, 0.2); border-color: #00b8d9; }
.module-card:hover::before { opacity: 1; }

@keyframes radar-scan { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.radar-line {
    background: linear-gradient(to bottom, rgba(0, 184, 217, 0.5), transparent);
    animation: radar-scan 4s linear infinite;
    transform-origin: bottom center;
}

/* 3. SICLA GPS (Sonar) */
.sonar-emitter { position: relative; }
.sonar-wave {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 184, 217, 0.3);
    opacity: 0;
    z-index: -1;
    transform: translate(-50%, -50%);
    animation: sonarWave 2s linear infinite;
}
@keyframes sonarWave {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}
.ecosystem-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.ecosystem-card:hover { transform: translateY(-5px); border-color: #00b8d9; box-shadow: 0 10px 30px -10px rgba(0, 184, 217, 0.3); }

/* 4. Kommo CRM (Chats) */
.chat-bubble {
    position: relative;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.8);
}
.chat-left { background-color: #1e293b; color: #e2e8f0; border-bottom-left-radius: 2px; margin-right: auto; }
.chat-right { background-color: #0052cc; color: white; border-bottom-right-radius: 2px; margin-left: auto; }
@keyframes popIn { to { opacity: 1; transform: scale(1); } }

/* 5. RRHH & General (Mockups) */
.mockup-hover:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5); }

/* 6. NEXT-GATE (Semáforos y Escáner) */
.traffic-light { box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.light { transition: all 0.3s ease; opacity: 0.3; transform: scale(0.95); }
.light.active { opacity: 1; transform: scale(1.1); box-shadow: 0 0 30px currentColor; }
.light-red { color: #ef4444; }
.light-yellow { color: #eab308; }
.light-green { color: #22c55e; }

.scanner-beam {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: #6366f1; /* Indigo-500 */
    box-shadow: 0 0 10px #6366f1;
    animation: scan-vertical 2s ease-in-out infinite;
}
@keyframes scan-vertical {
    0%, 100% { top: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}