/* ========================================
   CONVERXUS PRO 2026 — PROFESSIONAL LIGHT THEME
   ======================================== */

:root {
    /* Base Colors */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    /* Slate 50 */
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    /* Slate 900 for footer/contrast */

    /* Text Colors */
    --text: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-inv: #ffffff;

    /* Brand Colors (Converxus Teal & Sky Blue) */
    --primary: #008B99;
    /* Professional Teal representing Converxus */
    --secondary: #0ea5e9;
    /* Sky Blue */
    --accent: #008B99;

    /* Gradients & Utilities */
    --gradient: linear-gradient(135deg, #008B99 0%, #0ea5e9 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 139, 153, 0.05), rgba(14, 165, 233, 0.05));
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);

    --radius: 12px;
    --radius-sm: 8px;
    --nav-h: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-heading: 'JetBrains Mono', monospace;
    /* Keeping technical feel */
    --font-body: 'Inter', sans-serif;
}

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

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ———— LOADER ———— */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo img {
    width: 140px;
    margin-bottom: 24px;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.loader-progress {
    width: 0;
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    animation: load 1.8s ease-in-out forwards;
}

@keyframes load {
    to {
        width: 100%;
    }
}

/* ———— BUTTONS ———— */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 139, 153, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 139, 153, 0.3);
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text);
    background: white;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-alt);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    font-weight: 700;
}

.btn-whatsapp:hover {
    background: #1fae53;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

/* ———— NAVBAR ———— */
.navbar {
    height: var(--nav-h);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

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

.nav-logo-img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links li a {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.nav-links li a:hover {
    color: var(--primary);
    background: var(--bg-alt);
}

.btn-nav {
    background: var(--gradient) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 100px !important;
    /* Pill shape for CTA */
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 6px 0;
    transition: var(--transition);
}

/* ———— HERO ———— */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-h);
    background: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 139, 153, 0.05) 0%, transparent 40%);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    max-width: 1400px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    margin-bottom: 32px;
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: clamp(40px, 5vw, 68px);
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #0f172a;
}

.hero-text {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 48px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.stat-symbol {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--secondary);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ———— TECH MARQUEE ———— */
.tech-marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    overflow: hidden;
    background: var(--bg-alt);
}

.marquee-track {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-items {
    display: inline-flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
}

.marquee-items span {
    font-family: var(--font-heading);
    font-size: 16px;
    color: #94a3b8;
    letter-spacing: 1px;
    font-weight: 600;
}

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

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

/* ———— SECTION HEADERS ———— */
.section {
    padding: 120px 0;
}

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

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}

/* ———— ABOUT / TEAM ———— */
.about-section {
    background: white;
}

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

.team-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.team-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
}

.card-tag {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.team-card h3 {
    font-size: 28px;
    margin-bottom: 4px;
    color: var(--text);
}

.card-role {
    color: var(--secondary);
    font-size: 15px;
    margin-bottom: 24px;
    font-weight: 500;
}

.card-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-muted);
}

.highlight i {
    color: var(--primary);
    font-size: 14px;
}

.card-bio {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.team-quote {
    text-align: center;
    margin-top: 80px;
    padding: 60px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    position: relative;
}

.team-quote i {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 24px;
    opacity: 0.2;
}

.team-quote p {
    font-size: 24px;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text);
    font-weight: 500;
}

/* ———— SERVICES ———— */
.services-section {
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card.featured {
    border: 2px solid var(--primary);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 100px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 700;
    color: #f1f5f9;
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 0;
}

.service-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-card p {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
}

.service-features {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text);
}

.service-features li i {
    color: var(--secondary);
    font-size: 14px;
}

.service-result {
    margin-top: 24px;
    padding: 20px;
    background: #f0f9ff;
    border-left: 4px solid var(--secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 14px;
    color: #0369a1;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ———— PORTFOLIO ———— */
.portfolio-section {
    background: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 300px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.portfolio-item.large {
    grid-column: span 2;
    min-height: 300px;
    background: linear-gradient(to bottom right, #f8fafc, #e2e8f0);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.portfolio-overlay {
    padding: 40px;
    background: white;
    border-top: 1px solid var(--border);
}

.portfolio-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
    background: rgba(0, 139, 153, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    width: fit-content;
    font-weight: 700;
}

.portfolio-item h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.portfolio-item p {
    font-size: 15px;
    color: var(--text-muted);
}

/* ———— DIAGNOSTICO 360 ———— */
.diag-section {
    background: white;
}

.diag-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
    background: #0f172a;
    /* Keeping dark for contrast here as a "Premium Section" */
    color: white;
    border-radius: 24px;
    padding: 80px;
    position: relative;
    overflow: hidden;
}

.diag-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 70%);
}

.diag-content h2 {
    color: white;
    margin-bottom: 24px;
}

.diag-content p {
    color: #cbd5e1;
    font-size: 18px;
    margin-bottom: 32px;
}

.diag-steps li {
    color: #e2e8f0;
}

.step-num {
    background: white;
    color: #0f172a;
}

.diag-center {
    background: #1e293b;
    border-color: #334155;
}

.btn-primary.btn-lg {
    background: white;
    color: #008B99;
}

.btn-primary.btn-lg:hover {
    background: #f1f5f9;
}

/* ———— TESTIMONIALS ———— */
.testimonials-section {
    background: var(--bg-alt);
}

.testimonials-wall {
    overflow: hidden;
    padding: 0 0 40px;
}

.test-row {
    margin-bottom: 24px;
    overflow: hidden;
}

.test-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollLeft 40s linear infinite;
}

.test-track.reverse {
    animation: scrollRight 45s linear infinite;
}

.test-track:hover {
    animation-play-state: paused;
}

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

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

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.test-card {
    width: 480px;
    flex-shrink: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.test-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.test-header img {
    border-color: var(--border);
}

.test-header h4 {
    font-size: 18px;
    color: var(--text);
}

.test-header span {
    color: var(--primary);
    font-weight: 500;
}

.test-card p {
    font-size: 15px;
    color: var(--text-muted);
}

.test-stars {
    color: #f59e0b;
}

.test-tag {
    background: #f1f5f9;
    color: var(--text-muted);
}

/* ———— CATALOGS / PDF ———— */
.catalogs-section {
    background: white;
}

.catalog-tab {
    background: white;
    border-color: var(--border);
    color: var(--text-muted);
}

.catalog-tab:hover,
.catalog-tab.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 139, 153, 0.05);
}

.pdf-viewer-container {
    text-align: center;
}

.pdf-viewer {
    width: 100%;
    max-width: 900px;
    height: 600px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f1f5f9;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-actions {
    margin-top: 24px;
    text-align: center;
}

/* ———— GUARANTEE ———— */
.guarantee-section {
    padding-bottom: 120px;
}

.guarantee-card {
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.g-item {
    background: #f8fafc;
    border-color: var(--border);
}

.g-item:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow);
}

/* ———— CONTACT ———— */
.contact-section {
    background: var(--bg-alt);
}

.contact-card {
    background: white;
    box-shadow: var(--shadow);
}

.contact-card:hover {
    box-shadow: var(--shadow-hover);
}

.btn-social {
    background: white;
    color: var(--text);
    border-color: var(--border);
}

.btn-social:hover {
    background: #f8fafc;
    border-color: var(--text-muted);
}

/* ———— FOOTER ———— */
.footer {
    background: #0f172a;
    /* Dark Footer for anchor */
    color: #e2e8f0;
    padding: 80px 0 40px;
    border-top: none;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-color: #1e293b;
}

.footer-bottom p {
    color: #64748b;
}

.footer-socials a {
    color: #94a3b8;
}

.footer-socials a:hover {
    color: white;
}

/* ———— RESPONSIVE ———— */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio-item.large {
        grid-column: span 2;
    }

    .diag-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .diag-card::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        background: white;
        border-bottom: 1px solid var(--border);
    }

    .hero h1 {
        font-size: 36px;
    }

    .team-grid,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item.large {
        grid-column: span 1;
    }

    .test-card {
        width: 340px;
    }
}