/* =====================================================================
   YummyPulse — estilos de la web comercial, la aplicación y el admin
   Todos los colores y medidas se centralizan en variables (:root).
   ===================================================================== */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Colores tomados del logotipo: naranja (degradado), pizarra y verde hoja */
:root {
  /* Marca */
  --yp-orange-1: #FD9D3E;      /* naranja claro del degradado del logo */
  --yp-orange-2: #F65422;      /* naranja intenso del degradado del logo */
  --yp-grad: linear-gradient(135deg, var(--yp-orange-1) 0%, var(--yp-orange-2) 100%);
  --yp-tomato: #F26522;        /* acento principal (decoración, iconos, texto grande) */
  --yp-tomato-btn: linear-gradient(180deg, #DE4A17 0%, #C9400E 100%); /* botones: texto blanco con contraste AA */
  --yp-tomato-ink: #C2410C;    /* naranja para texto sobre claro (contraste AA) */
  --yp-tomato-soft: #FFE9DA;
  --yp-basil: #2F7A2A;         /* verde hoja (texto y enlaces, contraste AA) */
  --yp-leaf: #6DB33F;          /* verde hoja (decoración) */
  --yp-basil-soft: #E7F4DF;
  --yp-slate: #1E2833;         /* pizarra del logotipo */
  --yp-rice: #FFFBF6;          /* fondo blanco cálido */
  --yp-paper: #FFFFFF;
  --yp-ink: #1E2833;           /* texto */
  --yp-ink-2: #5B6670;         /* texto secundario */
  --yp-line: #ECE4DA;          /* bordes */
  --yp-saffron: #F4B740;       /* avisos */

  /* Estados */
  --ok: #2F7A2A;
  --ok-bg: #E7F4DF;
  --err: #B42318;
  --err-bg: #FDE8E6;
  --info: #1D5D8F;
  --info-bg: #E3EEF8;
  --warn-bg: #FEF3D7;

  /* Tipografía: Nunito (redondeada, como el logotipo) para títulos; Inter para el texto */
  --font-display: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Forma */
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 40, 51, .05), 0 6px 20px rgba(30, 40, 51, .06);
  --shadow-lift: 0 2px 4px rgba(30, 40, 51, .06), 0 18px 40px rgba(30, 40, 51, .12);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--yp-tomato-ink);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--yp-ink);
  background: var(--yp-rice);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--yp-tomato-ink); text-underline-offset: 3px; }
a:hover { color: var(--yp-ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 850; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--yp-ink-2); }
.icon { display: inline-block; vertical-align: -4px; width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--yp-ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 15px/1.2 var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yp-tomato-btn); color: #fff; box-shadow: 0 6px 16px -6px rgba(246, 84, 34, .55); }
.btn-primary:hover { background: linear-gradient(180deg, #C9400E 0%, #B23708 100%); color: #fff; }
.btn-dark { background: var(--yp-ink); color: #fff; }
.btn-dark:hover { background: #0E151D; color: #fff; }
.btn-ghost { background: transparent; color: var(--yp-ink); border-color: var(--yp-line); }
.btn-ghost:hover { border-color: var(--yp-ink); color: var(--yp-ink); }
.btn-green { background: var(--yp-basil); color: #fff; }
.btn-green:hover { background: #235E1F; color: #fff; }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-icon { min-height: 36px; width: 36px; padding: 0; border-radius: 10px; background: transparent; border: 1px solid var(--yp-line); color: var(--yp-ink); }
.btn-icon:hover { background: var(--yp-paper); border-color: var(--yp-ink-2); }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: progress; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--yp-ink-2); text-decoration: underline; cursor: pointer; }

/* ---------- Formularios ---------- */
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: 14px; }
.hint { font-size: 13px; color: var(--yp-ink-2); margin: 0; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search], input[type=number], input[type=time], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: 16px/1.4 var(--font-ui); color: var(--yp-ink);
  background: var(--yp-paper); border: 1.5px solid var(--yp-line); border-radius: var(--r-sm);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--yp-tomato); box-shadow: 0 0 0 3px var(--yp-tomato-soft); }
[aria-invalid=true] { border-color: var(--err) !important; }
.field-error { color: var(--err); font-size: 13px; margin: 0; font-weight: 500; }
input[type=color] { width: 56px; height: 44px; padding: 4px; border: 1.5px solid var(--yp-line); border-radius: var(--r-sm); background: #fff; cursor: pointer; }
input[type=file] { font: 14px var(--font-ui); max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--yp-tomato-ink); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px solid var(--yp-line); border-radius: 999px; font-size: 14px; background: #fff; }
.chip-check input:checked + span { background: var(--yp-slate); border-color: var(--yp-slate); color: #fff; }
.chip-check input:focus-visible + span { box-shadow: var(--focus); }
.hp { position: absolute; left: -9999px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }

/* ---------- Avisos ---------- */
.flash-stack { display: grid; gap: 10px; margin-bottom: 20px; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px; border: 1px solid transparent; }
.flash-success { background: var(--ok-bg); color: #1F4F1B; border-color: #BFE0AE; }
.flash-error { background: var(--err-bg); color: #7A1A12; border-color: #F5C2BD; }
.flash-info { background: var(--info-bg); color: #163E5F; border-color: #BCD4EA; }
.flash-warn { background: var(--warn-bg); color: #6B4A06; border-color: #F2D592; }
.flash p { margin: 0; }
.flash .btn { margin-left: auto; }

/* ---------- Superficies ---------- */
.panel { background: var(--yp-paper); border: 1px solid var(--yp-line); border-radius: var(--r-md); padding: 24px; }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--yp-rice); border: 1px solid var(--yp-line); color: var(--yp-ink-2); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #BFE0AE; }
.badge-draft { background: #F3EEE7; }
.badge-warn { background: var(--warn-bg); color: #7A5306; border-color: #F2D592; }
.badge-daily { background: #FFF0E6; color: var(--yp-tomato-ink); border-color: #F9C9A8; }
.badge-err { background: var(--err-bg); color: var(--err); border-color: #F5C2BD; }
.badge-plan { background: var(--yp-tomato-soft); color: var(--yp-tomato-ink); border-color: #FBC9A8; }
.empty { text-align: center; padding: 44px 20px; color: var(--yp-ink-2); }
.empty h3 { color: var(--yp-ink); }
.empty .btn { margin-top: 8px; }
.locked { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--yp-rice); border: 1.5px dashed var(--yp-line); border-radius: var(--r-sm); font-size: 14.5px; }
.locked .icon { color: var(--yp-tomato-ink); }

table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data th { text-align: left; font-weight: 600; color: var(--yp-ink-2); font-size: 13px; padding: 10px 12px; border-bottom: 1.5px solid var(--yp-line); }
.data td { padding: 12px; border-bottom: 1px solid var(--yp-line); vertical-align: middle; }
.data tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.actions form { display: inline; margin: 0; }
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 18px; font-size: 14px; }

/* =====================================================================
   WEB COMERCIAL
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 251, 246, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--yp-line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--yp-ink); }
.brand:hover { color: var(--yp-ink); }
.brand-logo { height: 42px; width: auto; }
.brand-logo.sm { height: 34px; }
.footer-logo { height: 64px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--yp-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current=page] { background: var(--yp-tomato-soft); color: var(--yp-tomato-ink); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; }
.lang-switch { display: flex; gap: 2px; font-size: 13px; }
.lang-switch a { padding: 4px 7px; border-radius: 6px; text-decoration: none; color: var(--yp-ink-2); font-weight: 600; }
.lang-switch a[aria-current=true] { color: var(--yp-ink); background: var(--yp-tomato-soft); }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta { display: none; }
  .site-header.open .nav { flex-wrap: wrap; padding-bottom: 16px; }
  .site-header.open .nav-links, .site-header.open .nav-cta { display: flex; flex-direction: column; width: 100%; margin: 0; align-items: stretch; }
  .site-header.open .nav-cta .btn { width: 100%; }
}

/* Hero: la carta real dentro de un teléfono es el elemento principal */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; max-width: 13ch; }
.hero h1 .qr-word { background: var(--yp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--yp-ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-actions .btn { min-height: 52px; padding-inline: 26px; font-size: 16px; }
.hero-note { font-size: 14px; color: var(--yp-ink-2); display: flex; gap: 8px; align-items: center; }
.hero-note .icon { color: var(--yp-leaf); }
/* Destellos del logotipo (las tres rayitas de «Pulse») animados una sola vez */
.sparks { position: absolute; width: 84px; height: 84px; right: -54px; top: -50px; z-index: 3; pointer-events: none; }
.sparks path { fill: none; stroke: url(#spark-grad); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: spark .5s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.sparks path:nth-child(2) { animation-delay: .9s; }
.sparks path:nth-child(3) { animation-delay: 1.02s; }
.sparks path:nth-child(4) { animation-delay: 1.14s; }
@keyframes spark { to { stroke-dashoffset: 0; } }
.hero-blob { position: absolute; z-index: 0; right: -12%; top: -18%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #FFE3C7 0%, rgba(255, 233, 218, .5) 55%, rgba(255, 251, 246, 0) 100%); pointer-events: none; }
.hero-grid > * { position: relative; z-index: 1; }

.phone { position: relative; width: min(330px, 86vw); aspect-ratio: 9 / 19; margin-inline: auto; background: #0B1118; border-radius: 46px; padding: 42px 12px 14px; box-shadow: var(--shadow-lift), inset 0 0 0 2px #2B3846; }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 92px; height: 20px; background: #000; background: #1d1a17; border-radius: 20px; z-index: 2; }
.phone iframe, .phone .phone-screen { width: 100%; height: 100%; border: 0; border-radius: 10px 10px 34px 34px; background: #fff; display: block; }
.phone-wrap { position: relative; }
.phone-qr { position: absolute; left: -36px; bottom: 56px; background: #fff; border: 3px solid transparent; background-clip: padding-box; outline: 3px solid var(--yp-orange-1); outline-offset: -3px; padding: 12px; border-radius: 18px; box-shadow: var(--shadow-lift); width: 128px; rotate: -6deg; text-align: center; font-size: 12px; font-weight: 600; z-index: 3; }
.phone-qr svg { width: 104px; height: 104px; margin: 0 auto 6px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-qr { left: 0; }
  .sparks { right: -18px; top: -44px; width: 64px; height: 64px; }
}
@media (max-width: 620px) { .phone-qr { display: none; } }

.section { padding: 80px 0; }
.section-alt { background: var(--yp-paper); border-block: 1px solid var(--yp-line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--yp-ink-2); font-size: 1.1rem; }

/* Cómo funciona: es una secuencia real, por eso va numerada */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--yp-grad); color: #fff; font: 900 22px/1 var(--font-display); box-shadow: 0 8px 18px -8px rgba(246, 84, 34, .7); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 64px; right: -16px; border-top: 2px dashed var(--yp-line); }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--yp-ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li::after { display: none; } }

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 56px; }
.benefit { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.benefit .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--yp-tomato-soft); color: var(--yp-tomato-ink); }
.benefit h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; letter-spacing: 0; }
.benefit p { color: var(--yp-ink-2); margin: 0; }
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr; } }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--yp-line); }
.feature-list > div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--yp-line); }
.feature-list h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 800; display: flex; gap: 8px; align-items: center; margin-bottom: 6px; letter-spacing: 0; }
.feature-list h3 .icon { color: var(--yp-tomato); }
.feature-list p { margin: 0; color: var(--yp-ink-2); font-size: 15px; }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--yp-paper); border: 1.5px solid var(--yp-line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--yp-tomato); box-shadow: var(--shadow-lift); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--yp-slate); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.plan h3 { font-size: 1.5rem; margin-bottom: 4px; }
.plan .who { color: var(--yp-ink-2); font-size: 15px; min-height: 2.6em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 2px; }
.price strong { font: 900 2.7rem/1 var(--font-display); letter-spacing: -.03em; }
.price span { color: var(--yp-ink-2); }
.tax { font-size: 13px; color: var(--yp-ink-2); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li .icon { color: var(--yp-leaf); width: 18px; height: 18px; margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.current { border-color: var(--yp-leaf); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: collapse; background: var(--yp-paper); border-radius: var(--r-md); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--yp-line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-family: var(--font-display); font-size: 1.1rem; }
.compare .yes { color: var(--yp-basil); font-weight: 800; }
.compare .no { color: #B9AC9C; }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--yp-line); }
.faq summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 28px; font-weight: 400; color: var(--yp-tomato); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--yp-ink-2); padding-bottom: 12px; }

.cta-band { background: var(--yp-slate); color: #fff; position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; color: #C9D2DB; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 26px solid; border-color: var(--yp-orange-1) var(--yp-orange-2) var(--yp-orange-2) var(--yp-orange-1); opacity: .25; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .btn-primary { min-height: 52px; padding-inline: 28px; }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; } }

.site-footer { padding: 56px 0 32px; margin-top: 40px; border-top: 1px solid var(--yp-line); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-family: var(--font-display); font-size: 15px; font-weight: 800; margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--yp-ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--yp-ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 40px; color: var(--yp-ink-2); font-size: 13.5px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.page-head { padding: 56px 0 24px; }
.page-head p { color: var(--yp-ink-2); font-size: 1.15rem; max-width: 60ch; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.pending-data { background: var(--warn-bg); border: 1px dashed #E2B54B; padding: 1px 6px; border-radius: 5px; font-weight: 600; color: #6B4A06; }

/* Autenticación */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 16px 64px; }
.auth-card { width: min(100%, 460px); background: var(--yp-paper); border: 1px solid var(--yp-line); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.1rem; margin-bottom: 6px; }
.auth-card .auth-logo { height: 40px; width: auto; margin-bottom: 18px; }
.auth-card .sub { color: var(--yp-ink-2); margin-bottom: 24px; }
.auth-card .btn-primary { width: 100%; min-height: 50px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 15px; }

.demo-layouts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   APLICACIÓN DE CLIENTES Y ADMIN
   ===================================================================== */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--yp-paper); border-right: 1px solid var(--yp-line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.sidebar .brand { padding: 4px 8px; }
.side-biz { padding: 12px; border-radius: var(--r-sm); background: var(--yp-rice); font-size: 14px; }
.side-biz strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--yp-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.side-nav a:hover { background: var(--yp-rice); }
.side-nav a[aria-current=page] { background: var(--yp-tomato-soft); color: var(--yp-tomato-ink); font-weight: 600; }
.side-nav .sep { height: 1px; background: var(--yp-line); margin: 8px 4px; }
.side-foot { margin-top: auto; font-size: 14px; display: grid; gap: 8px; }
.side-foot form { margin: 0; }
.side-foot .link-btn { display: flex; gap: 10px; align-items: center; color: var(--yp-ink-2); text-decoration: none; padding: 8px 12px; }
.app-main { padding: 28px clamp(16px, 4vw, 44px) 64px; min-width: 0; }
.app-top { display: none; }
.scrim { display: none; }
.page-title { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.page-title h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0; }
.page-title p { margin: 4px 0 0; color: var(--yp-ink-2); }
.crumbs { font-size: 14px; color: var(--yp-ink-2); margin-bottom: 6px; }
.crumbs a { color: var(--yp-ink-2); }
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--yp-line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--yp-ink-2); font-weight: 600; font-size: 14.5px; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tabs a[aria-current=page] { color: var(--yp-ink); border-color: var(--yp-tomato); }
.tabs a:hover { color: var(--yp-ink); }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lift); }
  .app-shell.nav-open .sidebar { transform: none; }
  .app-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--yp-paper); border-bottom: 1px solid var(--yp-line); position: sticky; top: 0; z-index: 40; }
  .app-shell.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(36, 32, 27, .4); z-index: 45; }
}

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--yp-paper); border: 1px solid var(--yp-line); border-radius: var(--r-md); padding: 18px 20px; }
.stat .k { font-size: 14px; color: var(--yp-ink-2); }
.stat .v { font: 900 2rem/1.15 var(--font-display); margin-top: 4px; letter-spacing: -.02em; }
.meter { height: 8px; background: #F2EAE0; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.meter span { display: block; height: 100%; background: var(--yp-leaf); border-radius: 99px; }
.meter.full span { background: var(--yp-grad); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--yp-line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--yp-line); display: grid; place-items: center; flex: none; }
.checklist .done .dot { background: var(--yp-leaf); border-color: var(--yp-leaf); color: #fff; }
.checklist .done .dot .icon { width: 15px; height: 15px; }
.checklist .done span.txt { color: var(--yp-ink-2); text-decoration: line-through; }
.checklist li a.btn { margin-left: auto; }

.menu-cards { display: grid; gap: 14px; }
.menu-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--yp-paper); border: 1px solid var(--yp-line); border-radius: var(--r-md); padding: 18px 20px; }
.menu-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.menu-card .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; color: var(--yp-ink-2); align-items: center; }
.menu-card .url { font-size: 13.5px; word-break: break-all; }
@media (max-width: 720px) { .menu-card { grid-template-columns: 1fr; } }

.cat-block { background: var(--yp-paper); border: 1px solid var(--yp-line); border-radius: var(--r-md); margin-bottom: 14px; overflow: hidden; }
.cat-block > header { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; background: #FFF6EE; border-bottom: 1px solid var(--yp-line); }
.cat-block > header h3 { margin: 0; font-size: 1.1rem; }
.item-row { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--yp-line); }
.item-row:last-child { border-bottom: 0; }
.item-row .thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #FFF0E4; display: grid; place-items: center; color: #F2A06E; }
.item-row .name { font-weight: 600; }
.item-row .sub { font-size: 13.5px; color: var(--yp-ink-2); display: flex; gap: 8px; flex-wrap: wrap; }
.item-row .price-tag { font-weight: 650; font-variant-numeric: tabular-nums; }
.item-row.off .name { color: var(--yp-ink-2); }
@media (max-width: 720px) {
  .item-row { grid-template-columns: 48px 1fr; }
  .item-row .thumb { width: 48px; height: 48px; }
  .item-row .price-tag, .item-row .actions { grid-column: 2; }
}

.layout-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.layout-opt { position: relative; }
.layout-opt input { position: absolute; opacity: 0; }
.layout-opt label { display: block; border: 2px solid var(--yp-line); border-radius: var(--r-md); padding: 12px; cursor: pointer; background: #fff; }
.layout-opt input:checked + label { border-color: var(--yp-tomato); box-shadow: 0 0 0 3px var(--yp-tomato-soft); }
.layout-opt input:focus-visible + label { box-shadow: var(--focus); }
.layout-opt input:disabled + label { opacity: .5; cursor: not-allowed; }
.layout-thumb { height: 120px; border-radius: 10px; margin-bottom: 10px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.layout-thumb i { display: block; height: 7px; border-radius: 4px; background: currentColor; opacity: .25; }
.layout-thumb i:nth-child(1) { width: 55%; height: 11px; opacity: .8; }
.lt-classic { background: #FFFDF8; color: #3a2e22; border: 1px solid #eee3d3; }
.lt-modern { background: #F6F7F5; color: #1E2833; }
.lt-premium { background: #1B1814; color: #F7A35C; }

.qr-layout { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.qr-preview { background: #fff; border: 1px solid var(--yp-line); border-radius: var(--r-md); padding: 20px; text-align: center; }
.qr-preview svg { width: 100%; height: auto; }
.url-box { display: flex; gap: 8px; align-items: center; background: var(--yp-rice); border: 1px solid var(--yp-line); border-radius: var(--r-sm); padding: 8px 8px 8px 12px; font-size: 14px; word-break: break-all; }
.url-box code { flex: 1; font-family: var(--font-ui); }
@media (max-width: 820px) { .qr-layout { grid-template-columns: 1fr; } .qr-preview { max-width: 340px; } }

.chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding: 8px 0; border-bottom: 1.5px solid var(--yp-line); }
.chart .bar { flex: 1; background: linear-gradient(180deg, var(--yp-orange-1), var(--yp-orange-2)); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.chart .bar:hover { background: var(--yp-slate); }
.chart-axis { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--yp-ink-2); margin-top: 6px; }

.tr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--yp-line); }
.tr-row .orig { font-size: 14.5px; }
.tr-row .orig strong { display: block; }
.tr-row .orig span { color: var(--yp-ink-2); font-size: 13.5px; }
@media (max-width: 720px) { .tr-row { grid-template-columns: 1fr; } }

dialog.confirm { border: 0; border-radius: var(--r-md); padding: 24px; max-width: 420px; width: calc(100% - 32px); box-shadow: var(--shadow-lift); }
dialog.confirm::backdrop { background: rgba(36, 32, 27, .45); }
dialog.confirm h2 { font-size: 1.3rem; }
dialog.confirm .actions { justify-content: flex-end; margin-top: 18px; }

.admin-shell .sidebar { background: var(--yp-slate); color: #E6ECF1; border-color: #0E151D; }
.admin-shell .side-nav a { color: #E6ECF1; }
.admin-shell .side-nav a:hover { background: #2B3846; }
.admin-shell .side-nav a[aria-current=page] { background: var(--yp-tomato-btn); color: #fff; }
.admin-shell .brand { color: #fff; }
.admin-shell .side-foot .link-btn { color: #C9D2DB; }
.admin-shell .side-biz { background: #2B3846; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spacer { flex: 1; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }

/* Páginas de error / mínimas */
.minimal { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.minimal .box { max-width: 520px; }
.minimal .code { font: 900 5.5rem/1 var(--font-display); background: var(--yp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Impresión de QR */
@media print { .no-print { display: none !important; } body { background: #fff; } }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--yp-ink-2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Importar carta */
.import-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .import-grid { grid-template-columns: 1fr; } }
.step-h { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--yp-grad); color: #fff; display: inline-grid; place-items: center; font: 900 15px/1 var(--font-display); flex: none; }
.dropzone { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 18px; border: 2px dashed #F2B48A; border-radius: var(--r-md); background: #FFF7F0; cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.is-over { background: var(--yp-tomato-soft); border-color: var(--yp-tomato); }
.dropzone:focus-within { box-shadow: var(--focus); }
.dz-icon { width: 34px; height: 34px; color: var(--yp-tomato); }
.dropzone strong { font: 800 1.05rem var(--font-display); overflow-wrap: anywhere; }
.import-status { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; background: var(--info-bg); color: #163E5F; }
.import-status[data-kind=ok] { background: var(--ok-bg); color: #1F4F1B; }
.import-status[data-kind=error] { background: var(--err-bg); color: #7A1A12; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--yp-ink-2); font-size: 13.5px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; border-top: 1px solid var(--yp-line); }
.import-table input:not([type=checkbox]) { min-height: 38px; padding: 6px 9px; font-size: 14.5px; }
.import-table td { padding: 6px 8px; }
.import-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--yp-tomato-ink); }
.import-table tr.row-off input:not([type=checkbox]) { opacity: .45; }
.import-table tr.row-error td { background: var(--err-bg); }
.import-table tr.row-error-msg td { color: var(--err); font-size: 13px; padding-top: 0; border-bottom: 1px solid var(--yp-line); }
.import-table .allergen-cell { font-size: 13px; color: var(--yp-ink-2); }
.import-table { min-width: 860px; }
.daily-note { margin-bottom: 16px; align-items: center; }


/* =====================================================================
   Modo oscuro. <html data-theme="dark"> lo fuerza; data-theme="system"
   (por defecto) sigue al dispositivo. Mismos tokens; solo cambian valores.
   ===================================================================== */
.logo-on-dark { display: none; }
.theme-toggle.to-light { display: none; }
.theme-toggle { align-items: center; }
.btn-icon.theme-toggle { display: inline-flex; justify-content: center; }
.btn-icon.theme-toggle.to-light { display: none; }
.theme-toggle .icon { width: 18px; height: 18px; }

:root[data-theme=dark] {
  --yp-tomato-ink: #FF8F57;
  --yp-tomato-soft: #3A2419;
  --yp-basil: #86CF74;
  --yp-basil-soft: #1D3320;
  --yp-slate: #26313C;
  --yp-rice: #12171D;
  --yp-paper: #1A2129;
  --yp-ink: #E9EDF0;
  --yp-ink-2: #A5B0BA;
  --yp-line: #2D3741;
  --ok: #86CF74;
  --ok-bg: #1C2F1C;
  --err: #FF8A80;
  --err-bg: #3B1E1B;
  --info: #8CC0EE;
  --info-bg: #182B3D;
  --warn-bg: #3A2F12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .5);
  --focus: 0 0 0 3px var(--yp-rice), 0 0 0 5px #FF8F57;
  color-scheme: dark;
}
:root[data-theme=dark] .logo-on-light { display: none; }
:root[data-theme=dark] .theme-toggle.to-dark { display: none; }
:root[data-theme=dark] .theme-toggle.to-light { display: inline-flex; }
:root[data-theme=dark] .logo-on-dark { display: inline-block; }
:root[data-theme=dark] .btn-dark { background: #E9EDF0; color: #12171D; }
:root[data-theme=dark] .btn-dark:hover { background: #FFFFFF; color: #12171D; }
:root[data-theme=dark] .btn-green { background: #2F7A2A; color: #fff; }
:root[data-theme=dark] .btn-green:hover { background: #3A8F34; }
:root[data-theme=dark] .btn-danger { background: #B42318; color: #fff; }
:root[data-theme=dark] .btn-danger:hover { background: #C9342A; }
:root[data-theme=dark] .skip-link { background: #E9EDF0; color: #12171D; }
:root[data-theme=dark] input[type=color], :root[data-theme=dark] .chip-check span, :root[data-theme=dark] .layout-opt label { background: var(--yp-paper); }
:root[data-theme=dark] .chip-check input:checked + span { background: var(--yp-tomato-ink); border-color: var(--yp-tomato-ink); color: #12171D; }
:root[data-theme=dark] .flash-success, :root[data-theme=dark] .import-status[data-kind=ok] { color: #BFE6B0; border-color: #2F5A2A; }
:root[data-theme=dark] .flash-error, :root[data-theme=dark] .import-status[data-kind=error] { color: #FFC1BA; border-color: #6B2A24; }
:root[data-theme=dark] .flash-info, :root[data-theme=dark] .import-status { color: #BFDAF3; border-color: #2B4A66; }
:root[data-theme=dark] .flash-warn { color: #F3D58A; border-color: #6B5520; }
:root[data-theme=dark] .badge-ok { border-color: #2F5A2A; }
:root[data-theme=dark] .badge-draft { background: #26303A; }
:root[data-theme=dark] .badge-warn { color: #F3D58A; border-color: #6B5520; }
:root[data-theme=dark] .badge-daily { background: var(--yp-tomato-soft); border-color: #6B3A22; }
:root[data-theme=dark] .badge-err { border-color: #6B2A24; }
:root[data-theme=dark] .badge-plan { border-color: #6B3A22; }
:root[data-theme=dark] .site-header { background: rgba(18, 23, 29, .92); }
:root[data-theme=dark] .hero-blob { background: radial-gradient(closest-side, rgba(246, 84, 34, .22) 0%, rgba(246, 84, 34, .08) 55%, rgba(18, 23, 29, 0) 100%); }
:root[data-theme=dark] .phone-qr { color: #1E2833; }
:root[data-theme=dark] .compare .no { color: #5E6A75; }
:root[data-theme=dark] .cta-band { background: #222C36; border: 1px solid var(--yp-line); }
:root[data-theme=dark] .pending-data { color: #F3D58A; border-color: #6B5520; }
:root[data-theme=dark] .meter { background: #2D3741; }
:root[data-theme=dark] .cat-block > header { background: #202931; }
:root[data-theme=dark] .item-row .thumb { background: #2A211B; }
:root[data-theme=dark] .dropzone { background: #1F1915; border-color: #6B3A22; }
:root[data-theme=dark] .admin-shell .sidebar { background: #0E141A; border-color: var(--yp-line); }
:root[data-theme=dark] .admin-shell .side-biz { background: #1A2129; }
:root[data-theme=dark] .admin-shell .side-nav a:hover { background: #1F2932; }
:root[data-theme=dark] .qr-preview { background: #fff; color: #1E2833; }

@media (prefers-color-scheme: dark) {
  :root[data-theme=system] {
  --yp-tomato-ink: #FF8F57;
  --yp-tomato-soft: #3A2419;
  --yp-basil: #86CF74;
  --yp-basil-soft: #1D3320;
  --yp-slate: #26313C;
  --yp-rice: #12171D;
  --yp-paper: #1A2129;
  --yp-ink: #E9EDF0;
  --yp-ink-2: #A5B0BA;
  --yp-line: #2D3741;
  --ok: #86CF74;
  --ok-bg: #1C2F1C;
  --err: #FF8A80;
  --err-bg: #3B1E1B;
  --info: #8CC0EE;
  --info-bg: #182B3D;
  --warn-bg: #3A2F12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .5);
  --focus: 0 0 0 3px var(--yp-rice), 0 0 0 5px #FF8F57;
  color-scheme: dark;
  }
  :root[data-theme=system] .logo-on-light { display: none; }
  :root[data-theme=system] .theme-toggle.to-dark { display: none; }
  :root[data-theme=system] .theme-toggle.to-light { display: inline-flex; }
  :root[data-theme=system] .logo-on-dark { display: inline-block; }
  :root[data-theme=system] .btn-dark { background: #E9EDF0; color: #12171D; }
  :root[data-theme=system] .btn-dark:hover { background: #FFFFFF; color: #12171D; }
  :root[data-theme=system] .btn-green { background: #2F7A2A; color: #fff; }
  :root[data-theme=system] .btn-green:hover { background: #3A8F34; }
  :root[data-theme=system] .btn-danger { background: #B42318; color: #fff; }
  :root[data-theme=system] .btn-danger:hover { background: #C9342A; }
  :root[data-theme=system] .skip-link { background: #E9EDF0; color: #12171D; }
  :root[data-theme=system] input[type=color], :root[data-theme=system] .chip-check span, :root[data-theme=system] .layout-opt label { background: var(--yp-paper); }
  :root[data-theme=system] .chip-check input:checked + span { background: var(--yp-tomato-ink); border-color: var(--yp-tomato-ink); color: #12171D; }
  :root[data-theme=system] .flash-success, :root[data-theme=system] .import-status[data-kind=ok] { color: #BFE6B0; border-color: #2F5A2A; }
  :root[data-theme=system] .flash-error, :root[data-theme=system] .import-status[data-kind=error] { color: #FFC1BA; border-color: #6B2A24; }
  :root[data-theme=system] .flash-info, :root[data-theme=system] .import-status { color: #BFDAF3; border-color: #2B4A66; }
  :root[data-theme=system] .flash-warn { color: #F3D58A; border-color: #6B5520; }
  :root[data-theme=system] .badge-ok { border-color: #2F5A2A; }
  :root[data-theme=system] .badge-draft { background: #26303A; }
  :root[data-theme=system] .badge-warn { color: #F3D58A; border-color: #6B5520; }
  :root[data-theme=system] .badge-daily { background: var(--yp-tomato-soft); border-color: #6B3A22; }
  :root[data-theme=system] .badge-err { border-color: #6B2A24; }
  :root[data-theme=system] .badge-plan { border-color: #6B3A22; }
  :root[data-theme=system] .site-header { background: rgba(18, 23, 29, .92); }
  :root[data-theme=system] .hero-blob { background: radial-gradient(closest-side, rgba(246, 84, 34, .22) 0%, rgba(246, 84, 34, .08) 55%, rgba(18, 23, 29, 0) 100%); }
  :root[data-theme=system] .phone-qr { color: #1E2833; }
  :root[data-theme=system] .compare .no { color: #5E6A75; }
  :root[data-theme=system] .cta-band { background: #222C36; border: 1px solid var(--yp-line); }
  :root[data-theme=system] .pending-data { color: #F3D58A; border-color: #6B5520; }
  :root[data-theme=system] .meter { background: #2D3741; }
  :root[data-theme=system] .cat-block > header { background: #202931; }
  :root[data-theme=system] .item-row .thumb { background: #2A211B; }
  :root[data-theme=system] .dropzone { background: #1F1915; border-color: #6B3A22; }
  :root[data-theme=system] .admin-shell .sidebar { background: #0E141A; border-color: var(--yp-line); }
  :root[data-theme=system] .admin-shell .side-biz { background: #1A2129; }
  :root[data-theme=system] .admin-shell .side-nav a:hover { background: #1F2932; }
  :root[data-theme=system] .qr-preview { background: #fff; color: #1E2833; }
}

/* Estadísticas avanzadas */
.chart-hours { height: 140px; }
.lang-row { display: grid; grid-template-columns: 110px 1fr 52px; gap: 12px; align-items: center; margin-top: 10px; font-size: 15px; }
.lang-row .meter { margin-top: 0; }
.lang-row strong { text-align: right; font-variant-numeric: tabular-nums; }

/* Formulario de plato: varios precios */
.variants { border: 1px solid var(--yp-line); border-radius: var(--r-sm); padding: 10px 14px; }
.variants summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.variant-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; margin-top: 8px; }
.tr-state { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--yp-ink-2); }

/* Selector mensual / anual */
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--yp-line); border-radius: 999px; background: var(--yp-paper); }
.seg a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--yp-ink-2); font-weight: 600; font-size: 14px; }
.seg a[aria-current=true] { background: var(--yp-ink); color: var(--yp-rice); }
.seg-save { font-size: 12px; font-weight: 700; color: var(--yp-basil); }
.seg a[aria-current=true] .seg-save { color: inherit; opacity: .85; }
.biz-switch { margin-top: 10px; } .biz-switch select { min-height: 36px; font-size: 14px; padding: 6px 10px; }
.ai-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.stats-grid > .panel + .panel { margin-top: 0; }
