* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; max-width: 100%; }
section { scroll-margin-top: 90px; }
body { font-family: 'Inter', sans-serif; background: #FDFEFE; color: #0a1628; overflow-x: hidden; overflow-x: clip; max-width: 100%; position: relative; }

/* Custom Cursor */
@media (min-width: 1024px) {
    body { cursor: none; }
    .cursor-dot { width: 8px; height: 8px; background: #237131; border-radius: 50%; position: fixed; pointer-events: none; z-index: 99999; }
    .cursor-ring { width: 40px; height: 40px; border: 2px solid rgba(35,113,49,0.5); border-radius: 50%; position: fixed; pointer-events: none; z-index: 99998; transition: all 0.15s ease-out; }
    .cursor-ring.hover { width: 60px; height: 60px; border-color: #237131; background: rgba(35,113,49,0.1); }
}
@media (max-width: 1023px) {
    .cursor-dot, .cursor-ring { display: none; }
}

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, #237131, #094372); z-index: 10001; transition: width 0.1s linear; }
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 10000; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); padding: 1.25rem 0; }
.navbar.scrolled { padding: 0.45rem 0; background: rgba(253,254,254,0.94); backdrop-filter: blur(16px); box-shadow: 0 1px 18px rgba(0,0,0,0.06); }
.navbar.scrolled .nav-link { color: #0a1628 !important; }
.navbar.scrolled .nav-logo-text { color: #0a1628 !important; }
.navbar.scrolled .ham-line { background: #0a1628 !important; }
.nav-logo-text { transition: height 0.35s ease; }
.navbar.scrolled .nav-logo-text { height: 56px !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 10001; padding: 8px; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; }
.ham-line { width: 28px; height: 2px; border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active .ham-line:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active .ham-line:nth-child(2) { opacity: 0; }
.hamburger.active .ham-line:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
@media (max-width: 1023px) { .hamburger { display: flex; } }

.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: rgba(10,22,40,0.98); backdrop-filter: blur(30px); z-index: 10000; transition: right 0.5s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; }
.mobile-menu.active { right: 0; }
.mobile-menu a { font-size: 1.75rem; font-weight: 600; color: #FDFEFE; text-decoration: none; opacity: 0; transform: translateX(50px); transition: all 0.4s ease; }
.mobile-menu.active a { opacity: 1; transform: translateX(0); }
.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active a:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu.active a:nth-child(8) { transition-delay: 0.45s; }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

.hero-section { min-height: 100vh; display: flex; align-items: center; }
.glass { background: rgba(255,255,255,0.08); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.15); }
.service-card { transition: all 0.5s cubic-bezier(0.4,0,0.2,1); }
.service-card:hover { transform: translateY(-12px); box-shadow: 0 30px 60px rgba(0,0,0,0.12); }
.card-icon-wrap { transition: all 0.5s cubic-bezier(0.4,0,0.2,1); }
.service-card:hover .card-icon-wrap { transform: scale(1.1) rotate(5deg); }
.industry-card { transition: all 0.4s cubic-bezier(0.4,0,0.2,1); overflow: hidden; }
.industry-card:hover { transform: translateY(-8px) scale(1.02); }
.industry-card:hover .industry-img { transform: scale(1.1); }
.industry-img { transition: transform 0.6s ease; }
.coverage-route { stroke-dasharray: 8 12; animation: routeFlow 6s linear infinite; }
.coverage-route.route-slow { animation-duration: 8s; }
.coverage-node { animation: nodeGlow 2.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.coverage-node.node-delay-1 { animation-delay: 0.45s; }
.coverage-node.node-delay-2 { animation-delay: 0.9s; }
.coverage-node.node-delay-3 { animation-delay: 1.35s; }
.coverage-node.node-delay-4 { animation-delay: 1.8s; }
.coverage-scan { animation: coverageScan 5.5s ease-in-out infinite; }
@keyframes routeFlow { to { stroke-dashoffset: -120; } }
@keyframes nodeGlow { 0%,100% { opacity: 0.72; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes coverageScan { 0%,100% { opacity: 0.12; transform: translateY(-18px); } 50% { opacity: 0.34; transform: translateY(18px); } }

.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 9999; animation: waPulse 2s ease-in-out infinite; }
@keyframes waPulse { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.05); } }
.hablemos-btn { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 99999; writing-mode: vertical-rl; text-orientation: mixed; background: linear-gradient(135deg, #237131, #2d8f3e); color: white; padding: 24px 12px; font-weight: 700; font-size: 14px; letter-spacing: 2px; border-radius: 12px 0 0 12px; box-shadow: -4px 4px 20px rgba(35,113,49,0.3); transition: all 0.3s ease; cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center; will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.hablemos-btn:hover { background: linear-gradient(135deg, #1a5a26, #237131); box-shadow: -6px 6px 25px rgba(35,113,49,0.4); transform: translateY(-50%) translateX(-3px); }
@media (max-width: 1023px) { .hablemos-btn { padding: 18px 10px; font-size: 13px; letter-spacing: 1.5px; right: 0 !important; top: 50% !important; transform: translateY(-50%) !important; display: flex !important; visibility: visible !important; opacity: 1 !important; } }
.gradient-text { background: linear-gradient(135deg, #237131, #094372); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.shimmer { position: relative; overflow: hidden; }
.shimmer::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: shimmerAnim 3s infinite; }
@keyframes shimmerAnim { 0% { left: -100%; } 100% { left: 100%; } }
.cta-pulse { animation: ctaP 2s ease-in-out infinite; }
@keyframes ctaP { 0%,100% { box-shadow: 0 0 0 0 rgba(35,113,49,0.4); } 50% { box-shadow: 0 0 0 15px rgba(35,113,49,0); } }
.cta-pulse-white { animation: ctaPWhite 2s ease-in-out -1.1s infinite; }
@keyframes ctaPWhite { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.25); } 50% { box-shadow: 0 0 0 15px rgba(255,255,255,0); } }
.marquee-track { display: flex; animation: marquee 30s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.admin-panel { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,22,40,0.95); z-index: 20000; overflow-y: auto; }
.admin-panel.active { display: block; }

/* Login Screen */
.login-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,22,40,0.98); backdrop-filter: blur(30px); z-index: 25000; }
.login-overlay.active { display: flex; }

.section-divider { width: 80px; height: 4px; background: linear-gradient(90deg, #237131, #094372); border-radius: 2px; }
.tooltip-wrap { position: relative; }
.tooltip-tip { visibility: hidden; opacity: 0; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(10px); background: #0a1628; color: white; padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; white-space: nowrap; transition: all 0.3s ease; }
.tooltip-wrap:hover .tooltip-tip { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(-5px); }
.form-input { transition: all 0.3s ease; border: 2px solid #e2e8f0; }
.form-input:focus { border-color: #237131; box-shadow: 0 0 0 4px rgba(35,113,49,0.1); outline: none; }
.badge-bounce { animation: badgeB 3s ease-in-out infinite; }
@keyframes badgeB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #237131; border-radius: 4px; }
@media (max-width: 1023px) {
    .desktop-nav { display: none !important; }
    section { scroll-margin-top: 76px; }
    .navbar { padding: 0.5rem 0; min-height: 98px; overflow: visible; }
    .navbar.scrolled { padding: 0.35rem 0; min-height: 72px; overflow: visible; }
    .navbar-inner {
        position: relative;
        display: flex;
        justify-content: flex-start;
        padding-right: 120px;
    }
    .navbar-brand { min-width: 0; max-width: calc(100vw - 104px); overflow: visible; }
    .nav-mark { width: 24px; height: 24px; flex-shrink: 0; }
    .nav-logo-text { max-width: 190px; height: 82px !important; object-fit: contain; flex-shrink: 1; }
    .navbar.scrolled .nav-logo-text { height: 58px !important; }
    .hamburger { 
        display: flex; 
        position: absolute; 
        right: 16px; 
        top: 50%; 
        transform: translateY(-50%); 
        overflow: visible; 
    }
    .ham-line { width: 26px; flex-shrink: 0; }
    .touch-ripple {
        position: fixed;
        width: 18px;
        height: 18px;
        border-radius: 9999px;
        pointer-events: none;
        z-index: 99997;
        background: rgba(35,113,49,0.28);
        border: 1px solid rgba(253,254,254,0.35);
        transform: translate(-50%, -50%) scale(1);
        animation: touchRipple 0.62s ease-out forwards;
    }
    @keyframes touchRipple {
        0% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
        100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
    }
    .mobile-stats-bar .mobile-stat {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
        transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.4,0,0.2,1), box-shadow 0.55s ease;
        border-radius: 0.75rem;
    }
    .mobile-stats-bar.stats-active .mobile-stat {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 0 18px rgba(35,113,49,0.12);
    }
    .mobile-stats-bar.stats-active .mobile-stat:nth-child(1) { transition-delay: 0.05s; }
    .mobile-stats-bar.stats-active .mobile-stat:nth-child(2) { transition-delay: 0.14s; }
    .mobile-stats-bar.stats-active .mobile-stat:nth-child(3) { transition-delay: 0.23s; }
    .mobile-stats-bar.stats-active .mobile-stat:nth-child(4) { transition-delay: 0.32s; }
}
.promo-admin-card { transition: all 0.3s ease; }
.promo-admin-card:hover { transform: translateX(8px); }

/* ==================== HABLEMOS WIDGET POSITIONING ==================== */
/* Ocultar launcher nativo del widget */
chat-widget [class*="launcher"],
chat-widget [class*="bubble"],
iframe[src*="widgets.leadconnectorhq.com"][style*="height:60"] {
    display: none !important;
}


@keyframes hablemosSlideIn {
    from { opacity: 0; transform: translateY(-50%) translateX(20px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}
/* Mobile adjustments for floating button and content spacing */
@media (max-width: 1023px) {
    body {
        padding-bottom: 120px; /* Espacio suficiente para evitar solapamiento con el widget */
    }
    .hablemos-btn {
        transform: translateY(-50%) scale(0.8); /* Reducir tamaño del botón */
    }
    .hablemos-btn:hover {
        transform: translateY(-3px) scale(0.8); /* Mantener scale en hover */
    }

}

.about-container {
    aspect-ratio: 4/3;
}
@media (max-width: 1023px) {
    .about-container {
        aspect-ratio: auto;
        min-height: 300px;
    }
}
#hablemosBtn svg {
    fill: #4ade80 !important;
    stroke: none !important;
    filter: drop-shadow(0 0 6px rgba(74,222,128,0.7)) drop-shadow(0 0 12px rgba(35,113,49,0.5));
}
