:root {
    --bg-color: #050510;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary-accent: #2F54EB;
    /* Royal Blue */
    --secondary-accent: #00F0FF;
    /* Bright Cyan */
    --text-main: #ffffff;
    --text-muted: #8c8c9a;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --glass-blur: blur(20px);
}

/* Dynamic fixed offsets (updated by JS) */
:root {
    --top-offset: 0px;
    /* no ticker */
    --header-height: 80px;
    /* computed */
    --mainmenu-height: 0px;
    /* computed / responsive */
    --submenu-height: 52px;
    /* approx */
}

/* Hamburger (mobile) */
.hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
.brand {
    font-family: var(--font-display);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--secondary-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-glow {
    background: linear-gradient(90deg, var(--primary-accent), #1a3cbede);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(47, 84, 235, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(47, 84, 235, 0.8);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--primary-accent);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-lang:hover {
    background: var(--primary-accent);
    box-shadow: 0 0 10px var(--primary-accent);
}

/* Header */
header {
    position: fixed;
    top: var(--top-offset);
    width: 100%;
    z-index: 1060;
    padding: 20px 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--white);
}

/* =========================================================
   Chip-style main navigation (match VOIP/SMS/VMS/CloudPBX)
   ========================================================= */

/* allow wrapping and tighter spacing for chip buttons */
.nav-links.chip-nav {
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* anchors styled like .cat-btn */
.nav-links .nav-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    text-decoration: none;
}

.nav-links .nav-chip:hover,
.nav-links .nav-chip.active {
    background: var(--primary-accent);
    color: white;
    box-shadow: 0 0 15px rgba(47, 84, 235, 0.4);
    border-color: var(--primary-accent);
}

/* mobile tuning */
@media (max-width: 991.98px) {
    .nav-links.chip-nav {
        gap: 10px;
    }

    .nav-links .nav-chip {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* Mobile drawer */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(380px, 86vw);
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--card-border);
    padding: 18px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.mobile-menu.active .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 1.6rem;
    cursor: pointer;
}

.mobile-menu-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-weight: 600;
}

.mobile-link:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.mobile-cta {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: #000;
    border: none;
}

.mobile-lang {
    margin-top: 10px;
}

/* Main Submenu (mobile tabs under header) */
.main-submenu {
    position: fixed;
    top: calc(var(--top-offset) + var(--header-height));
    left: 0;
    width: 100%;
    z-index: 1055;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    display: none;
}

.main-submenu-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-submenu-inner::-webkit-scrollbar {
    display: none;
}

.main-tab-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.78rem;
}

.main-tab-btn:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
}

.main-tab-btn.active {
    background: var(--primary-accent);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(0, 246, 255, 0.25);
}

/* Solutions Submenu (fixed under header) */
.solutions-submenu {
    position: fixed;
    top: calc(var(--top-offset) + var(--header-height) + var(--mainmenu-height));
    left: 0;
    width: 100%;
    z-index: 1050;
    background: rgba(5, 5, 16, 0.75);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.solutions-submenu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.solutions-submenu-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.solutions-submenu-inner::-webkit-scrollbar {
    display: none;
}

.sub-cat-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.78rem;
}

.sub-cat-btn:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
}

.sub-cat-btn.active {
    background: var(--primary-accent);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(0, 246, 255, 0.25);
}

/* Ensure anchor navigation doesn't hide content behind fixed bars */
section,
.trusted-strip,
footer {
    scroll-margin-top: calc(var(--top-offset) + var(--header-height) + var(--mainmenu-height) + var(--submenu-height) + 20px);
}

/* Main Mobile Submenu (Inicio / Soluciones / Red Global / Novedades) */
.main-submenu {
    display: none;
    position: fixed;
    top: calc(var(--top-offset) + var(--header-height));
    left: 0;
    width: 100%;
    z-index: 1055;
    background: rgba(5, 5, 16, 0.72);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
}

.main-submenu-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-submenu-inner::-webkit-scrollbar {
    display: none;
}

.main-tab-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.78rem;
}

.main-tab-btn:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
}

.main-tab-btn.active {
    background: var(--primary-accent);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(0, 246, 255, 0.25);
}

/* Mobile drawer */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(380px, 88vw);
    background: rgba(5, 5, 16, 0.92);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--card-border);
    transform: translateX(110%);
    transition: transform 0.2s ease;
    padding: 18px;
}

.mobile-menu.active .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--card-border);
}

.mobile-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-body {
    padding-top: 16px;
    display: grid;
    gap: 12px;
}

.mobile-link {
    color: var(--white);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
}

.mobile-link:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.mobile-cta {
    background: var(--primary-accent);
    color: #000;
    border-color: transparent;
}

.mobile-lang {
    padding-top: 8px;
}

/* Contact simple layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
}

.contact-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.contact-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--text-muted);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(120px + var(--mainmenu-height));
    /* Increased padding */
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 300;
}

/* Stats/Trusted By Strip */
.trusted-strip {
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    margin-top: -80px;
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--primary-accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
    border-color: var(--secondary-accent);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: var(--secondary-accent);
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: var(--secondary-accent);
}

/* Services / Features - Bento Grid */
#services {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* Dynamic Services */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cat-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--primary-accent);
    color: white;
    box-shadow: 0 0 15px rgba(47, 84, 235, 0.4);
    border-color: var(--primary-accent);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.solution-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.solution-card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-banner {
    height: 120px;
    width: 100%;
    position: relative;
}

.card-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--card-bg), transparent);
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--card-border);
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}


/* Language Float (fixed bottom-left) */
.lang-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    min-width: 64px;
    height: 60px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 2000;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.lang-float:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 575.98px) {
    .lang-float {
        bottom: 18px;
        left: 18px;
        height: 56px;
    }

    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 56px;
        height: 56px;
    }
}

/* Futuristic Enhancements */
body {
    background: radial-gradient(circle at 50% 50%, #1a237e 0%, #000000 100%);
    background-size: 200% 200%;
    animation: bg-shift 15s ease infinite;
}

@keyframes bg-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020c1b;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-accent);
}

/* 3D Tilt & Glow Cards */
.solution-card,
.bento-card {
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.solution-card::after,
.bento-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: linear-gradient(45deg, transparent 40%, var(--primary-accent), var(--secondary-accent), transparent 60%);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover::after,
.bento-card:hover::after {
    opacity: 0.6;
}


/* Hero Glitch Text Effect (Simple CSS version) */
h1 {
    position: relative;
    text-shadow: 2px 2px 0px rgba(0, 240, 255, 0.2);
}

/* Floating Animation for Icons */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.card-icon {
    animation: float 4s ease-in-out infinite;
}

/* WhatsApp Float - Neon Pulse */
.whatsapp-float {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Canvas Background */
#particle-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Partners Marquee */
#partners {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-wrapper {
    display: inline-block;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 40px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.marquee-content span:hover {
    opacity: 1;
    color: var(--white);
    text-shadow: 0 0 10px var(--primary-accent);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: rgba(10, 25, 47, 0.95);
    border: 1px solid var(--accent-color);
    margin: 5% auto;
    padding: 30px;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px rgba(100, 255, 218, 0.15);
    animation: slideUp 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--white);
}

.badge {
    background: var(--primary-accent);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.modal-left p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 20px;
}

.modal-right h3 {
    color: var(--secondary-accent);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

#modal-features-list {
    list-style: none;
}

#modal-features-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--white);
}

#modal-features-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-accent);
}

.btn-glow.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Banner Interaction */
.card-banner {
    position: relative;
    overflow: hidden;
    background-size: 100% !important;
    /* Start normal size */
    background-position: center !important;
    transition: background-size 0.5s ease-in-out !important;
    /* Smooth zoom transition */
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 84, 235, 0.4);
    /* Less opaque overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover .card-banner {
    background-size: 110% !important;
    /* Zoom in */
}

.solution-card:hover .banner-overlay {
    opacity: 1;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 22px;
}

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.contact-list {
    list-style: none;
    margin-top: 10px;
}

.contact-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.contact-list li:last-child {
    border-bottom: none;
}

/* Alliances Section */
#alliances {
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.alliances-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.alliance-logo {
    max-height: 60px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.alliance-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Footer Certifications Strip */
.footer-certifications-strip {
    background: #ffffff;
    padding: 30px 0;
    border-top: 1px solid var(--primary-accent);
}

.cert-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cert-logo {
    max-height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.cert-logo:hover {
    opacity: 1;
}

/* News Modal Specifics */
.news-modal-content {
    max-width: 900px;
    background: #101425;
    /* Dark blue background */
    border: 1px solid var(--primary-accent);
    max-height: 85vh;
    overflow: hidden;
}

.news-modal-body {
    overflow: auto;
    max-height: calc(85vh - 120px);
    padding-right: 6px;
    /* evita salto por scrollbar */
}

.news-modal-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.news-text-content {
    color: #e0e0e0;
    /* Lighter text for better readability */
    line-height: 1.8;
    font-size: 1.05rem;
}

.news-text-content p {
    margin-bottom: 15px;
}


/* News List (modal) */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 2px 8px 2px;
}

.news-list-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .25);
    cursor: pointer;
    outline: none;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.news-list-item:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .05);
}

.news-list-item.active {
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .07);
}

.news-list-meta {
    min-width: 0;
}

.news-list-date {
    font-size: .86rem;
    opacity: .8;
    margin-bottom: 4px;
}

.news-list-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.news-list-desc {
    font-size: .95rem;
    opacity: .86;
    line-height: 1.4;
}

.news-list-cta {
    white-space: nowrap;
    align-self: flex-start;
    padding: .38rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    font-weight: 700;
    font-size: .85rem;
}

#news-modal {
    z-index: 4000;
    /* Ensure it's above everything */
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-body-grid {
        grid-template-columns: 1fr;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 900px) {
    h1 {
        font-size: 3.5rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger-btn {
        display: inline-flex;
    }

    .main-submenu {
        display: block;
    }

    :root {
        --mainmenu-height: 54px;
    }

    .grid-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-card.large {
        grid-column: span 1;
    }

    .stats-grid {
        flex-direction: column;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Bottom Fixed Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--card-border);
    padding: 12px 0;
}

.bottom-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.bottom-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bottom-bar .btn-lang,
.bottom-bar .btn-social {
    background: transparent;
    border: 1px solid var(--primary-accent);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-bar .btn-social {
    padding: 10px 16px;
}

.bottom-bar .btn-lang:hover,
.bottom-bar .btn-social:hover {
    background: var(--primary-accent);
    box-shadow: 0 0 15px rgba(47, 84, 235, 0.5);
    transform: translateY(-2px);
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp svg {
    flex-shrink: 0;
}

/* Social Media Modal */
.social-modal-content {
    max-width: 500px;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: var(--glass-blur);
}

.social-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--card-border);
}

.social-modal-header h2 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-main);
}

.social-modal-body {
    padding: 30px;
}

.social-links-grid {
    display: grid;
    gap: 15px;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.social-link-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-accent);
    transform: translateX(5px);
}

.social-link-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.social-icon.facebook {
    background: linear-gradient(135deg, #1877F2, #0C63D4);
}

.social-icon.tiktok {
    background: linear-gradient(135deg, #000000, #EE1D52);
}

.social-icon.linkedin {
    background: linear-gradient(135deg, #0077B5, #005582);
}

.social-icon.youtube {
    background: linear-gradient(135deg, #FF0000, #CC0000);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.social-link-text {
    flex: 1;
}

.social-link-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.social-link-handle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive adjustments for bottom bar */
@media (max-width: 768px) {
    .bottom-bar-content {
        padding: 0 16px;
        gap: 12px;
    }

    .bottom-bar-left {
        gap: 8px;
    }

    .bottom-bar .btn-lang,
    .bottom-bar .btn-social {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .bottom-bar .btn-social {
        padding: 8px 12px;
    }

    .btn-whatsapp {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .btn-whatsapp span {
        display: none;
    }

    .btn-whatsapp svg {
        width: 24px;
        height: 24px;
    }

    .social-modal-content {
        max-width: 90%;
    }

    .social-modal-header,
    .social-modal-body {
        padding: 20px;
    }
}
/* Company Section Styles */
.company-mission {
    max-width: 900px;
    margin: 50px auto;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
}

.company-mission h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-main);
    background: linear-gradient(135deg, #fff 0%, var(--secondary-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.company-mission p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.team-section {
    margin-top: 80px;
}

.team-section h3 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-main);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-member:hover::before {
    transform: scaleX(1);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.2);
    border-color: var(--secondary-accent);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.team-avatar svg {
    width: 60px;
    height: 60px;
    color: white;
}

.team-member h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.team-role {
    font-size: 0.95rem;
    color: var(--secondary-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.team-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Responsive adjustments for company section */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .company-mission {
        padding: 30px 20px;
    }

    .company-mission h3 {
        font-size: 1.5rem;
    }

    .company-mission p {
        font-size: 1rem;
    }

    .team-section h3 {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-member {
        padding: 30px 20px;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
    }

    .team-avatar svg {
        width: 50px;
        height: 50px;
    }
}
