@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

/* Fondo principal */
.hero-gradient {
    background: radial-gradient(ellipse at center, #1a0833 0%, #0f0618 35%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Partículas flotantes */
.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.network-node {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #8b5cf6;
    border-radius: 50%;
    box-shadow: 0 0 16px 4px #8b5cf6;
    animation: nodeFloat 6s ease-in-out infinite;
}

.network-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 100%);
    border-radius: 1px;
    animation: lineFlow 8s ease-in-out infinite;
}

@keyframes nodeFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-15px) scale(1.3);
        opacity: 1;
    }
}

@keyframes lineFlow {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    50% {
        transform: scaleX(1);
        opacity: 0.8;
    }

    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

/* Sección de video */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-section {
    padding: 2rem 0;
    border-bottom: 2px solid #333;
}

/* Ondas de transición */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-divider .shape-fill {
    fill: #f3f4f6;
}

.wave-divider-dark .shape-fill {
    fill: #0f0f23;
}

/* Efectos de texto */
.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.text-glow {
    text-shadow:
        0 0 20px rgba(168, 85, 247, 0.5),
        0 0 40px rgba(168, 85, 247, 0.3),
        0 0 60px rgba(168, 85, 247, 0.1);
}

/* texto lateral izquierdo */
.lateral-text {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    padding: 3rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    z-index: 10;
}


/* Secciones */
.section-dark {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    position: relative;
}

.section-lavender {
    background: linear-gradient(135deg, #f3f4f6 0%, #e9d5ff 50%, #ddd6fe 100%);
    color: #4c1d95;
    position: relative;
}

/* Servicios expandibles */
.service-item {
    transition: all 0.4s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.service-item:hover {
    border-left-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}

.service-item.active {
    border-left-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.service-details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.service-details.show {
    opacity: 1;
    max-height: none;
    padding-top: 2rem;
}

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    box-shadow:
        0 10px 25px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 15px 35px rgba(139, 92, 246, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Formulario */
.contact-form {
    backdrop-filter: blur(20px);
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.form-input,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.form-input:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
    outline: none;
}

.form-select option {
    background: #1a1a2e;
    color: white;
}

/* Stats animados */
.stat-item {
    animation: statPulse 2s ease-in-out infinite;
}

.stat-item:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-item:nth-child(3) {
    animation-delay: 1s;
}

.stat-item:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes statPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Animaciones */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alertas personalizadas */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.5s ease;
}

.custom-alert.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-gradient h1 {
        font-size: 2.5rem;
    }

    .wave-divider svg {
        height: 60px;
    }

    .grid.lg\\:grid-cols-2 {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-gradient h1 {
        font-size: 2rem;
    }

    .wave-divider svg {
        height: 40px;
    }
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .service-item {
        padding: 1.5rem;
    }

    .service-item .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}