/* ==========================================================================
   THEFINLAB.CO - GLOBAL STYLES & DESIGN SYSTEM
   ========================================================================== */

/* Design Tokens */
:root {
    --color-bg-light: #F7FAFA;
    --color-bg-dark: #101820;
    --color-muted-grey: #5B6670;
    --color-accent-teal: #00B8B8;
    --color-accent-emerald: #00A878;
    --color-deep-teal: #003C4D;
    --color-accent-lime: #8FD14F;
    --color-red-tint: #ff4d4d;
    --color-orange-tint: #ffa500;
    --color-blue-tint: #007bff;

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 184, 184, 0.2);

    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.5s ease;
}

/* Base Reset & Styling */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Typography & Layout elements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--color-muted-grey);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Helpers */
.text-center { text-align: center; }
.text-teal { color: var(--color-accent-teal) !important; }
.text-green { color: var(--color-accent-emerald) !important; }
.text-lime { color: var(--color-accent-lime) !important; }
.w-full { width: 100%; }

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-teal), var(--color-accent-emerald));
    color: var(--color-bg-dark);
    padding: 0.625rem 2.25rem;
    font-weight: 700;
    font-size: 0.875rem;
    font-family: var(--font-heading);
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 184, 184, 0.25);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 184, 184, 0.4), 0 0 20px rgba(143, 209, 79, 0.15);
}

.btn-cta-primary:active {
    transform: translateY(0);
}

.btn-cta-primary.disabled {
    background: var(--color-muted-grey);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.6;
    color: var(--color-bg-light);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-bg-light);
    border: 2px solid var(--color-accent-teal);
    padding: 0.5rem 2.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-heading);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-cta-secondary:hover {
    background: rgba(0, 184, 184, 0.1);
    box-shadow: var(--shadow-glow);
}

/* Sticky Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(16, 24, 32, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(247, 250, 2FA, 0.05);
    transition: padding var(--transition-fast), background var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    transition: padding var(--transition-fast);
}

/* Shrink header class applied by JS on scroll */
.main-header.scrolled {
    padding: 0;
    background: rgba(16, 24, 32, 0.95);
    box-shadow: var(--shadow-md);
}
.main-header.scrolled .header-container {
    padding: 0.75rem 2rem;
}
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-bg-light);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.logo-capsule {
    background: #F7FAFA;
    padding: 0.35rem 0.85rem;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 46px;
    border: 1px solid rgba(0, 184, 184, 0.25);
}

.logo-img {
    max-height: 31px;
    max-width: 165px;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-capsule-footer {
    background: #ffffff;
    padding: 0.45rem 1rem;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 48px;
}

.logo-img-footer {
    max-height: 32px;
    max-width: 160px;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-accent {
    color: var(--color-accent-teal);
}

.logo-domain {
    color: var(--color-muted-grey);
    font-weight: 400;
    font-size: 1.1rem;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-bg-light);
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--color-accent-teal);
    opacity: 1;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Mobile Nav Styles */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-bg-light);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: radial-gradient(circle at 75% 25%, var(--color-deep-teal) 0%, var(--color-bg-dark) 50%);
    border-bottom: 1px solid rgba(247, 250, 2FA, 0.03);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(16, 24, 32, 0) 60%, var(--color-bg-dark) 100%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tagline-badge {
    align-self: flex-start;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 184, 184, 0.1);
    color: var(--color-accent-teal);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    border: 1px solid rgba(0, 184, 184, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.highlight-gradient {
    background: linear-gradient(135deg, var(--color-accent-teal), var(--color-accent-lime));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #a0aab5;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
}

.hero-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: var(--color-muted-grey);
}

.notice-icon {
    color: var(--color-accent-teal);
    flex-shrink: 0;
}

/* ==========================================================================
   FINANCIAL DASHBOARD CONTAINER (MOCK VISUAL)
   ========================================================================== */
.hero-dashboard-container {
    perspective: 1000px;
    width: 100%;
    max-width: 380px;
    justify-self: center;
    margin: 0 auto;
    overflow: hidden;
}

.dashboard-window {
    background: #14202c;
    border: 1px solid rgba(247, 250, 2FA, 0.08);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 184, 184, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: #0d1620;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(247, 250, 2FA, 0.05);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.control-dot.close { background: #ff5f56; }
.control-dot.minimize { background: #ffbd2e; }
.control-dot.expand { background: #27c93f; }

.window-title {
    font-size: 0.75rem;
    color: var(--color-muted-grey);
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.compliance-badge {
    background: rgba(143, 209, 79, 0.15);
    color: var(--color-accent-lime);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(143, 209, 79, 0.3);
}

/* Simulated Ticker */
.ticker-ribbon {
    background: #090e14;
    border-bottom: 1px solid rgba(247, 250, 2FA, 0.05);
    overflow: hidden;
    padding: 0.5rem 0;
}

.ticker-track {
    display: flex;
    animation: ticker-animation 25s linear infinite;
    width: max-content;
}

.ticker-item {
    font-size: 0.725rem;
    font-family: var(--font-heading);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 3rem;
}

.ticker-item span:first-child {
    color: #8c9ba5;
}

.ticker-item .val {
    color: var(--color-bg-light);
    font-weight: 600;
}

.ticker-item .pct.positive { color: var(--color-accent-emerald); }
.ticker-item .pct.negative { color: var(--color-red-tint); }

@keyframes ticker-animation {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.dashboard-body-simple {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    box-sizing: border-box;
}

.pane-header h3 {
    font-size: 1.1rem;
    color: var(--color-bg-light);
    margin-bottom: 0.25rem;
}

.pane-subtitle {
    font-size: 0.725rem;
    color: var(--color-muted-grey);
    margin-bottom: 0.75rem;
}

.alloc-layout-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.donut-chart {
    width: 120px;
    height: 120px;
}

.chart-legend-simple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    width: 100%;
    justify-content: center;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.legend-label {
    font-size: 0.725rem;
    color: #a0aab5;
    white-space: nowrap;
}

.dashboard-footer-note {
    font-size: 0.65rem;
    color: var(--color-muted-grey);
    line-height: 1.4;
    margin-top: 0.5rem;
    padding: 0 0.5rem;
}

/* Perf Tab Visuals */
.perf-chart-container {
    background: #0d1620;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    border: 1px solid rgba(247, 250, 2FA, 0.03);
}

.line-chart {
    width: 100%;
    height: auto;
    display: block;
}

/* Metrics Tab Visuals */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric-card {
    background: #0d1620;
    border: 1px solid rgba(247, 250, 2FA, 0.04);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    text-align: center;
}

.metric-val {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
}

.metric-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-bg-light);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.metric-desc {
    font-size: 0.65rem;
    color: var(--color-muted-grey);
    line-height: 1.3;
}

.dashboard-footer {
    background: #0d1620;
    border-top: 1px solid rgba(247, 250, 2FA, 0.05);
    padding: 0.65rem 1.25rem;
    font-size: 0.65rem;
    color: var(--color-muted-grey);
    line-height: 1.4;
}

/* ==========================================================================
   PROBLEM SECTION ("EL PANORAMA")
   ========================================================================== */
.section-problem {
    padding: 6rem 0;
    background-color: var(--color-bg-dark);
}

.section-badge-center {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-align: center;
}

.section-badge {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    line-height: 1.3;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.problem-card {
    background: #14202c;
    border: 1px solid rgba(247, 250, 2FA, 0.03);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    transition: transform var(--transition-normal), border var(--transition-fast);
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 184, 184, 0.2);
}

.card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon-wrapper.red-tint { background: rgba(255, 77, 77, 0.12); color: var(--color-red-tint); }
.card-icon-wrapper.orange-tint { background: rgba(255, 165, 0, 0.12); color: var(--color-orange-tint); }
.card-icon-wrapper.blue-tint { background: rgba(0, 123, 255, 0.12); color: var(--color-blue-tint); }

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-bg-light);
}

.problem-card p {
    font-size: 0.95rem;
    color: #a0aab5;
    line-height: 1.5;
}

.problem-solution-quote {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 60, 77, 0.3), rgba(16, 24, 32, 0));
    border-left: 4px solid var(--color-accent-teal);
    padding: 2rem 2.5rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.problem-solution-quote blockquote {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-bg-light);
    font-weight: 500;
}

/* ==========================================================================
   WHAT IS THEFINLAB (PILLARS)
   ========================================================================== */
.section-propuesta {
    padding: 6rem 0;
    background: radial-gradient(circle at 10% 80%, rgba(0, 184, 184, 0.05) 0%, rgba(16, 24, 32, 0) 50%);
    border-top: 1px solid rgba(247, 250, 2FA, 0.03);
}

.propuesta-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.propuesta-header .section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #a0aab5;
}

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

.pillar-card {
    background: #14202c;
    border: 1px solid rgba(247, 250, 2FA, 0.03);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    position: relative;
    transition: transform var(--transition-normal), border var(--transition-fast), box-shadow var(--transition-fast);
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 184, 184, 0.25);
    box-shadow: var(--shadow-md);
}

.pillar-num {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: rgba(0, 184, 184, 0.2);
    margin-bottom: 1rem;
    transition: color var(--transition-fast);
}

.pillar-card:hover .pillar-num {
    color: var(--color-accent-teal);
}

.pillar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--color-bg-light);
}

.pillar-card p {
    font-size: 0.9rem;
    color: #929fa9;
    line-height: 1.5;
}

/* ==========================================================================
   ECOSISTEMA SECTION
   ========================================================================== */
.section-ecosistema {
    padding: 6rem 0;
    background-color: #0d1620;
    border-top: 1px solid rgba(247, 250, 2FA, 0.03);
    border-bottom: 1px solid rgba(247, 250, 2FA, 0.03);
}

.ecosystem-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.eco-card {
    background: #101820;
    border: 1px solid rgba(247, 250, 2FA, 0.04);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
}

.eco-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(0, 184, 184, 0.2);
    box-shadow: var(--shadow-md);
}

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

.eco-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-icon-box.yellow { background: rgba(143, 209, 79, 0.12); color: var(--color-accent-lime); }
.eco-icon-box.teal { background: rgba(0, 184, 184, 0.12); color: var(--color-accent-teal); }
.eco-icon-box.green { background: rgba(0, 168, 120, 0.12); color: var(--color-accent-emerald); }
.eco-icon-box.red { background: rgba(255, 77, 77, 0.12); color: var(--color-red-tint); }

.eco-card h3 {
    font-size: 1.35rem;
    color: var(--color-bg-light);
}

.eco-card p {
    font-size: 0.95rem;
    color: #a0aab5;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.eco-link {
    color: var(--color-accent-teal);
    font-weight: 600;
    font-size: 0.95rem;
    align-self: flex-start;
}

.eco-link:hover {
    color: var(--color-bg-light);
    transform: translateX(3px);
}

/* ==========================================================================
   RESEARCH COMPARISON SECTION
   ========================================================================== */
.section-research {
    padding: 6rem 0;
    background: radial-gradient(circle at 80% 80%, var(--color-deep-teal) 0%, var(--color-bg-dark) 60%);
}

.research-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.research-header .section-title {
    margin-bottom: 1rem;
}

.research-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.comparison-card {
    background: #14202c;
    border: 1px solid rgba(247, 250, 2FA, 0.04);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
}

.comparison-card.highlight-border {
    border: 2px solid var(--color-accent-teal);
    box-shadow: 0 8px 30px rgba(0, 184, 184, 0.1);
}

.card-status-badge {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(247, 250, 2FA, 0.08);
    color: var(--color-bg-light);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.card-status-badge.premium {
    background: rgba(143, 209, 79, 0.2);
    color: var(--color-accent-lime);
    border: 1px solid rgba(143, 209, 79, 0.3);
}

.comp-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.comp-desc {
    font-size: 0.95rem;
    color: #a0aab5;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.comp-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #c9d2db;
}

.li-icon {
    flex-shrink: 0;
    margin-top: 3px;
}

.comp-list li strong {
    color: var(--color-bg-light);
}

.comp-action {
    margin-top: auto;
}

/* ==========================================================================
   ACADEMY / COURSES SECTION
   ========================================================================== */
.section-academy {
    padding: 6rem 0;
    background-color: var(--color-bg-dark);
    border-top: 1px solid rgba(247, 250, 2FA, 0.03);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.course-card {
    background: #14202c;
    border: 1px solid rgba(247, 250, 2FA, 0.03);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 184, 184, 0.2);
    box-shadow: var(--shadow-md);
}

.course-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.course-badge.easy { background: rgba(0, 168, 120, 0.15); color: var(--color-accent-emerald); }
.course-badge.medium { background: rgba(0, 184, 184, 0.15); color: var(--color-accent-teal); }
.course-badge.hard { background: rgba(143, 209, 79, 0.15); color: var(--color-accent-lime); }

.course-meta {
    font-size: 0.775rem;
    color: var(--color-muted-grey);
    margin-bottom: 0.5rem;
}

.course-card h3 {
    font-size: 1.4rem;
    color: var(--color-bg-light);
    margin-bottom: 1rem;
}

.course-card p {
    font-size: 0.95rem;
    color: #a0aab5;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(247, 250, 2FA, 0.05);
    padding-top: 1.25rem;
}

.course-pricing {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-bg-light);
}

.btn-course-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent-teal);
}

.btn-course-arrow svg {
    transition: transform var(--transition-fast);
}

.btn-course-arrow:hover {
    color: var(--color-bg-light);
}

.btn-course-arrow:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   LEAD CAPTURE FORM SECTION (COMUNIDAD)
   ========================================================================== */
.section-lead-capture {
    padding: 6.5rem 0;
    background: radial-gradient(circle at 10% 20%, var(--color-deep-teal) 0%, var(--color-bg-dark) 60%);
    border-top: 1px solid rgba(247, 250, 2FA, 0.03);
}

.lead-container {
    max-width: 1100px;
}

.lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead-info p {
    font-size: 1.05rem;
    color: #b1bdc9;
}

.benefits-bullets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #c9d2db;
}

.bullet-check {
    color: var(--color-accent-lime);
    font-weight: 700;
    flex-shrink: 0;
}

/* Form Card */
.lead-form-card {
    background: #14202c;
    border: 1px solid rgba(247, 250, 2FA, 0.06);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.form-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-desc {
    font-size: 0.85rem;
    color: var(--color-muted-grey);
    margin-bottom: 2rem;
}

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: #c9d2db;
}

.form-group input, .form-group select {
    background: #0d1620;
    border: 1px solid rgba(247, 250, 2FA, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--color-bg-light);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-accent-teal);
    box-shadow: 0 0 8px rgba(0, 184, 184, 0.2);
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.form-consent input {
    margin-top: 4px;
    cursor: pointer;
}

.form-consent label {
    font-size: 0.75rem;
    color: #c9d2db;
    line-height: 1.4;
    cursor: pointer;
}

.error-msg {
    font-size: 0.725rem;
    color: var(--color-red-tint);
    display: none;
    margin-top: 0.25rem;
}

.form-group.has-error input {
    border-color: var(--color-red-tint);
}

.form-group.has-error .error-msg, .form-consent.has-error .error-msg {
    display: block;
}

/* Toast Success */
.toast-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #14202c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform var(--transition-slow) cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 5;
}

.toast-success.show {
    transform: translateY(0);
}

/* Submitted state styles for compact layout on success */
.lead-form-card.submitted {
    min-height: auto !important;
    height: auto !important;
}

.lead-form-card.submitted .form-title,
.lead-form-card.submitted .form-desc,
.lead-form-card.submitted form {
    display: none !important;
}

.lead-form-card.submitted .toast-success {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    height: auto !important;
    padding: 2.5rem 1.5rem !important;
    min-height: 220px;
    display: flex !important;
}

.toast-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 168, 120, 0.15);
    color: var(--color-accent-emerald);
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.toast-text h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-bg-light);
}

.toast-text p {
    font-size: 0.95rem;
    color: #a0aab5;
}

/* ==========================================================================
   FOUNDER SECTION
   ========================================================================== */
.section-founder {
    padding: 6rem 0 2rem 0;
    background-color: var(--color-bg-dark);
}

.founder-card-wrapper {
    background: #14202c;
    border: 1px solid rgba(247, 250, 2FA, 0.03);
    border-radius: var(--border-radius-lg);
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    overflow: hidden;
}

.founder-photo-container {
    background: #0d1620;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border-right: 1px solid rgba(247, 250, 2FA, 0.03);
}

.founder-avatar {
    max-width: 260px;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

.founder-info {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.founder-name {
    font-size: 2rem;
    color: var(--color-bg-light);
}

.founder-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent-teal);
    margin-top: -0.5rem;
}

.founder-bio {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.95rem;
    color: #c9d2db;
}

.founder-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgba(247, 250, 2FA, 0.05);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(247, 250, 2FA, 0.02);
    border: 1px solid rgba(247, 250, 2FA, 0.04);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
}

.credential-icon {
    color: var(--color-accent-teal);
    flex-shrink: 0;
    opacity: 0.95;
}

.credential-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #c9d2db;
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.section-newsletter {
    padding: 1.5rem 0 4rem 0;
    background-color: #0d1620;
    border-top: 1px solid rgba(247, 250, 2FA, 0.03);
}

.newsletter-box {
    max-width: 900px;
}

.newsletter-content {
    background: linear-gradient(135deg, var(--color-deep-teal), #101820);
    border: 1px solid rgba(247, 250, 2FA, 0.05);
    border-radius: var(--border-radius-md);
    padding: 3rem 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
}

.newsletter-content h2 {
    font-size: 1.75rem;
}

.newsletter-content p {
    font-size: 0.95rem;
    color: #a0aab5;
    max-width: 600px;
}

.newsletter-form-ui {
    width: 100%;
    max-width: 550px;
    margin-top: 0.5rem;
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
}

.input-btn-group input {
    flex-grow: 1;
    background: #0d1620;
    border: 1px solid rgba(247, 250, 2FA, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--color-bg-light);
    padding: 0.85rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.input-btn-group input:focus {
    outline: none;
    border-color: var(--color-accent-teal);
}

.newsletter-form-ui .error-msg {
    text-align: left;
    margin-left: 0.25rem;
}

.toast-success-newsletter {
    display: none;
    font-size: 0.95rem;
    color: var(--color-accent-emerald);
    background: rgba(0, 168, 120, 0.1);
    border: 1px solid rgba(0, 168, 120, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1.5rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   FINANCIAL DISCLAIMER SECTION
   ========================================================================== */
.section-disclaimer {
    padding: 4rem 0;
    background-color: var(--color-bg-dark);
    border-top: 1px solid rgba(247, 250, 2FA, 0.03);
}

.disclaimer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-muted-grey);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.warning-icon {
    color: var(--color-accent-lime);
}

.disclaimer-body-compact {
    font-size: 0.8rem;
    color: #727e8a;
    line-height: 1.6;
}

.disclaimer-body-full {
    font-size: 0.775rem;
    color: #727e8a;
    line-height: 1.5;
}

.btn-toggle-disclaimer {
    background: none;
    border: none;
    color: var(--color-accent-teal);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.btn-toggle-disclaimer:hover {
    color: var(--color-accent-lime);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: #090e14;
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(247, 250, 2FA, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.brand-phrase {
    font-size: 0.85rem;
    color: var(--color-muted-grey);
}

.contact-info {
    font-size: 0.9rem;
    color: #c9d2db;
}

.email-link {
    color: var(--color-accent-teal);
    font-weight: 600;
}

.email-link:hover {
    text-decoration: underline;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-column h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #c9d2db;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    font-size: 0.85rem;
    color: var(--color-muted-grey);
}

.footer-column a:hover {
    color: var(--color-accent-teal);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(247, 250, 2FA, 0.03);
    color: var(--color-muted-grey);
    border: 1px solid rgba(247, 250, 2FA, 0.05);
}

.social-link:hover {
    color: var(--color-accent-teal);
    background: rgba(0, 184, 184, 0.08);
    border-color: rgba(0, 184, 184, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(247, 250, 2FA, 0.03);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #727e8a;
}

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVE ADAPTATION
   ========================================================================== */

/* Large Tablets & Desktop scaling */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-dashboard-container {
        max-width: 380px;
        width: 100%;
        margin: 0 auto;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .founder-card-wrapper {
        grid-template-columns: 1fr;
    }

    .founder-photo-container {
        border-right: none;
        border-bottom: 1px solid rgba(247, 250, 2FA, 0.03);
        padding: 2.5rem;
    }

    .founder-info {
        padding: 3rem;
    }
}

/* Small Tablets & Mobile Layouts */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-title {
        font-size: 1.85rem;
        margin-bottom: 2rem;
    }

    .header-container {
        padding: 1rem 1.25rem;
    }

    .logo-img {
        height: 30px;
    }

    /* Mobile Nav Activation */
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #0d1620;
        border-left: 1px solid rgba(247, 250, 2FA, 0.08);
        padding: 5rem 2rem 2rem 2rem;
        transition: right var(--transition-normal);
        z-index: 1000;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.75rem;
    }

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

    .mobile-nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

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

    /* Dashboard adjustments */
    .dashboard-body {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(247, 250, 2FA, 0.05);
        padding: 0.5rem;
        overflow-x: auto;
    }

    .sidebar-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .alloc-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
        text-align: center;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Problem layout */
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .problem-card {
        padding: 2rem 1.5rem;
    }

    /* Ecosystem and Research layouts */
    .ecosystem-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .eco-card {
        padding: 2rem;
    }

    .research-comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-card {
        padding: 2.5rem 1.75rem;
    }

    .card-status-badge {
        position: static;
        display: inline-block;
        align-self: flex-start;
        margin-bottom: 1.5rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card {
        padding: 2rem;
    }

    /* Lead form */
    .lead-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .lead-form-card {
        padding: 2rem 1.5rem;
    }

    .newsletter-content {
        padding: 2rem;
    }

    .input-btn-group {
        flex-direction: column;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

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

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas a {
        width: 100%;
        text-align: center;
    }

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

    .footer-links-group {
        grid-template-columns: 1fr;
    }
    
    .founder-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   THEFINLAB.CO - LIGHT SECTION THEMING (ALTERNATING LAYOUT)
   ========================================================================== */

.section-light {
    background-color: var(--color-bg-light) !important;
    color: var(--color-bg-dark) !important;
}

.section-light .section-badge-center,
.section-light .section-badge {
    color: var(--color-accent-teal) !important;
}

.section-light h2, 
.section-light h3,
.section-light .section-title {
    color: var(--color-bg-dark) !important;
}

.section-light p,
.section-light .section-subtitle {
    color: var(--color-muted-grey) !important;
}

.section-light .problem-card,
.section-light .eco-card,
.section-light .course-card {
    background: #ffffff !important;
    border: 1px solid rgba(16, 24, 32, 0.08) !important;
    box-shadow: var(--shadow-sm) !important;
}

.section-light .problem-card:hover,
.section-light .eco-card:hover,
.section-light .course-card:hover {
    border-color: var(--color-accent-teal) !important;
    box-shadow: var(--shadow-md) !important;
}

.section-light .problem-card h3,
.section-light .eco-card h3,
.section-light .course-card h3 {
    color: var(--color-bg-dark) !important;
}

.section-light .problem-card p,
.section-light .eco-card p,
.section-light .course-card p {
    color: var(--color-muted-grey) !important;
}

.section-light .problem-solution-quote {
    background: rgba(0, 184, 184, 0.05) !important;
    border-left-color: var(--color-accent-teal) !important;
}

.section-light .problem-solution-quote blockquote {
    color: var(--color-bg-dark) !important;
}

.section-light .credential-item {
    background: rgba(16, 24, 32, 0.02) !important;
    border: 1px solid rgba(16, 24, 32, 0.06) !important;
}

.section-light .credential-text {
    color: var(--color-bg-dark) !important;
}

.section-light .founder-card-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(16, 24, 32, 0.08) !important;
    box-shadow: var(--shadow-md) !important;
}

.section-light .founder-info h2,
.section-light .founder-name {
    color: var(--color-bg-dark) !important;
}

.section-light .founder-bio p {
    color: #4a545e !important;
}

.section-light .disclaimer-title {
    color: var(--color-bg-dark) !important;
}
.section-light .disclaimer-body-compact,
.section-light .disclaimer-body-full {
    color: #4a545e !important;
}

.section-light .course-pricing {
    color: var(--color-bg-dark) !important;
}

.courses-note {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.825rem;
    color: var(--color-muted-grey);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    border-top: 1px dashed rgba(16, 24, 32, 0.08);
    padding-top: 1.5rem;
}

.section-light .courses-note {
    color: #4a545e !important;
    border-top-color: rgba(16, 24, 32, 0.08) !important;
}

/* ==========================================================================
   MOBILE & RESPONSIVE REFINEMENTS
   ========================================================================== */
.mobile-disclaimer-title {
    display: none;
}

@media (max-width: 768px) {
    .desktop-disclaimer-title {
        display: none;
    }
    .mobile-disclaimer-title {
        display: inline;
    }
}

@media (max-width: 580px) {
    .course-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .ticker-item {
        padding-right: 1.5rem;
        font-size: 0.675rem;
    }
}
