/* ══════════════════════════════════════════════════════════════
   Panel de Control — Bella Kurva
   panel.css — mobile-first, sin frameworks, sin build step
   ══════════════════════════════════════════════════════════════ */

/* ── Fuentes Google (Oswald + Montserrat) ───────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ── Variables de marca (espejo de globals.css del sitio público) */
:root {
  --paper:      #1F5E6E;   /* bella-blue — fondo principal */
  --paper-2:    #1A5261;   /* paper-raised */
  --paper-3:    #164553;   /* tono más oscuro para separadores */
  --gold:       #C5A059;   /* bella-gold — acento editorial */
  --gold-2:     #b08c47;
  --red:        #E63946;   /* bella-red — errores / peligro */
  --ink:        #FFFFFF;   /* texto sobre fondo azul */
  --ink-2:      rgba(255,255,255,0.65);
  --ink-muted:  rgba(255,255,255,0.40);
  --border:     rgba(255,255,255,0.15);
  --border-2:   rgba(255,255,255,0.08);
  --surface:    rgba(255,255,255,0.08);  /* tarjetas sobre fondo */
  --surface-2:  rgba(255,255,255,0.13);
  --white:      #FFFFFF;
  --success:    #6FCFA0;
  --error-bg:   #E63946;

  --radius:    0px;   /* sin border-radius — igual que el sitio */
  --radius-sm: 0px;
  --shadow:    0 4px 24px rgba(0,0,0,0.35);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.20);

  --header-h:  56px;
  --tabs-h:    48px;
  --savebar-h: 64px;
  --panel-max: 560px;

  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: 'Oswald', 'Montserrat', sans-serif;
}

/* ── Reset mínimo ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { height: 100%; font-size: 16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100%;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

#panel {
  width: min(100%, var(--panel-max));
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
}

/* ══════════════════════════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0 20px;
  min-height: 48px;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.btn--primary  { background: var(--gold); color: #1A1714; }
.btn--primary:hover:not(:disabled) { background: var(--gold-2); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover:not(:disabled) { background: var(--surface); }

.btn--full  { width: 100%; }
.btn--small { font-size: .875rem; min-height: 40px; padding: 0 14px; }
.btn--save  { min-width: 140px; }

.btn--danger {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn--danger:hover:not(:disabled) { background: rgba(230,57,70,.12); }

/* ══════════════════════════════════════════════════════════════
   PANTALLA DE INICIO DE SESIÓN
   ══════════════════════════════════════════════════════════════ */

.auth-screen[hidden] { display: none; }
.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--paper);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  max-width: 340px;
  width: 100%;
  text-align: center;
}

.auth-logo {
  display: block;
  margin: 0 auto 20px;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(197,160,89,0.3), 0 4px 16px rgba(0,0,0,0.4);
}

.auth-title {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.auth-subtitle {
  margin: 0 0 32px;
  font-size: .85rem;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Formulario PIN ─────────────────────────────────────────── */

.pin-form   { display: flex; flex-direction: column; gap: 20px; }
.pin-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.pin-digit {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  min-height: 56px;
  outline: none;
  padding: 0;
  text-align: center;
  transition: border-color .15s, background .15s;
  width: 100%;
}
.pin-digit:focus { background: var(--surface-2); border-color: var(--gold); }

.pin-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  text-align: left;
}

.pin-remember__check { width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; accent-color: var(--gold); }
.pin-remember__label { font-size: .88rem; color: var(--ink-2); }
.pin-error { margin: 0; font-size: .9rem; color: var(--red); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   CABECERA Y TABS
   ══════════════════════════════════════════════════════════════ */

.panel-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  padding: 0 16px;
  width: min(100%, var(--panel-max));
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.panel-header__logo-link { display: contents; }

.panel-header__logo {
  height: 36px;
  width: 36px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(197,160,89,0.3);
}

.panel-header__right  { display: flex; align-items: center; gap: 12px; }
.panel-header__logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  transition: background .15s, color .15s;
}
.panel-header__logout:hover { background: var(--surface); color: var(--ink); }

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  width: min(100%, var(--panel-max));
}

.panel-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  height: var(--tabs-h);
  padding: 0 8px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.panel-tab:hover     { color: var(--ink); }
.panel-tab.active    { color: var(--gold); border-bottom-color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   CONTENIDO DE TABS
   ══════════════════════════════════════════════════════════════ */

.tab-content {
  padding: 0 0 calc(var(--savebar-h) + 24px + env(safe-area-inset-bottom));
}

/* ══════════════════════════════════════════════════════════════
   ESTADO DE CARGA
   ══════════════════════════════════════════════════════════════ */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  color: var(--ink-2);
  font-size: .9rem;
}

.loading-state[hidden] { display: none; }

.loading-spinner {
  display: block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

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

.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 24px;
  color: var(--ink-2);
  font-size: .95rem;
  text-align: center;
}
.coming-soon p { margin: 0; }
.coming-soon p:first-child { font-size: 2rem; }

/* ══════════════════════════════════════════════════════════════
   TAB: CARTA — categorías y platos
   ══════════════════════════════════════════════════════════════ */

.menu-category {
  border-bottom: 1px solid var(--border-2);
}

.menu-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  background: var(--surface);
}

.menu-category-header:hover { background: var(--surface-2); }

.menu-category-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.menu-category-count {
  font-size: .8rem;
  color: var(--ink-muted);
}

.menu-category-chevron {
  color: var(--ink-2);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 8px;
}
.menu-category[open] .menu-category-chevron {
  transform: rotate(180deg);
}

.menu-items-list { list-style: none; margin: 0; padding: 0; }

/* ── Fila de plato ──────────────────────────────────────────── */

.menu-item-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-2);
  transition: background .1s;
}

.menu-item-row:last-child { border-bottom: none; }
.menu-item-row--hidden    { opacity: .45; }

.menu-item-name-wrap { min-width: 0; }

.menu-item-name {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.3;
  outline: none;
  padding: 2px 0;
  transition: border-color .15s, background .15s;
}
.menu-item-name:focus {
  border-bottom-color: var(--gold);
  background: var(--surface);
  padding: 2px 4px;
}

.menu-item-desc {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.3;
  outline: none;
  padding: 2px 0;
  resize: none;
  transition: border-color .15s;
  display: block;
  margin-top: 2px;
  overflow: hidden;
}
.menu-item-desc:focus {
  border-bottom-color: var(--border);
  background: var(--surface);
  padding: 2px 4px;
}

/* ── Input precio ───────────────────────────────────────────── */

.menu-item-price-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 8px;
  min-width: 72px;
  height: 40px;
  transition: border-color .15s;
}
.menu-item-price-wrap:focus-within { border-color: var(--gold); }

.menu-item-price-symbol {
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.menu-item-price {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 700;
  outline: none;
  text-align: right;
  width: 52px;
}

/* ── Toggle visible ─────────────────────────────────────────── */

.menu-item-toggle { display: flex; align-items: center; }

.toggle-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-thumb {
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: var(--border);
  transition: background .2s;
  flex-shrink: 0;
}
.toggle-thumb::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
  margin: 3px;
  transition: transform .2s;
}

.toggle-input:checked + .toggle-thumb { background: var(--gold); }
.toggle-input:checked + .toggle-thumb::after { transform: translateX(20px); }
.toggle-input:focus-visible + .toggle-thumb { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Borrar / añadir platos ─────────────────────────────────── */

.btn-delete-item {
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
  transition: color .15s, opacity .15s;
  opacity: 0;
}
.menu-item-row:hover .btn-delete-item { opacity: 1; }
.menu-item-row--pending-delete {
  background: rgba(230,57,70,.10);
  outline: 1.5px solid var(--red);
}
.menu-item-row--pending-delete .btn-delete-item { opacity: 1; color: var(--red); }

.btn-add-item {
  display: block;
  width: 100%;
  background: none;
  border: 1px dashed var(--border);
  border-top: none;
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .85rem;
  padding: 10px 16px;
  text-align: left;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-add-item:hover { background: var(--surface); color: var(--gold); border-color: var(--gold); }

/* ── Error de campo ─────────────────────────────────────────── */

.field-error {
  color: var(--red);
  font-size: .8rem;
  font-weight: 600;
  margin-top: 2px;
  display: none;
}
.field-error--visible { display: block; }

/* ══════════════════════════════════════════════════════════════
   BARRA DE GUARDAR
   ══════════════════════════════════════════════════════════════ */

.panel-save-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--panel-max));
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-2);
  border-top: 1px solid var(--border);
  height: var(--savebar-h);
  padding: 0 16px;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 16px rgba(0,0,0,.30);
}

.save-status {
  font-size: .88rem;
  color: var(--success);
  font-weight: 600;
  flex: 1;
  padding-right: 12px;
}

/* ══════════════════════════════════════════════════════════════
   MODAL DE REVISIÓN
   ══════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-overlay[hidden] { display: none; }
@media (min-width: 480px) {
  .modal-overlay { align-items: center; padding: 24px; }
}

.modal-card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px 20px;
  width: 100%;
  max-width: var(--panel-max);
}
@media (min-width: 480px) {
  .modal-card { border-radius: var(--radius); }
}

.modal-title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.review-body {
  margin-bottom: 20px;
}

.review-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
  margin: 16px 0 6px;
}
.review-section-title:first-child { margin-top: 0; }

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

.review-change {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: .92rem;
}

.review-change__name {
  flex: 1;
  color: var(--ink);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-change__detail {
  color: var(--ink-2);
  white-space: nowrap;
  font-size: .88rem;
}

.review-change__arrow { color: var(--ink-muted); font-size: .8rem; }

.review-change__new {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

.review-total {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: .88rem;
  color: var(--ink-2);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   TOAST DE ERROR / ÉXITO
   ══════════════════════════════════════════════════════════════ */

.error-toast {
  position: fixed;
  bottom: calc(var(--savebar-h) + 8px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(calc(100% - 24px), calc(var(--panel-max) - 24px));
  z-index: 300;
  background: var(--error-bg);
  box-shadow: var(--shadow);
  color: var(--white);
  font-size: .93rem;
  font-weight: 500;
  padding: 14px 16px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.error-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ══════════════════════════════════════════════════════════════
   TABS: HORARIOS / AVISOS / LOCAL — elementos comunes
   ══════════════════════════════════════════════════════════════ */

.venue-section {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border-2);
}
.venue-section:last-child { border-bottom: none; }

.venue-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.venue-section-title {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

.venue-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.venue-field:last-child { margin-bottom: 0; }

.venue-field-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.venue-input {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .97rem;
  height: 44px;
  outline: none;
  padding: 0 12px;
  transition: border-color .15s;
  width: 100%;
}
.venue-input:focus { border-color: var(--gold); }
.venue-input::placeholder { color: var(--ink-muted); }

.venue-input-prefix-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s;
}
.venue-input-prefix-wrap:focus-within { border-color: var(--gold); }

.venue-input-prefix {
  padding: 0 10px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  height: 44px;
  display: flex;
  align-items: center;
}

.venue-input--prefixed {
  border: none;
  background: transparent;
  flex: 1;
}
.venue-input--prefixed:focus { border-color: transparent; }

/* ── Horarios: días de la semana ─────────────────────────────── */

.horarios-days { display: flex; flex-direction: column; gap: 0; }

.horario-day {
  border-bottom: 1px solid var(--border-2);
  padding: 14px 0;
}
.horario-day:last-child { border-bottom: none; }

.horario-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.horario-day-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}

.horario-day-closed {
  font-size: .8rem;
  color: var(--ink-muted);
  font-style: italic;
}

.horario-shifts { display: flex; flex-direction: column; gap: 8px; }

.horario-shift {
  display: flex;
  align-items: center;
  gap: 8px;
}

.horario-shift-sep {
  color: var(--ink-muted);
  font-size: .9rem;
  flex-shrink: 0;
}

.shift-time {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .9rem;
  height: 38px;
  outline: none;
  padding: 0 8px;
  text-align: center;
  width: 84px;
  transition: border-color .15s;
}
.shift-time:focus { border-color: var(--gold); }

.btn-remove-shift {
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
  transition: color .15s;
}
.btn-remove-shift:hover { color: var(--red); }

.btn-add-shift {
  background: none;
  border: 1px dashed var(--border);
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .82rem;
  padding: 6px 12px;
  margin-top: 6px;
  transition: border-color .15s, color .15s;
}
.btn-add-shift:hover { border-color: var(--gold); color: var(--gold); }

/* ── Cierres ─────────────────────────────────────────────────── */

.closures-list { display: flex; flex-direction: column; gap: 8px; }

.closure-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  background: var(--surface);
  padding: 10px 12px;
  border: 1px solid var(--border-2);
}

.closure-label-input {
  grid-column: 1 / -1;
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-2);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: .85rem;
  height: 32px;
  outline: none;
  padding: 0 4px;
  transition: border-color .15s;
  width: 100%;
}
.closure-label-input:focus { border-bottom-color: var(--gold); }
.closure-label-input::placeholder { color: var(--ink-muted); }

.closure-date {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .85rem;
  height: 36px;
  outline: none;
  padding: 0 6px;
  width: 100%;
  transition: border-color .15s;
}
.closure-date:focus { border-color: var(--gold); }

.btn-remove-closure {
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
  transition: color .15s;
}
.btn-remove-closure:hover { color: var(--red); }

/* ── Avisos ──────────────────────────────────────────────────── */

.aviso-active-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 16px;
}

.aviso-textarea {
  appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .97rem;
  line-height: 1.5;
  outline: none;
  padding: 12px;
  resize: vertical;
  transition: border-color .15s;
  width: 100%;
  min-height: 100px;
  margin-bottom: 16px;
}
.aviso-textarea:focus { border-color: var(--gold); }
.aviso-textarea::placeholder { color: var(--ink-muted); }

.aviso-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Focus visible global ───────────────────────────────────── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ══════════════════════════════════════════════════════════════
   DESKTOP — centrado
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  #panel,
  .panel-header,
  .panel-tabs,
  .panel-save-bar { max-width: var(--panel-max); }
}
