@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --amarillo-principal: #F5C518;
  --amarillo-claro: #FFF8DC;
  --amarillo-hover: #E6B800;
  --beige-fondo: #FAF7F0;
  --beige-card: #F5EFE0;
  --beige-borde: #E8DFCC;
  --rojo-accion: #D94034;
  --rojo-hover: #B83028;
  --rojo-suave: #FDF0EF;
  --blanco: #FFFFFF;
  --gris-texto: #2C2C2A;
  --gris-secundario: #6B6860;
  --gris-borde: #D3D1C7;
  --verde-exito: #2D7D46;
  --verde-suave: #EAF3DE;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--beige-fondo);
  color: var(--gris-texto);
  font-family: 'Inter', sans-serif;
}
h1, h2, h3, .logo-text, .header-logo-fallback { font-family: 'Nunito', sans-serif; font-weight: 800; }
a { color: inherit; text-decoration: none; }

.app-header {
  background: var(--amarillo-principal);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-logo-wrapper { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.header-logo {
  height: 56px;
  width: 56px;
  object-fit: contain;
  background: var(--blanco);
  border-radius: 8px;
}
.header-logo-fallback {
  font-size: 1.05rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.header-nav,
.header-nav-links { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.header-nav a, .btn {
  min-height: 44px;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  border: 1.5px solid transparent;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}
.header-nav a:hover { background: rgba(255,255,255,0.35); }
.mobile-menu-toggle { display: none; }
.mobile-menu-heading { display: none; }
.menu-bars { display: grid; gap: 3px; width: 18px; }
.menu-bars span { display: block; height: 2px; background: currentColor; }
.page-shell { width: min(1180px, 100%); margin: 0 auto; padding: 1.25rem; }
.page-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.page-heading h1 { margin: 0; font-size: 1.8rem; line-height: 1.1; overflow-wrap: anywhere; }
.page-heading p { margin: 0.25rem 0 0; color: var(--gris-secundario); }
.with-action { align-items: flex-end; }

.btn-primary { background: var(--rojo-accion); color: var(--blanco); border-color: var(--rojo-accion); }
.btn-primary:hover { background: var(--rojo-hover); }
.btn-secondary { background: var(--amarillo-principal); color: var(--gris-texto); border-color: var(--amarillo-hover); }
.btn-outline { background: rgba(255,255,255,0.2); color: var(--gris-texto); border-color: rgba(44,44,42,0.25); }

.login-screen { min-height: calc(100vh - 112px); display: grid; place-items: center; }
.login-card {
  background: var(--blanco);
  border: 1.5px solid var(--beige-borde);
  border-radius: 8px;
  width: min(420px, 100%);
  padding: 1.5rem;
  box-shadow: 0 12px 28px rgba(44,44,42,0.08);
}
.login-logo {
  font-family: 'Nunito', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-align: center;
  overflow-wrap: anywhere;
}

label { display: grid; gap: 0.4rem; font-weight: 700; color: var(--gris-texto); }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--gris-borde);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: var(--blanco);
  color: var(--gris-texto);
}
textarea { resize: vertical; }
.field-error { color: var(--rojo-accion); font-size: 0.9rem; min-height: 1.1rem; margin: 0.4rem 0 0; }
.check-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
}
.check-row input {
  width: 20px;
  min-height: 20px;
}

.context-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.context-field {
  background: var(--beige-card);
  border: 1.5px solid var(--beige-borde);
  border-radius: 8px;
  padding: 0.75rem;
}

.form-section, .panel {
  background: var(--blanco);
  border: 1.5px solid var(--beige-borde);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  min-width: 0;
}
.form-section-header {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gris-secundario);
  border-bottom: 2px solid var(--amarillo-principal);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.form-section.caja-inicial { border-left: 4px solid var(--amarillo-principal); }
.form-section.ventas-dia { border-left: 4px solid #4CAF50; }
.form-section.registro-pos { border-left: 4px solid #2196F3; }
.form-section.cierre { border-left: 4px solid var(--rojo-accion); }
.form-section.validacion { border-left: 4px solid #9C27B0; }
.field-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.input-money {
  font-family: 'Inter', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: right;
}
.input-money.readonly-total {
  background: var(--amarillo-claro);
  border-color: var(--amarillo-principal);
  color: var(--amarillo-hover);
  font-weight: 800;
  cursor: not-allowed;
}
.input-money.readonly-acumulado {
  background: #EDE7F6;
  border-color: #9C27B0;
  color: #6A1B9A;
  font-weight: 800;
}
.info-line { color: var(--gris-secundario); margin-top: 0; }
.btn-enviar-reporte, .btn-recoger-efectivo {
  background: var(--rojo-accion);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  width: 100%;
  min-height: 56px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(217, 64, 52, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.btn-enviar-reporte:hover, .btn-recoger-efectivo:hover { background: var(--rojo-hover); transform: translateY(-1px); }
.form-actions-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(220px, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}
.form-actions-row .btn-enviar-reporte { margin: 0; }
.date-day-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--gris-secundario);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: capitalize;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kpi-card {
  background: var(--blanco);
  border: 1.5px solid var(--beige-borde);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}
.kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gris-secundario);
  margin-bottom: 0.5rem;
}
.kpi-valor { font-family: 'Nunito', sans-serif; font-size: 1.6rem; font-weight: 800; }
.kpi-card.efectivo { border-top: 4px solid #4CAF50; }
.kpi-card.tarjeta { border-top: 4px solid #2196F3; }
.kpi-card.qr { border-top: 4px solid #9C27B0; }
.kpi-card.caja2 { border-top: 4px solid var(--rojo-accion); }
.kpi-card.total { border-top: 4px solid var(--amarillo-principal); background: var(--amarillo-claro); }
.kpi-card.caja-total {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 540px);
  padding: 1.55rem 1.75rem;
  border-top: 6px solid var(--rojo-accion);
  background: linear-gradient(180deg, #fffdf4 0%, var(--amarillo-claro) 100%);
  box-shadow: 0 14px 30px rgba(44, 44, 42, 0.12);
}
.kpi-card.caja-total .kpi-label { font-size: 0.86rem; }
.kpi-card.caja-total .kpi-valor {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  white-space: nowrap;
}

.tabla-tiendas-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 8px;
  border: 1.5px solid var(--beige-borde);
  scrollbar-gutter: stable;
  scrollbar-color: var(--amarillo-hover) var(--beige-card);
  scrollbar-width: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
.tabla-tiendas-wrapper::-webkit-scrollbar { height: 12px; }
.tabla-tiendas-wrapper::-webkit-scrollbar-track { background: var(--beige-card); }
.tabla-tiendas-wrapper::-webkit-scrollbar-thumb {
  background: var(--amarillo-hover);
  border: 3px solid var(--beige-card);
  border-radius: 8px;
}
.tabla-tiendas {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tabla-tiendas th {
  background: var(--amarillo-principal);
  color: var(--gris-texto);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  padding: 0.85rem 1rem;
  text-align: right;
  white-space: nowrap;
}
.tabla-tiendas th:first-child, .tabla-tiendas td:first-child { text-align: left; }
.tabla-tiendas tbody tr:nth-child(even) { background: var(--beige-fondo); }
.tabla-tiendas tbody tr:hover { background: var(--amarillo-claro); }
.tabla-tiendas td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--gris-borde);
  font-weight: 600;
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.tabla-tiendas tfoot td { background: var(--beige-card); font-weight: 800; border-top: 2px solid var(--amarillo-principal); }
.tabla-tiendas .day-row td {
  background: var(--beige-card);
  color: var(--gris-texto);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  text-align: left;
  border-top: 2px solid var(--amarillo-principal);
}
.tabla-tiendas .subtotal-row td {
  background: var(--amarillo-claro);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  border-bottom: 2px solid var(--beige-borde);
}

.cajas-dashboard {
  display: grid;
  min-width: 680px;
  gap: 0.5rem;
}

.cajas-dashboard-summary {
  display: flex;
  justify-content: flex-end;
  color: var(--gris-texto);
  font-size: 0.72rem;
  font-weight: 700;
}

.cajas-dashboard-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 0.45rem 0.75rem;
}

.caja-dashboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0.45rem;
  border-left: 3px solid var(--gris-borde);
  white-space: nowrap;
}

.tienda-summary-row td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  font-weight: 700;
  background: #fff;
  border-bottom: 0;
}

.tienda-summary-row td:first-child {
  font-size: 0.95rem;
}

.tienda-cajas-total {
  color: var(--rojo-accion);
  font-size: 0.95rem;
}

.estado-turnos {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--gris-borde);
  background: var(--beige-fondo);
  font-size: 0.72rem;
  white-space: nowrap;
}

.tienda-cajas-row td {
  padding: 0.7rem 1rem 1rem;
  background: var(--beige-fondo);
  border-bottom: 2px solid var(--amarillo-principal);
}

.tienda-cajas-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.2rem;
  color: var(--gris-texto);
  font-size: 0.76rem;
}

.tienda-cajas-heading strong {
  color: var(--gris-texto);
  font-size: 0.82rem;
}

.caja-dashboard-row.con-saldo {
  border-left-color: var(--amarillo-principal);
  background: var(--amarillo-claro);
  font-weight: 700;
}

.caja-dashboard-row.sin-saldo {
  color: var(--gris-texto);
}

.caja-dashboard-row.con-saldo strong {
  color: var(--rojo-accion);
}

.caja-dashboard-row.sin-saldo strong {
  color: var(--gris-texto);
}

.caja-vacia {
  color: var(--gris-texto);
  white-space: nowrap;
}

.historial-resumen {
  min-width: 1120px;
}

.report-row-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
}

.table-link {
  appearance: none;
  padding: 0.15rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--rojo-accion);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.table-link:hover,
.table-link:focus-visible {
  border-bottom-color: currentColor;
  outline: none;
}

body.modal-open {
  overflow: hidden;
}

.report-modal[hidden] {
  display: none;
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.report-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(44, 44, 42, 0.5);
  backdrop-filter: blur(5px);
  cursor: default;
}

.report-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(84vh, 760px);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid var(--gris-borde);
  border-top: 5px solid var(--amarillo-principal);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(44, 44, 42, 0.28);
}

.report-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--gris-borde);
}

.report-modal-header h2,
.report-modal-eyebrow {
  margin: 0;
}

.report-modal-eyebrow {
  margin-bottom: 0.2rem;
  color: var(--gris-texto);
  font-size: 0.76rem;
  font-weight: 700;
}

.report-modal-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--gris-borde);
  border-radius: 50%;
  background: var(--beige-fondo);
  color: var(--gris-texto);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.report-detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--gris-borde);
  border-left: 1px solid var(--gris-borde);
}

.report-detail-list > div {
  min-width: 0;
  padding: 0.7rem;
  border-right: 1px solid var(--gris-borde);
  border-bottom: 1px solid var(--gris-borde);
}

.report-detail-list dt {
  margin-bottom: 0.2rem;
  color: var(--gris-texto);
  font-size: 0.7rem;
  font-weight: 700;
}

.report-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.report-observation,
.report-detail-observation {
  padding: 1rem;
  border-left: 4px solid var(--amarillo-principal);
  background: var(--amarillo-claro);
  line-height: 1.6;
  white-space: pre-wrap;
}

.report-detail-observation {
  margin-top: 1rem;
}

.report-detail-observation p {
  margin: 0.35rem 0 0;
}

@media (max-width: 760px) {
  .cajas-dashboard {
    min-width: 580px;
  }

  .cajas-dashboard-list {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
  }

  .report-modal-dialog {
    padding: 1rem;
  }

  .report-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.admin-actions { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.table-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}
.table-control {
  min-width: 110px;
  min-height: 38px;
  padding: 0.45rem 0.55rem;
}
.btn-danger {
  background: var(--rojo-accion);
  color: var(--blanco);
  border-color: var(--rojo-accion);
}
.btn-danger:hover { background: var(--rojo-hover); }
.acumulado-display {
  background: var(--amarillo-claro);
  border: 2px solid var(--amarillo-principal);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 800;
}
.banner { border-radius: 8px; padding: 1rem; margin-bottom: 1rem; font-weight: 800; }
.banner.success { background: var(--verde-suave); color: var(--verde-exito); }
.toast-area { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: 0.5rem; z-index: 200; }
.toast {
  background: var(--gris-texto);
  color: white;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.toast.success { background: var(--verde-exito); }
.toast.error { background: var(--rojo-accion); }
.toast.warn { background: var(--amarillo-hover); color: var(--gris-texto); }

@media (min-width: 640px) {
  .context-bar, .field-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .context-bar { grid-template-columns: repeat(3, 1fr); }
  .field-grid { grid-template-columns: repeat(4, 1fr); }
  .user-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-actions { grid-template-columns: 2fr 1fr; align-items: center; }
}
@media (max-width: 720px) {
  .app-header { align-items: flex-start; flex-direction: column; }
  .header-nav { width: 100%; justify-content: stretch; }
  .header-nav a, .header-nav button { flex: 1 1 45%; }
  .page-heading { display: block; }
  .page-shell { padding: 0.75rem; }
  .form-section, .panel { padding: 0.85rem; }
  .form-actions-row { grid-template-columns: 1fr; }
  .tabla-tiendas { font-size: 0.8rem; }
  .tabla-tiendas th { padding: 0.65rem 0.75rem; }
  .tabla-tiendas td { padding: 0.6rem 0.75rem; }
  .table-control { min-width: 100px; }
}

/* Iconos del menu: por defecto en linea (desktop), como chip solo en el menu movil */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
}
.nav-icon svg { width: 100%; height: 100%; display: block; }
.header-nav a:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.header-nav-links-logout {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1.5px solid transparent;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  cursor: pointer;
  color: inherit;
}

@media (max-width: 600px) {
  .role-admin .app-header {
    align-items: center;
    flex-direction: row;
    padding: 0.7rem 0.85rem;
  }
  .role-admin .header-logo { width: 44px; height: 44px; }
  .role-admin .header-logo-fallback { display: none; }
  .role-admin .header-nav {
    position: relative;
    width: auto;
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .role-admin .header-nav a,
  .role-admin .header-nav button { flex: none; }
  .role-admin .mobile-menu-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.95rem;
    border: none;
    border-radius: 999px;
    background: var(--blanco);
    color: var(--gris-texto);
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(44, 44, 42, 0.18);
  }
  .role-admin .mobile-menu-toggle .menu-bars span { background: var(--rojo-accion); }
  /* En movil, "Salir" vive dentro del menu; se oculta el boton suelto de al lado */
  .role-admin #logout-btn { display: none; }
  .role-admin .header-nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 110;
    width: min(280px, calc(100vw - 1.7rem));
    padding: 0;
    border: 1px solid var(--beige-borde);
    border-radius: 16px;
    background: var(--blanco);
    box-shadow: 0 18px 40px rgba(44, 44, 42, 0.22);
    overflow: hidden;
    transform-origin: top right;
  }
  .role-admin .header-nav-links.is-open {
    display: flex;
    flex-direction: column;
    animation: mobile-menu-in 150ms ease-out;
  }
  .role-admin .mobile-menu-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border-top: 4px solid var(--rojo-accion);
    border-bottom: 1px solid var(--beige-borde);
    background: linear-gradient(135deg, var(--amarillo-claro) 0%, var(--beige-card) 100%);
  }
  .role-admin .mobile-menu-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: var(--amarillo-principal);
    color: var(--gris-texto);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(44, 44, 42, 0.2);
  }
  .role-admin .mobile-menu-heading-text {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
  }
  .role-admin .mobile-menu-heading-text span {
    font-family: 'Nunito', sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--gris-texto);
  }
  .role-admin .mobile-menu-heading-text small {
    color: var(--gris-secundario);
    font-size: 0.72rem;
    overflow-wrap: anywhere;
  }
  .role-admin .header-nav-links a,
  .role-admin .header-nav-links-logout {
    position: relative;
    justify-content: flex-start;
    min-height: 46px;
    width: 100%;
    padding: 0.6rem 0.95rem;
    border-bottom: 1px solid var(--beige-borde);
    border-radius: 0;
    text-align: left;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--gris-texto);
  }
  .role-admin .header-nav-links a:last-of-type { border-bottom: 1px solid var(--beige-borde); }
  .role-admin .header-nav-links-logout { display: flex; border-bottom: none; color: var(--rojo-accion); }
  .role-admin .header-nav-links a .nav-icon,
  .role-admin .header-nav-links-logout .nav-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: var(--beige-card);
    color: var(--gris-secundario);
  }
  .role-admin .header-nav-links a .nav-icon svg,
  .role-admin .header-nav-links-logout .nav-icon svg { width: 1.05rem; height: 1.05rem; }
  .role-admin .header-nav-links-logout .nav-icon { background: var(--rojo-suave); color: var(--rojo-accion); }
  .role-admin .header-nav-links a .nav-label,
  .role-admin .header-nav-links-logout .nav-label { flex: 1; }
  .role-admin .header-nav-links a::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--gris-borde);
    border-right: 2px solid var(--gris-borde);
    transform: rotate(45deg);
  }
  .role-admin .header-nav-links a:hover { background: var(--amarillo-claro); }
  .role-admin .header-nav-links a:hover .nav-icon { background: var(--blanco); }
  .role-admin .header-nav-links a.is-active {
    background: var(--rojo-suave);
    color: var(--rojo-accion);
  }
  .role-admin .header-nav-links a.is-active .nav-icon {
    background: var(--rojo-accion);
    color: var(--blanco);
  }
  .role-admin .header-nav-links a.is-active::after { border-color: var(--rojo-accion); }
  .role-admin .header-nav-links-logout:hover { background: var(--rojo-suave); }
}

@keyframes mobile-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
