/* Fuente personalizada */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Animación del núcleo energético (cerebro lumínico) */
.core-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    opacity: 0.3;
    animation: pulse-core 4s ease-in-out infinite;
}

.core-animation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(147, 51, 234, 0.4) 0%,
        rgba(6, 182, 212, 0.3) 30%,
        transparent 70%);
    border-radius: 50%;
    animation: rotate-core 20s linear infinite;
}

.core-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, 
        rgba(6, 182, 212, 0.3) 0%,
        rgba(147, 51, 234, 0.2) 40%,
        transparent 70%);
    border-radius: 50%;
    animation: rotate-core-reverse 15s linear infinite;
}

@keyframes pulse-core {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes rotate-core {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-core-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* Animación de gradiente para el título */
@keyframes animate-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: animate-gradient 3s ease infinite;
}

/* Efectos de hover suaves */
.transition {
    transition: all 0.3s ease;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Ajustes responsive para móviles */
@media (max-width: 640px) {
    .core-animation {
        width: 400px;
        height: 400px;
    }
}

/* Efectos de entrada suaves */
section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay para cada sección */
section:nth-child(1) { animation-delay: 0s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }
section:nth-child(10) { animation-delay: 0.9s; }

/* Fondo de estrellas estáticas */
.stars-background {
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
    z-index: 0;
}

.stars-background::before,
.stars-background::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 40%, white, transparent),
        radial-gradient(1px 1px at 33% 60%, white, transparent),
        radial-gradient(1px 1px at 55% 80%, white, transparent),
        radial-gradient(2px 2px at 10% 90%, white, transparent),
        radial-gradient(1px 1px at 40% 20%, white, transparent),
        radial-gradient(1px 1px at 70% 50%, white, transparent),
        radial-gradient(2px 2px at 25% 80%, white, transparent),
        radial-gradient(1px 1px at 85% 60%, white, transparent),
        radial-gradient(1px 1px at 15% 40%, white, transparent),
        radial-gradient(2px 2px at 75% 25%, white, transparent),
        radial-gradient(1px 1px at 45% 90%, white, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.6;
    animation: twinkle 3s ease-in-out infinite alternate;
}

.stars-background::after {
    background-size: 250px 250px;
    opacity: 0.4;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

/* Estrellas fugaces */
.shooting-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shooting-stars::before,
.shooting-stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(to bottom, transparent, white, transparent);
    border-radius: 50%;
    box-shadow: 
        0 0 6px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(147, 51, 234, 0.6),
        0 0 18px rgba(6, 182, 212, 0.4);
    animation: shooting-star-1 3s linear infinite;
}

.shooting-stars::before {
    top: 20%;
    left: -100px;
    width: 300px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(147, 51, 234, 0.6),
        0 0 30px rgba(6, 182, 212, 0.4);
    transform: rotate(-45deg);
    animation: shooting-star-1 4s linear infinite;
}

.shooting-stars::after {
    top: 40%;
    left: -150px;
    width: 250px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 16px rgba(147, 51, 234, 0.5),
        0 0 24px rgba(6, 182, 212, 0.3);
    transform: rotate(25deg);
    animation: shooting-star-2 5s linear infinite;
    animation-delay: 1s;
}

@keyframes shooting-star-1 {
    0% {
        transform: translateX(-100px) translateY(-100px) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(calc(100vh + 100px)) rotate(-45deg);
        opacity: 0;
    }
}

@keyframes shooting-star-2 {
    0% {
        transform: translateX(-150px) translateY(150px) rotate(25deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 150px)) translateY(calc(-100vh + 150px)) rotate(25deg);
        opacity: 0;
    }
}

/* Estilos adicionales para estrellas fugaces generadas dinámicamente */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(147, 51, 234, 0.7) 70%,
        rgba(6, 182, 212, 0.5) 90%,
        transparent 100%);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(147, 51, 234, 0.6),
        0 0 30px rgba(6, 182, 212, 0.4),
        0 0 40px rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 1;
    transform-origin: top center;
}

