/* ==========================================================================
   METRICBIZ CORPORATE LANDING STYLES (www.metricbiz.org)
   High-End Glassmorphism, Premium Dark Mode & Fluid Responsive Architecture
   Versión Oficial: v3.0.1
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette (Tailored Dark & Vibrant Corporate Accents) */
    --bg-dark: #070a12;
    --bg-dark-alt: #0a0f1d;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-hover: rgba(30, 41, 59, 0.88);
    --bg-input: rgba(15, 23, 42, 0.85);
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(45, 212, 191, 0.35);
    --border-glow: rgba(13, 148, 136, 0.4);
    
    --primary: #0d9488;
    --primary-light: #2dd4bf;
    --primary-glow: rgba(13, 148, 136, 0.35);
    
    --secondary: #0ea5e9;
    --secondary-light: #38bdf8;
    --secondary-glow: rgba(14, 165, 233, 0.35);
    
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Layout Dimensions */
    --header-height: 80px;
    --header-height-scrolled: 68px;
    --container-max: 1240px;
    --container-padding: clamp(1rem, 4vw, 2rem);
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(13, 148, 136, 0.1);
    --shadow-card-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(14, 165, 233, 0.25);
    --shadow-glow: 0 0 25px rgba(13, 148, 136, 0.4);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body.drawer-open {
    overflow: hidden;
}

/* Ambient Glowing Background Orbs */
.ambient-glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: floatGlow 18s ease-in-out infinite alternate;
}

.orb-1 {
    width: clamp(280px, 40vw, 600px);
    height: clamp(280px, 40vw, 600px);
    background: radial-gradient(circle, rgba(13, 148, 136, 0.22), transparent 70%);
    top: 5%;
    left: -10%;
}

.orb-2 {
    width: clamp(300px, 45vw, 650px);
    height: clamp(300px, 45vw, 650px);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
    top: 40%;
    right: -15%;
    animation-delay: -6s;
}

.orb-3 {
    width: clamp(250px, 35vw, 550px);
    height: clamp(250px, 35vw, 550px);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    bottom: 5%;
    left: 20%;
    animation-delay: -12s;
}

@keyframes floatGlow {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(30px) scale(1.08); }
    100% { transform: translateY(-20px) scale(0.95); }
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION BAR
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(7, 10, 18, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    height: var(--header-height-scrolled);
    background: rgba(7, 10, 18, 0.94);
    border-bottom: 1px solid rgba(45, 212, 191, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
}

.brand-logo img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
    transition: transform 0.25s ease;
}

.brand-logo:hover img {
    transform: scale(1.05);
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.1;
}

.brand-version-pill {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(13, 148, 136, 0.18);
    border: 1px solid rgba(13, 148, 136, 0.4);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.8rem);
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0.2rem;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-light));
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.btn-login-portal {
    background: linear-gradient(135deg, #0d9488, #0ea5e9);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.62rem 1.35rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-login-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.5);
    color: #fff;
}

/* Animated Hamburger Button */
.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    padding: 10px 8px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(45, 212, 191, 0.4);
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active .bar-1 {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .bar-2 {
    opacity: 0;
}

.mobile-toggle.active .bar-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Overlay & Panel */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 360px);
    height: 100vh;
    background: rgba(10, 15, 29, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(45, 212, 191, 0.25);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

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

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}

.drawer-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem 0;
    flex: 1;
}

.drawer-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.drawer-link:hover, .drawer-link.active {
    background: rgba(45, 212, 191, 0.12);
    color: var(--primary-light);
    border-left: 3px solid var(--primary-light);
}

.drawer-link-doc {
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.08);
}

.drawer-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drawer-footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* --------------------------------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: calc(var(--header-height) + clamp(2rem, 6vw, 4.5rem));
    padding-bottom: clamp(3rem, 7vw, 6rem);
    position: relative;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.25rem;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.18), rgba(14, 165, 233, 0.15));
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 9999px;
    color: var(--primary-light);
    font-size: clamp(0.78rem, 1.8vw, 0.88rem);
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 0 25px rgba(13, 148, 136, 0.25);
    max-width: 95%;
}

.hero-badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.1rem, 5.2vw, 3.85rem);
    font-weight: 800;
    max-width: 960px;
    margin: 0 auto 1.5rem auto;
    letter-spacing: -0.03em;
    line-height: 1.18;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 820px;
    margin: 0 auto clamp(2rem, 4vw, 2.75rem) auto;
    line-height: 1.65;
    font-weight: 400;
}

.hero-subtitle strong {
    color: #ffffff;
    font-weight: 600;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.btn-hero-primary {
    background: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(0.92rem, 2vw, 1.05rem);
    padding: 0.85rem 1.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.6);
    color: #fff;
}

.btn-hero-secondary {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-main);
    font-weight: 600;
    font-size: clamp(0.88rem, 1.8vw, 0.98rem);
    padding: 0.85rem 1.65rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-hero-secondary:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(45, 212, 191, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-hero-doc {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.btn-hero-doc:hover {
    background: rgba(14, 165, 233, 0.22);
    border-color: #38bdf8;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   5. INTERACTIVE PRODUCT SHOWCASE
   -------------------------------------------------------------------------- */
.showcase-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(13, 148, 136, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.showcase-wrapper:hover {
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.9), 0 0 45px rgba(14, 165, 233, 0.25);
}

.showcase-header {
    background: rgba(9, 13, 24, 0.95);
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    gap: 1rem;
    flex-wrap: wrap;
}

.showcase-browser-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.showcase-url {
    margin-left: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-tabs-container {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.showcase-tabs-container::-webkit-scrollbar {
    display: none;
}

.showcase-tabs {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.showcase-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.showcase-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.showcase-tab-btn.active {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.35), rgba(14, 165, 233, 0.35));
    color: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.4);
}

.showcase-display {
    position: relative;
    width: 100%;
    background: #020617;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    object-position: top center;
    transition: opacity 0.25s ease;
    display: block;
}

.showcase-caption-box {
    padding: 1.25rem clamp(1rem, 3vw, 1.75rem);
    background: rgba(10, 15, 28, 0.95);
    border-top: 1px solid var(--border-glass);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.caption-content {
    flex: 1;
    min-width: 260px;
}

.showcase-caption-title {
    color: #38bdf8;
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.showcase-caption-desc {
    color: var(--text-secondary);
    font-size: clamp(0.82rem, 1.6vw, 0.9rem);
    line-height: 1.55;
    margin: 0;
}

.caption-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #34d399;
    white-space: nowrap;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --------------------------------------------------------------------------
   6. STATS STRIP
   -------------------------------------------------------------------------- */
.stats-strip {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    background: rgba(10, 15, 29, 0.6);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
}

.stat-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    border-color: rgba(45, 212, 191, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    background: linear-gradient(135deg, #2dd4bf, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.45rem;
}

.stat-label {
    font-size: clamp(0.78rem, 1.6vw, 0.88rem);
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. SECTIONS & CARDS COMMON STYLES
   -------------------------------------------------------------------------- */
.section {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
    position: relative;
}

.section-alt {
    background: rgba(10, 15, 29, 0.5);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem) auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.35);
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.22;
}

.section-description {
    font-size: clamp(0.92rem, 1.8vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   8. VALUE PROPOSITION (AUDIENCE GRID)
   -------------------------------------------------------------------------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.audience-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    gap: 1.35rem;
    align-items: flex-start;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.audience-card:hover {
    background: rgba(22, 33, 56, 0.85);
    border-color: rgba(45, 212, 191, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.audience-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.2), rgba(14, 165, 233, 0.2));
    border: 1px solid rgba(45, 212, 191, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.audience-content {
    flex: 1;
}

.audience-content h4 {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.audience-content p {
    font-size: clamp(0.85rem, 1.6vw, 0.92rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.9rem;
}

.audience-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   9. FUNCTIONAL MODULES (5 MODULES + SECURITY)
   -------------------------------------------------------------------------- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.module-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    background: rgba(22, 33, 56, 0.9);
    border-color: rgba(45, 212, 191, 0.45);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.module-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

.module-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.module-title {
    font-size: clamp(1.1rem, 2vw, 1.28rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.module-desc {
    font-size: clamp(0.85rem, 1.6vw, 0.9rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.module-features-list {
    list-style: none;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.module-features-list li {
    font-size: 0.84rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.45;
}

.check-icon {
    color: var(--primary-light);
    font-weight: 800;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   10. TEAM & DIRECTORS SECTION
   -------------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 980px;
    margin: 0 auto;
}

.team-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.team-card:hover {
    background: rgba(22, 33, 56, 0.9);
    border-color: rgba(45, 212, 191, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.team-card-top {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1.25rem;
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.team-header-info {
    display: flex;
    flex-direction: column;
}

.team-name {
    font-size: clamp(1.15rem, 2vw, 1.3rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.team-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: 3px;
}

.team-bio {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.team-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.15rem;
}

.team-chip {
    font-size: 0.84rem;
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.25);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.team-chip:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   11. CONTACT & DEMO REQUEST FORM
   -------------------------------------------------------------------------- */
.contact-section {
    background: rgba(7, 10, 18, 0.7);
    position: relative;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: flex-start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.contact-item-box:hover {
    border-color: rgba(45, 212, 191, 0.35);
    background: rgba(22, 33, 56, 0.8);
    transform: translateY(-2px);
}

.contact-icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-text h5 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-text a, .contact-text p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.contact-text a:hover {
    color: var(--primary-light);
}

.policy-notice-card {
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.35);
    border-radius: 14px;
    padding: 1.35rem;
}

.policy-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.policy-header h5 {
    color: #2dd4bf;
    font-size: 0.9rem;
    margin: 0;
}

.policy-text {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0;
}

.contact-form-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.form-header {
    margin-bottom: 1.5rem;
}

.form-card-title {
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.form-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.req {
    color: #ef4444;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.7rem 0.95rem;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.35);
    background: rgba(22, 33, 56, 0.95);
}

.form-control::placeholder {
    color: #64748b;
    font-size: 0.85rem;
}

.btn-submit-contact {
    width: 100%;
    background: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
    margin-top: 0.5rem;
}

.btn-submit-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.55);
}

.btn-submit-contact:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    padding: clamp(3rem, 6vw, 4.5rem) 0 2rem 0;
    background: #04060a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.3fr 1.4fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.85rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a, .footer-links span {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom a {
    color: var(--primary-light);
}

/* --------------------------------------------------------------------------
   13. FLOATING WHATSAPP BUTTON
   -------------------------------------------------------------------------- */
.floating-whatsapp {
    position: fixed;
    bottom: clamp(20px, 4vw, 30px);
    right: clamp(20px, 4vw, 30px);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-icon {
    font-size: 1.85rem;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    white-space: nowrap;
    border: 1px solid rgba(37, 211, 102, 0.4);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* --------------------------------------------------------------------------
   14. LOGIN MODAL (ACCESO AL SISTEMA)
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 1rem;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-auth-box {
    width: 100%;
    max-width: 440px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(13, 148, 136, 0.3);
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-auth-box {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.modal-brand-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-brand-header img {
    border-radius: 12px;
    margin: 0 auto 0.6rem auto;
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.4);
}

.modal-brand-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.modal-brand-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-auth-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-glass);
    padding-top: 0.85rem;
    line-height: 1.45;
}

.modal-auth-footer a {
    color: #38bdf8;
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE MEDIA QUERIES (MOBILE-FIRST BREAKPOINTS)
   -------------------------------------------------------------------------- */

/* Large Desktops & 4K Displays (>= 1441px) */
@media (min-width: 1441px) {
    :root {
        --container-max: 1340px;
    }
}

/* Medium Laptops & Desktops (1025px - 1280px) */
@media (max-width: 1280px) {
    .modules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1.8fr 1fr 1.2fr 1.2fr;
    }
}

/* Tablets & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --header-height-scrolled: 64px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .btn-login-portal .btn-text {
        display: none;
    }
    .btn-login-portal {
        padding: 0.6rem 0.85rem;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .showcase-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .showcase-tabs-container {
        width: 100%;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .brand-tagline {
        display: none;
    }
    
    .showcase-tab-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.65rem;
    }
}

/* Ultra Compact Screens (<= 360px) */
@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .brand-name {
        font-size: 1.15rem;
    }
}
