/* ingenIArtificial — estilos custom (Tailwind cubre el resto vía cdn.tailwindcss.com) */

body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    color: #f8fafc;
}
h1, h2, h3, .brand-font {
    font-family: 'Space Grotesk', sans-serif;
}
.glass-panel {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.text-gradient {
    background: linear-gradient(135deg, #7c3aed, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.bg-blob {
    position: absolute;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.6;
    animation: float 20s infinite alternate ease-in-out;
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, 5%) scale(0.9); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--delay, 0s);
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Logo chips (marquee) — lift + glow on hover, logos en escala de grises hasta el hover */
.logo-chip {
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.logo-chip:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px -8px rgba(124,58,237,0.45);
    border-color: rgba(255,255,255,0.25);
}
.logo-chip img {
    filter: grayscale(1) brightness(1.6) opacity(0.75);
    transition: filter 0.35s ease;
}
.logo-chip:hover img {
    filter: grayscale(0) brightness(1) opacity(1);
}

/* Number counters glow */
.stat-number {
    background: linear-gradient(135deg, #f8fafc, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

::selection { background: rgba(124,58,237,0.35); color: #fff; }
html { scroll-behavior: smooth; }

/* Nav reacts to scroll */
nav.nav-scrolled {
    background-color: rgba(2, 6, 23, 0.85);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Card hover lift + glow */
.lift-card {
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.lift-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(124,58,237,0.35);
}

/* Idle float for icons */
.icon-float { animation: iconFloat 4s ease-in-out infinite; }
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Button shine sweep */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}
.btn-shine:hover::after { left: 125%; }

/* Cursor spotlight */
#cursor-spotlight {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, rgba(217,70,239,0.06) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Nav link underline */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0%; height: 2px;
    background: linear-gradient(90deg, #7c3aed, #d946ef);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .text-gradient, .icon-float, .bg-blob, .lift-card, #cursor-spotlight { animation: none !important; transition: none !important; }
}

/* Cookie consent banner */
#cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
#cookie-banner.cookie-visible { transform: translateY(0); }

/* Legal modals */
.legal-modal { display: none; }
.legal-modal.legal-modal-open { display: flex; }

/* FAQ accordion */
summary::-webkit-details-marker { display: none; }
details[open] summary .material-symbols-outlined { transform: rotate(180deg); }
