@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700&display=swap');

:root {
    --primary: #BFA14A; /* Oro Técnico */
    --primary-light: #D4AF37;
    --background: #0B0B0C; /* Negro Profundo */
    --background-alt: #1A1A1D; /* Gris Grafito */
    --text-main: #F5F5F7; /* Blanco Técnico */
    --text-dim: #A0A0A0; /* Gris Claro */
    --section-padding: 140px;
    --section-padding-large: 180px;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    letter-spacing: -0.01em;
    background-color: var(--background);
    color: var(--text-main);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Glassmorphism System */
.glass-card {
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(15, 73, 189, 0.4);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

/* Effects & Utilities */
.text-glow {
    text-shadow: 0 0 30px rgba(15, 73, 189, 0.3);
}

.grid-bg {
    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);
    background-size: 60px 60px;
}

.technical-label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

/* Button Premium System */
.btn-premium {
    height: 56px;
    padding: 0 32px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(191, 161, 74, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

::-webkit-scrollbar-thumb {
    background: #0f49bd;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e60eb;
}

.brutal-card {
    position: relative;
    transition: all 0.1s ease-out;
    cursor: crosshair;
    overflow: hidden;
}

.brutal-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 50;
    border-color: #0f49bd;
    transition: all 0.15s ease-out;
}

.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 20px -10px rgba(15, 73, 189, 0.5);
}

.btn-premium:hover {
    box-shadow: 0 20px 40px -15px rgba(15, 73, 189, 0.6);
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.8s ease;
}

.btn-premium:hover::after {
    transform: scale(1);
}

.btn-premium:active {
    transform: scale(0.96);
}

.nav-link {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.faq-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-background-dark .faq-card,
.bg-primary .faq-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-card:hover {
    border-color: #0f49bd;
    box-shadow: 0 0 30px rgba(15, 73, 189, 0.2);
    background: rgba(15, 73, 189, 0.05);
}

@keyframes button-pulse-scale {
    0% {
        transform: scale(1);
        box-shadow: 0 0 50px rgba(15, 73, 189, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 80px rgba(15, 73, 189, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 50px rgba(15, 73, 189, 0.5);
    }
}

.pulse-button {
    animation: button-pulse-scale 2.5s infinite ease-in-out;
}

@keyframes button-pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 50px rgba(196, 30, 30, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 80px rgba(196, 30, 30, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 50px rgba(196, 30, 30, 0.5);
    }
}

.pulse-button-red {
    animation: button-pulse-red 2.5s infinite ease-in-out;
}

.nav-link:hover {
    color: #1e60eb;
    text-shadow: 0 0 15px rgba(30, 96, 235, 0.4);
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes strikeOut {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

.strike-anim {
    transform-origin: left;
    transform: scaleX(0);
}

.reveal-active .strike-anim {
    animation: strikeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.animate-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-bounce-slow {
    animation: bounce 3s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    50% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* High-End Staggering System */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), transform 1s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

.stagger-7 {
    transition-delay: 0.7s;
}

.stagger-8 {
    transition-delay: 0.8s;
}

.stagger-9 {
    transition-delay: 0.9s;
}

.stagger-10 {
    transition-delay: 1.0s;
}

.stagger-11 {
    transition-delay: 1.1s;
}

.stagger-12 {
    transition-delay: 1.2s;
}

/* Brutal Feedback & Pulsing */
@keyframes red-alert-pulse {
    0% {
        color: inherit;
        text-shadow: none;
    }

    50% {
        color: #ef4444;
        text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    }

    100% {
        color: #ef4444;
        text-shadow: none;
    }
}

.negative-pulse {
    animation: red-alert-pulse 0.8s ease-in-out 0.5s 2;
}

/* Phosphor Icons Polish */
i.ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

i.ph:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(15, 73, 189, 0.6));
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: white;
    filter: drop-shadow(0 2px 10px rgba(15, 73, 189, 0.2));
}

/* Strategic Color Palette */
.text-negative {
    color: #ef4444;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.3));
}

.text-warning {
    color: #f59e0b;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.text-brain {
    color: #f472b6;
    filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.3));
}

.text-system {
    color: #1e60eb;
    filter: drop-shadow(0 0 10px rgba(30, 96, 235, 0.3));
}

/* Brutal Animations Pack */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #0f49bd
    }
}

@keyframes blue-wipe {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

.animate-typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #0f49bd;
    width: 0;
    animation: typing 2.5s steps(40, end) forwards, blink-caret .75s step-end infinite;
}

.keyboard-type {
    border-right: 3px solid #0f49bd;
    animation: blink-caret .75s step-end infinite;
}

.shimmer-text {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, var(--primary) 50%, #ffffff 60%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: blue-wipe 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes text-reveal {
    0% {
        transform: translateY(110%)
    }

    100% {
        transform: translateY(0)
    }
}

.reveal-text {
    overflow: hidden;
    display: block;
}

.reveal-text>* {
    display: block;
    transform: translateY(110%);
    animation: text-reveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Top-Down Delays for Hero */
.hero-stagger-1 {
    animation-delay: 0.2s;
}

.hero-stagger-2 {
    animation-delay: 0.4s;
}

.hero-stagger-3 {
    animation-delay: 0.6s;
}

.hero-stagger-4 {
    animation-delay: 0.8s;
}

.hero-stagger-5 {
    animation-delay: 1.0s;
}

.hero-stagger-6 {
    animation-delay: 1.2s;
}

/* Scanner Effect */
.scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 49%, rgba(30, 96, 235, 0.2) 50%, transparent 51%);
    background-size: 100% 200%;
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes scan {
    from {
        background-position: 0 100%
    }

    to {
        background-position: 0 -100%
    }
}

.brutal-card {
    position: relative;
    overflow: hidden;
}

.brutal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--x) var(--y), rgba(30, 96, 235, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
}

.brutal-card:hover::before {
    opacity: 1;
}

.dark details summary::-webkit-details-marker {
    display: none;
}