/* Estilos de la sección hero */
.hero {
    background: linear-gradient(135deg, #0A2342 0%, #00B8A9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 40px; /* Añade espacio para la top-bar */
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 450px;
    height: 450px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.server-animation {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.server-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInScale 1s ease 0.3s backwards;
    position: relative;
    z-index: 10;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        /* transform: scale(0.8); */
    }
    to {
        opacity: 1;
        /* transform: scale(1); */
    }
}

.server-rack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server {
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.95) 0%, rgba(0, 184, 169, 0.85) 100%);
    border: 3px solid #00B8A9;
    border-radius: 8px;
    padding: 20px 25px;
    width: 360px;
    box-shadow: 0 8px 40px rgba(0, 184, 169, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.server::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 3s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.server-lights {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px currentColor, 0 0 30px currentColor;
    position: relative;
}

.light.green {
    background: #00ff88;
    color: #00ff88;
}

.light.blue {
    background: #00B8A9;
    color: #00B8A9;
    animation-delay: 0.3s;
}

.light.yellow {
    background: #FFC857;
    color: #FFC857;
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 15px currentColor, 0 0 30px currentColor;
    }
    50% { 
        opacity: 0.5;
        transform: scale(0.95);
        box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
    }
}

.server-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.slot {
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slot::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00B8A9, rgba(0, 184, 169, 0.5), transparent);
    animation: scan 3s ease-in-out infinite;
    box-shadow: 0 0 10px #00B8A9;
}

.server:nth-child(2) .slot::after {
    animation-delay: 1s;
}

.server:nth-child(3) .slot::after {
    animation-delay: 2s;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00B8A9;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 15px #00B8A9, 0 0 30px #00B8A9;
    z-index: 5;
}

.particle:nth-child(7) { top: 15%; left: 8%; animation: floatParticle 3s ease-in-out infinite; }
.particle:nth-child(8) { top: 55%; left: 12%; animation: floatParticle 3.5s ease-in-out infinite 0.5s; }
.particle:nth-child(9) { top: 35%; right: 8%; animation: floatParticle 2.8s ease-in-out infinite 1s; }
.particle:nth-child(10) { top: 65%; right: 15%; animation: floatParticle 3.2s ease-in-out infinite 1.5s; }
.particle:nth-child(11) { top: 25%; left: 45%; animation: floatParticle 2.5s ease-in-out infinite 2s; }
.particle:nth-child(12) { top: 75%; left: 35%; animation: floatParticle 3.3s ease-in-out infinite 0.8s; }

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-25px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-90px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) scale(0);
    }
}

.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 4;
    pointer-events: none;
}

.data-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00B8A9, rgba(0, 184, 169, 0.5), transparent);
    animation: flowData 2s linear infinite;
    box-shadow: 0 0 10px #00B8A9;
}

.data-line:nth-child(1) { top: 20%; width: 70%; left: -70%; animation-delay: 0s; }
.data-line:nth-child(2) { top: 50%; width: 60%; left: -60%; animation-delay: 0.7s; }
.data-line:nth-child(3) { top: 80%; width: 65%; left: -65%; animation-delay: 1.4s; }

@keyframes flowData {
    0% { left: -70%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-placeholder {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 280px;
        padding: 20px;
    }
    
    .server-container {
        transform: scale(0.8);
    }
    
    .server {
        width: 260px;
        padding: 15px 18px;
    }
    
    .server-container {
        gap: 12px;
    }
    
    .server-rack {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 140px 0 40px;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .hero-placeholder {
        min-height: 240px;
        padding: 15px;
    }
    
    .server-container {
        transform: scale(0.65);
    }
    
    .server {
        width: 220px;
        padding: 12px 15px;
    }
    
    .light {
        width: 10px;
        height: 10px;
    }
}