* {
  box-sizing: border-box;
}

:root {
  --amico-ink: #102033;
  --amico-muted: #667085;
  --amico-blue: #00873f;
  --amico-blue-dark: #00652f;
  --amico-soft-blue: #eaf8ef;
  --amico-lime: #76ad2a;
  --amico-soft-lime: #f1f8e8;
  --amico-cream: #fff7ed;
  --amico-line: #dce6f1;
  --amico-card: #ffffff;
  --amico-shadow: 0 18px 45px rgba(0, 101, 47, 0.11);
}

body {
  margin: 0;
  color: var(--amico-ink);
  background:
    radial-gradient(circle at top left, rgba(0, 135, 63, 0.14), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(118, 173, 42, 0.16), transparent 26%),
    linear-gradient(180deg, #fbfff9 0%, #f6fbf3 52%, #eef6ec 100%);
  font-family: Arial, Helvetica, sans-serif;
}

main {
  padding: 24px;
}

body .site-header .session-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 4px;
  padding-left: 0;
}

body .site-header .session-badge {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

body .site-header .session-link {
  padding: 8px 9px;
  line-height: 1.1;
  white-space: nowrap;
}

.home-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 18px 24px;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 241, 0.9);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(118, 173, 42, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(234, 248, 239, 0.96) 100%),
    var(--amico-card);
  box-shadow: var(--amico-shadow);
  position: relative;
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(0, 135, 63, 0.12);
}

.home-hero::before {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -42px;
  width: 180px;
  height: 180px;
  border-radius: 44% 56% 48% 52%;
  background: rgba(118, 173, 42, 0.12);
}

.home-hero__content,
.home-hero__aside,
.home-dashboard,
.home-dashboard-header {
  position: relative;
  z-index: 1;
}

.home-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-hero__aside {
  display: grid;
  gap: 14px;
  width: 100%;
  justify-items: stretch;
}

.home-logo {
  width: 118px;
  max-width: 100%;
  height: auto;
  padding: 10px;
  border: 1px solid var(--amico-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 101, 47, 0.11);
}

.home-kicker {
  margin: 0 0 8px;
  color: var(--amico-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.1;
  color: var(--amico-ink);
  letter-spacing: -0.03em;
}

.home-dashboard-header h2 span {
  color: var(--amico-blue-dark);
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-hero p {
  margin: 0;
  max-width: 650px;
  color: var(--amico-muted);
  line-height: 1.35;
}

.home-dashboard-header p {
  flex: 0 0 auto;
  max-width: none;
  color: var(--amico-blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.home-subtitle {
  color: var(--amico-blue-dark) !important;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.18 !important;
}

.home-description {
  margin-top: 8px !important;
  font-size: 15px;
}

.home-dashboard {
  display: grid;
  grid-column: 1 / -1;
  grid-auto-flow: dense;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.home-dashboard__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(0, 135, 63, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(0, 101, 47, 0.09);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-dashboard__card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 135, 63, 0.3);
  box-shadow: 0 18px 34px rgba(0, 101, 47, 0.13);
}

.home-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, var(--amico-blue) 0%, var(--amico-blue-dark) 100%);
}

.home-metric-card {
  grid-column: span 1;
}

.home-card--top {
  grid-column: span 3;
}

.home-card--catalogo {
  grid-column: span 1;
  min-height: 126px;
  border-color: rgba(0, 135, 63, 0.24);
  background:
    radial-gradient(circle at top right, rgba(118, 173, 42, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(234, 248, 239, 0.92) 100%);
}

.home-card--catalogo strong {
  color: var(--amico-blue-dark);
}

.home-card--catalogo a {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  padding: 11px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amico-blue) 0%, var(--amico-blue-dark) 100%);
  box-shadow: 0 12px 22px rgba(0, 101, 47, 0.18);
  text-align: center;
}

.home-dashboard__card span,
.home-dashboard__card strong,
.home-dashboard__card a,
.home-dashboard__card small,
.home-dashboard__card p {
  display: block;
}

.home-dashboard__card span {
  margin-bottom: 3px;
  color: var(--amico-blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-dashboard__card strong {
  color: var(--amico-ink);
  font-size: 15px;
  line-height: 1.25;
}

.home-dashboard__card small,
.home-dashboard__card p {
  margin: 0;
  color: var(--amico-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.home-card__number {
  font-size: clamp(28px, 3vw, 42px) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.05em;
}

.home-dashboard__card a {
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 11px;
  border: 1px solid rgba(0, 135, 63, 0.16);
  border-radius: 999px;
  color: var(--amico-blue-dark);
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.home-card--featured span,
.home-card--featured strong,
.home-card--featured small,
.home-card--featured p {
  color: #ffffff;
}

.home-card--featured a {
  color: var(--amico-blue-dark);
  border-color: transparent;
  background: #ffffff;
}

.home-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.home-status-grid div {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.13);
}

.home-status-grid b,
.home-status-grid span {
  display: block;
}

.home-status-grid b {
  color: #ffffff;
  font-size: 19px;
  line-height: 1;
}

.home-status-grid span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-stock-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.home-stock-mini span {
  margin: 0;
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--amico-blue-dark);
  background: var(--amico-soft-blue);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.home-top-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-top-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid rgba(0, 135, 63, 0.1);
  border-radius: 12px;
  background: #fbfff8;
}

.home-top-list strong {
  display: -webkit-box;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-top-list small {
  flex: 0 0 auto;
  color: var(--amico-blue-dark);
  font-size: 11px;
}

.home-empty-metric {
  padding: 10px;
  border: 1px dashed rgba(0, 135, 63, 0.2);
  border-radius: 13px;
  background: #fbfff8;
}

.home-local-card {
  min-width: 220px;
  padding: 13px 14px;
  border: 1px solid rgba(0, 135, 63, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(0, 101, 47, 0.08);
}

.home-local-card span,
.home-local-card strong,
.home-local-card p {
  display: block;
}

.home-local-card span {
  margin-bottom: 8px;
  color: var(--amico-blue-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-local-card strong {
  margin-bottom: 6px;
  color: var(--amico-ink);
  font-size: 15px;
}

.home-local-card p {
  margin: 4px 0 0;
  color: var(--amico-muted);
  font-size: 12px;
  line-height: 1.45;
}

.usuarios-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 56px;
}

.usuarios-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid rgba(220, 230, 241, 0.94);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(118, 173, 42, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(234, 248, 239, 0.95) 100%);
  box-shadow: var(--amico-shadow);
}

.usuarios-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--amico-blue-dark);
  background: var(--amico-soft-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.usuarios-hero h1,
.usuarios-card h2 {
  margin: 0 0 8px;
  color: var(--amico-ink);
}

.usuarios-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.usuarios-hero p,
.usuarios-card p {
  margin: 0;
  color: var(--amico-muted);
  line-height: 1.55;
}

.usuarios-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.usuarios-card {
  padding: 22px;
  border: 1px solid var(--amico-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(0, 101, 47, 0.08);
}

.usuarios-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.usuarios-card--empty {
  text-align: center;
}

.usuarios-form-card {
  max-width: 860px;
}

.usuarios-datos {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.usuarios-datos div {
  padding: 14px 16px;
  border: 1px solid rgba(220, 230, 241, 0.9);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbf3 100%);
}

.usuarios-datos span,
.usuarios-datos strong {
  display: block;
}

.usuarios-datos span {
  margin-bottom: 4px;
  color: var(--amico-muted);
  font-size: 13px;
  font-weight: 800;
}

.usuarios-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.usuarios-form--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.usuarios-form label {
  display: grid;
  gap: 7px;
  color: var(--amico-muted);
  font-size: 13px;
  font-weight: 800;
}

.usuarios-form input,
.usuarios-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--amico-line);
  border-radius: 14px;
  color: var(--amico-ink);
  background: #ffffff;
  font: inherit;
  outline: none;
}

.usuarios-form input:focus,
.usuarios-form select:focus {
  border-color: rgba(0, 135, 63, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 135, 63, 0.12);
}

.usuarios-form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  padding-top: 4px;
}

.usuarios-details {
  margin-bottom: 18px;
}

.usuarios-details summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: var(--amico-blue-dark);
  font-weight: 900;
  cursor: pointer;
}

.usuarios-details summary::-webkit-details-marker {
  display: none;
}

.usuarios-details summary::after {
  content: "Abrir";
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--amico-blue-dark);
  background: var(--amico-soft-blue);
  font-size: 11px;
  font-weight: 900;
}

.usuarios-details[open] summary::after {
  content: "Cerrar";
}

.usuarios-details__form {
  margin-top: 16px;
}

.usuarios-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 32, 51, 0.56);
  backdrop-filter: blur(4px);
}

.usuarios-modal {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 241, 0.94);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(118, 173, 42, 0.16), transparent 28%),
    #ffffff;
  box-shadow: 0 34px 90px rgba(16, 32, 51, 0.34);
}

.usuarios-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(220, 230, 241, 0.9);
}

.usuarios-modal__header h2 {
  margin: 0 0 4px;
  color: var(--amico-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.usuarios-modal__header p {
  margin: 0;
  color: var(--amico-muted);
  font-weight: 800;
}

.usuarios-modal__body {
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.usuarios-modal__actions {
  justify-content: flex-end;
}

.usuarios-form button,
.usuarios-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(0, 135, 63, 0.18);
  border-radius: 999px;
  color: var(--amico-blue-dark);
  background: #ffffff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.usuarios-form button,
.usuarios-btn--primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--amico-blue) 0%, var(--amico-blue-dark) 100%);
  box-shadow: 0 12px 24px rgba(0, 101, 47, 0.2);
}

.usuarios-form button:hover:not(:disabled),
.usuarios-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(16, 32, 51, 0.12);
}

.usuarios-form button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.usuarios-btn--danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
  background: #fff4f2;
}

.usuarios-alert {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 800;
}

.usuarios-alert p {
  margin: 0;
}

.usuarios-alert p + p {
  margin-top: 6px;
}

.usuarios-alert--error {
  color: #b42318;
  background: #fff4f2;
}

.usuarios-alert--success {
  color: var(--amico-blue-dark);
  background: var(--amico-soft-blue);
}

.usuarios-alert--info {
  color: var(--amico-blue-dark);
  background: var(--amico-soft-lime);
}

.usuarios-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(0, 135, 63, 0.18);
  border-radius: 999px;
  color: var(--amico-blue-dark);
  background: var(--amico-soft-blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.usuarios-badge--soft {
  color: #6a4a00;
  border-color: rgba(118, 173, 42, 0.24);
  background: var(--amico-cream);
}

.usuarios-table-wrap {
  overflow-x: auto;
}

.usuarios-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.usuarios-table th,
.usuarios-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--amico-line);
  text-align: left;
  vertical-align: middle;
}

.usuarios-table th {
  color: var(--amico-muted);
  background: #f7fbf4;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.usuarios-table th:first-child {
  border-top-left-radius: 16px;
}

.usuarios-table th:last-child {
  border-top-right-radius: 16px;
}

.usuarios-table tbody tr {
  background: rgba(255, 255, 255, 0.86);
}

.usuarios-table tbody tr:hover {
  background: #fbfff8;
}

.usuarios-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.usuarios-empty {
  padding: 28px 12px !important;
  color: var(--amico-muted);
  text-align: center !important;
  font-weight: 800;
}

.clientes-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 56px;
}

.clientes-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid rgba(220, 230, 241, 0.94);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(118, 173, 42, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(234, 248, 239, 0.95) 100%);
  box-shadow: var(--amico-shadow);
}

.clientes-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--amico-blue-dark);
  background: var(--amico-soft-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clientes-hero h1,
.clientes-card h2 {
  margin: 0 0 8px;
  color: var(--amico-ink);
}

.clientes-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.clientes-hero p,
.clientes-card p {
  margin: 0;
  color: var(--amico-muted);
  line-height: 1.55;
}

.clientes-card {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--amico-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(0, 101, 47, 0.08);
}

.clientes-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.clientes-form-card {
  max-width: 860px;
}

.clientes-search,
.clientes-form {
  display: grid;
  gap: 14px;
}

.clientes-search {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.clientes-form--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clientes-search label,
.clientes-form label {
  display: grid;
  gap: 7px;
  color: var(--amico-muted);
  font-size: 13px;
  font-weight: 800;
}

.clientes-search input,
.clientes-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--amico-line);
  border-radius: 14px;
  color: var(--amico-ink);
  background: #ffffff;
  font: inherit;
  outline: none;
}

.clientes-search input:focus,
.clientes-form input:focus {
  border-color: rgba(0, 135, 63, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 135, 63, 0.12);
}

.clientes-search__actions,
.clientes-form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.clientes-form__actions,
.clientes-form__full {
  grid-column: 1 / -1;
}

.clientes-details summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: var(--amico-blue-dark);
  font-weight: 900;
  cursor: pointer;
}

.clientes-details summary::-webkit-details-marker {
  display: none;
}

.clientes-details summary::after {
  content: "Abrir";
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--amico-blue-dark);
  background: var(--amico-soft-blue);
  font-size: 11px;
  font-weight: 900;
}

.clientes-details[open] summary::after {
  content: "Cerrar";
}

.clientes-details__form {
  margin-top: 16px;
}

.clientes-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 32, 51, 0.56);
  backdrop-filter: blur(4px);
}

.clientes-modal {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 241, 0.94);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(118, 173, 42, 0.16), transparent 28%),
    #ffffff;
  box-shadow: 0 34px 90px rgba(16, 32, 51, 0.34);
}

.clientes-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(220, 230, 241, 0.9);
}

.clientes-modal__header h2 {
  margin: 0 0 4px;
  color: var(--amico-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.clientes-modal__header p {
  margin: 0;
  color: var(--amico-muted);
  font-weight: 800;
}

.clientes-modal__body {
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.clientes-modal__actions {
  justify-content: flex-end;
}

.clientes-search button,
.clientes-form button,
.clientes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(0, 135, 63, 0.18);
  border-radius: 999px;
  color: var(--amico-blue-dark);
  background: #ffffff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.clientes-search button,
.clientes-form button,
.clientes-btn--primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--amico-blue) 0%, var(--amico-blue-dark) 100%);
  box-shadow: 0 12px 24px rgba(0, 101, 47, 0.2);
}

.clientes-search button:hover,
.clientes-form button:hover,
.clientes-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(16, 32, 51, 0.12);
}

.clientes-btn--danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
  background: #fff4f2;
}

.clientes-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 800;
}

.clientes-alert p {
  margin: 0;
}

.clientes-alert p + p {
  margin-top: 6px;
}

.clientes-alert--success {
  color: var(--amico-blue-dark);
  background: var(--amico-soft-blue);
}

.clientes-alert--error {
  color: #b42318;
  background: #fff4f2;
}

.clientes-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(0, 135, 63, 0.18);
  border-radius: 999px;
  color: var(--amico-blue-dark);
  background: var(--amico-soft-blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clientes-table-wrap {
  overflow-x: auto;
}

.clientes-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.clientes-table th,
.clientes-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--amico-line);
  text-align: left;
  vertical-align: middle;
}

.clientes-table th {
  color: var(--amico-muted);
  background: #f7fbf4;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.clientes-table th:first-child {
  border-top-left-radius: 16px;
}

.clientes-table th:last-child {
  border-top-right-radius: 16px;
}

.clientes-table tbody tr {
  background: rgba(255, 255, 255, 0.86);
}

.clientes-table tbody tr:hover {
  background: #fbfff8;
}

.clientes-table strong,
.clientes-table__meta {
  display: block;
}

.clientes-table__meta {
  margin-top: 4px;
  color: var(--amico-muted);
  font-size: 12px;
  font-weight: 800;
}

.clientes-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clientes-empty {
  padding: 28px 12px !important;
  color: var(--amico-muted);
  text-align: center !important;
  font-weight: 800;
}

.clientes-empty--card {
  border: 1px dashed var(--amico-line);
  border-radius: 18px;
  background: #fbfff8;
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero__aside {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .home-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-card--featured,
  .home-metric-card,
  .home-card--top,
  .home-card--catalogo {
    grid-column: 1 / -1;
  }

  .home-card--featured {
    grid-row: auto;
  }

  .usuarios-grid {
    grid-template-columns: 1fr;
  }

  .usuarios-form--wide {
    grid-template-columns: 1fr;
  }

  .clientes-search,
  .clientes-form--wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body .site-header .session-item {
    display: grid;
    grid-column: 1 / -1;
    gap: 6px;
    padding-left: 0;
  }

  body .site-header .session-link,
  body .site-header .session-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  main,
  .home-main {
    padding: 18px;
  }

  .home-hero {
    padding: 24px;
    border-radius: 22px;
  }

  .home-dashboard-header {
    flex-direction: column;
  }

  .home-local-card {
    width: 100%;
    min-width: 0;
  }

  .home-logo {
    width: 128px;
    max-width: 70vw;
  }

  .home-hero__aside,
  .home-dashboard {
    grid-template-columns: 1fr;
  }

  .home-dashboard__card {
    min-height: auto;
  }

  .home-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usuarios-page {
    padding: 18px;
  }

  .usuarios-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }

  .usuarios-btn--primary {
    width: 100%;
  }

  .usuarios-card__header {
    flex-direction: column;
  }

  .usuarios-modal-overlay {
    align-items: stretch;
    padding: 10px;
  }

  .usuarios-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }

  .usuarios-modal__header,
  .usuarios-modal__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .usuarios-modal__header,
  .usuarios-modal__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .usuarios-modal__actions .usuarios-btn {
    width: 100%;
  }

  .usuarios-form__actions,
  .usuarios-form__actions .usuarios-btn,
  .usuarios-form__actions button {
    width: 100%;
  }

  .clientes-page {
    padding: 18px;
  }

  .clientes-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }

  .clientes-btn--primary {
    width: 100%;
  }

  .clientes-card__header {
    flex-direction: column;
  }

  .clientes-modal-overlay {
    align-items: stretch;
    padding: 10px;
  }

  .clientes-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }

  .clientes-modal__header,
  .clientes-modal__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .clientes-modal__header,
  .clientes-modal__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .clientes-modal__actions .clientes-btn {
    width: 100%;
  }

  .clientes-search__actions,
  .clientes-search__actions .clientes-btn,
  .clientes-search__actions button,
  .clientes-form__actions,
  .clientes-form__actions .clientes-btn,
  .clientes-form__actions button {
    width: 100%;
  }
}

body .site-header .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  max-width: 1440px;
}

body .site-header .site-brand {
  margin-bottom: 0;
}

body .site-header .site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

body .site-header .site-nav > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

body .site-header .site-nav a,
body .site-header .session-link,
body .site-header .session-login {
  white-space: nowrap;
}

body .site-header .session-link,
body .site-header .session-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

body .site-header .site-session.session-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 6px;
  min-width: 0;
  padding-left: 0;
}

body .site-header .session-badge {
  max-width: 260px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  body .site-header .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  body .site-header .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body .site-header .site-nav > ul {
    justify-content: flex-start;
  }

  body .site-header .site-session.session-item {
    justify-self: end;
  }

  body .usuarios-table-wrap,
  body .clientes-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  body .usuarios-table,
  body .clientes-table {
    min-width: 680px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body .site-header {
    padding: 12px 14px;
  }

  body .site-header .site-header__inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body .site-header .site-brand {
    grid-row: 1;
    justify-self: start;
  }

  body .site-header .site-nav {
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  body .site-header .site-nav > ul {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    gap: 6px;
  }

  body .site-header .site-nav > ul > li {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  body .site-header .site-nav a {
    width: auto;
    padding: 9px 11px;
    font-size: 13px;
  }

  body .site-header .site-session.session-item {
    grid-row: 3;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(0, 135, 63, 0.12);
    border-radius: 16px;
    background: rgba(234, 248, 239, 0.72);
  }

  body .site-header .session-badge {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    justify-content: flex-start;
    text-align: left;
  }

  body .site-header .session-link,
  body .site-header .session-login {
    flex: 0 0 auto;
    width: auto;
    justify-content: center;
    padding: 8px 10px;
  }

  body .home-dashboard-header {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  main,
  .home-main,
  .usuarios-page,
  .clientes-page {
    padding: 14px;
  }

  body .site-header .site-brand__logo,
  body .site-header .site-brand__mark {
    width: 60px;
    height: 48px;
    border-radius: 15px;
  }

  body .site-header .site-brand__name {
    font-size: 21px;
  }

  body .site-header .site-brand__tagline {
    font-size: 10px;
  }

  body .site-header .site-nav a {
    padding: 8px 10px;
  }

  body .site-header .site-session.session-item {
    align-items: stretch;
  }

  body .site-header .session-badge,
  body .site-header .session-link,
  body .site-header .session-login {
    min-height: 34px;
    font-size: 12px;
  }

  .home-hero,
  .usuarios-hero,
  .clientes-hero,
  .usuarios-card,
  .clientes-card {
    padding: 18px;
    border-radius: 20px;
  }

  .home-status-grid {
    grid-template-columns: 1fr;
  }
}
