/* ==================================================================
 | Concierge Cuervo — Hoja de estilos
 | Tema oscuro de lujo: fondo carbón/azul, acentos dorados y crema.
 * ================================================================== */

/* ------------------------------------------------------------------
 | Fuentes
 * ------------------------------------------------------------------ */
@font-face {
  font-family: 'Pala';
  src: url('../fonts/PALA.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gothic';
  src: url('../fonts/GOTHIC.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------
 | Variables
 * ------------------------------------------------------------------ */
:root {
  --bg: #14161c;
  --bg-2: #1a1d25;
  --card: #1c1f27;
  --card-2: #22262f;
  --gold: #c6a15b;
  --gold-2: #d4b26e;
  --gold-soft: rgba(198, 161, 91, 0.16);
  --cream: #f2e8d5;
  --muted: #9a958a;
  --border: rgba(198, 161, 91, 0.25);
  --border-soft: rgba(242, 232, 213, 0.10);
  --error: #e07a5f;
  --error-soft: rgba(224, 122, 95, 0.14);
  --ok: #8fbf8f;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* ------------------------------------------------------------------
 | Base
 * ------------------------------------------------------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Gothic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--cream);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Pala', 'Gothic', serif;
  letter-spacing: 0.02em;
  font-weight: normal;
}
a { color: var(--gold); }
img { max-width: 100%; }
.hidden { display: none !important; }

/* ------------------------------------------------------------------
 | Cabecera de la app
 * ------------------------------------------------------------------ */
.app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: linear-gradient(180deg, #171a21, #14161c);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-logo { height: 46px; width: auto; }
.header-info { flex: 1; min-width: 0; }
.header-info h1 { font-size: 1.3rem; color: var(--cream); }
.header-info p {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.header-user { display: flex; align-items: center; gap: 14px; }
.user-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.85rem;
  color: var(--cream);
}
.role-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--gold);
  margin-bottom: 3px;
}
.role-asesora { color: var(--cream); border-color: var(--border-soft); }
.role-admin { color: var(--gold); }
.role-dashboard_user { color: #9db4d6; border-color: rgba(157, 180, 214, 0.35); }
.btn-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid var(--border-soft);
  padding: 7px 16px;
  border-radius: 999px;
  transition: all .2s;
  white-space: nowrap;
}
.btn-link:hover { color: var(--cream); border-color: var(--gold); }

/* ------------------------------------------------------------------
 | Botones
 * ------------------------------------------------------------------ */
.btn-primary {
  font-family: 'Pala', serif;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #14161c;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-weight: 600;
  transition: transform .12s, box-shadow .2s, opacity .2s;
  box-shadow: 0 8px 20px rgba(198, 161, 91, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(198, 161, 91, 0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-secondary {
  font-family: 'Gothic', sans-serif;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border);
  padding: 12px 22px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all .2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.btn-small { padding: 8px 14px; font-size: 0.8rem; }

/* ------------------------------------------------------------------
 | Login
 * ------------------------------------------------------------------ */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(198, 161, 91, 0.10), transparent 60%),
    var(--bg);
  padding: 24px;
}
.login-wrap { width: 100%; max-width: 440px; text-align: center; }
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  box-shadow: var(--shadow);
  text-align: left;
}
.login-logo { width: 76px; height: auto; display: block; margin: 0 auto 18px; }
.login-title { text-align: center; font-size: 1.7rem; color: var(--cream); margin-bottom: 4px; }
.login-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 26px;
}
.login-error {
  background: var(--error-soft);
  border: 1px solid rgba(224, 122, 95, 0.4);
  color: #f0a291;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form .btn-primary { margin-top: 6px; }
.login-foot { margin-top: 22px; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.05em; }

/* ------------------------------------------------------------------
 | Campos de formulario
 * ------------------------------------------------------------------ */
.field { margin-bottom: 18px; }
.field > label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.req { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  color: var(--cream);
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23c6a15b' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field input::placeholder { color: #6d685e; }
.field-error {
  display: block;
  min-height: 16px;
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 6px;
}
.field-error-active input,
.field-error-active select {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-soft);
}

/* Mensaje global de errores de validación */
.form-errors-msg {
  background: var(--error-soft);
  border: 1px solid rgba(224, 122, 95, 0.4);
  color: #f0a291;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* Teléfono: selector de país + número */
.phone-wrap { display: flex; gap: 10px; }
.phone-wrap select { width: 130px; flex: 0 0 auto; }
.phone-wrap input { flex: 1; }

/* Fecha de nacimiento: DD / MM / AAAA */
.date-wrap { display: flex; align-items: center; gap: 8px; }
.date-wrap input { width: 74px; text-align: center; }
.date-wrap input#anio { width: 104px; }
.date-sep { color: var(--muted); font-size: 1.2rem; }

/* Lista de productos */
.product-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.product-row { display: flex; gap: 10px; align-items: center; }
.product-row .product-select { flex: 1; }
.product-qty {
  width: 74px;
  flex: 0 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  color: var(--cream);
  padding: 13px 10px;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 10px;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}
.product-qty:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.btn-remove-product {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-2);
  color: var(--cream);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all .2s;
}
.btn-remove-product:hover:not(:disabled) { border-color: var(--error); color: var(--error); }
.btn-remove-product:disabled { opacity: .35; cursor: not-allowed; }

/* Monto total */
.monto-wrap { display: flex; align-items: center; gap: 8px; }
.monto-prefix, .monto-suffix { color: var(--gold); font-size: 1.05rem; white-space: nowrap; }
.monto-wrap input { flex: 1; }

/* Lugar de compra: cadena + sucursal */
.tienda-wrap { display: flex; gap: 10px; }
.tienda-wrap select { flex: 1; }

/* Consentimientos */
.consent-field { margin-bottom: 14px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--cream);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}
.consent-label input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}
.consent-label a { color: var(--gold); text-decoration: underline; }

/* Acciones del formulario */
.reg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------
 | Página de registro / perfil
 * ------------------------------------------------------------------ */
.reg-body {
  background:
    radial-gradient(1000px 500px at 50% -8%, rgba(198, 161, 91, 0.06), transparent 55%),
    var(--bg);
}
.reg-wrap { max-width: 960px; margin: 0 auto; padding: 22px 20px 60px; }

.reg-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  min-height: 120px;
  display: flex;
  align-items: center;
}
.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.banner-content {
  position: relative;
  z-index: 1;
  padding: 26px 30px;
  background: linear-gradient(90deg, rgba(20, 22, 28, 0.85), rgba(20, 22, 28, 0.25));
  width: 100%;
}
.banner-content h2 { font-size: 1.6rem; color: var(--cream); margin-bottom: 4px; }
.banner-content p { color: var(--muted); font-size: 0.92rem; }

.reg-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.reg-section { padding: 6px 0 18px; border-bottom: 1px solid var(--border-soft); margin-bottom: 18px; }
.reg-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.reg-section h3 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}
.compra-mode .client-data { display: none; }

/* ------------------------------------------------------------------
 | Modal: cliente encontrado
 * ------------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: blur(3px);
}
.modal-card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow);
  text-align: center;
}
.modal-card h2 { color: var(--gold); font-size: 1.5rem; margin-bottom: 8px; }
.modal-card > p { color: var(--muted); margin-bottom: 18px; }
.found-client-info {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
  text-align: left;
}
.found-client-info p { margin-bottom: 4px; font-size: 0.95rem; }
.found-client-info p:last-child { margin-bottom: 0; color: var(--muted); font-size: 0.88rem; }
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------
 | Panel de éxito
 * ------------------------------------------------------------------ */
.success-panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: blur(3px);
}
.success-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow);
  text-align: center;
}
.success-icon { width: 72px; height: auto; margin: 0 auto 18px; display: block; }
.success-card h2 { color: var(--gold); font-size: 1.6rem; margin-bottom: 10px; }
.success-card p { color: var(--muted); margin-bottom: 24px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------
 | Badge offline
 * ------------------------------------------------------------------ */
.offline-badge {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}
.offline-icon { width: 20px; height: 20px; }

/* ------------------------------------------------------------------
 | Perfil de cliente
 * ------------------------------------------------------------------ */
.perfil-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}
.client-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.client-card-head h2 { font-size: 1.4rem; color: var(--cream); }
.client-id { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.client-data-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.data-row { display: flex; flex-direction: column; gap: 2px; }
.data-row dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.data-row dd { font-size: 1rem; color: var(--cream); }
.age-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 9px;
}
.consent-box {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 16px 18px;
}
.consent-box h3 { font-size: 1rem; color: var(--gold); margin-bottom: 12px; }
.consent-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.consent-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.consent-list li small { margin-left: auto; color: var(--muted); font-size: 0.75rem; }
.consent-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.consent-yes { color: var(--cream); }
.consent-yes .consent-dot { background: var(--ok); }
.consent-no { color: var(--muted); }
.consent-no .consent-dot { background: #5a564d; }

/* Tarjeta de cliente solo lectura (modo compra) */
.client-card.readonly dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; }
.client-card.readonly dt { color: var(--muted); font-size: 0.85rem; }
.client-card.readonly dd { color: var(--cream); }

/* Historial de compras */
.compras-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.compras-head h2 { font-size: 1.3rem; color: var(--cream); }
.compras-summary { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.compras-summary span { color: var(--muted); font-size: 0.82rem; }
.compras-summary strong { color: var(--gold); font-size: 1.2rem; font-family: 'Pala', serif; }
.empty-msg { color: var(--muted); font-style: italic; padding: 18px 0; }
.compras-table-wrap { overflow-x: auto; }
.compras-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compras-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.compras-table td { padding: 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.compras-table td small { color: var(--muted); }
.compras-table .num, .compras-table th.num { text-align: right; white-space: nowrap; }
.compras-table td.num { color: var(--gold); font-family: 'Pala', serif; }
.product-chip {
  display: inline-block;
  background: var(--gold-soft);
  border: 1px solid var(--border);
  color: var(--cream);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.8rem;
  margin: 2px 4px 2px 0;
}

/* ------------------------------------------------------------------
 | Dashboard
 * ------------------------------------------------------------------ */
.dash-body {
  background:
    radial-gradient(1000px 500px at 50% -8%, rgba(198, 161, 91, 0.06), transparent 55%),
    var(--bg);
}
.dash-wrap { max-width: 1280px; margin: 0 auto; padding: 22px 20px 60px; }
.dash-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  min-height: 110px;
  display: flex;
  align-items: center;
}
.dash-banner .banner-img { opacity: 0.45; }
.dash-banner .banner-content { background: linear-gradient(90deg, rgba(20, 22, 28, 0.85), rgba(20, 22, 28, 0.2)); }

.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.filters-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 18px;
  align-items: end;
}
.filters-form .field { margin-bottom: 14px; }
.recurrencia-field { grid-column: span 2; }
.recurrencia-toggle { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--cream);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
  transition: all .2s;
}
.radio-pill input { accent-color: var(--gold); width: 16px; height: 16px; margin: 0; }
.radio-pill:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.filters-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}
.kpi-icon { width: 46px; height: 46px; flex: 0 0 auto; }
.kpi-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi-value { font-family: 'Pala', serif; font-size: 1.7rem; color: var(--gold); line-height: 1.1; }
.kpi-sub { font-size: 0.78rem; color: var(--muted); }

/* Gráficas */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.chart-card h3 { font-size: 1.05rem; color: var(--cream); margin-bottom: 16px; }
.chart-box { position: relative; height: 300px; }

/* ------------------------------------------------------------------
 | Aviso de privacidad
 * ------------------------------------------------------------------ */
.notice-body {
  background:
    radial-gradient(1000px 500px at 50% -8%, rgba(198, 161, 91, 0.06), transparent 55%),
    var(--bg);
}
.notice-wrap { max-width: 860px; margin: 0 auto; padding: 22px 20px 60px; }
.notice-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 38px;
  box-shadow: var(--shadow);
}
.notice-card h1 { color: var(--gold); font-size: 1.7rem; margin-bottom: 6px; }
.notice-card .notice-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }
.notice-card h2 { color: var(--cream); font-size: 1.15rem; margin: 24px 0 10px; }
.notice-card p, .notice-card li { color: var(--cream); font-size: 0.95rem; line-height: 1.7; }
.notice-card ul { padding-left: 22px; margin-top: 8px; }
.notice-card li { margin-bottom: 6px; }
.notice-card a { color: var(--gold); }

/* ------------------------------------------------------------------
 | Responsive (tableta y móvil)
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .filters-form { grid-template-columns: repeat(2, 1fr); }
  .recurrencia-field { grid-column: span 2; }
  .perfil-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-header { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .header-info { order: 3; flex-basis: 100%; }
  .header-user { margin-left: auto; }
  .charts-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .filters-form { grid-template-columns: 1fr; }
  .recurrencia-field { grid-column: span 1; }
  .reg-card, .dash-card, .notice-card { padding: 20px 18px; }
  .reg-wrap, .dash-wrap, .notice-wrap { padding: 16px 14px 50px; }
  .phone-wrap { flex-direction: column; }
  .phone-wrap select { width: 100%; }
  .date-wrap input { width: 64px; }
  .date-wrap input#anio { width: 88px; }
  .chart-box { height: 260px; }
}