/* =====================================================================
   Tuzita — Hoja de estilos principal
   Mobile-first, responsiva. Paleta agradable, feedback claro al usuario.
   ===================================================================== */

:root {
  /* Paleta (basada en el diseño de referencia) */
  --color-primary: #3d7bf4; /* azul */
  --color-primary-dark: #2c63d4;
  --color-primary-soft: #e7eefe;
  --color-navy: #1b2240; /* navy oscuro: sidebar / cabeceras */
  --color-navy-soft: #2a3358;
  --color-accent: #28c281; /* verde */
  --color-success: #22b07a;
  --color-success-soft: #d8f3e6;
  --color-warning: #f4842c; /* naranja */
  --color-warning-soft: #fde9d6;
  --color-danger: #e23d4b; /* rojo */
  --color-danger-soft: #fbe0e2;
  --color-whatsapp: #25d366;

  --text: #1b2240;
  --text-muted: #6b7592;
  --bg: #dfe6f7; /* lavanda suave */
  --surface: #ffffff;
  --border: #e3e8f3;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(27, 34, 64, 0.08), 0 1px 2px rgba(27, 34, 64, 0.04);
  --shadow-lg: 0 16px 40px rgba(27, 34, 64, 0.18);
  --sidebar-w: 250px;
  --header-h: 60px;

  --font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

/* Material Symbols (iconografía) */
.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  font-size: 22px;
  user-select: none;
}
.material-symbols-rounded.fill {
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}
.icon-sm {
  font-size: 18px;
}
.icon-lg {
  font-size: 32px;
}
.icon-xl {
  font-size: 56px;
}

* {
  box-sizing: border-box;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.25;
}
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
small {
  font-size: 0.82em;
  color: var(--text-muted);
}
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.hidden {
  display: none !important;
}

/* ---------------------------------------------------------------------
   Botones
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.05s,
    opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: #f9fafb;
  text-decoration: none;
}

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

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  text-decoration: none;
}

.btn-full {
  width: 100%;
}
.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}
.btn-xs {
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
}

/* ---------------------------------------------------------------------
   Formularios
   --------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1rem;
}
.form-group > label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="search"],
select,
textarea,
.form-input,
.form-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-check input {
  width: auto;
}
.form-check label {
  margin: 0;
  font-weight: 500;
}
.form-check-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin-bottom: 1rem;
}
.field-error {
  display: block;
  color: var(--color-danger);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  min-height: 1em;
}
.form-hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}
.form-actions {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filters-bar {
  margin-bottom: 1rem;
  max-width: 320px;
}

.input-icon-wrap {
  position: relative;
}
.input-icon-wrap input {
  padding-right: 2.6rem;
}
.toggle-password {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
}

.file-input {
  display: none;
}

/* Títulos de sección dentro de formularios */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  color: var(--color-navy);
  margin: 1.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.section-title:first-child {
  margin-top: 0;
}
.section-title .material-symbols-rounded {
  color: var(--color-primary);
}

/* Logo del negocio */
.logo-upload-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.logo-preview-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
.logo-preview {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.logo-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px dashed #c7d2fe;
}
.logo-placeholder .material-symbols-rounded {
  font-size: 34px;
}
.logo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.logo-actions-title {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Enlace público + copiar */
.biz-link-card {
  border-left: 4px solid var(--color-primary);
}
.biz-link {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.biz-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  flex-shrink: 0;
}
.biz-link-body {
  flex: 1;
  min-width: 0;
}
.biz-link-body > label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.copy-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.copy-field input {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  background: #f7f9fd;
  flex: 1;
  min-width: 180px;
}
.copy-field .icon-btn {
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Alertas / Toasts
   --------------------------------------------------------------------- */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-success,
.alert.success {
  background: var(--color-success-soft);
  color: #166534;
  border-color: #bbf7d0;
}
.alert-error,
.alert.error {
  background: var(--color-danger-soft);
  color: #991b1b;
  border-color: #fecaca;
}
.alert-warning,
.alert.warning {
  background: var(--color-warning-soft);
  color: #92400e;
  border-color: #fde68a;
}
.alert-info,
.alert.info {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-color: #c7d2fe;
}

/* Toast flotante (utils.js fallback) */
.toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: calc(100% - 2rem);
  max-width: 420px;
}
.toast {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  font-weight: 500;
  animation: toastIn 0.25s ease;
}
.toast-success {
  background: var(--color-success);
}
.toast-error {
  background: var(--color-danger);
}
.toast-warning {
  background: var(--color-warning);
}
.toast-info {
  background: var(--color-primary);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}
.badge-pendiente {
  background: var(--color-warning-soft);
  color: #92400e;
}
.badge-confirmada {
  background: var(--color-success-soft);
  color: #166534;
}
.badge-cancelada {
  background: var(--color-danger-soft);
  color: #991b1b;
}
.badge-reagendada {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}
.badge-completada {
  background: #e0e7ff;
  color: #3730a3;
}
.badge-no_asistio {
  background: #f3f4f6;
  color: #4b5563;
}
.badge-featured {
  background: var(--color-accent);
  color: #fff;
}
.badge-inactive {
  background: #f3f4f6;
  color: #6b7280;
}

/* ---------------------------------------------------------------------
   Tarjetas y tablas
   --------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.card-header h2 {
  font-size: 1.05rem;
  margin: 0;
}
.card-body {
  padding: 1.25rem;
}

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
}
.loading-msg {
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}
.error-msg {
  color: var(--color-danger);
  text-align: center;
  padding: 1rem;
}

.table-responsive {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th,
.table td {
  padding: 0.7rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.table tbody tr:hover {
  background: #fafbff;
}

/* ---------------------------------------------------------------------
   Página de login
   --------------------------------------------------------------------- */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    var(--color-navy) 0%,
    var(--color-primary) 100%
  );
}
.auth-container {
  width: 100%;
  max-width: 400px;
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.75rem;
}
.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo .logo-icon {
  font-size: 44px;
  color: var(--color-primary);
}
.auth-logo-img {
  height: 64px;
  width: auto;
  display: inline-block;
}
.auth-logo h1 {
  font-size: 1.25rem;
  margin: 0.3rem 0 0;
}
.auth-title {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------------------
   Layout del panel administrativo
   --------------------------------------------------------------------- */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--color-navy);
  color: #aeb8d6;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 60;
}
.admin-sidebar.open {
  transform: translateX(0);
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-logo {
  font-size: 26px;
  color: var(--color-primary);
}
.sidebar-logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.sidebar-brand {
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  flex: 1;
}
.sidebar-close {
  background: none;
  border: none;
  color: #aeb8d6;
  cursor: pointer;
  display: inline-flex;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.25rem;
  color: #aeb8d6;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}
.nav-item.active {
  background: var(--color-primary);
  color: #fff;
}
.nav-icon {
  font-size: 21px;
}
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sidebar-user {
  font-size: 0.85rem;
  color: #8a96bd;
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 55;
  display: none;
}
.sidebar-overlay.show {
  display: block;
}

.admin-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s ease;
}
.admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  padding: 0;
}
.sidebar-toggle .material-symbols-rounded {
  font-size: 26px;
}
.modal-close,
.toggle-password {
  display: inline-flex;
  align-items: center;
}
.page-title {
  font-size: 1.15rem;
  margin: 0;
  flex: 1;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.user-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: none;
}
.admin-content {
  padding: 1.25rem 1rem;
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* Métricas del dashboard */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
}
.metric-icon .material-symbols-rounded {
  font-size: 24px;
}
.metric-body {
  display: flex;
  flex-direction: column;
}
.metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}
.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.metric-today .metric-icon {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.metric-pending .metric-icon {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}
.metric-confirmed .metric-icon {
  background: var(--color-success-soft);
  color: var(--color-success);
}
.metric-revenue .metric-icon {
  background: #e6f7ef;
  color: var(--color-accent);
}
.metric-today {
  border-left: 4px solid var(--color-primary);
}
.metric-pending {
  border-left: 4px solid var(--color-warning);
}
.metric-confirmed {
  border-left: 4px solid var(--color-success);
}
.metric-revenue {
  border-left: 4px solid var(--color-accent);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.service-admin-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.15s,
    transform 0.05s,
    border-color 0.15s;
}
.service-admin-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #d7def0;
}
.service-admin-card.inactive {
  opacity: 0.65;
  background: #fafbff;
}
.sac-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.sac-top h3 {
  font-size: 1.05rem;
  margin: 0;
}
.badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.badge-featured .material-symbols-rounded {
  font-size: 13px;
}

.sac-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sac-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.sac-pill .material-symbols-rounded {
  font-size: 15px;
}
.sac-price {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}
.sac-cat {
  background: #e6f7ef;
  color: #0f7a52;
}
.sac-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
.sac-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}
.sac-actions .badge-inactive {
  margin-right: auto;
}

/* Cards de colaboradores */
.collab-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.15s,
    transform 0.05s,
    border-color 0.15s;
}
.collab-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #d7def0;
}
.collab-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.collab-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: var(--c, var(--color-primary));
  box-shadow: 0 4px 10px color-mix(in srgb, var(--c, #3d7bf4) 40%, transparent);
}
.collab-id {
  min-width: 0;
}
.collab-id h3 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collab-id .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.collab-id .badge .material-symbols-rounded {
  font-size: 13px;
}
.collab-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.collab-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* Botones de icono */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.icon-btn .material-symbols-rounded {
  font-size: 20px;
}
.icon-btn:hover {
  background: #f5f7fc;
}
.icon-btn-edit:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
.icon-btn-danger:hover {
  color: var(--color-danger);
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
}

/* ---------------------------------------------------------------------
   Modal
   --------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal.open {
  display: flex;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
}
.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  margin: auto;
  z-index: 1;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-size: 1.1rem;
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-body {
  padding: 1.25rem;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------------------
   Página pública de reserva (booking)
   --------------------------------------------------------------------- */
.booking-page {
  background: var(--bg);
}
.biz-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.biz-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.biz-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.biz-logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.biz-logo-placeholder .material-symbols-rounded {
  font-size: 30px;
}
.biz-name {
  font-size: 1.3rem;
  margin: 0;
}
.biz-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}
.biz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.85rem;
}
.biz-meta-item {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.biz-meta-item .material-symbols-rounded {
  font-size: 18px;
}

.booking-steps {
  max-width: 760px;
  margin: 1rem auto 0;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
}
.step {
  flex: 1;
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.step.active,
.step.done {
  opacity: 1;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
}
.step.active .step-number {
  background: var(--color-primary);
  color: #fff;
}
.step.done .step-number {
  background: var(--color-success);
  color: #fff;
}
.step-label {
  display: block;
  font-size: 0.72rem;
  margin-top: 0.25rem;
  color: var(--text-muted);
}

.booking-main {
  max-width: 760px;
  margin: 1rem auto;
  padding: 0 1rem 6rem;
}
.booking-panel {
  display: none;
  animation: fadeIn 0.2s ease;
}
.booking-panel.active {
  display: block;
}
.panel-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.panel-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.category-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}
.category-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.category-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.services-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.service-card:hover {
  box-shadow: var(--shadow);
}
.service-card.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.service-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.service-body {
  padding: 0.9rem 1rem 0.6rem;
}
.service-name {
  font-size: 1.02rem;
  margin: 0 0 0.25rem;
}
.service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-price {
  font-weight: 800;
  color: var(--color-primary);
}
.service-duration {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.service-select-btn {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
  background: #f9fafb;
  padding: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.service-card.selected .service-select-btn {
  background: var(--color-primary);
  color: #fff;
}

.selection-summary {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
}
.summary-info {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.92rem;
  flex-wrap: wrap;
}
.summary-sep {
  color: var(--border);
}

.date-picker-wrap {
  margin-bottom: 1.25rem;
  max-width: 280px;
}
.slots-container h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
}
.slot-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.12s;
}
.slot-btn:hover {
  border-color: var(--color-primary);
}
.slot-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.slots-message {
  color: var(--text-muted);
  padding: 1rem 0;
}

.confirm-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.confirm-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.confirm-block h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.confirm-block p {
  margin: 0.15rem 0;
}
.totals-block .total-line {
  font-size: 1.15rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.success-screen {
  text-align: center;
  padding: 2rem 1rem;
}
.success-icon {
  color: var(--color-success);
}
.success-icon .material-symbols-rounded {
  font-size: 64px;
}
.logo-placeholder .material-symbols-rounded {
  font-size: 30px;
}
.service-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.service-duration .material-symbols-rounded {
  font-size: 16px;
}
.service-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.service-select-btn .material-symbols-rounded {
  font-size: 18px;
}
.success-detail .material-symbols-rounded {
  font-size: 18px;
  vertical-align: -3px;
  color: var(--color-primary);
  margin-right: 0.25rem;
}
.success-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.25rem auto;
  max-width: 420px;
  text-align: left;
}
.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.status-chip {
  margin-top: 0.5rem;
}

.not-found {
  text-align: center;
  padding: 4rem 1rem;
}

/* ---------------------------------------------------------------------
   Calendario / Agenda (vista admin)
   --------------------------------------------------------------------- */
.agenda-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
}
.agenda-toolbar .spacer {
  flex: 1;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-head {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.4rem 0;
  text-transform: uppercase;
}
.calendar-cell {
  min-height: 84px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  font-size: 0.8rem;
}
.calendar-cell.empty {
  background: transparent;
  border: none;
}
.calendar-daynum {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  padding: 0 0.2rem;
}
/* HOY: número dentro de un círculo azul */
.calendar-cell.today .calendar-daynum {
  background: var(--color-primary);
  color: #fff;
}
.calendar-count {
  display: inline-block;
  margin-top: 0.25rem;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-radius: 999px;
  padding: 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.day-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.day-appt {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  color: var(--text);
  text-decoration: none;
  transition:
    background 0.12s,
    box-shadow 0.12s;
}
.day-appt:hover {
  background: #f3f6ff;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.day-appt-time {
  font-weight: 700;
  min-width: 96px;
}
.day-appt-body {
  flex: 1;
}
.day-appt-arrow {
  color: var(--text-muted);
}

/* Calendario: estados de celda */
.calendar-cell {
  cursor: pointer;
  transition:
    background 0.12s,
    box-shadow 0.12s,
    border-color 0.12s;
}
/* HOVER: solo un fondo suave (gris/lavanda), sin borde de color */
.calendar-cell[data-date]:hover {
  background: #eef1fb;
}
/* SELECCIONADO: marco azul fuerte + fondo + halo (gana sobre el hover) */
.calendar-cell.selected,
.calendar-cell.selected:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}
.day-title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.day-appt-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.day-appt-body .badge {
  align-self: flex-start;
}

/* Acciones de tabla de citas */
.appt-actions {
  white-space: nowrap;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.appt-actions .btn {
  padding: 0.35rem 0.45rem;
}
.text-muted {
  color: var(--text-muted);
}

/* Horarios laborales */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hours-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.hours-row:hover {
  border-color: #d7def0;
}
.hours-row.off {
  background: #fafbff;
}
.hours-day {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 140px;
  cursor: pointer;
  user-select: none;
}
.hours-day input {
  width: auto;
}
.hours-name {
  font-weight: 600;
}
.hours-times {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.hours-times input[type="time"] {
  width: auto;
}
.hours-sep {
  color: var(--text-muted);
}
.hours-closed {
  display: none;
  margin-left: auto;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}
.hours-row.off .hours-times {
  display: none;
}
.hours-row.off .hours-closed {
  display: inline;
}
.hours-row.off .hours-name {
  color: var(--text-muted);
}

/* Descansos / pausas */
.break-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fcfdff;
  margin-bottom: 0.75rem;
}
.break-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.break-fields .bf {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.break-fields .bf label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.break-fields .bf select,
.break-fields .bf input {
  width: 100%;
  min-width: 0;
}
.break-fields .bf-grow {
  grid-column: 1 / -1;
}
.break-row .icon-btn {
  flex-shrink: 0;
}
.closure-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  background: #fff;
}
.closure-item:hover {
  border-color: #d7def0;
}

@media (min-width: 600px) {
  .break-fields {
    grid-template-columns: minmax(150px, 1.2fr) 1fr 1fr 1.6fr;
  }
  .break-fields .bf-grow {
    grid-column: auto;
  }
}

/* Listas de servicios seleccionables (modales) */
.na-services {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
}
.na-service {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
}
.na-service input {
  width: auto;
}

/* Superadmin */
.biz-table-logo {
  font-weight: 700;
}

/* Detalle de cita */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
.detail-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.detail-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.detail-row .material-symbols-rounded {
  color: var(--color-primary);
}
.totals-box {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.totals-box > div {
  display: flex;
  justify-content: space-between;
}
.totals-box .totals-total {
  font-size: 1.15rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.4rem;
}
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.timeline li {
  border-left: 3px solid var(--border);
  padding-left: 0.9rem;
}
.timeline li .badge {
  margin-right: 0.4rem;
}
@media (min-width: 900px) {
  .detail-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* ---------------------------------------------------------------------
   Directorio público de negocios (index)
   --------------------------------------------------------------------- */
.directory-page {
  background: var(--bg);
}
.dir-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-bottom: 3.5rem;
  background:
    radial-gradient(1200px 500px at 80% -10%, #5b8df9 0%, transparent 60%),
    linear-gradient(
      135deg,
      var(--color-navy) 0%,
      #243a7a 55%,
      var(--color-primary) 100%
    );
}
/* Formas decorativas */
.dir-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.35;
  pointer-events: none;
}
.dir-blob-1 {
  width: 260px;
  height: 260px;
  background: #4fd1c5;
  top: -90px;
  right: -40px;
  opacity: 0.25;
}
.dir-blob-2 {
  width: 200px;
  height: 200px;
  background: #7c9cff;
  bottom: -70px;
  left: -50px;
  opacity: 0.3;
}
.dir-blob-3 {
  width: 120px;
  height: 120px;
  background: #28c281;
  top: 40%;
  left: 12%;
  opacity: 0.2;
}
.dir-nav,
.dir-hero-content {
  position: relative;
  z-index: 1;
}
.dir-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dir-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
}
.dir-brand .material-symbols-rounded {
  color: #fff;
}
.dir-brand-logo {
  height: 50px;
  width: auto;
  display: block;
}
.btn-light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-light:hover {
  background: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}
.dir-hero-content {
  max-width: 720px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  text-align: center;
}
.dir-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.dir-hero-content h1 {
  font-size: 2.1rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.dir-hl {
  background: linear-gradient(90deg, #9ff5d8, #8fd0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dir-hero-content p {
  opacity: 0.92;
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
}
.dir-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.dir-search .material-symbols-rounded {
  color: var(--text-muted);
}
.dir-search input {
  border: none;
  box-shadow: none;
  flex: 1;
  padding: 0.6rem 0.25rem;
  font-size: 1rem;
  background: transparent;
}
.dir-search input:focus {
  outline: none;
  box-shadow: none;
}
.dir-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
}
.dir-features li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  opacity: 0.92;
}
.dir-features .material-symbols-rounded {
  color: #9ff5d8;
}

.dir-main {
  max-width: 1100px;
  margin: -1.5rem auto 0;
  padding: 0 1rem 2rem;
}
.dir-section-title {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 1.5rem 0.25rem 1rem;
}
.dir-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.dir-noresults {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}
.dir-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.dir-empty .material-symbols-rounded {
  font-size: 56px;
  color: var(--color-primary);
}

.biz-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.18s,
    border-color 0.18s;
  animation: cardIn 0.45s ease both;
}
.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  text-decoration: none;
}
.biz-card:hover .biz-card-name,
.biz-card:hover .biz-card-desc {
  text-decoration: none;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.biz-card:nth-child(2) {
  animation-delay: 0.05s;
}
.biz-card:nth-child(3) {
  animation-delay: 0.1s;
}
.biz-card:nth-child(4) {
  animation-delay: 0.15s;
}
.biz-card:nth-child(5) {
  animation-delay: 0.2s;
}
.biz-card:nth-child(6) {
  animation-delay: 0.25s;
}

.biz-card-banner {
  height: 92px;
  position: relative;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
}
.biz-card:nth-child(3n + 2) .biz-card-banner {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
}
.biz-card:nth-child(3n) .biz-card-banner {
  background: linear-gradient(135deg, #f97316, #ec4899);
}
.biz-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60px 60px at 85% 20%,
    rgba(255, 255, 255, 0.35),
    transparent 70%
  );
}
.biz-card-logo {
  position: absolute;
  left: 1.1rem;
  bottom: -28px;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  object-fit: cover;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.biz-card-logo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.biz-card-logo.placeholder .material-symbols-rounded {
  font-size: 32px;
}
.biz-card-body {
  padding: 2.5rem 1.1rem 0.85rem;
  flex: 1;
}
.biz-card-name {
  font-size: 1.12rem;
  margin: 0 0 0.35rem;
}
.biz-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.8rem;
}
.biz-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.biz-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.biz-card-pill .material-symbols-rounded {
  font-size: 15px;
}
.biz-card-foot {
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--border);
}
.biz-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  background: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition:
    gap 0.15s,
    background 0.15s;
}
.biz-card:hover .biz-card-cta {
  gap: 0.6rem;
  background: var(--color-primary-dark);
}

.dir-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1.5rem 1rem 2.5rem;
}
.dir-nav-actions {
  display: inline-flex;
  gap: 0.5rem;
}

/* --- Planes --- */
.plans-intro {
  max-width: 1000px;
  margin: 1rem auto 0;
  padding: 1.5rem 1rem 0;
  text-align: center;
}
.plans-intro h2 {
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.plans-intro p {
  color: var(--text-muted);
  margin: 0;
}
.sys-cta-section {
  background: var(--bg);
  border-top: none;
  padding-top: 0;
}
.plans-main {
  max-width: 1000px;
  margin-top: 1.5rem;
}
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.plan-card.popular {
  border: 2px solid var(--color-primary);
  box-shadow: 0 20px 50px rgba(61, 123, 244, 0.28);
}
.plan-ribbon {
  position: absolute;
  top: 1rem;
  right: -2px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px 0 0 999px;
  box-shadow: var(--shadow);
}
.plan-head {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}
.plan-name {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}
.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1rem;
  color: var(--color-navy);
}
.plan-currency {
  font-size: 1.4rem;
  font-weight: 700;
}
.plan-amount {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan-period {
  color: var(--text-muted);
  font-weight: 600;
}
.plan-limits {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.6rem 0 0;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
}
.plan-features .material-symbols-rounded {
  color: var(--color-success);
}
.plan-cta {
  margin-top: auto;
}
.plans-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 1.5rem;
  cursor: pointer;
}
.plans-note:hover {
  color: var(--color-primary);
}

/* Sección informativa del sistema */
.sys-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1rem;
}
.sys-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.sys-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.sys-eyebrow {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-color: transparent;
}
.sys-head h2 {
  font-size: 1.7rem;
  margin: 0.75rem 0 0.5rem;
  letter-spacing: -0.02em;
}
.sys-head p {
  color: var(--text-muted);
  margin: 0;
}
.sys-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.sys-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: var(--surface);
  transition:
    transform 0.12s,
    box-shadow 0.15s,
    border-color 0.15s;
}
.sys-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.sys-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  color: var(--c);
  margin-bottom: 0.9rem;
}
.sys-ico .material-symbols-rounded {
  font-size: 26px;
}
.sys-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.sys-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}
.sys-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    var(--color-navy) 0%,
    var(--color-primary) 100%
  );
  color: #fff;
}
.sys-cta h3 {
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
}
.sys-cta p {
  opacity: 0.9;
  margin: 0 0 1.25rem;
}
@media (min-width: 640px) {
  .sys-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .sys-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .sys-head h2 {
    font-size: 2rem;
  }
}
@media (min-width: 768px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .plan-card.popular {
    transform: scale(1.04);
  }
  .plan-card.popular:hover {
    transform: scale(1.04) translateY(-6px);
  }
}

@media (min-width: 600px) {
  .dir-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dir-hero-content h1 {
    font-size: 2.3rem;
  }
}
@media (min-width: 980px) {
  .dir-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------------------------
   Responsive — escritorio
   --------------------------------------------------------------------- */
@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .services-container {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .success-actions {
    flex-direction: row;
    justify-content: center;
  }
  .user-name {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .admin-sidebar {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: var(--sidebar-w);
  }
  .sidebar-toggle,
  .sidebar-close {
    display: none;
  }
  .sidebar-overlay {
    display: none !important;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
