/* ============================================
   QTN - DESIGN SYSTEM (VISUAL REFRESH)
   ============================================ */

:root {
    /* Colors */
    --color-bg: #0A192F;
    --color-bg-dark: #050b14;
    --color-text: #e6f1ff;
    --color-text-muted: #8892b0;
    --color-accent: #64ffda;
    /* Neon Teal */
    --color-accent-dim: rgba(100, 255, 218, 0.1);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for fixed header */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    color: var(--color-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Logo */
.logo img {
    height: 60px;
    display: block;
}

.logo {
    background: transparent;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-accent);
}

.mobile-menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.7), var(--color-bg)), url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-large {
    background: transparent;
    padding: 1rem;
}

.hero-logo-large img {
    height: 200px;
    margin-bottom: 0.5rem;
    /* Reduced to pull text up */
    filter: drop-shadow(0 0 20px var(--color-accent-dim));
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, #a8b2d1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn-cta {
    padding: 0.8rem 2.5rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    background: transparent;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-cta:hover {
    background: var(--color-accent-dim);
    box-shadow: 0 0 20px var(--color-accent-dim);
}

/* Main Grid Layout */
.quote-highlight {
    padding: 3rem 0;
    text-align: center;
    background-color: var(--color-bg);
    /* Ensure it matches background */
    margin-bottom: 6rem;
    /* GAP 1: Increased to 6rem */
}

.highlight-quote {
    font-family: var(--font-primary);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.4;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-text {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.main-grid {
    padding: 0 0 8rem 0;
    /* Footer Gap increased */
}

.content-row {
    display: flex;
    gap: 3rem;
    /* margin-bottom removed here to control per-row */
}

/* Frente Sections - Full Width with Background Images */
.frente-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-bottom: 0;
}

.frente-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.75);
    z-index: 1;
}

.frente-content {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
}

.frente-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.frente-description {
    font-size: 1.4rem;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Individual Background Images */
.frente-agro {
    background-image: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=1920&q=80');
}

.frente-intelligence {
    background-image: url('https://images.unsplash.com/photo-1581094271901-8022df4466f9?auto=format&fit=crop&w=1920&q=80');
}

.frente-commerce {
    background-image: url('https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=1920&q=80');
}

/* Somos Section */
.somos-section {
    padding: 8rem 0 6rem 0;
    text-align: center;
    background-color: var(--color-bg);
}

.somos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.somos-item {
    position: relative;
}

.somos-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-text);
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.somos-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.5;
}

.somos-item:hover .somos-title {
    color: var(--color-accent);
}

.somos-item:hover .somos-title::after {
    opacity: 1;
}

/* Methodology and Other Sections */
.method-row {
    justify-content: center;
    text-align: center;
    margin-bottom: 8rem;
}

.method-col {
    width: 100%;
    max-width: 800px;
}

.transparency-row {
    justify-content: center;
}

.transparency-col {
    width: 100%;
    display: flex;
    justify-content: center;
}

.section-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.text-body {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* QTN Vertical List (Timeline Style) */
.qtn-list {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
}

.qtn-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    padding-bottom: 3rem;
    /* Space for connecting line */
}

.qtn-item:last-child {
    padding-bottom: 0;
}

/* Connecting Line */
.qtn-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 24px;
    /* Center of 50px circle (25px) - 1px (line half-width) */
    top: 25px;
    /* Center of circle */
    height: 100%;
    width: 2px;
    background: var(--color-accent-dim);
}

.qtn-letter {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
    background-color: var(--color-bg);
    /* Hides the line behind it */
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--color-accent-dim);
    text-shadow: none;
    /* Removed neon text shadow for circle */
}

.qtn-text-group {
    padding-top: 0.5rem;
    /* Align text with circle visually */
}

.qtn-text-group h4 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.qtn-text-group p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Glass Box */
.glass-box {
    border: 1px solid var(--color-accent);
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.05), transparent);
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

.box-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.box-subtitle {
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.text-sm {
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    height: 60px;
    /* Matched to header logo size */
    display: block;
    width: auto;
}

.footer-slogan {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--color-accent);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.social-icon svg {
    display: block;
}

.social-icon:hover {
    color: var(--color-white);
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

.copyright-logo {
    height: 16px;
    width: auto;
    vertical-align: middle;
    filter: invert(1);
    /* Invert to make it white/visible on dark bg if needed, or remove if transparent PNG is correct color */
    opacity: 0.8;
}

@media (max-width: 768px) {
    .content-row {
        flex-direction: column;
        gap: 2rem;
    }

    .frentes-group {
        grid-template-columns: 1fr;
    }

    .timeline {
        justify-content: center;
    }

    .transparency-col {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-list {
        display: none;
    }
}