@charset "UTF-8";
/* CSS Document */

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e5e7eb;
  background: radial-gradient(circle at top, #1d4ed8 0, #020617 45%, #000 100%);
}

/* Contenedor principal */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px;  /* espacio para cabecera fija */
  padding-bottom: 80px; /* espacio para footer fijo */
}

/* CABECERA FIJA */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  z-index: 20;
}

/* Lado izquierdo (logo + textos) */
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  padding: 2px;
  background: radial-gradient(circle at 0 0, #60a5fa, #020617 60%);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.65);
  flex-shrink: 0;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.app-title {
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.app-subtitle {
  font-size: 12px;
  color: #9ca3af;
}

/* Lado derecho (botón + estado) */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.primary-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.15s;
}

.primary-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 6px 14px rgba(56, 189, 248, 0.35);
  opacity: 0.95;
}

/* Estado Online */
.status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.code-label {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
  color: #cbd5f5;
  background: rgba(15, 23, 42, 0.85);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.9);
}

.status-dot--online {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.status-text {
  font-weight: 600;
}

.status-text--online {
  color: #4ade80;
}

/* CONTENIDO PRINCIPAL */
.app-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.96));
  border-radius: 24px;
  padding: 20px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: #d1d5db;
}

/* FOOTER / BOTÓN FIJO */
.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.96));
  display: flex;
  justify-content: center;
  z-index: 15;
}

.call-btn {
  width: 100%;
  max-width: 460px;
  border-radius: 999px;
  border: none;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.7);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.call-btn:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.6);
}

/* BANNER INSTALACIÓN PWA */
.install-banner {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 90px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  z-index: 30;
}

.install-banner span {
  flex: 1;
}

#install-action-btn {
  border-radius: 999px;
  border: none;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #22c55e);
  color: #f9fafb;
}

#install-close-btn {
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
}

.hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .app-header {
    height: auto;
    flex-wrap: wrap;
    gap: 6px;
  }

  .header-right {
    align-items: flex-start;
  }

  .app-shell {
    padding-top: 90px;
  }
}
