/* ══════════════════════════════════════════════════════════════
   JRZ Link · Identidad: blanco, negro, rojo eléctrico, grises fríos
   Firma visual: la "línea de pulso" roja que atraviesa cada tarjeta
   ══════════════════════════════════════════════════════════════ */

:root {
  --black: #0b0b0d;
  --white: #ffffff;
  --red: #ff2231;
  --red-dim: #d50f1e;
  --red-glow: rgba(255, 34, 49, 0.35);
  --g-100: #f4f5f7;
  --g-200: #e6e8ec;
  --g-300: #c9cdd4;
  --g-500: #8a909b;
  --g-700: #3a3d44;
  --g-800: #1c1d21;
  --g-850: #17181c;
  --g-900: #121316;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--g-900);
  color: var(--white);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.02em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── PERFIL PÚBLICO · editorial photo-first (default) ───────── */
/* Variables por tema: la card, el fade del hero y los botones
   se derivan de --card-bg / --ink / --ink-soft para que ambos
   temas compartan exactamente la misma estructura. */

.profile-page {
  --card-bg: #ffffff;
  --ink: #101114;
  --ink-soft: #5c6470;
  --line: #e9ebef;
  --chip: #f4f5f7;
  position: relative;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 64px;
  background: var(--g-100);
  color: var(--ink);
  overflow-x: hidden;
}

/* Fondo exterior: la misma imagen hero, desenfocada */
.backdrop {
  position: fixed;
  inset: -60px;
  background-size: cover;
  background-position: center;
  filter: blur(52px) saturate(1.15);
  transform: scale(1.15);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.backdrop-veil {
  position: fixed;
  inset: 0;
  background: rgba(244, 245, 247, 0.45);
  z-index: 0;
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(16, 17, 20, 0.18), 0 2px 8px rgba(16, 17, 20, 0.06);
}

/* Hero fotográfico con fade hacia el fondo de la card */
.hero {
  position: relative;
  height: 430px;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 26%,
    color-mix(in srgb, var(--card-bg) 45%, transparent) 55%,
    color-mix(in srgb, var(--card-bg) 88%, transparent) 76%,
    var(--card-bg) 94%);
}

/* Cabecera sin hero (fallback con avatar) */
.card-header {
  padding: 36px 24px 0;
  text-align: center;
}
.avatar {
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 4px solid var(--card-bg);
  box-shadow: 0 8px 28px rgba(16, 17, 20, 0.18);
}
.avatar-placeholder {
  width: 104px; height: 104px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 38px; font-weight: 700;
  background: var(--chip); color: var(--red);
}

/* Identidad: solapada sobre el final del hero */
.identity {
  position: relative;
  text-align: center;
  padding: 0 26px;
}
.hero + .identity { margin-top: -158px; }

.display-name {
  font-size: 27px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.verified-badge {
  width: 22px; height: 22px;
  flex: 0 0 22px;
  color: #2f80ed; /* azul universal de verificado */
}
.theme-dark .verified-badge { color: var(--red); }
.username { color: var(--ink-soft); font-weight: 500; font-size: 15px; margin-top: 1px; }
.title-line { color: var(--ink-soft); font-size: 14px; margin-top: 5px; }

/* Redes + followers integrados bajo el nombre */
.social-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 13px;
}
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--chip);
  color: #fff;
  box-shadow: 0 3px 10px rgba(16, 17, 20, 0.16);
}
.social-row a[data-net="instagram"] { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-row a[data-net="facebook"]  { background: #1877f2; }
.social-row a[data-net="youtube"]   { background: #ff0000; }
.social-row a[data-net="tiktok"]    { background: #010101; }
.social-row a[data-net="twitter"]   { background: #0f1419; }
.social-row a[data-net="linkedin"]  { background: #0a66c2; }
.social-row a[data-net="whatsapp"]  { background: #25d366; }
.social-row a:active { transform: scale(0.92); }
.social-row svg { width: 19px; height: 19px; }
.followers-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 12px;
  border: 0; background: none;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
}
.followers-toggle strong { color: var(--ink); font-weight: 700; }
.followers-toggle .chev { transition: transform 0.25s ease; font-size: 12px; }
.followers-toggle.open .chev { transform: rotate(180deg); }
.followers-breakdown {
  display: none;
  margin: 10px auto 0;
  max-width: 240px;
}
.followers-breakdown.open { display: block; animation: rise 0.35s ease both; }
.followers-breakdown div {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13.5px; color: var(--ink-soft);
  padding: 5px 4px;
  border-bottom: 1px solid var(--line);
}
.followers-breakdown div:last-child { border-bottom: 0; }
.followers-breakdown strong { color: var(--ink); }

.bio {
  margin: 13px auto 0;
  max-width: 330px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  white-space: pre-line;
}

.card-body {
  padding: 22px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* CTA principal */
.btn-save-contact {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16.5px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px var(--red-glow);
  transition: transform 0.12s ease;
}
.btn-save-contact:active { transform: scale(0.98); }

/* Links minimalistas, redondeados, táctiles */
.links-list { display: flex; flex-direction: column; gap: 11px; }
.link-item {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(16, 17, 20, 0.05);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600; font-size: 15.5px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.link-item:hover, .link-item:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 4px 14px rgba(16, 17, 20, 0.1);
}
.link-item:active { transform: scale(0.985); }
.link-icon {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--chip);
  color: var(--ink);
}
.link-icon svg { width: 17px; height: 17px; }
.link-arrow { margin-left: auto; color: var(--ink-soft); font-size: 18px; }

.section-label {
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-align: center;
}

/* Galería horizontal con scroll-snap */
.gallery { display: flex; flex-direction: column; gap: 14px; }
.media-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(16, 17, 20, 0.1);
}
.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.media-card .media-link-ic {
  position: absolute; top: 12px; left: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.media-card .media-link-ic svg { width: 15px; height: 15px; }
a.media-card { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
a.media-card:active { transform: scale(0.98); }

/* QR + compartir */
.qr-block { text-align: center; }
.qr-block img {
  width: 148px;
  margin: 12px auto 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}
.share-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.btn-share {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  font-weight: 600; font-size: 14px;
  text-decoration: none;
}
.btn-share:active { transform: scale(0.96); }
.qr-hint { color: var(--ink-soft); font-size: 12.5px; margin-top: 9px; }

.card-footer {
  padding: 15px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.card-footer a { color: var(--red); font-weight: 600; text-decoration: none; }

/* ── Tema alternativo: JRZ oscuro premium ───────────────────── */
.profile-page.theme-dark {
  --card-bg: #17181c;
  --ink: #ffffff;
  --ink-soft: #9aa0a8;
  --line: #26282e;
  --chip: #202227;
  background:
    radial-gradient(60% 40% at 50% -5%, rgba(255, 34, 49, 0.14), transparent 70%),
    var(--g-900);
}
.theme-dark .backdrop { opacity: 0.35; }
.theme-dark .backdrop-veil { background: rgba(11, 11, 13, 0.55); }
.theme-dark .card { box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); border: 1px solid var(--g-800); }
.theme-dark .card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red) 20%, var(--red) 80%, transparent);
  box-shadow: 0 0 18px var(--red-glow);
}
.theme-dark .link-item { box-shadow: none; }
.theme-dark .link-item:hover, .theme-dark .link-item:focus-visible { border-color: var(--red); }
.theme-dark .link-icon { color: var(--red); background: rgba(255, 34, 49, 0.12); }
.theme-dark .qr-block img { border-color: var(--line); }

/* ── Móvil: la card ocupa todo el ancho ─────────────────────── */
@media (max-width: 560px) {
  .hero { height: min(118vw, 470px); }
  .profile-page { padding: 0 0 0; background: var(--card-bg); align-items: stretch; }
  .profile-page.theme-dark { background: var(--card-bg); }
  .backdrop, .backdrop-veil { display: none; }
  .card {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 100dvh;
    border: 0;
  }
  .card-body { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
}

/* ── AUTH ───────────────────────────────────────────────────── */
.auth-page {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(50% 35% at 50% 0%, rgba(255, 34, 49, 0.12), transparent 70%),
    var(--g-900);
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--g-850);
  border: 1px solid var(--g-800);
  border-radius: 20px;
  overflow: hidden;
}
.auth-inner { padding: 32px 28px; }
.brand-mark { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.brand-mark span { color: var(--red); }
.auth-sub { color: var(--g-500); font-size: 14px; margin: 6px 0 24px; }

/* ── FORMULARIOS ────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--g-300);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--g-700);
  background: var(--g-900);
  color: var(--white);
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { min-height: 96px; resize: vertical; }
.field-hint { font-size: 12px; color: var(--g-500); margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--g-700);
  background: var(--g-800);
  color: var(--white);
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { border-color: var(--g-500); }
.btn-primary { background: var(--red); border-color: var(--red); box-shadow: 0 4px 16px var(--red-glow); }
.btn-primary:hover { background: var(--red-dim); border-color: var(--red-dim); }
.btn-danger { border-color: var(--red-dim); color: var(--red); background: transparent; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error { background: rgba(255, 34, 49, 0.12); border: 1px solid var(--red-dim); color: #ff8a92; }
.alert-ok { background: rgba(46, 204, 113, 0.1); border: 1px solid #1e7a45; color: #7fe0a7; }

/* ── LAYOUT PANEL / ADMIN ───────────────────────────────────── */
.shell { display: flex; min-height: 100dvh; }
.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--g-850);
  border-right: 1px solid var(--g-800);
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100dvh;
}
.sidebar .brand-mark { padding: 0 10px 20px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--g-300);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  border-left: 3px solid transparent;
}
.nav-link:hover { background: var(--g-800); color: var(--white); }
.nav-link.active {
  background: var(--g-800);
  color: var(--white);
  border-left-color: var(--red);
}
.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--g-800); }
.user-chip { font-size: 13px; color: var(--g-500); padding: 0 10px 10px; word-break: break-word; }

.main { flex: 1; padding: 32px clamp(16px, 4vw, 44px) 64px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 26px; }
.page-sub { color: var(--g-500); font-size: 14px; margin-top: 4px; }

.impersonation-bar {
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 14px; font-weight: 600;
}
.impersonation-bar button {
  background: var(--black); color: var(--white);
  border: 0; border-radius: 8px; padding: 6px 12px; font-size: 13px;
}

/* Métricas */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 30px; }
.metric {
  background: var(--g-850);
  border: 1px solid var(--g-800);
  border-radius: var(--radius);
  padding: 18px;
  border-top: 3px solid var(--red);
}
.metric .value { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.metric .label { color: var(--g-500); font-size: 13px; margin-top: 2px; }
.metric .delta { color: var(--g-300); font-size: 12px; margin-top: 6px; }

/* Tablas y listados */
.panel-card {
  background: var(--g-850);
  border: 1px solid var(--g-800);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.panel-card h2 { font-size: 17px; margin-bottom: 16px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--g-500); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 12px; }
td { padding: 12px; border-top: 1px solid var(--g-800); vertical-align: middle; }
td .muted { color: var(--g-500); font-size: 13px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-active { background: rgba(46, 204, 113, 0.12); color: #7fe0a7; }
.badge-paused { background: rgba(255, 34, 49, 0.12); color: #ff8a92; }
.badge-plan { background: var(--g-800); color: var(--g-300); }
.badge-off { background: var(--g-800); color: var(--g-500); }

.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 20px; }
.form-grid .field-full { grid-column: 1 / -1; }

.link-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--g-800);
}
.link-row:first-of-type { border-top: 0; }
.link-row .link-main { flex: 1; min-width: 180px; }
.link-row .link-main .u { color: var(--g-500); font-size: 12px; word-break: break-all; }

.preview-frame-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--g-800); }
.preview-frame-wrap iframe { width: 100%; height: 620px; border: 0; background: var(--g-900); }

/* ── MÓVIL: nav horizontal compacta ─────────────────────────── */
@media (max-width: 820px) {
  .shell { flex-direction: column; }
  .sidebar {
    position: sticky; top: 0; z-index: 20;
    width: 100%; height: auto;
    flex-direction: row; align-items: center;
    gap: 2px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px) * 0);
    overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--g-800);
    -webkit-overflow-scrolling: touch;
  }
  .sidebar .brand-mark { padding: 0 10px 0 4px; font-size: 17px; white-space: nowrap; }
  .nav-link { padding: 8px 12px; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: 8px; }
  .nav-link.active { border-left: 0; border-bottom-color: var(--red); }
  .sidebar-footer { margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; }
  .user-chip { display: none; }
  .main { padding: 20px 16px 56px; }
  .page-head h1 { font-size: 22px; }
}

/* ══ DINAMISMO · perfil público ══════════════════════════════ */

/* Entrada en cascada al cargar */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes kenburns {
  from { transform: scale(1.09); }
  to   { transform: scale(1); }
}
.profile-page .hero img { animation: kenburns 12s ease-out forwards; }
.profile-page .hero::after { animation: rise 0.7s ease-out both; }
.profile-page .identity > *,
.profile-page .card-body > * {
  animation: rise 0.6s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.identity > *:nth-child(1) { animation-delay: 0.08s; }
.identity > *:nth-child(2) { animation-delay: 0.14s; }
.identity > *:nth-child(3) { animation-delay: 0.2s; }
.identity > *:nth-child(4) { animation-delay: 0.26s; }
.identity > *:nth-child(5) { animation-delay: 0.32s; }
.identity > *:nth-child(6) { animation-delay: 0.38s; }
.card-body > *:nth-child(1) { animation-delay: 0.42s; }
.card-body > *:nth-child(2) { animation-delay: 0.5s; }
.card-body > *:nth-child(3) { animation-delay: 0.58s; }
.card-body > *:nth-child(4) { animation-delay: 0.66s; }
.card-body > *:nth-child(5) { animation-delay: 0.74s; }

/* Micro-interacciones con rebote suave */
.link-item, .btn-save-contact, .btn-share, .social-row a {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.link-item:active { transform: scale(0.96); }
.btn-save-contact:active { transform: scale(0.95); }
.social-row a:active { transform: scale(0.85); }
.link-item:hover { transform: translateY(-2px); }
.btn-save-contact:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--red-glow); }

/* Followers por red bajo cada icono */
.social-row { align-items: flex-start; }
.social-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.social-badge { font-size: 11px; font-weight: 600; color: var(--ink-soft); line-height: 1; }

/* CTA fijo inferior en móvil al pasar el botón principal */
.sticky-cta {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--card-bg) 88%, transparent) 30%, var(--card-bg) 70%);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1);
  display: none;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn-save-contact { min-height: 52px; box-shadow: 0 -2px 24px rgba(16, 17, 20, 0.12), 0 8px 22px var(--red-glow); }
@media (max-width: 560px) {
  .sticky-cta { display: block; }
}

/* Sombra más profunda en desktop */
@media (min-width: 561px) {
  .card { box-shadow: 0 32px 100px rgba(16, 17, 20, 0.26), 0 4px 14px rgba(16, 17, 20, 0.08); }
  .theme-dark .card { box-shadow: 0 32px 100px rgba(0, 0, 0, 0.7); }
}

/* ══ CARTA / MENÚ desplegable en el perfil público ══════════ */
.menu-block { display: flex; flex-direction: column; gap: 10px; }
.menu-cat {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-bg);
  overflow: hidden;
}
.menu-cat[data-kind="daily"] {
  border-color: var(--red);
  box-shadow: 0 4px 20px var(--red-glow);
}
.menu-cat summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
}
.menu-cat summary::-webkit-details-marker { display: none; }
.menu-cat[data-kind="daily"] summary::before {
  content: '★';
  color: var(--red);
  font-size: 15px;
}
.menu-cat .cat-sub { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.menu-cat .chev {
  margin-left: auto;
  color: var(--ink-soft);
  transition: transform 0.25s ease;
  font-size: 13px;
}
.menu-cat[open] .chev { transform: rotate(180deg); }
.menu-cat .items { padding: 4px 20px 18px; }
.menu-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex; gap: 14px; align-items: baseline;
}
.menu-item:first-child { border-top: 0; }
.menu-item-body { flex: 1; min-width: 0; }
.menu-item-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.menu-item-desc { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.45; }
.menu-item-price {
  flex-shrink: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  color: var(--ink);
  white-space: nowrap;
}
.menu-item-price .note { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--ink-soft); text-align: right; margin-top: 1px; }

/* ══ Editor de la carta en el panel ══════════════════════════ */
.menu-editor-cat {
  border: 1px solid var(--g-800);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  background: var(--g-850);
}
.menu-editor-cat.daily { border-color: var(--red-dim); }
.menu-editor-cat h3 { font-size: 16px; margin-bottom: 4px; }
.menu-editor-cat h3 .kind-badge {
  display: inline-block;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 34, 49, 0.15); color: var(--red);
  margin-left: 8px; vertical-align: middle;
}
.menu-editor-item {
  display: grid;
  grid-template-columns: 1fr 1fr 90px 70px auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--g-800);
}
.menu-editor-item:first-of-type { border-top: 0; }
.menu-editor-item input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--g-700);
  background: var(--g-900);
  color: var(--white);
  font-size: 13px;
  min-width: 0;
}
.menu-editor-item .actions { display: flex; gap: 4px; }
@media (max-width: 720px) {
  .menu-editor-item { grid-template-columns: 1fr 1fr; }
  .menu-editor-item .actions { grid-column: 1 / -1; justify-content: flex-end; }
}
