/* --- Variables de Diseño --- */
:root {
    --bg-color: #0b0f19;
    --card-bg: #141b2d;
    --accent-blue: #0072ff;
    --accent-cyan: #00d2ff;
    --text-main: #ffffff;
    --text-muted: #8a99ad;
    --led-green: #39ff14;
    --led-amber: #ffb000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Fondo con patrón de red/Grid tecnológico */
.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 114, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 114, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 700px;
    padding: 20px 20px;
    background: rgba(20, 27, 45, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* --- Logo --- */
.logo-container {
    margin-bottom: 10px;    
}

.logo {
    max-height: 145px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 114, 255, 0.3));
}

/* --- Textos y Estado --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-cyan);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.ping-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    position: relative;
}

.ping-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: ping 1.5s infinite;
    top: 0;
    left: 0;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.subtitle strong {
    color: #fff;
}

/* --- Animación de Servidor/Rack --- */
.server-rack {
    background: #090d16;
    border: 2px solid #24314f;
    border-radius: 8px;
    padding: 12px;
    width: 280px;
    margin: 0 auto 35px auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rack-unit {
    background: #121824;
    border: 1px solid #1e293b;
    height: 35px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    position: relative;
}

.lights {
    display: flex;
    gap: 6px;
}

.light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #475569;
}

.light.green { background: var(--led-green); box-shadow: 0 0 8px var(--led-green); }
.light.blue { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.light.amber { background: var(--led-amber); box-shadow: 0 0 8px var(--led-amber); }

.cable-ports {
    display: flex;
    gap: 4px;
}

.cable-ports span {
    width: 10px;
    height: 8px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1px;
}

/* --- Barra de Progreso --- */
.progress-box {
    background: rgba(9, 13, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #1a2333;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: width 0.4s ease;
}

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.contact-info span i {
    color: var(--accent-cyan);
    margin-right: 5px;
}

/* --- Animaciones Keyframes --- */
@keyframes ping {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.blink-fast { animation: blink 0.4s infinite alternate; }
.blink-slow { animation: blink 0.9s infinite alternate; }

@keyframes blink {
    0% { opacity: 0.3; filter: blur(0px); }
    100% { opacity: 1; filter: drop-shadow(0 0 3px cubic-bezier(0,0,1,1)); }
}

/* Responsivo rápido */
@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    .contact-info { flex-direction: column; gap: 8px; }
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    line-height: 60px; /* Centra el icono verticalmente */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Se asegura de estar por encima de todo */
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

/* Efecto al pasar el mouse por encima */
.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #fff;
}

/* Animación de pulso suave */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ajuste para pantallas móviles (para que no estorbe de más) */
@media (max-width: 480px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
        line-height: 50px;
    }
}