/* Pantalla pública de mantenimiento (web / PWA / Windows conectado) — Fase 11. */

.dz-service-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: grid;
  place-items: center;
  padding: 24px;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(37, 99, 235, 0.32), transparent 60%),
    radial-gradient(900px 480px at -15% 115%, rgba(0, 229, 255, 0.18), transparent 55%),
    linear-gradient(150deg, #0f2747, #13315c 55%, #1b3f75);
}

.dz-service-overlay[hidden] { display: none; }

.dz-service-card {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 34px 26px;
  background: #ffffff;
  color: #16233a;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 64px rgba(6, 16, 31, 0.45);
}

.dz-service-icon {
  order: -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  animation: dz-pulse 3.2s ease-in-out infinite;
}

.dz-service-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 39, 71, 0.28);
}

.dz-wrench {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #2563eb;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dz-service-card h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f2747;
  margin: 0 0 10px;
}

.dz-service-card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #41526b;
  margin: 0 0 26px;
  max-width: 40ch;
}

.dz-service-card button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 13px 28px;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}

.dz-service-card button:hover:not(:disabled) {
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

.dz-service-card button:active:not(:disabled) { transform: translateY(1px); }

.dz-service-card button:disabled { opacity: .55; cursor: not-allowed; }

.dz-service-card button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}

.dz-service-card a {
  display: inline-block;
  margin-top: 20px;
  color: #5b6b83;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 107, 131, 0.45);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}

.dz-service-card a:hover { color: #2563eb; border-color: currentColor; }

.dz-service-card a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

@keyframes dz-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .dz-service-icon { animation: none; }
  .dz-service-card button { transition: none; }
}

.panel-admin-link {
  display: block;
  padding: 12px;
  color: inherit;
  text-decoration: underline;
}

.panel-admin-link[hidden] { display: none; }

@media (max-width: 480px) {
  .dz-service-overlay { padding: 14px; }
  .dz-service-card { padding: 30px 20px 20px; border-radius: 14px; }
  .dz-service-logo { width: 52px; height: 52px; }
  .dz-wrench { width: 28px; height: 28px; }
  .dz-service-card h1 { font-size: 21px; }
  .dz-service-card p { font-size: 15px; }
  .dz-service-card button { padding: 12px 22px; }
}