* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: transparent;
    color: #fff;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Partículas de fondo */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 1s ease-out;
}

.main-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flows-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.flow-section {
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.designer-flow .section-header {
    animation-delay: 0.3s;
}

.cliente-flow .section-header {
    animation-delay: 0.5s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.section-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flow-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.flow-step {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUpStep 0.8s ease-out forwards;
}

.flow-step:nth-child(1) { animation-delay: 0.5s; }
.flow-step:nth-child(2) { animation-delay: 0.6s; }
.flow-step:nth-child(3) { animation-delay: 0.7s; }
.flow-step:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUpStep {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.flow-step::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.flow-step:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: transparent;
}

.flow-step:hover::before {
    opacity: 1;
}

.flow-step:hover::after {
    opacity: 1;
}

.step-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.step-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.6s ease;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.flow-step:hover .step-logo {
    transform: rotateY(360deg) scale(1.1);
}

.step-logo::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.logo-icon {
    width: 35px;
    height: 35px;
    color: #6366f1;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.flow-step:hover .logo-icon {
    color: #a855f7;
    transform: scale(1.2);
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8));
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    transition: all 0.4s ease;
}

.flow-step:hover .step-title {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.step-description {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    transition: color 0.4s ease;
}

.flow-step:hover .step-description {
    color: #e2e8f0;
}

/* Conector visual entre flujos */
.flow-connector {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, #6366f1, transparent);
    margin: 10px auto;
    opacity: 0.5;
    position: relative;
}

.flow-connector::before,
.flow-connector::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
}

.flow-connector::before {
    top: 0;
    animation: bounce 2s ease-in-out infinite;
}

.flow-connector::after {
    bottom: 0;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(25px);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .flow-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
    }
    
    .container {
        height: auto;
    }
    
    .main-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .flow-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .container {
        padding: 40px 20px;
    }
}