/* ── DESIGN SYSTEM & VANGUARD AESTHETICS ── */

:root {
    --brand-yellow: #f4c70f;
    --brand-black: #080808;
    --brand-dark: #0f0f0f;
    --text-white: #ffffff;
    --text-muted: #888888;
}

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

body {
    background-color: var(--brand-black);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── NOISE EFFECT ── */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── CUSTOM REVEAL ANIMATIONS ── */
.reveal {
    transform: translateY(100%);
    opacity: 0;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    transition: -webkit-text-stroke 0.5s ease;
}

.text-outline:hover {
    -webkit-text-stroke: 1px var(--brand-yellow);
}

/* ── SWISS GRID OVERLAY ── */
.grid-overlay {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    height: 100%;
    width: 100%;
}

/* ── CUSTOM CURSOR ── */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--brand-yellow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-difference: difference;
    transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-pointer {
    width: 4px;
    height: 4px;
    background: var(--brand-yellow);
    border-radius: 50%;
}

.cursor.active {
    width: 60px;
    height: 60px;
    background: rgba(244, 199, 15, 0.1);
    border-color: rgba(244, 199, 15, 0.5);
}

/* Custom Cursor Hide on Mobile */
@media (max-width: 768px) {
    .cursor {
        display: none !important;
    }
}

/* ── SCROLL ANIMATION ── */
.scroll-line {
    animation: scroll-anim 2s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
    transform-origin: top;
}

@keyframes scroll-anim {
    0% { transform: scaleY(0); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── TYPOGRAPHY REFINEMENTS ── */
h1 {
    letter-spacing: -0.04em;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-yellow);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* ── UTILITIES ── */
.magnet {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ── SECTION REFINEMENTS ── */
section {
    position: relative;
}

/* Blueprint Grid Styling */
.blueprint-grid {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

#para-quien .blueprint-grid {
    background-image: 
        linear-gradient(rgba(244, 199, 15, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 199, 15, 0.05) 1px, transparent 1px);
}

.process-card {
    transition: transform 0.1s ease-out;
}

/* Problem Section Text Animation */
#problema h2 span {
    transition: color 0.5s ease;
}

/* Bento Grid Optimization */
.group:hover .fa-solid {
    transform: translateY(-5px) scale(1.1);
}

/* Case Gallery */
#casos .flex::-webkit-scrollbar {
    display: none;
}

/* CTA Footer Shape */
#footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--brand-black);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem !important;
    }
    
    #problema h2 {
        font-size: 2.5rem !important;
    }
    
    .grid-overlay {
        background-size: 30px 30px;
    }
}
