/* Menú del piso — sitio público + herramienta, mobile-first */
:root {
  --bg: #faf6f1;
  --bg-card: #ffffff;
  --ink: #1c1917;
  --ink-muted: #78716c;
  --accent: #c45c26;
  --accent-soft: #f3e0d4;
  --accent-dark: #9a3f12;
  --green: #3d6b4f;
  --green-soft: #e8f0eb;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --border: #e7e0d8;
  --shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "Cascadia Code", monospace;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --max: 960px;
  --nav-h: 3.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* Background warmth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, #f3e0d4 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at -10% 80%, #e8f0eb 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ——— Site nav ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 241, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.15rem;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.site-brand .emoji { font-size: 1.2rem; }
.site-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-links a {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink-muted);
  text-decoration: none;
}
.site-links a:hover { color: var(--ink); }
.site-links .nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(196, 92, 38, 0.28);
}
.site-links .nav-cta:hover { background: var(--accent-dark); }

@media (max-width: 520px) {
  .site-links a:not(.nav-cta) { display: none; }
}

/* ——— Hero ——— */
.hero {
  padding: 2.25rem 1.15rem 2.75rem;
}
.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 5.5vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
  color: var(--ink);
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  font-size: 1.05rem;
  padding: 0.9rem 1.6rem;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(196, 92, 38, 0.32);
  transition: transform 0.12s, background 0.15s;
}
.btn-cta:hover { background: var(--accent-dark); }
.btn-cta:active { transform: scale(0.98); }
.hero-free {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}
.hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.hero-pills li {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* ——— Bands (who / how) ——— */
.band {
  padding: 2.5rem 1.15rem;
}
.band-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.band h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 0.55rem;
}
.band-lead {
  text-align: center;
  color: var(--ink-muted);
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  font-size: 1rem;
}

.who { background: transparent; }
.who-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .who-grid { grid-template-columns: repeat(4, 1fr); }
}
.who-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow);
}
.who-icon {
  font-size: 1.6rem;
  margin-bottom: 0.55rem;
  line-height: 1;
}
.who-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.who-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.how {
  background: linear-gradient(180deg, rgba(243, 224, 212, 0.35) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto 1.75rem;
}
.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.85rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow);
}
.step-num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.steps h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.steps p {
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.how-cta {
  text-align: center;
}

/* ——— Tool section ——— */
.tool-section {
  padding: 2.25rem 0 0;
  scroll-margin-top: calc(var(--nav-h) + 0.5rem);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.35);
}
.tool-intro {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.15rem 1.15rem;
  text-align: center;
}
.tool-intro h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.tool-intro p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1rem calc(5.5rem + var(--safe-bottom));
}

/* Tool header */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-top: 0.25rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.logo-mark span.emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.logo-tag {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.budget-badge {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}

/* Controls */
.controls {
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.seg button {
  appearance: none;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 0.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.seg button:active { transform: scale(0.97); }

.seg button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.seg.budget {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 380px) {
  .seg.budget { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.25rem;
}

.toggle-row span {
  font-size: 0.9rem;
  font-weight: 600;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.switch .slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.switch input:checked + .slider {
  background: var(--green);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* Summary strip */
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.summary-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}

.summary-item .label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.summary-item .value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.15rem;
}

.summary-item .value.ok { color: var(--green); }
.summary-item .value.warn { color: var(--amber); }
.summary-item .hint {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.tabs button {
  flex: 1;
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.88rem;
  padding: 0.6rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-muted);
  transition: background 0.15s, color 0.15s;
}

.tabs button.active {
  background: var(--ink);
  color: #fff;
}

.panel { display: none; }
.panel.active { display: block; }

/* Day cards */
.day {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--border);
}

.day-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.day-cost {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.meal {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
}

.meal + .meal {
  border-top: 1px solid #f3efe9;
}

.meal-tipo {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  padding-top: 0.15rem;
}

.meal-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.meal-body p {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}

/* Shopping list */
.cat {
  margin-bottom: 1rem;
}

.cat-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.cat-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.cat[data-cat="Fruta y verdura"] .dot { background: #3d6b4f; }
.cat[data-cat="Nevera"] .dot { background: #2563eb; }
.cat[data-cat="Despensa"] .dot { background: #c45c26; }
.cat[data-cat="Congelados"] .dot { background: #0ea5e9; }
.cat[data-cat="Otros"] .dot { background: #78716c; }

.item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.35rem;
}

.item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex-shrink: 0;
  cursor: pointer;
}

.item.checked {
  opacity: 0.5;
}

.item.checked .item-name {
  text-decoration: line-through;
}

.item-main {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-weight: 650;
  font-size: 0.92rem;
  text-transform: capitalize;
}

.item-qty {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.item-price {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.list-footer {
  background: var(--green-soft);
  border: 1px solid #c5d9cc;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.list-footer .label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.list-footer .total.warn { color: var(--amber); }
.list-footer .total {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
}

.note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
  line-height: 1.45;
}

/* Sticky action bar — visible when tool is in view */
.actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem calc(0.75rem + var(--safe-bottom));
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.actions.is-visible {
  opacity: 1;
  visibility: visible;
}
.actions[hidden] { display: none !important; }

.actions-inner {
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.45rem;
  pointer-events: auto;
}

.btn {
  appearance: none;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.85rem 0.4rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  line-height: 1.2;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(196, 92, 38, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

.btn .ico { font-size: 1.05rem; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.2rem + var(--safe-bottom));
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 650;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 30;
  white-space: nowrap;
  max-width: calc(100% - 2rem);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Empty / loading */
.empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ink-muted);
}

/* ——— Site footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.15rem 2.5rem;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.45);
}
.site-footer-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}
.footer-aviso {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}
.footer-meta {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 600;
}

@media print {
  body::before,
  .actions,
  .tabs,
  .controls,
  .header .budget-badge,
  .toast,
  .site-nav,
  .hero,
  .band,
  .tool-intro { display: none !important; }
  .app { max-width: none; padding: 0; }
  .panel { display: block !important; }
  .day, .item, .card { box-shadow: none; break-inside: avoid; }
  .tool-section { border: none; background: none; }
}

/* ——— Presupuesto libre ——— */
.money-input {
  position: relative;
  margin-top: 0.5rem;
}
.money-input input,
.text-input {
  width: 100%;
  appearance: none;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px: evita zoom en iOS */
  font-weight: 600;
  padding: 0.65rem 2.2rem 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.text-input { padding-right: 0.85rem; font-weight: 500; }
.money-input input:focus,
.text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.money-input input[aria-invalid="true"] {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
.money-suffix {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--ink-muted);
  pointer-events: none;
}
.field-help {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}
.field-error {
  font-size: 0.78rem;
  color: var(--amber);
  font-weight: 600;
  margin-top: 0.35rem;
}

.status-pill {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  line-height: 1.35;
}
.status-pill[hidden] { display: none; }
.status-pill.is-ok { background: var(--green-soft); color: var(--green); }
.status-pill.is-over { background: var(--amber-soft); color: var(--amber); }

/* ——— Alergias / restricciones ——— */
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.restr-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  position: relative;
  cursor: pointer;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
}
.chip input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.field-excluir { margin-top: 1rem; }
.link-btn {
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 0.75rem;
  padding: 0;
}
.link-btn[hidden] { display: none; }

.restr-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
}
.restr-bar[hidden], .plan-avisos[hidden] { display: none; }
.plan-avisos {
  background: var(--amber-soft);
  color: #78350f;
  font-size: 0.8rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}
.plan-avisos p + p { margin-top: 0.35rem; }
