/* Experia — tokens de diseño y estilos base */

:root {
  --brand-900: #0b1f3a;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --accent-500: #0ea5e9;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;

  /* Semáforo de reseñas */
  --good: #16a34a;
  --regular: #f59e0b;
  --bad: #dc2626;
  --good-bg: #f0fdf4;
  --regular-bg: #fffbeb;
  --bad-bg: #fef2f2;
  --bad-text: #b91c1c;
  --good-text: #166534;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 4px 16px rgb(15 23 42 / 0.06);
  --focus-ring: 0 0 0 3px rgb(14 165 233 / 0.45);

  /* "Liquid glass": vidrio translúcido con brillo arriba y reflejo abajo. */
  --glass-blur: blur(16px) saturate(180%);
  --glass-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font:
    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--brand-900);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: var(--brand-600);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-700);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.muted {
  color: var(--muted);
}

.stack > * + * {
  margin-top: 1rem;
}

.stack-lg > * + * {
  margin-top: 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Barra superior ---------- */

.topbar {
  background: var(--brand-900);
  color: #fff;
}

/* Menú fijo: permanece visible al desplazarse (paneles del cliente y del administrador). */
.topbar-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  /* Vidrio: el contenido se ve difuminado al pasar por debajo del menú. */
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(11 31 58 / 0.86);
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.18);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

/* Número de versión: pequeño y apagado, para que informe sin distraer. */
.app-version {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.app-version-menu {
  flex: none;
  color: #8fa0b8;
  user-select: none;
}

.label-short {
  display: none;
}

/* En el celular el menú fijo se compacta a una sola fila para no robar pantalla. */
@media (max-width: 640px) {
  .topbar-sticky .topbar-inner {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .topbar-sticky .client-logo {
    max-width: 120px;
    height: 44px;
    padding: 2px 6px;
  }

  .topbar-sticky .topbar-nav {
    flex-wrap: nowrap;
    flex: none;
    gap: 0.25rem;
  }

  .topbar-sticky .topbar-link {
    min-height: 36px;
    padding: 0.3125rem 0.5625rem;
    font-size: 0.8125rem;
  }

  /* Con cuatro botones, si el logo no cabe se encoge en lugar de quedar debajo de ellos. */
  .topbar-sticky .client-logo {
    min-width: 32px;
    object-fit: contain;
  }

  /* Con el icono de la marca basta: el nombre se oculta para que quepa el menú. */
  .topbar-sticky .brand-mark + .brand-name {
    display: none;
  }

  /* Un nombre de negocio largo (sin logo) se recorta en lugar de partir el menú. */
  .topbar-sticky .brand {
    min-width: 0;
  }

  .topbar-sticky .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* En el celular la versión se lee en el pie de página. */
  .app-version-menu {
    display: none;
  }

  .topbar-sticky .topbar-nav .topbar-logout {
    margin-left: 0.5rem;
  }

  .topbar-sticky .label-long {
    display: none;
  }

  .topbar-sticky .label-short {
    display: inline;
  }

  /* El porcentaje de videos vistos se compacta para que el menú siga cabiendo en una fila. */
  .topbar-sticky .video-progress {
    margin-left: 0.125rem;
    padding: 0 0.3125rem;
    font-size: 0.6875rem;
  }
}

/* Teléfonos muy angostos (320 px): botones un poco más compactos para que el menú no desborde. */
@media (max-width: 340px) {
  .topbar-sticky .topbar-inner {
    gap: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .topbar-sticky .topbar-link {
    padding: 0.3125rem 0.375rem;
    font-size: 0.75rem;
  }

  .topbar-sticky .topbar-nav .topbar-logout {
    margin-left: 0.25rem;
  }
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

/* Símbolo de Experia en el menú oscuro: va sobre un recuadro blanco para que se distinga. */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 -1px 0 rgb(15 23 42 / 0.08);
}

.brand-mark img {
  display: block;
  width: 26px;
  height: 26px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.topbar-user {
  margin-right: 0.5rem;
  color: #cbd5e1;
  font-size: 0.875rem;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.4375rem 0.95rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  background-color: rgb(255 255 255 / 0.06);
  background-image: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.26) 0%,
    rgb(255 255 255 / 0.08) 48%,
    rgb(255 255 255 / 0.03) 52%,
    rgb(255 255 255 / 0.1) 100%
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    inset 0 -1px 1px rgb(255 255 255 / 0.1),
    0 6px 16px rgb(2 6 23 / 0.28);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 1px rgb(0 0 0 / 0.25);
  white-space: nowrap;
  cursor: pointer;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition:
    transform 0.18s var(--glass-ease),
    background-color 0.18s var(--glass-ease),
    border-color 0.18s var(--glass-ease),
    box-shadow 0.18s var(--glass-ease);
}

.topbar-link:hover {
  border-color: rgb(255 255 255 / 0.4);
  background-color: rgb(255 255 255 / 0.14);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.6),
    inset 0 -1px 1px rgb(255 255 255 / 0.14),
    0 8px 22px rgb(2 6 23 / 0.34);
  color: #fff;
}

.topbar-link:active {
  transform: scale(0.96);
}

.topbar-link:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    var(--focus-ring);
}

.topbar-nav form {
  margin: 0;
}

/* «Cerrar sesión» queda aparte de los demás botones del menú. */
.topbar-nav .topbar-logout {
  margin-left: 1.5rem;
}

@media (max-width: 640px) {
  .topbar-user {
    display: none;
  }
}

/* ---------- Contenedores ---------- */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page-narrow {
  max-width: 560px;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header p {
  margin-top: 0.25rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card-wide {
  max-width: 640px;
}

/* Botón flotante de vidrio para regresar al inicio de sesión (páginas legales). */
.glass-back {
  position: fixed;
  z-index: 30;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 40px;
  padding: 0.5rem 1.05rem;
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 999px;
  background-color: rgb(255 255 255 / 0.55);
  background-image: linear-gradient(180deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.3));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    inset 0 -1px 1px rgb(15 23 42 / 0.05),
    0 0 0 1px rgb(15 23 42 / 0.06),
    0 8px 24px rgb(15 23 42 / 0.14);
  color: var(--brand-900);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition:
    transform 0.18s var(--glass-ease),
    box-shadow 0.18s var(--glass-ease);
}

.glass-back:hover {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    0 0 0 1px rgb(15 23 42 / 0.08),
    0 12px 28px rgb(15 23 42 / 0.18);
  color: var(--brand-900);
}

.glass-back:active {
  transform: scale(0.96);
}

.glass-back:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    var(--focus-ring);
}

/* Deja lugar arriba para el botón flotante. */
.public.has-glass-back {
  padding-top: 4.5rem;
}

@media (max-width: 640px) {
  .glass-back {
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.875rem;
  }

  .public.has-glass-back {
    padding-top: 4rem;
  }
}

/* Pie legal de las páginas públicas y de acceso. */
.legal-footer {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
  text-align: center;
}

.legal-footer .footer-note {
  margin: 0;
}

.legal-footer .footer-legal {
  max-width: 30rem;
}

.footer-links {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-links a {
  color: var(--brand-700);
  font-weight: 600;
}

/* Páginas legales. */
.legal-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-kicker a {
  color: var(--muted);
  text-decoration: none;
}

.legal-kicker a:hover {
  color: var(--brand-700);
}

.legal-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.legal-item {
  display: grid;
  gap: 0.125rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand-900);
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.legal-item:hover {
  border-color: var(--brand-600);
  box-shadow: var(--shadow);
}

.legal-item .muted {
  font-size: 0.875rem;
}

.prose ul {
  margin: 0;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.375rem;
}

.prose code {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.storage-list,
.prose .storage-list {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.storage-item {
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.storage-item p {
  margin: 0.25rem 0 0;
}

.storage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
}

.storage-head code {
  color: var(--brand-900);
  font-weight: 600;
}

/* Aviso de cookies del sistema de clientes: tarjeta de vidrio abajo, hasta pulsar "Entendido". */
.cookie-banner {
  position: fixed;
  z-index: 40;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0.875rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius);
  background: rgb(11 31 58 / 0.9);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 12px 32px rgb(2 6 23 / 0.35);
  color: #e2e8f0;
  font-size: 0.875rem;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner strong {
  color: #fff;
}

.cookie-banner a {
  color: #93c5fd;
  font-weight: 600;
}

.cookie-banner .btn {
  flex: none;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
}

/* Textos legales (aviso de marcas). */
.legal-text p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.legal-text p + p {
  margin-top: 1rem;
}

.legal-back {
  margin: 1rem 0 0;
  text-align: center;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Ícono del acceso de clientes: el logo sobre blanco, como el ícono de la app instalada. */
.auth-icon {
  display: block;
  width: 104px;
  height: 104px;
  margin-bottom: 0.25rem;
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgb(15 23 42 / 0.08),
    0 10px 28px rgb(15 23 42 / 0.18);
}

.auth-logo {
  display: block;
  width: 220px;
  max-width: 70%;
  height: auto;
  margin-bottom: 0.25rem;
}

.footer-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

/* El widget de Turnstile mide 300 px fijos: en móviles se reducen los márgenes para que quepa. */
.cf-turnstile {
  max-width: 100%;
  min-height: 65px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .auth {
    padding: 1.5rem 0.75rem;
  }

  .page {
    padding: 1.5rem 0.75rem 2.5rem;
  }

  .card {
    padding: 1.25rem 1rem;
  }
}

/* ---------- Formularios ---------- */

.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.input:hover {
  border-color: #94a3b8;
}

.input:focus-visible {
  border-color: var(--accent-500);
}

.hint {
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.hint-list {
  margin: 0.375rem 0 0;
  padding-left: 1.125rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-700);
  color: #fff;
}

.btn-secondary {
  border-color: #cbd5e1;
  background: var(--surface);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: var(--text);
}

.btn-block {
  width: 100%;
}

/* ---------- Avisos ---------- */

.alert {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

.alert ul {
  margin: 0.25rem 0 0;
  padding-left: 1.125rem;
}

.alert-error {
  border-color: #fecaca;
  background: var(--bad-bg);
  color: var(--bad-text);
}

.alert-success {
  border-color: #bbf7d0;
  background: var(--good-bg);
  color: var(--good-text);
}

.alert-info {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #075985;
}

/* ---------- Tarjetas de resumen ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.stat-value {
  margin-top: 0.25rem;
  color: var(--brand-900);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- Páginas de error ---------- */

.error-code {
  color: var(--accent-500);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =====================================================================
   Panel de administración: clientes
   ===================================================================== */

.small {
  font-size: 0.8125rem;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.code {
  padding: 0.125rem 0.375rem;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--brand-900);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.875em;
  letter-spacing: 0.04em;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.page-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- Botones adicionales ---------- */

.btn-sm {
  min-height: 36px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: #f1f5f9;
  color: var(--text);
}

.btn-danger {
  background: var(--bad);
  color: #fff;
}

.btn-danger:hover {
  background: var(--bad-text);
  color: #fff;
}

.btn-danger-ghost {
  border-color: #fecaca;
  background: var(--surface);
  color: var(--bad-text);
}

.btn-danger-ghost:hover {
  background: var(--bad-bg);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Insignias ---------- */

.badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.badge-good {
  background: var(--good-bg);
  border-color: #bbf7d0;
  color: var(--good-text);
}

.badge-regular {
  background: var(--regular-bg);
  border-color: #fde68a;
  color: #92400e;
}

.badge-bad {
  background: var(--bad-bg);
  border-color: #fecaca;
  color: var(--bad-text);
}

.badge-muted {
  background: #f1f5f9;
  border-color: var(--border);
  color: var(--muted);
}

.badge-outline {
  border-color: #cbd5e1;
  color: var(--text);
}

.alert-warning {
  border-color: #fde68a;
  background: var(--regular-bg);
  color: #92400e;
}

.alert > * + * {
  margin-top: 0.5rem;
}

.inline-form {
  margin-top: 0.75rem;
}

/* ---------- Formularios adicionales ---------- */

textarea.input {
  min-height: 88px;
  resize: vertical;
}

select.input {
  padding-right: 2rem;
}

.input[readonly] {
  background: #f8fafc;
  color: var(--muted);
}

.input-row {
  display: flex;
  gap: 0.5rem;
}

.input-row .input {
  flex: 1;
  min-width: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.grid-2 > * + * {
  margin-top: 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0.2rem 0 0;
  accent-color: var(--brand-600);
}

.check .hint {
  display: block;
  margin-top: 0.125rem;
}

/* Una casilla dentro de un campo no hereda el estilo de etiqueta de campo. */
.field label.check {
  display: flex;
  margin-bottom: 0;
  font-size: 0.9375rem;
  font-weight: 400;
}

.indent {
  margin-left: 1.75rem;
}

.fieldset {
  min-width: 0;
  margin: 1.75rem 0 0;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.fieldset legend {
  padding: 0 0.5rem 0 0;
  color: var(--brand-900);
  font-size: 0.9375rem;
  font-weight: 600;
}

.details summary {
  color: var(--brand-600);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.details[open] summary {
  margin-bottom: 0.75rem;
}

.logo-preview {
  display: block;
  max-width: 160px;
  max-height: 96px;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  object-fit: contain;
}

.logo-current {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.logo-current .logo-preview {
  margin-top: 0;
}

/* ---------- Logo: búsqueda en la página web y editor ---------- */

.logo-finder {
  margin-top: 0.75rem;
}

.logo-finder .hint:empty {
  display: none;
}

.logo-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.logo-candidate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 112px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.logo-candidate:hover,
.logo-candidate:focus-visible {
  border-color: var(--brand-600);
}

.logo-candidate img {
  width: 96px;
  height: 64px;
  /* Cuadros grises: se distingue tanto un logo blanco como uno oscuro. */
  background: repeating-conic-gradient(#e2e8f0 0 25%, #94a3b8 0 50%) 0 0 / 12px 12px;
  object-fit: contain;
}

.logo-editor {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
}

.logo-editor-head {
  display: grid;
  gap: 0.125rem;
}

.logo-editor-canvas {
  display: block;
  width: 100%;
  height: 260px;
  border-radius: var(--radius-sm);
  cursor: grab;
  touch-action: none;
}

.logo-editor-canvas:active {
  cursor: grabbing;
}

.logo-editor-canvas:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.logo-editor-controls {
  display: grid;
  gap: 0.75rem;
}

.logo-range {
  width: 100%;
  max-width: 320px;
  accent-color: var(--brand-600);
}

.logo-editor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.logo-editor-shape {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.logo-editor-shape legend {
  margin-bottom: 0.25rem;
}

.logo-swatch {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  border: 1px solid #94a3b8;
  border-radius: 3px;
  vertical-align: -2px;
}

.logo-bg-options {
  padding-left: 1.75rem;
}

/* Cómo se verá el logo en cada lugar donde aparece. */
.logo-samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.logo-samples figure {
  margin: 0;
}

.logo-samples figcaption {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.logo-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.logo-sample img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.logo-sample-public img {
  max-height: 96px;
}

/* Igual que el menú del panel del cliente: el logo va en un recuadro blanco sobre azul. */
.logo-sample-panel {
  border-color: var(--brand-900);
  background: var(--brand-900);
}

.logo-sample-panel img {
  height: 54px;
  padding: 3px 9px;
  border-radius: 8px;
  background: #fff;
}

.logo-sample-email img {
  max-height: 64px;
}

@media (max-width: 640px) {
  .logo-samples {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Barra de búsqueda y tabla ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin: 1rem 0;
}

.toolbar-grow {
  flex: 1 1 260px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card .table-wrap {
  box-shadow: none;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.table thead th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: #f8fafc;
}

.table tbody th {
  font-weight: 600;
  text-transform: capitalize;
}

/* Tablas cuyas filas llevan un nombre propio (mesas, tarjetas): se respeta como se escribió. */
.table-names tbody th {
  text-transform: none;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table .good {
  color: var(--good-text);
}

.table .regular {
  color: #92400e;
}

.table .bad {
  color: var(--bad-text);
}

.table-compact th,
.table-compact td {
  padding: 0.5rem 0.75rem;
}

.table-link {
  color: var(--brand-900);
  font-weight: 600;
  text-decoration: none;
}

.table-link:hover {
  color: var(--brand-600);
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.375rem;
}

.actions .btn {
  white-space: nowrap;
}

/* La lista de clientes usa pantallas anchas, pero tiene muchas columnas. */
.page-wide {
  max-width: 1360px;
}

.topbar-wide .topbar-inner {
  max-width: 1360px;
}

.actions form {
  margin: 0;
}

/*
 * Lista de clientes: los encabezados y los botones de «Acciones» se parten en varias líneas
 * en vez de ensanchar la tabla más allá de la pantalla.
 */
.table-clients th,
.table-clients td {
  padding-inline: 0.625rem;
}

.table-clients thead th {
  white-space: normal;
  vertical-align: bottom;
}

.table-clients .actions {
  flex-wrap: wrap;
  min-width: 14rem;
}

/* En ventanas más angostas (laptop chica, tableta en horizontal) los botones se apilan más. */
@media (max-width: 1200px) {
  .table-clients th,
  .table-clients td {
    padding-inline: 0.4rem;
  }

  .table-clients .actions {
    min-width: 0;
  }
}

.empty {
  text-align: center;
}

.empty > * + * {
  margin-top: 0.75rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

/* ---------- Asistente de alta ---------- */

.steps {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.steps-item {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.625rem;
  border-bottom: 3px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.steps-number {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.steps-item.is-current {
  border-color: var(--brand-600);
  color: var(--brand-900);
  font-weight: 600;
}

.steps-item.is-current .steps-number {
  background: var(--brand-600);
  color: #fff;
}

.steps-item.is-done {
  border-color: var(--good);
}

.steps-item.is-done .steps-number {
  background: var(--good);
  color: #fff;
}

/* El título recibe el foco al cambiar de paso (para lectores de pantalla), sin dibujar el aro. */
.wizard-step h2:focus,
.wizard-step h2:focus-visible {
  outline: none;
  box-shadow: none;
}

.wizard-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wizard-nav-spacer {
  flex: 1;
}

/* ---------- Resultados de Google ---------- */

.place-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-list:empty {
  display: none;
}

.place {
  display: grid;
  gap: 0.125rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.place:hover {
  border-color: var(--accent-500);
  background: #f0f9ff;
}

.place-rating {
  color: #92400e;
  font-size: 0.8125rem;
  font-weight: 500;
}

.selected-place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  background: var(--good-bg);
}

.selected-place-extra {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  color: var(--good-text);
  font-size: 0.875rem;
}

.selected-place-extra p {
  flex: 1 1 18rem;
  margin: 0;
}

/* Campo llenado con datos de Google: se destaca hasta que se edita. */
.input.is-prefilled {
  border-color: #93c5fd;
  background: #eff6ff;
}

.prefill-note {
  margin: 0.25rem 0 0;
  color: var(--brand-700);
  font-size: 0.8125rem;
}

.selected-place-label {
  color: var(--good-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Ficha ---------- */

.nfc {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.nfc-main {
  flex: 1;
  min-width: 0;
}

.qr {
  flex: none;
  width: 176px;
  height: 176px;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.facts dd {
  margin: 0.125rem 0 0;
}

.danger-zone {
  border-color: #fecaca;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nfc {
    flex-direction: column;
  }

  .steps-label {
    display: none;
  }

  .steps-item.is-current .steps-label {
    display: inline;
  }

  .input-row {
    flex-wrap: wrap;
  }
}

/* =====================================================================
   Páginas públicas (lo que abre el cliente final desde la tarjeta NFC)
   ===================================================================== */

.public {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* La tarjeta va al centro de la pantalla: en un celular la página es corta y, pegada arriba,
     la barra del navegador (que en algunos flota sobre la página) le tapaba el logo. dvh es la
     altura que de verdad se ve; vh queda de respaldo. */
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem 1rem 2rem;
}

.public-card {
  width: 100%;
  max-width: 440px;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public-wide .public-card {
  max-width: 720px;
}

.public-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.public-logo {
  display: block;
  max-width: 180px;
  max-height: 96px;
  object-fit: contain;
}

.public-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand-900);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.public-business {
  color: var(--brand-900);
  font-size: 1.125rem;
  font-weight: 600;
}

.public-title {
  font-size: 1.375rem;
  text-align: center;
}

.public-title-left {
  margin-bottom: 0.5rem;
  text-align: left;
}

.public-lead {
  margin: 0.75rem 0 1.25rem;
  color: #334155;
  text-align: center;
}

/* Página de gracias: aviso de que se abrirá la ficha del negocio en Google Maps. */
.public-redirect {
  margin: 1rem 0 0;
  color: #334155;
  font-size: 0.9375rem;
  text-align: center;
}

.public-redirect [data-redirect-count] {
  color: var(--brand-900);
  font-variant-numeric: tabular-nums;
}

/* Explica por qué se piden los datos en el formulario de queja. */
.public-why {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 0.9375rem;
  text-align: center;
}

.public-why strong {
  color: var(--brand-900);
}

.public-question {
  margin-top: 1rem;
  color: var(--brand-900);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Caritas ---------- */

/* Las tres caben en una fila incluso en teléfonos de 320 px, con área táctil de 88 px. */
.faces {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.faces > * {
  flex: 1 1 0;
  min-width: 88px;
  max-width: 120px;
}

.face-form {
  margin: 0;
}

.face-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  min-height: 88px;
  padding: 0.5rem 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.12s ease,
    background-color 0.12s ease;
}

.face-button:hover {
  background: #f1f5f9;
  color: var(--text);
}

.face-button:active {
  transform: scale(0.94);
}

.face-button:focus-visible {
  border-radius: 16px;
}

.face {
  display: block;
  width: 88px;
  height: 88px;
}

.face-label {
  font-size: 1rem;
  font-weight: 600;
}

.public-face-small {
  display: flex;
  justify-content: center;
}

.public-face-small .face {
  width: 56px;
  height: 56px;
}

.public-check {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.btn-lg {
  min-height: 52px;
  font-size: 1.0625rem;
}

.public-back {
  display: block;
  padding: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* Las dos opciones tras la carita amarilla o roja (contarle al negocio o reseñar en Google).
   Llevan el mismo estilo y el mismo tamaño a propósito: ninguna debe pesar más que la otra. */
.public-face-small + .public-title {
  margin-top: 0.875rem;
}

.choices {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.choice {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  width: 100%;
  min-height: 88px;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: #475569;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    transform 0.15s var(--glass-ease);
}

.choice strong {
  color: var(--brand-900);
  font-size: 1.0625rem;
  line-height: 1.3;
  /* Las dos opciones ocupan lo mismo: título de dos líneas y texto de tres. */
  min-height: 2.6em;
}

.choice span {
  line-height: 1.5;
  min-height: 4.5em;
}

.choice:hover {
  border-color: var(--brand-600);
  color: #475569;
}

.choice:active {
  transform: scale(0.985);
}

/* En el teléfono la pantalla de opciones debe verse completa, sin deslizar: encabezado en una
   fila y todo más compacto. Las dos opciones siguen siendo idénticas entre sí. */
@media (max-width: 480px), (max-height: 720px) {
  .public-short {
    min-height: 100dvh;
    padding: 0.75rem 0.75rem 1rem;
  }

  .public-compact {
    padding: 1rem;
  }

  .public-compact .public-header {
    flex-direction: row;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
  }

  .public-compact .public-logo {
    max-width: 120px;
    max-height: 44px;
  }

  .public-compact .public-logo-fallback {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .public-compact .public-business {
    font-size: 1rem;
    text-align: left;
  }

  .public-compact .public-face-small .face {
    width: 40px;
    height: 40px;
  }

  .public-compact .public-face-small + .public-title {
    margin-top: 0.5rem;
    font-size: 1.125rem;
  }

  .public-compact .public-lead {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.875rem;
  }

  /* Las dos tarjetas miden lo mismo (la más alta manda), sin reservar líneas de más. */
  .public-compact .choices {
    grid-auto-rows: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
  }

  .public-compact .choice {
    min-height: 0;
    padding: 0.625rem 0.875rem;
    gap: 0.125rem;
  }

  .public-compact .choice strong {
    font-size: 1rem;
  }

  .public-compact .choice span {
    font-size: 0.875rem;
    line-height: 1.35;
    min-height: 0;
  }

  .public-compact .public-back {
    padding: 0.25rem;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice {
    transition: none;
  }

  .choice:active {
    transform: none;
  }
}

/* En el teléfono, 16 px evita que iOS haga zoom al tocar un campo. */
.public .input {
  font-size: 16px;
}

@media (max-width: 360px) {
  .public {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .public-card {
    padding: 1.5rem 0.75rem;
  }

  .faces {
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .face-button {
    transition: none;
  }
}

/* ---------- Texto largo (aviso de privacidad) ---------- */

.prose {
  margin-bottom: 1.5rem;
  color: #334155;
  font-size: 0.9375rem;
}

.prose h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
}

.prose p,
.prose ul {
  margin: 0 0 0.75rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.375rem;
}

/* =====================================================================
   Panel del cliente
   ===================================================================== */

.client-logo {
  display: block;
  max-width: 180px;
  height: 54px;
  padding: 3px 9px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

/* En el celular el logo ya identifica al negocio: el nombre a su lado se oculta. */
@media (max-width: 640px) {
  .client-logo + .brand-name {
    display: none;
  }
}

.readonly-banner {
  padding: 0.5rem 1.25rem;
  background: var(--regular-bg);
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

/* Pie del panel del administrador. */
.footer-note-page {
  margin: 0;
  padding: 0 1.25rem 2rem;
}

/* Pie del panel del negocio: la marca a la izquierda y el contacto de soporte a la derecha. */
.page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.page-footer .footer-note {
  margin: 0;
}

.footer-brand {
  display: grid;
  gap: 0.25rem;
}

.footer-brand .footer-note {
  text-align: left;
}

/* Aviso breve de independencia respecto de Google, con enlace al aviso completo. */
.footer-legal {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.footer-legal a {
  color: var(--brand-700);
  font-weight: 600;
}

/* En páginas cortas, el pie baja hasta el fondo de la ventana. */
body:has(> .page-footer) {
  display: flex;
  flex-direction: column;
}

body:has(> .page-footer) > main {
  flex: 1 0 auto;
  width: 100%;
}

body:has(> .page-footer) > .page-footer {
  width: 100%;
}

.support-contact {
  display: grid;
  justify-items: end;
  gap: 0.125rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: normal;
  text-align: right;
}

.support-title {
  color: var(--brand-900);
  font-weight: 600;
}

.support-contact a {
  color: var(--brand-700);
  text-decoration: none;
}

.support-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .page-footer {
    flex-direction: column-reverse;
    align-items: center;
  }

  .support-contact {
    justify-items: center;
    text-align: center;
  }

  .footer-brand,
  .footer-brand .footer-note {
    justify-items: center;
    text-align: center;
  }
}

.btn-xs {
  min-height: 28px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
}

.page-narrow-left {
  max-width: 640px;
}

/* ---------- Inicio: plataformas ---------- */

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.5rem;
  text-align: center;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin-top: 2rem;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 150px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

a.platform:hover {
  border-color: var(--brand-600);
  color: var(--text);
  transform: translateY(-2px);
}

.platform-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.platform-name {
  color: var(--brand-900);
  font-size: 1.375rem;
  font-weight: 700;
}

.platform-description {
  color: var(--muted);
  font-size: 0.9375rem;
}

.platform-disabled {
  background: #f8fafc;
  box-shadow: none;
  cursor: not-allowed;
}

.platform-disabled .platform-name {
  color: var(--muted);
}

/* ---------- Pestañas ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 1.125rem;
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 999px;
  background-color: rgb(255 255 255 / 0.5);
  background-image: linear-gradient(180deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.35));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    inset 0 -1px 0 rgb(15 23 42 / 0.04),
    0 0 0 1px rgb(15 23 42 / 0.04),
    0 4px 14px rgb(15 23 42 / 0.08);
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition:
    transform 0.18s var(--glass-ease),
    box-shadow 0.18s var(--glass-ease),
    color 0.18s var(--glass-ease);
}

.tab:hover {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    inset 0 -1px 0 rgb(15 23 42 / 0.04),
    0 0 0 1px rgb(15 23 42 / 0.06),
    0 8px 20px rgb(15 23 42 / 0.12);
  color: var(--brand-900);
}

.tab:active {
  transform: scale(0.97);
}

/* La pestaña actual: vidrio con tinte azul, un poco más elevado. */
.tab.is-current {
  border-color: rgb(29 78 216 / 0.35);
  background-color: rgb(29 78 216 / 0.14);
  background-image: linear-gradient(180deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.12));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    inset 0 -1px 1px rgb(29 78 216 / 0.12),
    0 6px 18px rgb(29 78 216 / 0.2);
  color: var(--brand-900);
}

.tab:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    var(--focus-ring);
}

/* Aviso dentro de una pestaña: cuántos prospectos nuevos faltan por contactar. */
.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.375rem;
  height: 1.375rem;
  margin: 0 -0.375rem 0 0.5rem;
  padding: 0 0.375rem;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ---------- Cuadros de estadísticas ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tile {
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-900);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tile-good {
  border-top-color: var(--good);
}

.tile-regular {
  border-top-color: var(--regular);
}

.tile-bad {
  border-top-color: var(--bad);
}

.tile-pending {
  border-top-color: var(--accent-500);
}

.tile-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.tile-value {
  margin-top: 0.125rem;
  color: var(--brand-900);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.chart-box {
  position: relative;
  height: 300px;
}

/* Segunda gráfica, debajo de la de barras. */
.chart-card {
  margin-top: 1.25rem;
}

.chart-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Botones para elegir qué muestra la gráfica (mismo aspecto que las pestañas de quejas). */
.chart-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Punto con el color de la serie que muestra cada botón. */
.chart-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}

.chart-dot-good {
  background: var(--good);
}

.chart-dot-regular {
  background: var(--regular);
}

.chart-dot-bad {
  background: var(--bad);
}

button.subtab {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Lista de quejas ---------- */

.complaints {
  margin-top: 1.75rem;
}

.complaints {
  /* Al saltar a la sección (#quejas), que no quede tapada por el menú fijo. */
  scroll-margin-top: 90px;
}

.complaints > h2 {
  margin-bottom: 0.75rem;
}

/* Pestañas de la lista: por atender / atendidas. */
.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Botones de selección (pestañas de quejas y vistas de la gráfica): mismo vidrio que las
   pestañas de secciones; el elegido, vidrio oscuro. */
.subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 999px;
  background-color: rgb(255 255 255 / 0.5);
  background-image: linear-gradient(180deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.35));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    inset 0 -1px 0 rgb(15 23 42 / 0.04),
    0 0 0 1px rgb(15 23 42 / 0.05),
    0 4px 12px rgb(15 23 42 / 0.08);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition:
    transform 0.18s var(--glass-ease),
    box-shadow 0.18s var(--glass-ease),
    color 0.18s var(--glass-ease);
}

.subtab:hover {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    0 0 0 1px rgb(15 23 42 / 0.08),
    0 8px 18px rgb(15 23 42 / 0.12);
  color: var(--brand-900);
}

.subtab:active {
  transform: scale(0.97);
}

.subtab.is-current {
  border-color: rgb(255 255 255 / 0.22);
  background-color: rgb(11 31 58 / 0.88);
  background-image: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.24) 0%,
    rgb(255 255 255 / 0.06) 50%,
    rgb(255 255 255 / 0.1) 100%
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    inset 0 -1px 1px rgb(255 255 255 / 0.1),
    0 6px 16px rgb(11 31 58 / 0.3);
  color: #fff;
}

.subtab:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.6),
    var(--focus-ring);
}

.subtab-count {
  min-width: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5rem;
  text-align: center;
}

.subtab-count-pending {
  background: var(--bad-bg);
  color: var(--bad-text);
}

.subtab-count-attended {
  background: var(--good-bg);
  color: var(--good-text);
}

.complaint-flash {
  margin: 0 0 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  background: var(--good-bg);
  color: var(--good-text);
  font-size: 0.9375rem;
}

.complaint-empty {
  margin: 0;
  padding: 1.5rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* La lista tiene su propio scroll para que la página no crezca con cada queja. */
.complaint-scroll {
  max-height: min(36rem, 72vh);
  padding: 0 0.75rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #eef2f8;
  -webkit-overflow-scrolling: touch;
}

.complaint-scroll:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.complaint-scroll .day-group:last-child {
  padding-bottom: 0.25rem;
}

/* El día queda a la vista mientras se recorren sus quejas. */
.complaint-scroll .day-label {
  position: sticky;
  z-index: 1;
  top: 0;
  margin: 0 -0.75rem 0.5rem;
  padding: 0.625rem 0.75rem 0.375rem;
  background: #eef2f8;
}

.day-label {
  margin: 1.25rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.day-label::first-letter {
  text-transform: uppercase;
}

.complaint {
  /* Al saltar a una queja (#queja-N), que no quede tapada por el menú fijo ni por el día. */
  scroll-margin-top: 110px;
  margin-bottom: 0.75rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--regular);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.complaint-bad {
  border-left-color: var(--bad);
}

.complaint > * + * {
  margin-top: 0.625rem;
}

.complaint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.complaint-comment {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.complaint-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.complaint-mails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.mail-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mail-status form {
  margin: 0;
}

.mail-yes {
  color: var(--good-text);
}

.mail-no {
  color: var(--bad-text);
}

.mail-none {
  color: var(--muted);
}

.mail-no[title] {
  text-decoration: underline dotted;
  cursor: help;
}

.complaint-notice {
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  background: #f0f9ff;
  color: #075985;
  font-size: 0.875rem;
}

.complaint-notice-error {
  background: var(--bad-bg);
  color: var(--bad-text);
}

.owner-note {
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--good-bg);
}

.owner-note-label {
  color: var(--good-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.owner-note p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Botón de estado: amarillo o rojo si no está atendida, verde si ya se atendió. */
.status-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.status-btn::-webkit-details-marker {
  display: none;
}

span.status-btn {
  cursor: default;
}

.status-regular {
  background: var(--regular);
  color: #451a03;
}

.status-bad {
  background: var(--bad);
}

.status-attended {
  background: var(--good);
}

/* Flecha dibujada con bordes (no depende de que la fuente tenga el símbolo). */
summary.status-btn::after {
  width: 0.4em;
  height: 0.4em;
  margin: -0.15em 0 0 0.625rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: '';
  transform: rotate(45deg);
}

.status-box[open] summary.status-btn::after {
  margin-top: 0.2em;
  transform: rotate(225deg);
}

.status-form {
  margin-top: 0.75rem;
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

/* ---------- Cupón ---------- */

.coupon-preview {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.field .coupon-preview {
  margin-top: 0.75rem;
}

.input-short {
  max-width: 8rem;
}

/* ---------- Códigos de cupón ---------- */

.coupon-code {
  color: var(--brand-900);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.coupon-code-lg {
  font-size: 1.375rem;
}

.coupon-input {
  max-width: 16rem;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coupon-input::placeholder {
  font-weight: 400;
  letter-spacing: 0.08em;
}

.coupon-status {
  white-space: nowrap;
}

.complaint-coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.625rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.coupon-result {
  border-left: 6px solid var(--good);
}

.coupon-result-no {
  border-left-color: var(--bad);
}

.coupon-result-no h2 {
  color: var(--bad-text);
}

.coupon-result-ok h2 {
  color: var(--good-text);
}

.coupon-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  margin-bottom: 0;
}

.coupon-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coupon-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.coupon-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  color: var(--muted);
}

.coupon-counts strong {
  color: var(--brand-900);
}

/* Filtros de los cupones enviados: un botón de vidrio que abre el panel. */
.coupon-filters > summary {
  width: fit-content;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.coupon-filters > summary::-webkit-details-marker {
  display: none;
}

.coupon-filters > summary .filter-count {
  background: rgb(255 255 255 / 0.2);
  color: #fff;
}

.coupon-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.25rem;
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.filter-group {
  display: grid;
  /* El título arriba y el campo abajo, a la altura de los de fecha. */
  align-content: space-between;
  gap: 0.375rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-group > legend,
.filter-legend {
  margin-bottom: 0.375rem;
  padding: 0;
  color: var(--brand-900);
  font-size: 0.875rem;
  font-weight: 600;
}

.date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.date-range label {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.date-range .input {
  min-width: 0;
}

.filter-actions {
  grid-column: 1 / -1;
}

.filter-summary {
  color: var(--muted);
  font-size: 0.9375rem;
}

.filter-summary strong {
  color: var(--brand-900);
}

.check-disabled {
  color: var(--muted);
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .chart-box {
    height: 260px;
  }

  .complaint-scroll {
    padding: 0 0.5rem;
  }

  .coupon-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .complaint-scroll .day-label {
    margin: 0 -0.5rem 0.5rem;
    padding: 0.625rem 0.5rem 0.375rem;
  }

  .tabs {
    gap: 0.375rem;
  }

  .tab {
    min-height: 36px;
    padding: 0.375rem 0.875rem;
    font-size: 0.9375rem;
  }
}

/* ---------- Vidrio: accesibilidad y navegadores antiguos ----------
   Va al final para que se imponga a los estilos de los botones. */

/* Si el sistema pide menos transparencias o menos movimiento, se respetan. */
@media (prefers-reduced-transparency: reduce) {
  .topbar-sticky {
    background: var(--brand-900);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .topbar-link,
  .tab,
  .subtab,
  .glass-back {
    background-image: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .topbar-link {
    background-color: rgb(255 255 255 / 0.14);
  }

  .tab,
  .subtab,
  .glass-back {
    background-color: #fff;
  }

  .tab.is-current {
    background-color: #dbeafe;
  }

  .subtab.is-current {
    background-color: var(--brand-900);
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-link,
  .tab,
  .subtab,
  .glass-back {
    transition: none;
  }

  .topbar-link:active,
  .tab:active,
  .subtab:active,
  .glass-back:active {
    transform: none;
  }
}

/* Navegadores sin desenfoque: el menú vuelve a ser opaco para que el texto se lea bien. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar-sticky {
    background: var(--brand-900);
  }
}

/* ---------- Briefs (administración) ---------- */

.admin-sections {
  margin-bottom: 1rem;
}

.brief-results {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.brief-result p {
  margin: 0.125rem 0 0;
}

.stars {
  color: #f59e0b;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.stars-empty {
  color: #cbd5e1;
}

.brief-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.brief {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brief-header {
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--brand-900);
}

.brief-header h1 {
  margin: 0.25rem 0;
  font-size: 1.75rem;
}

.brief-header p {
  margin: 0.125rem 0;
}

.brief-logo {
  display: block;
  width: 148px;
  height: auto;
  margin-bottom: 1rem;
}

.brief-kicker {
  color: var(--brand-600);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brief-date {
  color: var(--muted);
  font-size: 0.875rem;
}

.brief-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

/* Al imprimir, un título no se queda solo al final de una hoja. */
.brief-section h2,
.brief-section h3 {
  break-after: avoid;
}

.brief-summary,
.brief-score,
.brief-google-summary,
.brief-period,
.brief-two > div,
.brief-next {
  break-inside: avoid;
}

.brief-section h2 {
  margin: 0 0 0.625rem;
  color: var(--brand-900);
  font-size: 1.125rem;
}

.brief-section h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.9375rem;
}

.brief-section p {
  margin: 0.25rem 0;
}

.brief-summary p {
  font-size: 1.0625rem;
  line-height: 1.6;
}

.brief-google {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
}

.brief-score {
  display: grid;
  justify-items: start;
  gap: 0.25rem;
  min-width: 140px;
}

.brief-rating {
  color: var(--brand-900);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
}

.brief-score .stars {
  font-size: 1.25rem;
}

.brief-google-summary {
  flex: 1 1 280px;
  margin: 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg);
}

.brief-reviews {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-review {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  break-inside: avoid;
}

.brief-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.brief-source {
  margin-top: 0.75rem !important;
  color: var(--muted);
  font-size: 0.8125rem;
}

.brief-periods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.brief-period h3 {
  margin-top: 0;
}

.brief-figures {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.brief-figures > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.brief-figures dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.brief-figures dd {
  margin: 0;
  color: var(--brand-900);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.brief-figures dd.good {
  color: var(--good-text);
}

.brief-figures dd.bad {
  color: var(--bad-text);
}

.brief-figures dd .muted {
  font-size: 0.8125rem;
  font-weight: 500;
}

.brief-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.brief-list {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding-left: 1.25rem;
}

.brief-next {
  border-bottom: 0;
}

.brief-next p {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--good-bg);
  color: var(--brand-900);
  font-weight: 600;
}

.brief-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
}

.brief-footer p {
  margin: 0.125rem 0;
}

.brief-refine {
  max-width: 820px;
  margin: 1.5rem auto 0;
}

@media (max-width: 640px) {
  .brief {
    padding: 1.25rem 1rem;
  }

  .brief-header h1 {
    font-size: 1.375rem;
  }
}

/* Al imprimir o guardar como PDF solo sale el brief, sin el menú ni los botones. */
@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: #fff;
  }

  .topbar,
  .footer-note-page,
  .no-print,
  .cookie-banner {
    display: none !important;
  }

  .page {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .brief {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
    font-size: 0.9375rem;
  }

  .brief-section {
    padding: 0.875rem 0;
  }

  .brief a {
    color: inherit;
    text-decoration: none;
  }

  .brief-figures > div,
  .brief-google-summary,
  .brief-next p {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ---------- Prospectos (formulario de contacto de la portada) ---------- */

.lead-when {
  white-space: nowrap;
}

.lead-message {
  min-width: 14rem;
  max-width: 26rem;
  white-space: pre-line;
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.lead-actions form {
  margin: 0;
}

.lead-form {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.lead-note {
  width: 12rem;
  min-height: 2.25rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
}

.lead-actions .btn {
  white-space: nowrap;
}

/* ---------- Datos que solo ve el administrador ("Ver como cliente") ---------- */

.admin-only {
  border-style: dashed;
  border-color: #94a3b8;
  background: #f8fafc;
}

.admin-only-tag {
  justify-self: start;
  width: fit-content;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--brand-900);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- Centro de mensajes ---------- */

/* Entrada desde el inicio del panel del negocio. */
.inbox-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  max-width: 496px;
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.inbox-card:hover {
  border-color: var(--brand-600);
  color: var(--text);
  transform: translateY(-2px);
}

.inbox-card.has-unread {
  border-color: var(--brand-600);
}

.inbox-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--brand-600);
}

.inbox-text {
  display: grid;
  flex: 1;
  gap: 0.125rem;
}

.inbox-title {
  color: var(--brand-900);
  font-size: 1.0625rem;
  font-weight: 700;
}

.inbox-description {
  color: var(--muted);
  font-size: 0.9375rem;
}

.inbox-card.has-unread .inbox-description {
  color: var(--brand-700);
  font-weight: 600;
}

.inbox-count {
  display: grid;
  flex: none;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Lista de mensajes del negocio. */
.message-list {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.message {
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.message.is-new {
  border-left: 4px solid var(--brand-600);
}

.message-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.message > .small {
  margin-top: 0.125rem;
}

.message > .message-until {
  margin-top: 0.75rem;
}

.message-back {
  margin-top: 1.25rem;
}

/* Texto escrito por el administrador: respeta sus saltos de línea. */
.linked-text {
  margin-top: 0.625rem;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

/* Foto o video que lleva un mensaje (panel del negocio y ventana del administrador). */
.message-media {
  margin-top: 0.75rem;
}

.message-media img,
.message-media video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--brand-900);
}

.message-media video {
  width: 100%;
  max-height: 70dvh;
}

/* Mensajes enviados, en el panel de administración. */
.message-cell {
  min-width: 16rem;
  max-width: 34rem;
}

/* Botón de cada fila: abre el mensaje completo en una ventana emergente. */
.message-open {
  display: grid;
  gap: 0.125rem;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--brand-900);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.message-open-title {
  font-weight: 600;
}

.message-media-tag {
  color: var(--muted);
  font-size: 0.8125rem;
}

.message-open-hint {
  color: var(--brand-600);
  font-size: 0.8125rem;
  font-weight: 600;
}

.message-open:hover .message-open-hint {
  text-decoration: underline;
}

.message-open:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--focus-ring);
}

/* Ventana emergente genérica: tarjeta centrada sobre un fondo oscuro. */
.modal {
  width: min(640px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgb(2 6 23 / 0.4);
  color: var(--text);
}

.modal::backdrop {
  background: rgb(15 23 42 / 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Con una ventana abierta, la página de atrás no se desplaza. */
body:has(dialog.modal[open]) {
  overflow: hidden;
}

.modal-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 2rem);
}

.modal-head {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.modal-head p {
  margin: 0.25rem 0 0;
}

.modal-status {
  margin-top: 0.5rem;
}

.modal-body {
  flex: 1;
  padding: 0.25rem 1.5rem 1rem;
  overflow-y: auto;
}

.modal-foot {
  padding: 0.875rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

/* Al final de cada mensaje enviado: quién ya lo abrió (✓ verde) y quién todavía no (✗ roja). */
.readers {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.readers h3 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.reader-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.reader {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  overflow-wrap: anywhere;
}

.reader-mark {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.reader.is-read .reader-mark {
  background: var(--good);
}

.reader.is-unread .reader-mark {
  background: var(--bad);
}

@media (max-width: 640px) {
  .modal-head,
  .modal-body,
  .modal-foot {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .modal-foot .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inbox-card {
    transition: none;
  }

  .inbox-card:hover {
    transform: none;
  }
}

/* ---------- Tutoriales ---------- */

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tutorial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.tutorial-card:hover {
  border-color: var(--brand-600);
  box-shadow:
    0 2px 4px rgb(15 23 42 / 0.06),
    0 12px 28px rgb(29 78 216 / 0.16);
  color: var(--text);
  transform: translateY(-3px);
}

.tutorial-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.tutorial-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.tutorial-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tutorial-card:hover .tutorial-thumb img {
  transform: scale(1.04);
}

/* Botón de reproducir, sobre la miniatura. */
.tutorial-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding-left: 3px;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 50%;
  background: rgb(11 31 58 / 0.62);
  box-shadow: 0 6px 18px rgb(2 6 23 / 0.3);
  color: #fff;
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.tutorial-card:hover .tutorial-play {
  background: var(--brand-600);
  transform: translate(-50%, -50%) scale(1.08);
}

.tutorial-duration {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: rgb(11 31 58 / 0.82);
  color: #fff;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.tutorial-info {
  display: grid;
  gap: 0.25rem;
  padding: 0.875rem 1rem 1.125rem;
}

.tutorial-number {
  margin: 0;
  color: var(--brand-600);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tutorial-title {
  color: var(--brand-900);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.tutorial-watch {
  max-width: 960px;
  margin: 0 auto;
}

.tutorial-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #0b1f3a;
  box-shadow: var(--shadow);
}

/* Porcentaje de videos vistos, junto a «Videos» en el menú: rojo 0 %, amarillo en proceso, verde 100 %. */
.video-progress {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.0625rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: baseline;
}

.video-progress-none {
  background: #dc2626;
  color: #ffffff;
}

.video-progress-some {
  background: #fbbf24;
  color: #1f2937;
}

.video-progress-all {
  background: #15803d;
  color: #ffffff;
}

.tutorial-seen {
  margin: 0.25rem 0 0;
  color: #15803d;
  font-size: 0.9375rem;
  font-weight: 600;
}

.tutorial-seen[hidden] {
  display: none;
}

.tutorial-seen-badge {
  color: #15803d;
  font-weight: 700;
}

.tutorial-back {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-card,
  .tutorial-thumb img,
  .tutorial-play {
    transition: none;
  }

  .tutorial-card:hover,
  .tutorial-card:hover .tutorial-thumb img {
    transform: none;
  }

  .tutorial-card:hover .tutorial-play {
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 640px) {
  .inbox-card {
    margin-top: 2.25rem;
  }
}

/* ---------- Tarjetas con QR (administración) ---------- */

/* Buscar una tarjeta por su código: campo y botón en la misma fila. */
.card-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.card-search .field {
  flex: 1 1 16rem;
  max-width: 24rem;
}

.card-lookup {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.input-medium {
  max-width: 14rem;
}

/* Tarjetas con QR de un negocio, en su ficha. */
.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-chip {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
}

.card-chip:hover {
  border-color: var(--brand-600);
}

/* ---------- Resumen del mes, días y horas pico, descargas ---------- */

.stat-note {
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.stat-note-good {
  color: var(--good-text);
  font-weight: 600;
}

.stat-note-bad {
  color: var(--bad-text);
  font-weight: 600;
}

/* Descargas a Excel: el texto arriba y, debajo, los dos botones juntos en una línea. */
.export-row {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.export-row p {
  margin: 0;
}

.export-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.peak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.peak-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.peak-chart {
  display: block;
  width: 100%;
  height: auto;
}

.bar-good {
  fill: var(--good);
}

.bar-regular {
  fill: var(--regular);
}

.bar-bad {
  fill: var(--bad);
}

.bar-label {
  fill: var(--muted);
}

.peak-legend {
  margin: 0;
}

/* En la leyenda, los mismos colores como círculos (no son parte de una gráfica). */
.legend-dot {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.125rem;
  border-radius: 50%;
}

.legend-dot.bar-good {
  background: var(--good);
}

.legend-dot.bar-regular {
  background: var(--regular);
}

.legend-dot.bar-bad {
  background: var(--bad);
}

/* El resumen del mes cabe en dos columnas en el celular. */
.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.summary-grid .stat {
  padding: 0.875rem 1rem;
}

.summary-grid .stat-value {
  font-size: 1.5rem;
}

/* Los nombres de tarjeta y mesa no se parten en una columna angosta. */
.table-names tbody th {
  min-width: 8rem;
}

/* Semáforo de uso de la lista de clientes: color + texto (no solo color). */
.usage-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: #94a3b8;
  vertical-align: baseline;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.9);
}

.usage-en-uso {
  background: var(--good);
}

.usage-sin-uso {
  background: var(--bad);
}

.usage-nuevo,
.usage-inactivo {
  background: #94a3b8;
}

.usage-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
  margin-top: 0.25rem;
}

.usage-link {
  color: inherit;
  text-decoration: none;
}

.usage-link:hover,
.usage-link:focus-visible {
  text-decoration: underline;
}

/* Video de bienvenida, debajo del mensaje de acceso por WhatsApp. */
.welcome-video {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.welcome-video h2 {
  font-size: 1.0625rem;
}

.welcome-video h3 {
  margin: 0;
  font-size: 0.9375rem;
}

/* =====================================================================
   App instalada y barra de navegación inferior (panel del negocio en el celular)
   ===================================================================== */

:root {
  --tabbar-h: 58px;
}

/* En la app instalada la página llega al borde de la pantalla: se respetan la muesca del
   iPhone (en horizontal) y su barra de inicio. */
.app-body {
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
}

.app-body .topbar-sticky {
  padding-top: env(safe-area-inset-top);
}

/* Fuera del celular no hay barra inferior ni la tarjeta «Tu cuenta» (el menú de arriba ya trae «Salir»). */
.tabbar,
.account-card {
  display: none;
}

/* Celular en vertical. Con el teclado abierto la pantalla queda baja (menos de 450 px): ahí la
   barra se esconde y vuelve el menú de arriba. */
@media (max-width: 640px) and (min-height: 451px) {
  .account-card {
    display: grid;
    margin-bottom: 1.25rem;
  }

  .has-tabbar {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  }

  /* El menú de arriba se queda con el logo y el nombre; lo demás pasa a la barra. */
  .topbar-has-tabs .topbar-nav {
    display: none;
  }

  .topbar-sticky.topbar-has-tabs .brand-name {
    font-size: 1rem;
  }

  /* El aviso de cookies sube para no quedar tapado por la barra. */
  .has-tabbar .cookie-banner {
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 0.5rem);
  }

  .tabbar {
    position: fixed;
    z-index: 35;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    padding: 0 max(0.25rem, env(safe-area-inset-right)) env(safe-area-inset-bottom)
      max(0.25rem, env(safe-area-inset-left));
    border-top: 1px solid rgb(255 255 255 / 0.1);
    background: rgb(11 31 58 / 0.92);
    box-shadow: 0 -8px 24px rgb(15 23 42 / 0.18);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }

  .tabbar-item {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    min-width: 0;
    min-height: var(--tabbar-h);
    padding: 0.375rem 0.125rem;
    color: #b6c4d9;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition:
      color 0.15s ease,
      transform 0.15s var(--glass-ease);
  }

  .tabbar-item:active {
    transform: scale(0.94);
  }

  .tabbar-item.is-active {
    color: #fff;
  }

  /* La sección en la que estás: un trazo verde arriba, del color del logo. */
  .tabbar-item.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    right: 28%;
    left: 28%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: #b5e61d;
  }

  .tabbar-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Mensajes nuevos: un globo rojo con el número, sobre el ícono. */
  .tabbar-badge {
    position: absolute;
    top: 0.25rem;
    left: calc(50% + 0.375rem);
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.3125rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.125rem;
    text-align: center;
  }

  /* El porcentaje de videos vistos conserva sus colores (rojo, amarillo, verde). */
  .tabbar-progress {
    position: absolute;
    top: 0.25rem;
    left: calc(50% + 0.25rem);
    margin: 0;
    padding: 0 0.3125rem;
    font-size: 0.625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabbar-item {
    transition: none;
  }

  .tabbar-item:active {
    transform: none;
  }
}

/* Teléfonos muy angostos (320 px): etiquetas un poco más chicas para que quepan las cinco. */
@media (max-width: 340px) {
  .tabbar-item {
    font-size: 0.625rem;
  }
}

/* =====================================================================
   Avisos en el celular (tarjeta de la página Cuenta)
   ===================================================================== */

/* Solo se ve el bloque que corresponde al estado (`data-state`, lo pone avisos.js). */
.push-state {
  display: none;
}

.push-card[data-state='checking'] .push-state-checking,
.push-card[data-state='off'] .push-state-off,
.push-card[data-state='on'] .push-state-on,
.push-card[data-state='install'] .push-state-install,
.push-card[data-state='blocked'] .push-state-blocked,
.push-card[data-state='unsupported'] .push-state-unsupported {
  display: grid;
  gap: 0.75rem;
}

.push-card {
  margin-bottom: 1.25rem;
}

.push-card p {
  margin: 0;
}

.push-on {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.push-dot {
  flex: none;
  margin-top: 0.4375rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #15803d;
  box-shadow: 0 0 0 3px rgb(21 128 61 / 0.18);
}

.push-message:empty {
  display: none;
}

/* =====================================================================
   Jalar para actualizar (app instalada en iPhone; ver public/static/js/refrescar.js)
   ===================================================================== */

.ptr {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 6px);
  left: 50%;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--muted);
  opacity: 0;
  transform: translate(-50%, -64px);
  pointer-events: none;
}

.ptr svg {
  width: 20px;
  height: 20px;
}

.ptr.is-resetting {
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.ptr.is-ready {
  color: var(--brand-600);
}

.ptr.is-loading svg {
  animation: ptr-spin 0.8s linear infinite;
}

@keyframes ptr-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ptr.is-loading svg {
    animation: none;
  }
}

.ptr-note {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 50%;
  z-index: 1000;
  width: min(92vw, 28rem);
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.ptr-note.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Pestañas de Google del negocio (Estadísticas, Incidencias, Redenciones): siempre en una sola
   línea; en el celular se reparten el ancho y se ajustan el relleno y la letra. */
.tabs-fit {
  flex-wrap: nowrap;
}

.tabs-fit .tab {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .tabs-fit {
    gap: 0.25rem;
  }

  .tabs-fit .tab {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 359px) {
  .tabs-fit .tab {
    padding-right: 0.375rem;
    padding-left: 0.375rem;
    font-size: 0.8125rem;
  }
}
