* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #f3f5f7;
    color: #1f2933;
}

.header {
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.header h1 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.header p {
    color: #6b7280;
}

.contenedor {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
}

.bloque {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.bloque h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.bloque p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.lista-wifi {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wifi-item {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.wifi-nombre {
    font-weight: 600;
    display: block;
}

.wifi-detalle {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Botones */
.btn {
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.28);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.35);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secundario {
    background: #10b981;
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.btn-secundario:hover {
    box-shadow: 0 10px 18px rgba(16, 185, 129, 0.4);
}

.btn-link {
    background: transparent;
    color: #6b7280;
    box-shadow: none;
    margin-top: 0.75rem;
}

/* Barra de progreso */
.barra-progreso {
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    height: 10px;
    margin-top: 0.75rem;
}

.barra-progreso-inner {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2563eb, #10b981);
    transition: width 0.1s linear;
}

/* Overlay / Modal */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
}

.overlay-contenido {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.4rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
    text-align: center;
}

.overlay-contenido h3 {
    margin-bottom: 0.5rem;
}

.overlay-contenido p {
    color: #4b5563;
}

/* Estado verificación */
.verificacion-estado {
    margin-top: 1rem;
}

.verificacion-estado p {
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Utilidades */
.oculto {
    display: none !important;
}

.footer {
    text-align: center;
    padding: 0.5rem 1rem 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 600px) {
    .wifi-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}