/* =====================================================================
   Menuxeo · Estilos de la web
   Archivo: /Volumes/NUEVOECP3/menuxeo/public_html/assets/css/app.css
   Marca: negro carbón #17191C · naranja #FF7900 · fondo claro
   ===================================================================== */

:root {
  --ink: #17191c;          /* texto principal */
  --ink-soft: #3c4149;     /* texto secundario */
  --muted: #5b6068;        /* notas */
  --orange: #ff7900;       /* botones, logo, detalles */
  --orange-hover: #ff8d26;
  --orange-text: #b85200;  /* naranja legible como texto sobre blanco */
  --orange-soft: #ffd2a8;
  --orange-tint: #fff3e8;
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --line: #e4e5e8;
  --chip: #f2f3f5;
  --radius: 10px;
  --header-h: 76px;
  --font-display: "Outfit", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

main { flex: 1; }
a { color: var(--orange-text); }
a:hover { color: #8a3d00; }
img { max-width: 100%; height: auto; }
p { margin: 0; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 21px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Contenedores */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.wrap--narrow { max-width: 640px; }
.stack { display: flex; flex-direction: column; gap: 40px; }

/* Botones (texto negro sobre naranja: contraste 6,7:1) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
}
.btn--main { background: var(--orange); color: var(--ink); }
.btn--main:hover { background: var(--orange-hover); color: var(--ink); }
.btn--ghost { background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b2e33; color: #fff; }
.btn--lg { min-height: 54px; font-size: 17px; padding: 0 26px; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); }
.lead { font-size: 20px; color: var(--ink-soft); max-width: 34ch; }
.note { font-size: 14px; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Cabecera fija ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid #eeeff1; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { display: block; height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.site-nav a:not(.btn):hover { color: var(--orange-text); }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding-block: 64px 88px; }
.hero__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.marker { background: linear-gradient(transparent 62%, var(--orange-soft) 62%); }

/* Demo: carta de papel + móvil */
.demo { position: relative; width: 100%; max-width: 470px; min-height: 600px; }
.paper {
  position: absolute; left: 0; top: 40px; width: 190px; height: 300px;
  background: #fbfaf6; border: 1px solid #e3e0d6; border-radius: 6px; transform: rotate(-7deg);
  box-shadow: 0 10px 30px rgba(23,25,28,.10); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 12px; font-family: Georgia, serif; color: #444;
}
.paper__name { font-style: italic; font-size: 22px; text-align: center; color: #3a3a3a; }
.paper__section { font-size: 11px; letter-spacing: .2em; text-align: center; color: #777; }
.paper__row { display: flex; justify-content: space-between; font-size: 12px; }
.paper__line { height: 1px; background: #e2ded2; }
.paper__bar { height: 8px; background: #ece9df; border-radius: 4px; }
.paper__caption { position: absolute; left: 6px; top: 352px; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }

.phone { position: absolute; right: 0; top: 0; width: 290px; background: var(--ink); border-radius: 40px; padding: 10px; box-shadow: 0 24px 60px rgba(23,25,28,.22); }
.phone__screen { background: #fff; border-radius: 31px; overflow: hidden; }
.phone__notch { height: 26px; display: flex; justify-content: center; align-items: center; }
.phone__notch span { width: 80px; height: 6px; border-radius: 3px; background: #e6e7ea; }
.phone__head { padding: 6px 18px 0; display: flex; flex-direction: column; gap: 10px; }
.phone__name { font-family: Georgia, serif; font-style: italic; font-size: 26px; font-weight: 600; }
.phone__langs { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font: 700 12px/1 var(--font-body); letter-spacing: .05em; padding: 8px 11px; border-radius: 999px; border: 1.5px solid #d9dbdf; background: #fff; color: var(--ink); cursor: pointer; min-width: 42px; }
.pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.phone__section { font-size: 19px; font-weight: 700; border-top: 1px solid #eeeff1; padding-top: 12px; margin-top: 4px; }
.phone__items { padding: 0 18px; }
.item { padding: 11px 0; border-bottom: 1px solid #f0f1f3; display: flex; flex-direction: column; gap: 5px; }
.item__row { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.item__row span:last-child { white-space: nowrap; }
.item__expl { font-size: 12.5px; line-height: 1.4; color: #555a62; }
.item__al { display: flex; gap: 5px; flex-wrap: wrap; }
.item__al span { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--chip); }
.phone__legal { font-size: 10.5px; color: #6b7078; padding: 10px 18px 14px; }
.demo__hint { position: absolute; left: 0; top: 396px; max-width: 168px; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px rgba(23,25,28,.10); display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }

/* ---------- Secciones ---------- */
.section { padding-block: 96px; }
.section--soft { background: var(--bg-soft); }
.section__head { display: flex; flex-direction: column; gap: 12px; }
.h2-narrow { max-width: 22ch; }

.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--ink-soft); }
.card__big { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--orange-text) !important; line-height: 1.1; }
.cards3--plain > div { display: flex; flex-direction: column; gap: 8px; }
.cards3--plain h3 { font-size: 19px; }
.cards3--plain p { color: #4a4f57; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 14px; }
.steps p { color: #4a4f57; }
.steps__top { display: flex; align-items: center; gap: 14px; }
.steps__num { width: 52px; height: 52px; border-radius: 50%; background: var(--orange); color: var(--ink); font-family: var(--font-display); font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.steps__num--dark { background: var(--ink); color: #fff; }
.steps__line { flex: 1; height: 2px; background: var(--orange-soft); }
.callout { font-size: 18px; font-weight: 600; background: var(--orange-tint); border-radius: 12px; padding: 18px 22px; }

/* Alérgenos */
.allergens { background: #fff; border-radius: 16px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.allergens__copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.allergens__copy h3 { font-size: 26px; }
.allergens__copy p { color: #4a4f57; }
.allergens__chips { flex: 1 1 300px; display: flex; flex-wrap: wrap; gap: 8px; }
.allergens__chips span { padding: 7px 12px; border-radius: 999px; background: var(--chip); font-size: 14px; font-weight: 600; }
.allergens__chips .chip--more { background: var(--orange-tint); color: #8a3d00; }

/* Precios */
.pricing__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; gap: 2px; background: #fff; }
.seg button { font: 600 14px/1 var(--font-body); padding: 10px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); cursor: pointer; min-height: 40px; }
.seg button.is-on { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.plan { border: 1.5px solid #e1e3e6; border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan h3 { font-size: 26px; }
.plan__for { color: #4a4f57; margin-top: 6px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; color: #4a4f57; }
.plan__amount { font-family: var(--font-display); font-size: 52px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.plan__note { margin-top: -8px; font-size: 14px; color: var(--muted); min-height: 22px; }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.plan .btn { margin-top: auto; }
.plan--pro { border: 2.5px solid var(--orange); background: #fffaf5; }
.plan__badge { position: absolute; top: -14px; left: 28px; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

.addon { border: 1.5px dashed var(--orange); background: var(--orange-tint); border-radius: 18px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.addon__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--orange); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.addon__copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.addon__copy h3 { font-size: 22px; }
.addon__copy p { color: var(--ink-soft); }
.addon__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; white-space: nowrap; max-width: 150px; }
.addon__price small { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.addon__amount { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; }
.groups { background: var(--ink); color: #fff; border-radius: 18px; padding: 30px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; scroll-margin-top: calc(var(--header-h) + 24px); }
.groups__copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.groups__copy h3 { font-size: 28px; }
.groups__copy p { color: #d6d8dc; }
.groups__copy strong { color: #fff; }

/* Preguntas frecuentes */
.faq-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.faq-grid > h2 { flex: 1 1 280px; }
.faq { flex: 2 1 520px; min-width: 0; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq details p { margin-top: 10px; color: #4a4f57; max-width: 62ch; }

/* Llamada final */
.cta { background: var(--orange); }
.cta__inner { align-items: flex-start; gap: 22px; }
.cta h2 { max-width: 18ch; color: var(--ink); font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; }
.cta__note { font-weight: 600; color: var(--ink); }

/* Páginas simples */
.page { padding-block: 80px; }
.page .wrap { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #c9ccd1; padding-block: 48px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand p { font-size: 14px; }
.site-footer__brand a { color: #ffb27a; }
.site-footer__brand a:hover { color: #ffd2a8; }
.logo-footer { display: block; height: 48px; width: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
.site-footer__links a { color: #ffb27a; }
.site-footer__links a:hover { color: #ffd2a8; }

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    box-shadow: 0 12px 24px rgba(23,25,28,.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #f0f1f3; font-size: 17px; }
  .site-nav .btn { margin-top: 14px; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .logo img { height: 36px; }
  .hero { padding-block: 40px 56px; }
  .section { padding-block: 64px; }
  .page { padding-block: 56px; }
  .lead { font-size: 18px; }
}

@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .logo img { height: 32px; }
  /* En móvil pequeño, la carta de papel se oculta y el móvil se centra */
  .demo { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .paper, .paper__caption { display: none; }
  .phone { position: relative; right: auto; top: auto; width: min(290px, 100%); }
  .demo__hint { position: static; }
  .plan { padding: 24px; }
  .plan__amount { font-size: 44px; }
}

/* =====================================================================
   Acceso (registro, entrar) y panel
   ===================================================================== */

.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; }
.actions--center { justify-content: center; }

/* Avisos */
.alert { border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.alert--ok { background: #e9f6ee; color: #1d5b33; }
.alert--info { background: var(--orange-tint); color: #6b3500; }
.alert--error { background: #fdecec; color: #8a1f1f; }

/* Páginas de acceso */
.auth-body { background: var(--bg-soft); }
.auth-header { display: flex; justify-content: center; padding: 28px 16px 8px; }
.auth-main { display: flex; justify-content: center; padding: 16px 16px 48px; }
.auth-card { width: 100%; max-width: 460px; background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 10px 30px rgba(23,25,28,.06); display: flex; flex-direction: column; gap: 20px; }
.auth-card--center { text-align: center; align-items: center; }
.auth-card__head { display: flex; flex-direction: column; gap: 6px; }
.auth-card__head h1, .auth-card h1 { font-size: 30px; }
.auth-card__head p { color: var(--muted); }
.auth-card__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-text); display: flex; align-items: center; justify-content: center; }
.auth-card__alt { text-align: center; font-size: 15px; color: var(--muted); }
.auth-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding: 0 16px 32px; font-size: 13px; color: var(--muted); }
.auth-footer a { color: var(--muted); }

/* Formularios */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"] {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid #d4d6da; border-radius: 10px;
  font: 16px var(--font-body); color: var(--ink); background: #fff;
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange-soft); }
.field.has-error input { border-color: #c62828; }
.field__error { color: #b3261e; font-size: 14px; }
.field__hint { font-size: 14px; color: var(--muted); min-height: 0; }
.field__hint.is-ok { color: #1d7a3d; }
.field__hint.is-bad { color: #b3261e; }

.password { position: relative; }
.password input { padding-right: 52px !important; }
.password__eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.password__eye[aria-pressed="true"] { color: var(--orange-text); }

.strength { display: flex; flex-direction: column; gap: 6px; }
.strength__bar { height: 6px; border-radius: 3px; background: #eceef0; overflow: hidden; }
.strength__bar span { display: block; height: 100%; width: 0; background: #c62828; transition: width .2s, background .2s; }
.strength__label { font-size: 13px; color: var(--muted); }
.strength[data-level="1"] .strength__bar span { width: 33%; background: #c62828; }
.strength[data-level="2"] .strength__bar span { width: 66%; background: #e8a400; }
.strength[data-level="3"] .strength__bar span { width: 100%; background: #1d7a3d; }

.field--check { gap: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }

/* Panel */
.panel-body { background: var(--bg-soft); }
.panel-header { background: #fff; border-bottom: 1px solid #eeeff1; }
.panel-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.panel-header .logo img { height: 44px; }
.panel-header__user { display: flex; align-items: center; gap: 12px; }
.panel-header__email { font-size: 14px; color: var(--muted); }
.panel-main { padding-block: 32px 64px; }
.panel-main .wrap { display: flex; flex-direction: column; gap: 24px; }
.panel-hello { display: flex; flex-direction: column; gap: 8px; }
.panel-hello h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.trial-pill { text-decoration: none; display: inline-block; align-self: flex-start; background: var(--orange-tint); color: #6b3500; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.panel-card { background: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.panel-card--main { grid-column: 1 / -1; border: 2px solid var(--orange); }
.panel-card h2 { font-size: 26px; }
.panel-card p { color: #4a4f57; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 14px; word-break: break-all; }

/* Panel: menú superior */
.panel-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 24px; }
.panel-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.panel-nav a:hover { background: var(--chip); }
.panel-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Panel: lista de pasos del perfil */
.checklist { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.checklist__mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9ccd1; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.checklist li.is-done { color: var(--muted); text-decoration: line-through; }
.checklist li.is-done .checklist__mark { background: #1d7a3d; border-color: #1d7a3d; color: #fff; }
.link-arrow { color: var(--orange-text); font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Panel: formulario de perfil */
.lead-sm { color: var(--ink-soft); max-width: 60ch; }
.profile { display: flex; flex-direction: column; gap: 20px; }
.form-section { align-items: stretch; gap: 18px; }
.form-section__head { display: flex; flex-direction: column; gap: 4px; }
.form-section__head h2 { font-size: 22px; }
.form-section__head p { color: var(--muted); font-size: 15px; }
.form-section.has-error { box-shadow: inset 0 0 0 2px #e3a0a0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid__full { grid-column: 1 / -1; }
.field select {
  width: 100%; min-height: 48px; padding: 0 40px 0 14px; border: 1.5px solid #d4d6da; border-radius: 10px;
  font: 16px var(--font-body); color: var(--ink); background: #fff;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317191c' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange-soft); }
.field.has-error select { border-color: #c62828; }
.static-value { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; background: var(--chip); color: var(--ink-soft); }

.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.lang { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 44px; border: 1.5px solid #d4d6da; border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.lang input { position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.lang__name { font-weight: 600; }
.lang__native { font-size: 13px; color: var(--muted); }
.lang:has(input:checked) { border-color: var(--ink); background: var(--orange-tint); }
.lang:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--orange-soft); }
.lang--fixed, .lang--fixed:has(input:checked) { cursor: default; background: var(--chip); border-color: var(--chip); }
.lang.is-locked, .lang.is-full { opacity: .5; cursor: not-allowed; }

.slug-input { display: flex; align-items: stretch; border: 1.5px solid #d4d6da; border-radius: 10px; overflow: hidden; background: #fff; }
.slug-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange-soft); }
.field.has-error .slug-input { border-color: #c62828; }
.slug-input__prefix { display: flex; align-items: center; padding: 0 4px 0 14px; background: var(--chip); color: var(--muted); font-size: 15px; white-space: nowrap; }
.field .slug-input input { border: 0 !important; box-shadow: none !important; border-radius: 0; min-width: 0; padding-left: 8px; }
.slug-input input[readonly] { color: var(--muted); }

.profile__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .panel-header__inner { flex-wrap: wrap; row-gap: 0; }
  .panel-nav { order: 3; width: 100%; margin: 0; padding: 0 0 10px; flex-wrap: wrap; row-gap: 4px; }
  .panel-nav a { padding: 7px 14px; font-size: 15px; }
  .slug-input { flex-direction: column; }
  .slug-input__prefix { padding: 8px 14px 0; font-size: 13px; }
  .field .slug-input input { padding-left: 14px; }
  .profile__actions .btn { flex: 1 1 100%; }
}

/* Panel: subir la carta */
.upload { display: flex; flex-direction: column; gap: 20px; }
.upload-modes { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.upload-mode { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border: 1.5px solid #d4d6da; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.upload-mode input { position: absolute; opacity: 0; pointer-events: none; }
.upload-mode__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--chip); color: var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.upload-mode__label { font-weight: 700; font-size: 17px; }
.upload-mode__hint { font-size: 14px; color: var(--muted); }
.upload-mode:has(input:checked) { border-color: var(--ink); background: var(--orange-tint); }
.upload-mode:has(input:checked) .upload-mode__icon { background: var(--orange); }
.upload-mode:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--orange-soft); }
.upload-panel { align-items: stretch; gap: 14px; }
.upload-panel[hidden] { display: none; }
.upload-panel h2 { font-size: 22px; }

.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; padding: 24px; border: 2px dashed #c9ccd1; border-radius: 14px; background: var(--bg-soft); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--orange); background: var(--orange-tint); }
.dropzone:focus-within { box-shadow: 0 0 0 3px var(--orange-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__title { font-weight: 700; font-size: 17px; }
.dropzone__hint { font-size: 14px; color: var(--muted); }

.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.thumbs:empty { display: none; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; background: var(--chip); border: 1px solid var(--line); aspect-ratio: 3 / 4; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb__num { position: absolute; left: 8px; top: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.thumb__tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(23,25,28,.7)); }
.thumb__tools button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.thumb__tools button:disabled { opacity: .35; cursor: default; }
.thumb__tools .thumb__remove { margin-left: auto; color: #b3261e; }
.thumb__name { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px; font-size: 13px; color: var(--muted); text-align: center; word-break: break-all; }

.tips { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.field textarea { width: 100%; min-height: 260px; padding: 12px 14px; border: 1.5px solid #d4d6da; border-radius: 10px; font: 16px/1.5 var(--font-body); color: var(--ink); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange-soft); }
.upload__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.upload__actions .note { max-width: 46ch; }
.upload-progress { display: flex; flex-direction: column; gap: 6px; }
.upload-progress[hidden] { display: none; }
.upload-progress__bar { height: 8px; border-radius: 4px; background: #e6e7ea; overflow: hidden; }
.upload-progress__bar span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.upload-progress__label { font-size: 14px; color: var(--muted); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn--link { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; font: 600 15px var(--font-body); cursor: pointer; padding: 8px; }

/* Panel: pantalla de espera */
.processing { max-width: 620px; margin: 24px auto 0; background: #fff; border-radius: 20px; padding: 40px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.processing h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.processing__lead { color: var(--ink-soft); max-width: 48ch; }
.processing__art { position: relative; width: 96px; height: 96px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-text); display: flex; align-items: center; justify-content: center; }
.processing__ring { position: absolute; inset: -6px; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--orange); border-right-color: var(--orange); animation: mx-spin 1.1s linear infinite; }
.processing.is-failed .processing__ring { display: none; }
.processing.is-failed .processing__art { background: #fdecec; color: #8a1f1f; }
@keyframes mx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .processing__ring { animation-duration: 3s; } }
.phases { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; width: 100%; max-width: 320px; }
.phases li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.phases__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9ccd1; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.phases li.is-done { color: var(--ink); }
.phases li.is-done .phases__dot { background: #1d7a3d; border-color: #1d7a3d; color: #fff; }
.phases li.is-done .phases__dot::after { content: "✓"; }
.phases li.is-current { color: var(--ink); font-weight: 700; }
.phases li.is-current .phases__dot { border-color: var(--orange); border-top-color: transparent; animation: mx-spin .9s linear infinite; }
.phases li.is-failed { color: #8a1f1f; font-weight: 700; }
.phases li.is-failed .phases__dot { background: #c62828; border-color: #c62828; color: #fff; }
.phases li.is-failed .phases__dot::after { content: "!"; }
.processing__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; }

@media (max-width: 720px) {
  .upload-modes { grid-template-columns: 1fr; }
  .upload-mode { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .upload-mode__icon { margin: 0; flex: none; }
  .upload-mode__hint { margin-left: auto; font-size: 13px; text-align: right; }
  .processing { padding: 32px 20px; }
}

/* Panel: vista previa de la carta */
.text-warn { color: #8a4b00; }
.muted { color: var(--muted); font-weight: 400; }
.lang-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-tabs a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.lang-tabs a:hover { border-color: var(--ink); }
.lang-tabs a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.menu-preview { display: flex; flex-direction: column; gap: 16px; }
.mp-section { align-items: stretch; gap: 6px; }
.mp-section h2 { font-size: 22px; }
.mp-section__note { font-size: 15px; color: var(--muted); font-style: italic; }
.mp-items { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; }
.mp-item { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.mp-item:first-child { border-top: 0; }
.mp-item.needs-review { background: #fff8ec; margin-inline: -12px; padding-inline: 12px; border-radius: 10px; border-top-color: transparent; }
.mp-item__row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.mp-item__name { font-weight: 700; font-size: 17px; }
.mp-item__price { font-weight: 700; white-space: nowrap; }
.mp-item__desc { color: var(--ink-soft); font-size: 15px; }
.mp-item__expl { font-size: 14px; color: var(--ink-soft); background: var(--bg-soft); border-radius: 8px; padding: 8px 10px; }
.mp-variants { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-width: 360px; }
.mp-variants li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.mp-variants li span:last-child { font-weight: 700; white-space: nowrap; }
.mp-allergens { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.chip--ai { background: var(--orange-tint); color: #6b3500; border: 1px dashed #e3a46b; }
.chip--ok { background: #e9f6ee; color: #1d5b33; }
.mp-review { font-size: 14px; color: #8a4b00; font-weight: 600; }

/* Panel: editor de la carta */
.back-link { color: inherit; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.mp-section__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mp-edit { font-size: 14px; font-weight: 700; color: var(--orange-text); text-decoration: none; padding: 4px 10px; border-radius: 8px; border: 1.5px solid var(--orange-soft); white-space: nowrap; }
.mp-edit:hover { background: var(--orange-tint); }
.mp-item__row .mp-item__name { flex: 1; }
.mp-add { align-self: flex-start; padding-left: 0; }
.chip--none { background: var(--chip); color: var(--muted); }
.confirm-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 14px; padding: 14px 18px; }
.confirm-bar div { display: flex; flex-direction: column; gap: 2px; }
.confirm-bar span { font-size: 14px; }
.confirm-bar.is-ok { background: #e9f6ee; color: #1d5b33; }
.confirm-bar.is-pending { background: #fff3dc; color: #6b3d00; }
.confirm-box { border: 2px solid var(--orange-soft); }
.textarea-sm { min-height: 0 !important; }
.field textarea.textarea-sm, .tr-lang textarea { width: 100%; min-height: 64px; padding: 10px 14px; border: 1.5px solid #d4d6da; border-radius: 10px; font: 16px/1.45 var(--font-body); color: var(--ink); resize: vertical; }
.price-mode { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.input-price { max-width: 200px; }
.field [hidden] { display: none; }
[data-price-single][hidden], [data-price-variants][hidden] { display: none; }
.variants { display: flex; flex-direction: column; gap: 10px; }
.variant { display: grid; grid-template-columns: 1fr 160px; gap: 10px; }
.variant input, .tr-lang input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid #d4d6da; border-radius: 10px; font: 16px var(--font-body); color: var(--ink); background: #fff; }
.variant input:focus, .tr-lang input:focus, .tr-lang textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange-soft); }
.allergen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.allergen { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid #d4d6da; border-radius: 10px; cursor: pointer; font-size: 15px; }
.allergen input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.allergen:has(input:checked) { border-color: var(--ink); background: var(--orange-tint); font-weight: 600; }
.tr-details summary { cursor: pointer; font-weight: 600; color: var(--orange-text); padding: 4px 0; }
.tr-details[open] summary { margin-bottom: 8px; }
.tr-lang { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.tr-lang legend { font-weight: 700; padding: 0 6px; }
.danger-zone { display: flex; justify-content: flex-end; }
.btn--danger { color: #b3261e; }
@media (max-width: 720px) {
  .variant { grid-template-columns: 1fr 110px; }
  .confirm-bar { flex-direction: column; align-items: flex-start; }
}

/* Panel: logotipo y fotos */
.logo-box { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.logo-box__preview { width: 180px; height: 120px; border-radius: 14px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 12px;
  background-color: #fff; background-image: linear-gradient(45deg, #f1f2f4 25%, transparent 25%), linear-gradient(-45deg, #f1f2f4 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1f2f4 75%), linear-gradient(-45deg, transparent 75%, #f1f2f4 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.logo-box__preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-box__preview.is-empty { background: var(--ink); }
.logo-box__preview.is-empty span { font-family: var(--font-display); font-weight: 700; font-size: 52px; color: var(--orange); }
.logo-box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { box-shadow: 0 0 0 3px var(--orange-soft); }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.photo { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--chip); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.is-hidden-plan img { opacity: .35; filter: grayscale(1); }
.photo__badge { position: absolute; left: 10px; top: 10px; background: var(--orange); color: var(--ink); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.photo__tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 8px; background: linear-gradient(transparent, rgba(23,25,28,.7)); }
.photo__tools form { margin: 0; }
.photo__tools button { width: 36px; height: 36px; border: 0; border-radius: 9px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 16px; cursor: pointer; }
.photo__tools button:disabled { opacity: .35; cursor: default; }
.photo__del { margin-left: auto !important; }
.photo__del button { color: #b3261e; }
.photo--add { border: 2px dashed #c9ccd1; background: var(--bg-soft); transition: border-color .15s, background .15s; }
.photo--add:hover, .photo--add:focus-within { border-color: var(--orange); background: var(--orange-tint); }
.photo--add form, .photo--add label { width: 100%; height: 100%; }
.photo--add label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-weight: 700; }
.photo--add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo--add__plus { font-size: 34px; line-height: 1; color: var(--orange-text); }
@media (max-width: 720px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Panel: publicar y Mi QR */
.publish-box { border: 2px solid var(--orange); }
.qr-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px 32px; }
.qr-card__code { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.qr-card__code img { width: 220px; height: 220px; display: block; }
.qr-card__info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.qr-card__url a { color: var(--orange-text); }
.qr-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qr-card__downloads { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.stats div { background: var(--bg-soft); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.stats span { font-size: 14px; color: var(--muted); }
@media (max-width: 520px) { .qr-card__code img { width: 180px; height: 180px; } .stats strong { font-size: 24px; } }

/* Páginas legales */
.legal__wrap { display: grid !important; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start !important; }
.legal__nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 4px; }
.legal__nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.legal__nav a:hover { background: var(--bg-soft); }
.legal__nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 14px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 22px; margin-top: 18px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: var(--orange-text); }
.prose blockquote { margin: 0; padding: 14px 18px; border-left: 4px solid var(--orange); background: var(--orange-tint); border-radius: 0 12px 12px 0; color: var(--ink); }
.legal__updated { font-size: 14px; color: var(--muted) !important; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--bg-soft); font-size: 14px; }
.legal-missing { background: #fff1a8; color: #6b4a00; padding: 0 4px; border-radius: 4px; font-weight: 600; }
@media (max-width: 860px) {
  .legal__wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .prose { min-width: 0; }
  .legal__nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal__nav a { font-size: 14px; padding: 6px 10px; background: var(--bg-soft); }
  .legal-table { display: block; overflow-x: auto; }
}

/* Administración */
.admin-header { background: var(--ink); border-bottom: 0; }
.admin-header .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.admin-header .logo img { height: 34px; }
.admin-badge { background: var(--orange); color: var(--ink); font-weight: 700; font-size: 12px; border-radius: 6px; padding: 2px 8px; }
.admin-header .panel-nav a { color: #c9ccd1; }
.admin-header .panel-nav a:hover { background: rgba(255,255,255,.08); }
.admin-header .panel-nav a[aria-current="page"] { background: #fff; color: var(--ink); }
.admin-header .btn--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.45); }
.admin-header .btn--ghost:hover { background: rgba(255,255,255,.1); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.kpi { background: #fff; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.kpi span { font-size: 14px; color: var(--muted); font-weight: 600; }
.kpi strong { font-family: var(--font-display); font-size: 30px; line-height: 1.15; }
.kpi small { font-size: 13px; color: var(--muted); }
.kpi--bad strong { color: #b3261e; }
.admin-card { align-items: stretch; }
.admin-card h2 { font-size: 20px; }
.admin-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-card .table-box { margin-top: 4px; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.table td a { color: var(--orange-text); }
.table .num { text-align: right; white-space: nowrap; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.tag--ok { background: #e9f6ee; color: #1d5b33; }
.tag--bad { background: #fdecec; color: #8a1f1f; }
.tag--wait { background: #fff3dc; color: #6b3d00; }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0; font-size: 15px; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; }
.admin-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-search input { flex: 1 1 320px; min-height: 42px; padding: 0 14px; border: 1.5px solid #d4d6da; border-radius: 10px; font: 16px var(--font-body); }
.admin-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.admin-inline label { font-weight: 600; font-size: 15px; }
.admin-inline select { min-height: 38px; border: 1.5px solid #d4d6da; border-radius: 8px; padding: 0 10px; font: 15px var(--font-body); }

/* Tablas (herramientas) */
.table-box { overflow-x: auto; margin-top: 24px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }

@media (max-width: 520px) {
  .auth-card { padding: 24px 20px; }
  .panel-header__email { display: none; }
  .panel-header .logo img { height: 32px; }
}

/* ---------- Aviso de cookies ---------- */
.mx-notice {
  position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 18px 20px; border-radius: 14px;
  background: var(--ink); color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  transition: opacity .25s ease, transform .25s ease;
}
.mx-notice.is-hidden { opacity: 0; transform: translateY(12px); }
.mx-notice__text { margin: 0; font-size: 15px; line-height: 1.5; color: #e9eaec; }
.mx-notice__text strong { color: #fff; }
.mx-notice__text a { color: var(--orange); font-weight: 600; white-space: nowrap; }
.mx-notice__ok { flex-shrink: 0; }
@media (max-width: 600px) {
  .mx-notice { flex-direction: column; align-items: stretch; gap: 14px; left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .mx-notice__ok { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .mx-notice { transition: none; } }

/* ---------- Suscripción ---------- */
.billing-head { margin-top: 32px; align-items: center; }
.billing-head h2 { font-size: 28px; }
.billing-plans { margin-top: 20px; }
.billing-plans .plan { background: #fff; }
.billing-plans .plan--pro { background: #fffaf5; }
.billing-form { margin-top: auto; display: flex; }
.billing-form .btn { width: 100%; }
.billing-manage { margin-top: 20px; }
.billing-legal { margin-top: 24px; font-size: 13px; max-width: 70ch; }
.billing-legal a { color: inherit; }
.panel-alert-bar { margin-bottom: 20px; }

/* ---------- Diseño de la carta ---------- */
.design-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.design-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.design-group { border: 0; margin: 0; align-items: stretch; gap: 12px; }
.design-group legend { float: left; width: 100%; padding: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.design-group legend + * { clear: both; }
.design-group__hint { font-size: 14px; color: var(--muted) !important; margin: -4px 0 0; }

.font-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.font-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.font-card input, .swatch input[type="radio"], .opt-seg input, .align-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.font-card__sample { font-size: 26px; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-card__name { font-weight: 700; font-size: 15px; margin-top: 4px; }
.font-card__hint { font-size: 13px; color: var(--muted); }
.font-card:has(input:checked), .align-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.font-card:has(input:focus-visible), .align-card:has(input:focus-visible), .swatch:has(input:focus-visible), .opt-seg label:has(input:focus-visible) { outline: 3px solid var(--orange-soft); outline-offset: 2px; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px 10px; }
.swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 64px; cursor: pointer; text-align: center; }
.swatch__dot { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(23,25,28,.18); display: block; position: relative; }
.swatch:has(input[type="radio"]:checked) .swatch__dot { box-shadow: inset 0 0 0 1px rgba(23,25,28,.18), 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.swatch__name { font-size: 12px; line-height: 1.2; color: var(--ink-soft); }
.swatch__dot--custom { background: conic-gradient(#ff5f5f, #ffd25f, #6bdc7a, #5fc8ff, #8a6bff, #ff5fd2, #ff5f5f); overflow: hidden; }
.swatch__dot--custom input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.swatch--custom:has(input[type="radio"]:checked) .swatch__dot--custom { background: var(--picked, conic-gradient(#ff5f5f, #ffd25f, #6bdc7a, #5fc8ff, #8a6bff, #ff5fd2, #ff5f5f)); }

.opt-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-seg label { position: relative; cursor: pointer; }
.opt-seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; }
.opt-seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }

.align-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; }
.align-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; font-size: 15px; }
.align-card__icon { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--bg-soft); border-radius: 8px; }
.align-card__icon i { display: block; height: 6px; border-radius: 3px; background: #b9bcc2; }
.align-card.is-center .align-card__icon { align-items: center; }

.design-warning { background: #fff4e5; color: #7a3d00; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px; margin: 0; }
.design-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.design-actions .btn[disabled] { opacity: .5; cursor: not-allowed; }

.design-preview { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.design-phone { width: 380px; height: 760px; max-height: calc(100vh - 80px); background: #111214; border-radius: 48px; padding: 12px; box-shadow: 0 30px 60px rgba(23,25,28,.22); }
.design-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 37px; background: #fff; display: block; }
.design-preview__note { font-size: 13px; color: var(--muted); text-align: center; }

@media (max-width: 960px) {
  .design-layout { grid-template-columns: 1fr; }
  .design-preview { order: -1; position: sticky; top: 0; z-index: 5; background: var(--bg-soft); padding: 8px 0; margin-inline: -24px; }
  .design-phone { width: min(320px, 86vw); height: 46vh; max-height: none; border-radius: 36px; padding: 9px; }
  .design-phone iframe { border-radius: 28px; }
  .design-preview__note { display: none; }
}

/* Aviso en «Tu carta» para elegir el diseño */
.design-promo { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.design-promo__text { display: flex; flex-direction: column; gap: 4px; max-width: 60ch; }
.design-promo h2 { font-size: 22px; }
.design-promo__dots { display: flex; gap: 6px; margin-top: 6px; }
.design-promo__dots span { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(23,25,28,.18); }

/* ---------- Menú del día y Sugerencias (panel) ---------- */
.today-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.today-card { align-items: stretch; gap: 14px; }
.today-card.is-live { box-shadow: inset 0 0 0 2px var(--orange); }
.today-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-pill { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--chip); color: var(--ink-soft); }
.status-pill.is-live { background: #e3f4e8; color: #17602f; }
.today-card__summary strong { font-size: 17px; }
.today-card__summary ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--ink-soft); }
.today-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.today-card__actions form { display: contents; }

.sp-form { display: flex; flex-direction: column; gap: 16px; }
.sp-row { display: flex; gap: 14px; flex-wrap: wrap; }
.sp-row__grow { flex: 1 1 260px; }
.sp-row__price { flex: 0 0 160px; }
.sp-form .field input[type="text"] { width: 100%; }
.sp-groups { display: flex; flex-direction: column; gap: 16px; }
.sp-group { border: 0; margin: 0; align-items: stretch; gap: 12px; }
.sp-group__head { display: flex; gap: 10px; align-items: center; }
.sp-group__name { flex: 1; font: 700 20px var(--font-display); border: 0; border-bottom: 2px dashed var(--line); background: transparent; padding: 6px 2px; color: var(--ink); }
.sp-group__name:focus { outline: none; border-bottom-color: var(--orange); }
.sp-group__legend { float: left; width: 100%; padding: 0; font: 700 20px var(--font-display); }
.sp-items { display: flex; flex-direction: column; gap: 12px; clear: both; }
.sp-item { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.sp-item__main { display: flex; gap: 8px; align-items: center; }
.sp-item input[type="text"] { width: 100%; min-height: 46px; padding: 0 14px; border: 1.5px solid #cfd2d7; border-radius: var(--radius); font: 500 16px var(--font-body); color: var(--ink); background: #fff; }
.sp-item input[type="text"]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange-soft); }
.sp-item__main input[data-field="name"] { font-weight: 600; }
.sp-item__price { flex: 0 0 110px; width: 110px !important; }
.sp-item__desc { font-size: 15px !important; }
.sp-remove { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--chip); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.sp-remove:hover { background: #fde7e5; color: #b3261e; }
.sp-allergens summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.sp-allergens summary span { font-weight: 500; color: var(--muted); }
.sp-allergens__grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sp-allergens__grid label { position: relative; cursor: pointer; }
.sp-allergens__grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sp-allergens__grid span { display: inline-block; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.sp-allergens__grid input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.sp-allergens__grid input:focus-visible + span { outline: 3px solid var(--orange-soft); outline-offset: 2px; }
.sp-add { align-self: flex-start; }
.sp-until span { min-height: 40px; font-size: 14px; }
.check.has-error span { color: #b3261e; }

@media (max-width: 760px) {
  .today-grid { grid-template-columns: 1fr; }
  .sp-item__main { flex-wrap: wrap; }
  .sp-item__main input[data-field="name"] { flex: 1 1 100%; }
  .sp-item__price { flex: 1 1 auto; width: auto !important; }
  .sp-item__main .sp-remove { margin-left: auto; }
}
