/* ==========================================================================
   METRICBIZ CORPORATE LANDING STYLES (www.metricbiz.org)
   Glassmorphism, High-End Dark Theme & Corporate Emerald/Teal Aesthetics
   ========================================================================== */

:root {
    --bg-dark: #090d16;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(13, 148, 136, 0.35);
    
    --primary: #0d9488;
    --primary-light: #2dd4bf;
    --primary-glow: rgba(13, 148, 136, 0.25);
    
    --secondary: #0ea5e9;
    --secondary-light: #38bdf8;
    
    --accent: #10b981;
    --accent-amber: #f59e0b;
    --accent-purple: #8b5cf6;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-secondary: #cbd5e1;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --header-height: 80px;
    --container-max: 1240px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 15%, rgba(13, 148, 136, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 40%, rgba(14, 165, 233, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(9, 13, 22, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(9, 13, 22, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 70px;
}

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

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

.brand-logo img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
}

.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.4rem;
}

.brand-version-pill {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(13, 148, 136, 0.18);
    border: 1px solid rgba(13, 148, 136, 0.35);
    padding: 2px 6px;
    border-radius: 4px;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.25s ease;
}

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

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

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

.btn-login-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
    color: #fff;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 3.5rem);
    padding-bottom: 5rem;
    position: relative;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 9999px;
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.2);
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 980px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.15;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 820px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 0.85rem 1.85rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.5);
    color: #fff;
}

.btn-hero-secondary {
    background: rgba(30, 41, 59, 0.7);
    color: #f8fafc;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-hero-secondary:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: #fff;
}

/* ==========================================================================
   PRODUCT SHOWCASE PREVIEW IN HERO
   ========================================================================== */
.showcase-wrapper {
    position: relative;
    max-width: 1060px;
    margin: 0 auto;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(13, 148, 136, 0.2);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

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

.showcase-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.showcase-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.showcase-tab-btn.active {
    background: rgba(13, 148, 136, 0.2);
    color: var(--primary-light);
    border-color: rgba(13, 148, 136, 0.4);
}

.showcase-display {
    position: relative;
    padding: 1rem;
    background: #090d16;
}

.showcase-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   STATS COUNTER STRIP
   ========================================================================== */
.stats-strip {
    padding: 3rem 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #2dd4bf, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
    padding: 6rem 0;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   FEATURES & 5 MODULES GRID
   ========================================================================== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.25rem 1.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.module-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.module-card:hover::before {
    opacity: 1;
}

.module-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.module-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.module-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.module-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.module-features-list li {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-features-list li::before {
    content: '✔';
    color: var(--primary-light);
    font-weight: 800;
}

/* ==========================================================================
   WHO IS METRICBIZ FOR (VALUE AUDIENCE)
   ========================================================================== */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.audience-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
}

.audience-icon-box {
    font-size: 2.25rem;
    flex-shrink: 0;
}

.audience-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.audience-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   TEAM & LEADERSHIP (COLABORADORES)
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 950px;
    margin: 0 auto;
}

.team-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(14px);
    transition: all 0.3s;
}

.team-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(13, 148, 136, 0.4);
}

.team-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff;
}

.team-role {
    font-size: 0.88rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-bio {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.team-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    width: 100%;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
}

.team-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.team-contact-item a {
    color: var(--secondary-light);
}
.team-contact-item a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 3rem;
    align-items: start;
}

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

.contact-item-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

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

.contact-text h5 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

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

.contact-form-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.3);
}

.btn-submit-contact {
    width: 100%;
    background: linear-gradient(135deg, #0d9488, #0ea5e9);
    color: #fff;
    padding: 0.85rem;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    padding: 4rem 0 2rem 0;
    background: #06090f;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.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.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-links a {
    font-size: 0.84rem;
    color: var(--text-muted);
}
.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.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}

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

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

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

.modal-auth-box {
    width: 100%;
    max-width: 440px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-glow);
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(13, 148, 136, 0.25);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

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

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.modal-close-btn:hover {
    color: #fff;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modules-grid {
        grid-template-columns: 1fr;
    }
    .audience-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
