:root {
    /* Colors */
    --color-bg: #051C2C;
    --color-text: #E0E6ED;
    --color-text-muted: #94A3B8;
    --color-primary: #2251ff;
    --color-primary-hover: #1a3ecc;
    --color-accent: #38BDF8;
    --color-success: #10B981;
    --color-card-bg: rgba(255, 255, 255, 0.03);
    --color-border: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Crimson Pro', serif;
    --font-body: 'DM Sans', sans-serif;

    /* Typography Fluid */
    --fs-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --fs-h2: clamp(2rem, 3vw + 1rem, 3rem);
    --fs-h3: clamp(1.5rem, 2vw + 0.5rem, 2rem);
    --fs-body: clamp(1rem, 1vw + 0.5rem, 1.125rem);

    /* Spacing */
    --spacing-sm: clamp(1rem, 2vw, 1.5rem);
    --spacing-md: clamp(2rem, 4vw, 3rem);
    --spacing-lg: clamp(4rem, 6vw, 5rem);
    --spacing-xl: clamp(6rem, 8vw, 10rem);
}

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

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

ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 81, 255, 0.4);
}

.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.6rem 1.5rem;
}

.btn-primary-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1.2rem 3.5rem;
    font-size: 1.1rem;
}

.pulsate-cta {
    animation: pulsate 2s infinite;
}

@keyframes pulsate {
    0% { box-shadow: 0 0 0 0 rgba(34, 81, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 81, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 81, 255, 0); }
}

.text-link {
    color: var(--color-primary);
    font-weight: 700;
    border-bottom: 1px solid transparent;
}

.text-link:hover {
    border-bottom-color: var(--color-primary);
}

/* --- Navbar --- */
.navbar {
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 28, 44, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    width: 2.5rem;
    align-items: center;
}

.logo img {
    width: 100%;
    height: auto;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: calc(80px + var(--spacing-lg)); /* 80px for navbar approx */
    padding-bottom: var(--spacing-lg);
    min-height: 90vh; /* Relative unit */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    background: linear-gradient(to right, #fff, #c9c9c9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-sm);
}

.hero-sub {
    font-size: 1.15rem; /* Fallback */
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

/* Abstract Visual */
.hero-visual {
    position: absolute;
    right: -15%;
    top: 25%;
    width: 60%;
    height: 60%;
    opacity: 0.15;
    z-index: 1;
    
    pointer-events: none;
}

.data-grid {
    border: 1px solid var(--color-primary);
    width: 100%;
    height: 100%;
    position: relative;
    transform: perspective(1000px) rotateY(-20deg) rotateX(10deg);
    overflow: hidden;
    --rx: 10deg;
    --ry: -20deg;

    border: 1px solid var(--color-primary);
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;

    /* Aplicamos la perspectiva y las variables de rotación */
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));

    /* Importante: transition para suavizar el movimiento, pero rápida para que no se sienta con lag */
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.data-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(60%);
}

/* --- Problem Section (prev. Diagnosis) --- */
.problem-section {
    padding: var(--spacing-xl) 0;
    background-color: #072236;
}
.diagnosis-section {
    padding: var(--spacing-xl) 0;
    background-color: #072236;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.sub-header {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}
.diagnosis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.problem-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: var(--spacing-md);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}
.diagnosis-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: var(--spacing-md);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.diagnosis-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.problem-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.diagnosis-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: white;
}

.diagnosis-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.diagnosis-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.diagnosis-cta p {
    margin-bottom: var(--spacing-sm);
    font-style: italic;
    color: var(--color-text-muted);
}

/* --- Solution Section --- */
.solution-section {
    padding: var(--spacing-xl) 0;
}

.eyebrow {
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
    opacity: 0.3;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
    padding-right: 1rem;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(34, 81, 255, 0.2);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.center-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* --- Authority Section (prev. Guide/Proof) --- */
.authority-section {
    padding: var(--spacing-xl) 0;
    background-color: #020d14; /* Darker bg */
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.authority-visual {
    width: 100%;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.authority-visual img {
    width: 100%;
    height: auto;
    display: block;
    /* Optional effect */
    filter: sepia(20%) brightness(0.8);
    transition: filter 0.3s ease;
}

.authority-visual:hover img {
    filter: sepia(0%) brightness(1);
}

.authority-subtitle {
     font-size: 1.25rem;
     color: var(--color-primary);
     font-family: var(--font-heading);
     font-style: italic;
     margin-bottom: var(--spacing-md);
}

.authority-content p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.authority-content strong {
    color: var(--color-text);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat-number {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.case-study-mini {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-left: 3px solid var(--color-success);
    margin-top: 2rem;
}

.case-study-mini h4 {
    margin-bottom: 0.5rem;
    color: var(--color-success);
    font-size: 1rem;
    text-transform: uppercase;
}

.case-study-mini p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Filter Section --- */
.filter-section {
    padding: var(--spacing-xl) 0;
    background-color: #072236;
}

.filter-intro {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-muted);
}

.filter-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.filter-col h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid;
}

.for-you h3 {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.not-for-you h3 {
    border-color: var(--color-text-muted);
    color: var(--color-text-muted);
}

.filter-col ul li {
    margin-bottom: var(--spacing-sm);
    padding-left: 2rem;
    position: relative;
    color: var(--color-text-muted);
}

.for-you ul li::before {
    content: '✓';
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.not-for-you ul li::before {
    content: '✕';
    color: var(--color-text-muted);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Final CTA / Footer --- */
.final-cta-section {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    background-color: var(--color-bg);
    text-align: center;
}

.cta-box {
    background: linear-gradient(180deg, rgba(34, 81, 255, 0.1) 0%, transparent 100%);
    padding: var(--spacing-lg) var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: var(--spacing-xl);
}

.cta-box h2 {
    margin-bottom: var(--spacing-md);
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
}

.cta-subtext {
    font-size: 0.9rem !important;
    margin-top: 1rem;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-links a {
    margin-right: 1.5rem;
}

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

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
    }
    .hero-content {
        margin-bottom: 3rem;
    }
    .hero-visual {
        position: relative;
        width: 100%;
        height: 300px;
        right: auto;
        top: auto;
    }
}

@media (max-width: 768px) {
    .process-steps::before {
        display: none;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        justify-content: center;
    }

    .logo {
        width: 2rem;
    }

    .btn-large {
        width: 100%;
        padding: 1rem;
    }
}