/* Reset y configuración básica */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores oscuros */
    --primary-color: #6c63ff;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --background-dark: #0f0f0f;
    --background-secondary: #1a1a1a;
    --background-card: #0e0d0d98;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #000000;
    --gradient-primary: linear-gradient(135deg, #6c63ff 0%, #4ecdc4 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #6c63ff 100%);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.25);
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Asegurar que las secciones sean visibles */
section {
    position: relative;
    z-index: 1;
}

/* Fallback para navegadores que no soportan CSS custom properties */
@supports not (color: var(--primary-color)) {
    body {
        background-color: #0f0f0f;
        color: #ffffff;
    }
    
    .stat-number {
        color: #6c63ff;
    }
    
    .section-header h2 {
        color: #6c63ff;
    }
    
    .feature-minimal i {
        color: #6c63ff;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 10px 0;
    transition: var(--transition-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-image {
    height: 120px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.1);
    margin: -30px 0;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
    border-radius: 3px;
}

/* Hero Section */
/* ===== FONDO ÚNICO PARA TODA LA PÁGINA ===== */
body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f0f 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Overlay sutil para toda la página */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 20%, rgba(76, 236, 196, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(255, 107, 107, 0.06) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(108, 99, 255, 0.3);
    animation: floatIcon 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    left: 85%;
    animation-delay: 1.5s;
}

.floating-icon:nth-child(3) {
    top: 30%;
    left: 90%;
    animation-delay: 3s;
}

.floating-icon:nth-child(4) {
    top: 80%;
    left: 10%;
    animation-delay: 4.5s;
}

@keyframes floatIcon {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.6;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #ffd700;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-highlight {
    background: linear-gradient(135deg, #6c63ff 0%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-highlight-secondary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: left;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6c63ff 0%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-stat .stat-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 60px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #6c63ff 0%, #4ecdc4 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.3);
}

.hero-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-buttons .btn-primary:hover::before {
    left: 100%;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.4);
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 2px solid rgba(108, 99, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.hero-card-stack {
    position: relative;
    height: 400px;
    width: 100%;
}

.hero-card {
    position: absolute;
    width: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-1 {
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(76, 236, 196, 0.05) 100%);
    animation: cardFloat1 6s ease-in-out infinite;
}

.card-2 {
    top: 80px;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 167, 38, 0.05) 100%);
    animation: cardFloat2 6s ease-in-out infinite 2s;
}

.card-3 {
    bottom: 0;
    left: 50px;
    background: linear-gradient(135deg, rgba(76, 236, 196, 0.1) 0%, rgba(108, 99, 255, 0.05) 100%);
    animation: cardFloat3 6s ease-in-out infinite 4s;
}

@keyframes cardFloat1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes cardFloat2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-2deg); }
}

@keyframes cardFloat3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.card-header i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.card-content .metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.card-content .metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(108, 99, 255, 0.2);
    animation: decorationPulse 4s ease-in-out infinite;
}

.circle-1 {
    top: 10%;
    right: 20%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.circle-2 {
    bottom: 30%;
    right: 10%;
    width: 80px;
    height: 80px;
    animation-delay: 1.5s;
}

.circle-3 {
    top: 50%;
    left: -10%;
    width: 100px;
    height: 100px;
    animation-delay: 3s;
}

@keyframes decorationPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-medium);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-card);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Animación de pulso en hero */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pulse-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.pulse-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: pulse 3s infinite;
}

.pulse-circle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}

.pulse-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0.5s;
}

.pulse-circle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Secciones generales */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 100px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-medium);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative;
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.section-badge i {
    color: #ffd700;
}

/* Stats Showcase */
.stats-showcase {
    margin: 5rem 0;
}

.stats-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Premium Stat Cards */
.stat-card {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: left 0.8s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-content .stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6c63ff 0%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-content .stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-content .stat-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.stat-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-decoration {
    transform: scale(1.5);
    opacity: 0.5;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-medium);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-heavy);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.stat-label {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Premium Features */
.features-premium {
    margin-top: 6rem;
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-header h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.features-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: height 0.3s ease;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 15px 35px rgba(108, 99, 255, 0.1);
}

.feature-icon-container {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-container {
    transform: scale(1.1) rotate(5deg);
}

.feature-content h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature-minimal i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.feature-minimal span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
}

.visual-element {
    position: relative;
    width: 300px;
    height: 300px;
}

.floating-card {
    position: absolute;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-medium);
}

.floating-card:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

.floating-card i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.floating-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
}

.contact-method:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

.contact-method h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.contact-method p {
    color: var(--text-secondary);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-medium);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--background-card);
    padding: 0 5px;
}

/* Footer */
.footer {
    padding: 60px 0 20px;
    border-top: 1px solid rgba(108, 99, 255, 0.2);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 120px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.footer-logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.footer-section h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-medium);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-image {
        height: 90px;
        margin: -20px 0;
    }

    .footer-logo-image {
        height: 90px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Responsive */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-stat .stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-card-stack {
        height: 300px;
        transform: scale(0.8);
    }

    .hero-card {
        width: 220px;
    }

    .hero-decoration .deco-circle {
        display: none;
    }

    /* Fondo más sutil en móviles */
    body::before {
        opacity: 0.7;
    }
}

@media (max-width: 480px) {
    .hero .container {
        padding: 80px 15px 30px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .footer-logo-image {
        height: 75px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-stat {
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-card-stack {
        display: none;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
        justify-content: space-around;
    }

    .feature-minimal {
        min-width: 120px;
        padding: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .about-text h2,
    .contact-info h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 15px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .pulse-animation {
        width: 200px;
        height: 200px;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .stats-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .stat-content .stat-number {
        font-size: 2.5rem;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .stat-item {
        padding: 2rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .features-minimal {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .feature-minimal {
        min-width: 200px;
        padding: 1.5rem;
    }

    .feature-minimal i {
        font-size: 2rem;
    }
}

/* Animaciones adicionales (simplificadas) */
/* Animaciones problemáticas eliminadas para mejor compatibilidad */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ===== ANIMACIONES PARA JAVASCRIPT ===== */

/* Posición relativa para el hero para las partículas */
.hero {
    position: relative;
}

/* Estados iniciales para animaciones */
.service-card, 
.stat-item, 
.feature-minimal,
.contact-method,
.section-header {
    opacity: 0;
    transform: translateY(30px);
}

/* Animaciones activadas por JavaScript */
.animate-fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-bounce-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animaciones CSS puras */
@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(108, 99, 255, 0.3); }
    100% { text-shadow: 0 0 20px rgba(108, 99, 255, 0.6), 0 0 30px rgba(108, 99, 255, 0.4); }
}

@keyframes floatUp {
    0% { 
        transform: translateY(100vh) translateX(0px); 
        opacity: 0; 
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100px) translateX(20px); 
        opacity: 0; 
    }
}

@keyframes floatUpRotate {
    0% { 
        transform: translateY(100vh) rotate(0deg); 
        opacity: 0; 
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100px) rotate(360deg); 
        opacity: 0; 
    }
}

@keyframes iconBounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.8; 
    }
}

@keyframes ripple {
    to { 
        transform: scale(4); 
        opacity: 0; 
    }
}

/* Efectos de hover mejorados */
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-minimal:hover i {
    transform: scale(1.2);
    color: var(--accent-secondary);
    transition: all 0.3s ease;
}

/* Animación del título hero */
.hero-title {
    animation: textGlow 3s ease-in-out infinite alternate;
}

/* Formulario de contacto mejorado */
.form-group {
    position: relative;
}

.form-group.focused label {
    color: var(--primary-color);
    transform: translateY(-25px) scale(0.8);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    transition: all 0.3s ease;
}

/* Cursor personalizado */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    opacity: 0;
}

/* Partículas flotantes */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-particle,
.geometric-particle {
    position: absolute;
    pointer-events: none;
}

/* Responsive para animaciones */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
    
    .hero-title {
        animation: none;
    }
    
    .particles-container {
        display: none;
    }
}