@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

/* --- Base & Reset --- */
html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Manrope', sans-serif;
    background-color: #f4f6f8;
    color: #4a5568;
    min-height: 100vh;
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 100px;
}

:root {
    --bg-color: #f4f6f8;
    --text-main: #2d3748;
    --text-muted: #718096;
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    
    /* Sombras Neumorfistas */
    --shadow-light: -9px -9px 16px rgba(255,255,255, 0.8);
    --shadow-dark: 9px 9px 16px rgba(163,177,198, 0.5);
    --shadow-inset: inset 6px 6px 10px 0 rgba(163,177,198, 0.4), inset -6px -6px 10px 0 rgba(255,255,255, 0.8);
}

/* --- Tarjetas --- */
.clean-card {
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.clean-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    z-index: 5;
}

.neu-important {
    background: var(--bg-color);
    box-shadow: var(--shadow-dark), var(--shadow-light);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: transform 0.3s ease;
}
.neu-important:hover {
    transform: translateY(-2px);
    box-shadow: 12px 12px 20px rgba(163,177,198, 0.6), -12px -12px 20px rgba(255,255,255, 0.8);
}

/* --- Botones --- */
.neu-btn {
    background: var(--bg-color);
    box-shadow: 5px 5px 10px rgba(163,177,198, 0.3), -5px -5px 10px rgba(255,255,255, 0.8); 
    border-radius: 50px;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.4);
}
.neu-btn:hover {
    transform: translateY(-2px);
    color: var(--primary);
    box-shadow: 7px 7px 14px rgba(163,177,198, 0.4), -7px -7px 14px rgba(255,255,255, 0.9);
}
.neu-btn:active {
    box-shadow: var(--shadow-inset);
    transform: translateY(1px);
    border-color: transparent;
}

.neu-btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 6px 6px 12px rgba(124, 58, 237, 0.25), -6px -6px 12px rgba(255,255,255, 0.6);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.neu-btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 8px 8px 16px rgba(124, 58, 237, 0.35), -8px -8px 16px rgba(255,255,255, 0.7);
    transform: translateY(-2px);
}

.neu-inset {
    background: var(--bg-color);
    box-shadow: var(--shadow-inset);
    border-radius: 20px;
}

/* --- Layout --- */
.nav-sticky {
    background: rgba(244, 246, 248, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.nav-link { position: relative; color: var(--text-muted); }
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 50%; width: 0; height: 3px;
    background: var(--primary); transition: all 0.3s; transform: translateX(-50%); border-radius: 3px;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active-nav { color: var(--primary); }
.nav-link.active-nav::after { width: 60%; }

/* --- Utilidades --- */
.fade-in { 
    opacity: 0; 
    transform: perspective(1000px) translateY(40px) rotateX(-15deg); 
    transform-origin: center bottom;
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); 
}
.fade-in.visible { 
    opacity: 1; 
    transform: perspective(1000px) translateY(0) rotateX(0); 
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob { animation: blob 7s infinite; }
.animation-delay-2000 { animation-delay: 2s; }

/* --- Sponsors Scroller --- */
.scroller { -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.scroller-track { display: flex; gap: 4rem; width: max-content; animation: scroll 30s linear infinite; }
.scroller-track img { filter: grayscale(1) opacity(0.5); transition: 0.3s; height: 100px; width: auto; }
.scroller-track img:hover { filter: grayscale(0) opacity(1); transform: scale(1.1); }

@keyframes scroll { to { transform: translateX(calc(-100% / 2)); } }

.mobile-menu-overlay { background: var(--bg-color); }

#preloader { transition: opacity 0.5s ease-out, visibility 0.5s ease-out; }
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* --- Sticky CTA Bar (Móvil) --- */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.8rem 1.5rem; 
    box-shadow: 0 -5px 20px rgba(0,0,0, 0.1); 
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px 20px 0 0;
}
.sticky-cta-bar.visible { transform: translateY(0); }

/* Botones Flotantes */
.whatsapp-float, .back-to-top {
    position: fixed; right: 20px; width: 50px; height: 50px; z-index: 45;
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.whatsapp-float { bottom: 90px; } 
.back-to-top { bottom: 150px; opacity: 0; pointer-events: none; transform: translateY(10px); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (min-width: 768px) {
    .sticky-cta-bar { display: none; }
    .whatsapp-float { bottom: 20px; }
    .back-to-top { bottom: 80px; }
}