@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #1A2B48; /* Navy Blue */
    --accent-orange: #FF9F1C; /* Mango */
    --accent-green: #2D6A4F; /* Forest Green */
    --accent-yellow: #FFBF69; /* Lighter Mango */
    --status-red: #D90429;
    --status-yellow: #FFD60A;
    --status-green: #38B000;
    
    /* Neutrals */
    --text-main: #1A2B48;
    --text-muted: #556B8D;
    --bg-main: #FFFFFF;
    --bg-offset: #F8FAFC;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --space-xl: 8rem;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(26, 43, 72, 0.05);
    --shadow-bold: 0 10px 40px rgba(26, 43, 72, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-s);
}

.section-padding {
    padding: var(--space-xl) 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 2px; /* Sharp geometry for premium feel */
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.btn-primary:hover {
    background-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-bold);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    header .container, 
    #check-doc .container {
        flex-direction: column !important;
        text-align: center;
        gap: 3rem;
    }
    
    header {
        padding-top: var(--space-xl);
    }
    
    header div[style*="flex: 7"],
    header div[style*="flex: 3"] {
        flex: none !important;
        width: 100%;
    }
    
    header h1 {
        font-size: 3.5rem !important;
    }
    
    header div[style*="display: flex; gap: 1rem"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    nav div[style*="display: flex"] {
        display: none !important; /* Hide links on mobile for simplicity, or we could add a toggle */
    }
    
    #recursos div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.5rem !important;
    }
    
    .section-padding {
        padding: var(--space-l) 0;
    }
    
    header div[style*="font-size: 5.5rem"] {
        font-size: 2.8rem !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

/* Fluid Typography & Performance */
h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 1.1;
}

p {
    max-width: 65ch; /* Optimum line length */
}

/* Optimized Scan Animation */
@keyframes scan {
    0% { transform: translateY(0); }
    50% { transform: translateY(300px); } /* Need to target container height dynamically or use 100% of parent */
    100% { transform: translateY(0); }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-orange);
    box-shadow: 0 0 20px var(--accent-orange);
    animation: scan 3s infinite linear;
}

/* Geometric Background Pattern */
.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
}

.geometric-bg::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background-image: 
        linear-gradient(30deg, rgba(26, 43, 72, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(26, 43, 72, 0.03) 87.5%, rgba(26, 43, 72, 0.03)),
        linear-gradient(150deg, rgba(26, 43, 72, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(26, 43, 72, 0.03) 87.5%, rgba(26, 43, 72, 0.03)),
        linear-gradient(30deg, rgba(26, 43, 72, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(26, 43, 72, 0.03) 87.5%, rgba(26, 43, 72, 0.03)),
        linear-gradient(150deg, rgba(26, 43, 72, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(26, 43, 72, 0.03) 87.5%, rgba(26, 43, 72, 0.03)),
        linear-gradient(60deg, rgba(255, 159, 28, 0.02) 25%, transparent 25.5%, transparent 75%, rgba(255, 159, 28, 0.02) 75.5%, rgba(255, 159, 28, 0.02)),
        linear-gradient(60deg, rgba(255, 159, 28, 0.02) 25%, transparent 25.5%, transparent 75%, rgba(255, 159, 28, 0.02) 75.5%, rgba(255, 159, 28, 0.02));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}
