:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #ec4899;
    --accent-light: #f472b6;
    --gradient: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    --gradient-accent: linear-gradient(135deg, var(--primary), var(--accent));
    --dark-bg: #0a0e1a;
    --darker-bg: #050810;
    --card-bg: rgba(15, 23, 42, 0.6);
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --glow-accent: 0 0 30px rgba(236, 72, 153, 0.4)
}

body {
    font-family: Inter, 'Inter Fallback', system-ui, sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-light);
    scroll-behavior: smooth;
    overflow-x: hidden
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700
}

.section {
    padding: 100px 0;
    position: relative
}

.section-title {
    position: relative;
    display: inline-block
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px
}

.feature-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.4));
    border-radius: 24px;
    padding: 45px 35px;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left
}

.feature-card:hover::before {
    transform: scaleX(1)
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none
}

.feature-card:hover::after {
    opacity: 1
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(99, 102, 241, 0.4),
        0 20px 40px -10px rgba(236, 72, 153, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.5)
}
.feature-icon {
    font-size: 3rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3))
}

.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: .5px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transition: all .5s ease
}

.btn-primary:hover::after {
    left: 100%
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px
}

.tech-item {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.5));
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px)
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: left 0.4s ease;
    z-index: -1
}

.tech-item:hover::before {
    left: 0
}

.tech-item:hover {
    transform: scale(1.08) translateY(-3px);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3),
        0 5px 15px rgba(236, 72, 153, 0.2);
    color: #ffffff
}

.tech-icon {
    font-size: 1.2rem
}

.contact-form input,
.contact-form textarea {
    background-color: rgba(15, 23, 42, .7);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    transition: all .3s ease
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: rgba(15, 23, 42, .9);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .3)
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none
}

.shape {
    position: absolute;
    opacity: .1;
    border-radius: 50%;
    background: var(--gradient);
    filter: blur(40px)
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.6));
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s ease
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 100px;
    font-family: Georgia, serif;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.08;
    line-height: 1
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2),
        0 10px 20px rgba(236, 72, 153, 0.1)
}

.testimonial-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: var(--gradient-accent) padding-box, var(--gradient-accent) border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4)
}

.footer {
    background-color: var(--dark-bg);
    padding: 50px 0 30px;
    position: relative
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient)
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .05);
    color: var(--text-light);
    transition: all .3s ease
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px)
}

/* Cursor follower removido */

.glass-effect {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.5));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1)
}

@media (max-width:768px) {
    .section {
        padding: 60px 0
    }

    .hero {
        min-height: auto;
        padding: 120px 0
    }

    .tech-item {
        padding: 8px 15px;
        font-size: .9rem
    }
}

/* Animaciones Avanzadas */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg)
    }

    33% {
        transform: translateY(-20px) rotate(2deg)
    }

    66% {
        transform: translateY(-10px) rotate(-2deg)
    }
}

.floating {
    animation: float 8s ease-in-out infinite
}

@keyframes pulse {

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

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

.pulse {
    animation: pulse 3s ease infinite
}

@keyframes gradient-shift {

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

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

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.5),
            0 0 20px rgba(99, 102, 241, 0.3),
            0 0 30px rgba(99, 102, 241, 0.2)
    }

    50% {
        text-shadow: 0 0 20px rgba(236, 72, 153, 0.6),
            0 0 30px rgba(236, 72, 153, 0.4),
            0 0 40px rgba(236, 72, 153, 0.3)
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0
    }

    100% {
        background-position: 1000px 0
    }
}

/* ========================================
   HERO SECTION - EFECTOS AVANZADOS
   ======================================== */

.hero {
    position: relative;
    overflow: hidden
}

/* Grid pattern animado */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    pointer-events: none
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0)
    }

    100% {
        transform: translate(50px, 50px)
    }
}

/* Shapes flotantes mejoradas */
.shape {
    animation: shape-float 20s ease-in-out infinite
}

.shape-1 {
    animation-duration: 25s;
    animation-delay: 0s
}

.shape-2 {
    animation-duration: 30s;
    animation-delay: 5s
}

.shape-3 {
    animation-duration: 20s;
    animation-delay: 2s
}

.shape-4 {
    animation-duration: 28s;
    animation-delay: 8s
}

@keyframes shape-float {

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

    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.15
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.08
    }

    75% {
        transform: translate(20px, 30px) scale(1.05);
        opacity: 0.12
    }
}

/* Logo con efecto pulse mejorado */
.logo-container {
    position: relative;
    display: inline-block
}

.logo-img {
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.4));
    animation: logo-pulse 3s ease-in-out infinite
}

@keyframes logo-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.4))
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 50px rgba(236, 72, 153, 0.6))
    }
}

/* Título hero con efectos */
.hero-title {
    animation: title-entrance 1s ease-out, glow 4s ease-in-out infinite 1s;
    transform-origin: center
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%
}

@keyframes title-entrance {
    0% {
        opacity: 0;
        transform: translateY(30px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Subtítulo hero */
.hero-subtitle {
    animation: subtitle-entrance 1s ease-out 0.3s backwards;
    opacity: 0.9
}

@keyframes subtitle-entrance {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    100% {
        opacity: 0.9;
        transform: translateY(0)
    }
}

/* Botones hero con animación */
.hero-buttons {
    animation: buttons-entrance 1s ease-out 0.6s backwards
}

@keyframes buttons-entrance {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

.btn-hero,
.btn-hero-outline {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s
}

.btn-hero:hover::before {
    width: 300px;
    height: 300px
}

/* Scroll indicator animado */
.scroll-indicator {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 2s ease-in-out infinite;
    color: var(--primary-light);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease
}

.scroll-indicator:hover {
    opacity: 1
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(10px)
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth
}

/* Mejoras en secciones */
.section {
    position: relative;
    z-index: 1
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1
}

/* Botones mejorados */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1
}

.btn-primary {
    background: var(--gradient-accent);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite
}

.btn-outline-light {
    position: relative;
    background: transparent;
    border: 2px solid rgba(99, 102, 241, 0.5);
    transition: all 0.4s ease
}

.btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: left 0.4s ease;
    z-index: -1
}

.btn-outline-light:hover::before {
    left: 0
}

.btn-outline-light:hover {
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4)
}

/* ========================================
   PARTNER CARD - SOCIOS ESTRATÉGICOS
   ======================================== */

.partner-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.6));
    border-radius: 30px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.5s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3)
}

.partner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    animation: partner-glow 8s ease-in-out infinite
}

@keyframes partner-glow {

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

    50% {
        transform: translate(20px, 20px) scale(1.1);
        opacity: 0.5
    }
}

.partner-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3),
        0 10px 30px rgba(236, 72, 153, 0.2)
}

.partner-logo-wrapper {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 20px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s ease;
    border: 1px solid rgba(99, 102, 241, 0.1)
}

.partner-logo-wrapper:hover {
    transform: scale(1.05);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2)
}

.partner-logo {
    width: 100%;
    height: auto;
    max-width: 120px;
    /* antes era 150px */
    max-height: 60px;
    /* antes era 80px */
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
    transition: filter 0.3s ease;
}

.partner-card:hover .partner-logo {
    filter: drop-shadow(0 8px 20px rgba(99, 102, 241, 0.5))
}

.partner-features {
    padding-top: 30px;
    border-top: 1px solid rgba(99, 102, 241, 0.2)
}