/*
Theme Name: BizMotion Pro V2
Theme URI: https://bizmotion.io
Author: BizMotion Dev
Description: Tema profesional, modular y escalable para BizMotion.
Version: 2.2
License: GNU General Public License v2 or later
*/

/* --- 1. CORE & TYPOGRAPHY --- */
body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8fafc; 
    overflow-x: hidden;
    color: #334155; /* Color base */
}

/* Ajuste barra admin WP */
body.admin-bar #navbar { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar #navbar { top: 46px; } }

/* --- 2. COLORES & UTILIDADES (ROBUSTO - NO BORRAR) --- */
/* Estos estilos aseguran que el diseño no se rompa si Tailwind falla */

/* Fondos */
.bg-biz-dark { background-color: #030712 !important; }
.bg-biz-blue { background-color: #1c5bba !important; }
.bg-white { background-color: #ffffff !important; }
.bg-slate-50 { background-color: #f8fafc !important; }

/* Textos */
.text-white { color: #ffffff !important; }
.text-biz-gold { color: #fbbf24 !important; }
.text-biz-blue { color: #1c5bba !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-900 { color: #0f172a !important; }

/* Fuentes y Pesos */
.font-black { font-weight: 900 !important; }
.font-bold { font-weight: 700 !important; }
.uppercase { text-transform: uppercase !important; }
.tracking-widest { letter-spacing: 0.1em !important; }

/* --- 3. COMPONENTES DEL TEMA --- */

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #030712; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1c5bba; }

/* Spotlight */
#global-spotlight {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9999;
    background: radial-gradient(800px circle at var(--x) var(--y), rgba(59, 130, 246, 0.12), transparent 40%);
    mix-blend-mode: screen; 
}

/* Noise Texture */
.bg-noise { position: relative; }
.bg-noise::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0;
}

/* Navbar */
.glass-nav { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(226, 232, 240, 0.8); }
.nav-link { position: relative; color: #64748b; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; transition: color 0.3s; text-transform: uppercase; cursor: pointer; padding: 0.5rem 0; display: block; }
.nav-link:hover { color: #1c5bba; }

/* Submenu */
.sub-menu { position: absolute; top: 100%; left: 0; min-width: 200px; background: white; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; padding: 0.5rem; z-index: 50; }
.menu-item-has-children:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li a { padding: 0.5rem 1rem; display: block; color: #334155; font-size: 0.8rem; border-radius: 6px; }
.sub-menu li a:hover { background: #f1f5f9; color: #1c5bba; }

/* Tarjetas de Ciudades (Hub Cards) */
.hub-card {
    position: relative; height: 380px; border-radius: 24px; overflow: hidden;
    cursor: default; transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    background: linear-gradient(#030712, #030712) padding-box, linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0)) border-box;
    border: 1px solid transparent;
}
.hub-card:hover { transform: translateY(-10px); border-color: rgba(251, 191, 36, 0.4); }
.hub-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), filter 0.5s ease;
    filter: grayscale(100%) brightness(0.6); transform: scale(1.05);
}
.hub-card:hover .hub-bg { transform: scale(1.15); filter: grayscale(0%) brightness(0.8); }
.hub-content {
    position: absolute; inset: 0; background: linear-gradient(to top, #030712 15%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem; z-index: 2;
}
.hub-line { width: 40px; height: 4px; background-color: #fbbf24; margin-bottom: 1rem; transition: width 0.3s ease; }
.hub-card:hover .hub-line { width: 80px; }

/* Botones */
.btn-primary { background: #1c5bba; color: white; transition: all 0.3s; position: relative; overflow: hidden; }
.btn-premium { background-color: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(4px); }
.btn-premium:hover { border-color: #1c5bba; background: rgba(255,255,255,0.15); transform: translateX(5px); }
.btn-premium-solid { background-color: #1c5bba; color: white; border: 1px solid #1c5bba; }
.btn-premium-solid:hover { background-color: #164a9e; box-shadow: 0 10px 25px -5px rgba(28, 91, 186, 0.4); transform: translateY(-3px); }

/* Slider & Módulos */
.slider-container { position: relative; height: 95vh; min-height: 900px; background: #030712; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; }
.slide.active { opacity: 1; z-index: 10; }
.slide-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transform: scale(1); transition: transform 10s; }
.slide.active .slide-img { transform: scale(1.08); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, #030712 0%, rgba(3, 7, 18, 0.8) 50%, rgba(3, 7, 18, 0.2) 100%); z-index: 2; }
.slide-content .animate-item { opacity: 0; transform: translateY(30px); filter: blur(5px); transition: all 1s; }
.slide.active .slide-content .delay-1 { transition-delay: 0.1s; opacity: 1; transform: translateY(0); filter: blur(0); }
.slide.active .slide-content .delay-2 { transition-delay: 0.3s; opacity: 1; transform: translateY(0); filter: blur(0); }
.slide.active .slide-content .delay-3 { transition-delay: 0.5s; opacity: 1; transform: translateY(0); filter: blur(0); }
.slide.active .slide-content .delay-4 { transition-delay: 0.7s; opacity: 1; transform: translateY(0); filter: blur(0); }
.progress-bar-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 6px; background: rgba(255,255,255,0.1); z-index: 30; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #1c5bba, #00DC82); width: 0; }
.slide.active ~ .progress-bar-container .progress-bar { width: 0; animation: progress 8s linear; }
@keyframes progress { 0% { width: 0%; } 100% { width: 100%; } }

.module-card { background: white; border: 1px solid #f1f5f9; border-radius: 16px; padding: 2.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: transform 0.1s ease; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); position: relative; z-index: 10; height: 100%; }
.module-card:hover { border-color: #1c5bba; transform: translateY(-8px); box-shadow: 0 20px 30px -10px rgba(28, 91, 186, 0.15); }

/* Footer */
.footer-watermark { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); font-size: 18vw; font-weight: 900; color: rgba(255,255,255,0.05); pointer-events: none; white-space: nowrap; z-index: 0; font-family: 'Montserrat', sans-serif; user-select: none; }
#scrollTopBtn { opacity: 0; visibility: hidden; transition: all 0.4s ease; }
#scrollTopBtn.show { opacity: 1; visibility: visible; }

/* Contact Form */
.input-clean { width: 100%; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 1rem 1.2rem; color: #0f172a; font-size: 0.95rem; transition: all 0.3s ease; }
.input-clean:focus { outline: none; border-color: #1c5bba; background-color: white; box-shadow: 0 0 0 4px rgba(28, 91, 186, 0.1); }
.label-clean { display: block; font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; margin-left: 0.25rem; }

@media (min-width: 1024px) { .tilt-card { transform-style: preserve-3d; transform: perspective(1000px); } }