/* ==========================================================
   Nexus BioSystem® - Premium Luminous Standalone CSS
   ========================================================== */

:root {
    --bg-main: #0b1329;
    --bg-surface: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.75);
    --bg-card-hover: rgba(51, 65, 85, 0.85);
    --border-card: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(56, 189, 248, 0.4);
    
    --cyan-primary: #0284c7;
    --cyan-light: #38bdf8;
    --emerald-primary: #10b981;
    --emerald-light: #34d399;
    --purple-primary: #8b5cf6;
    --purple-light: #c084fc;
    --amber-light: #fbbf24;

    --text-main: #f8fafc;
    --text-body: #e2e8f0;
    --text-muted: #94a3b8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main) !important;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(2, 132, 199, 0.25), transparent),
        radial-gradient(ellipse 60% 40% at 85% 60%, rgba(16, 185, 129, 0.12), transparent),
        radial-gradient(ellipse 50% 30% at 15% 80%, rgba(139, 92, 246, 0.15), transparent);
    background-attachment: fixed;
    color: var(--text-main) !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Utility Classes */
svg {
    max-width: 24px !important;
    max-height: 24px !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

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

/* Logos */
.logo-img-nav {
    height: 62px !important;
    max-height: 64px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.logo-img-footer {
    height: 54px !important;
    max-height: 58px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.logo-img-fuente-viva-footer {
    height: 54px !important;
    max-height: 58px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Navbar */
header.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 19, 41, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-card);
    height: 92px;
    transition: all 0.3s ease;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--cyan-light);
    transform: translateY(-1px);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--cyan-primary) 0%, var(--emerald-primary) 100%);
    color: #04101e !important;
    font-weight: 800;
    padding: 0.85rem 1.85rem;
    border-radius: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.45);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.55);
    opacity: 0.98;
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-main) !important;
    font-weight: 700;
    padding: 0.85rem 1.85rem;
    border-radius: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.95);
    border-color: var(--cyan-light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding-top: 170px;
    padding-bottom: 90px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .nav-links {
        display: none;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.2rem;
    border-radius: 9999px;
    background: rgba(2, 132, 199, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--cyan-light);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.12;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.3rem;
    }
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2.2rem;
    max-width: 630px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

/* KPI Metrics Strip */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 1.2rem;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.kpi-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
}

.kpi-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.kpi-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Features & Modules Section */
.section-padding {
    padding: 5.5rem 0;
}

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

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    color: #ffffff;
    margin-top: 0.6rem;
    letter-spacing: -0.01em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.8rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.8rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 1.5rem;
    padding: 2.2rem;
    backdrop-filter: blur(14px);
    transition: all 0.35s ease;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 20px 45px -10px rgba(2, 132, 199, 0.25);
    background: var(--bg-card-hover);
}

.card-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 1.2rem;
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--cyan-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.card-desc {
    font-size: 0.98rem;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.card-list {
    list-style: none;
    margin-top: 0.8rem;
}

.card-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-list li::before {
    content: "✓";
    color: var(--emerald-light);
    font-weight: 900;
}

/* Showcase Box */
.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 1.8rem;
    padding: 1.2rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
}

.showcase-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1.3rem;
    display: block;
}

.widget-box {
    background: #081122;
    border: 1px solid #1e293b;
    border-radius: 1.2rem;
    padding: 1.2rem;
    margin-top: 1.2rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 1.5rem;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table th {
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td.feature {
    font-weight: 700;
    color: var(--text-main);
}

.comparison-table td.traditional {
    color: #f87171;
    font-size: 0.95rem;
}

.comparison-table td.nexus {
    color: var(--emerald-light);
    font-size: 0.95rem;
    font-weight: 700;
}

/* Form Section */
.form-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 2rem;
    padding: 3rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}

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

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background: #081122;
    border: 1px solid #334155;
    border-radius: 0.85rem;
    padding: 0.95rem 1.2rem;
    color: #ffffff;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-input:focus {
    border-color: var(--cyan-light);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

/* Technical Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.spec-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    padding: 1.4rem;
}

.spec-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cyan-light);
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.spec-val {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 700;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-card);
    padding: 3rem 0;
    text-align: center;
    background: rgba(11, 19, 41, 0.95);
    margin-top: 4rem;
}

.footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .footer-flex {
        flex-direction: column;
        text-align: center;
    }
}
