/* Sistema de perfiles. Estructura común + variaciones por familia (.pf--horno|tecno|oficio|mercado)
   y paleta (variables --lc, --dc, etc. que pone js/profiles.js; aquí se elige claro u oscuro). */
.pfv { --pc: var(--lc); --pt: var(--lt); --ps: var(--ls); --pi: var(--li); --pa: var(--la); --po: var(--lo); }
:root[data-theme="dark"] .pfv { --pc: var(--dc); --pt: var(--dt); --ps: var(--ds); --pi: var(--di); --pa: var(--da); --po: var(--do); }
.pf-page { --pm: color-mix(in srgb, var(--pi) 80%, transparent); --pl: color-mix(in srgb, var(--pi) 14%, transparent);
  --r: 24px; --r-xl: 36px; --h1-w: 700; --h1-ls: -.02em;
  background: var(--ps); color: var(--pi); min-height: 100%; }
.pf { max-width: 1040px; margin: 0 auto; padding: 16px var(--pad) 40px; display: flex; flex-direction: column; gap: 18px; }
.pf .back { color: var(--pi); }
.pf h1:focus { outline: none; }
.pf h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 650; font-size: 22px; letter-spacing: -.01em; }
.pf-sec > p { margin: 0; max-width: 62ch; line-height: 1.55; }

/* Portada */
.pf-cover { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-height: 240px; padding: clamp(22px, 5vw, 44px); border-radius: var(--r-xl); background: var(--pc) center / cover no-repeat; color: var(--pi); }
.pf-cover::before { content: ''; position: absolute; inset: 0; z-index: -1; }
.pf-art { position: absolute; right: -24px; top: -18px; z-index: -1; color: var(--pi); opacity: .13; }
.pf-art svg { width: clamp(150px, 30vw, 230px); height: auto; }
.pf-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--ps); box-shadow: 0 0 0 4px var(--ps); margin-bottom: 6px; }
.pf-logo--icon { display: grid; place-items: center; color: var(--pa); }
.pf-kind { margin: 0; font-weight: 600; font-size: 14px; color: var(--pm); }
.pf-cover h1 { margin: 0; font-size: clamp(32px, 6.5vw, 54px); font-weight: var(--h1-w); letter-spacing: var(--h1-ls); line-height: 1.02; max-width: 16ch; }
.pf-pitch { margin: 0; font-size: 18px; max-width: 40ch; }
.pf-meta .status.is-open, .pf-meta .status.is-closed { color: var(--pi); font-weight: 700; }
.pf-meta .tag { background: var(--ps); color: var(--pi); }
.pf-cover.has-photo { color: #fff; }
.pf-cover.has-photo::before { background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.72)); }
.pf-cover.has-photo .pf-art { display: none; }
.pf-cover.has-photo .pf-kind, .pf-cover.has-photo .pf-meta .status { color: #fff; }

/* Acciones rápidas */
.pf-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pf-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 74px; padding: 10px 4px; border: 0; border-radius: var(--r);
  background: var(--pt); color: var(--pi); font-weight: 600; font-size: 13px; text-decoration: none; transition: transform .12s ease, background-color .15s; }
.pf-act:hover { background: var(--pc); }
.pf-act:active { transform: scale(.96); }
.pf-act--main { background: var(--pa); color: var(--po); }
.pf-act--main:hover { background: var(--pa); filter: brightness(1.06); }
.pf-act[aria-disabled="true"] { opacity: .6; cursor: help; }
.pf-act[aria-pressed="true"] path { fill: var(--pa); }
.pf-note { margin: -8px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--pt); font-size: 14px; }

/* Novedad: una historia breve del negocio */
.pf-news { position: relative; display: flex; flex-direction: column; gap: 2px; align-self: flex-start; max-width: 520px; padding: 12px 16px 12px 18px; border-radius: 6px var(--r) var(--r) var(--r);
  background: var(--pt); border-left: 4px solid var(--pa); }
.pf-news-when { font-size: 13px; font-weight: 700; color: var(--pa); }
:root[data-theme="dark"] .pf-news-when { color: var(--pa); }
.pf-news p { margin: 0; font-size: 16px; }

/* Destacados: fichas (horno), estantería (mercado) o filas (tecno, oficio) */
.pf-tiles, .pf-rows, .pf-tags, .pf-gallery { list-style: none; margin: 0; padding: 0; }
.pf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.pf-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r); background: var(--pt); }
.pf-tile strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.pf-tile > span:not(.pf-ico):not(.pf-price) { font-size: 14px; color: var(--pm); }
.pf-ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--pc); color: var(--pi); margin-bottom: 6px; }
.pf-price { align-self: flex-start; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--pa); color: var(--po); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.pf-rows { display: flex; flex-direction: column; border-radius: var(--r); background: var(--pt); padding: 4px 16px; }
.pf-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--pl); }
.pf-row:last-child { border-bottom: 0; }
.pf-row .pf-ico { width: 44px; height: 44px; margin: 0; }
.pf-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-row-main strong { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.pf-row-main span { font-size: 14px; color: var(--pm); }
.pf-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.pf-row .pf-price { margin: 0; padding: 0; background: none; color: var(--pi); font-size: 16px; }
.pf-time { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--pm); white-space: nowrap; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pf-tags li { padding: 6px 12px; border-radius: 999px; background: var(--pt); font-size: 14px; font-weight: 500; }
.pf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.pf-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--r) - 8px); }
.pf-info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.pf-info dt { color: var(--pm); } .pf-info dd { margin: 0; font-weight: 500; }
.pf-info .demo-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--pt); font-size: 14px; }
.pf .placeholder { color: var(--pm); }

/* --- Horno: cálido, redondo, grano de trigo, fichas con precio en píldora --- */
.pf--horno .pf-cover::before { background-image: radial-gradient(color-mix(in srgb, var(--pi) 16%, transparent) 1.6px, transparent 2.2px); background-size: 18px 18px; }
.pf--horno .pf-cover { border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 10px; }

/* --- Tecno: limpio, esquinas rectas, retícula fina, ficha técnica --- */
.pf--tecno { --r: 12px; --r-xl: 16px; --h1-w: 600; --h1-ls: -.035em; }
.pf--tecno .pf-cover::before { background-image: linear-gradient(var(--pl) 1px, transparent 1px), linear-gradient(90deg, var(--pl) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; }
.pf--tecno .pf-art { opacity: .1; }
.pf--tecno .pf-act, .pf--tecno .pf-rows, .pf--tecno .pf-news, .pf--tecno .pf-tags li, .pf--tecno .pf-info .demo-note { background: var(--ps); box-shadow: inset 0 0 0 1px var(--pl); }
.pf--tecno .pf-act--main { background: var(--pa); box-shadow: none; }
.pf--tecno .pf-act:hover { background: var(--pt); } .pf--tecno .pf-act--main:hover { background: var(--pa); }
.pf--tecno .pf-ico { border-radius: 10px; background: var(--pt); color: var(--pa); }
.pf--tecno .pf-row .pf-price { font-size: 17px; letter-spacing: -.01em; }
.pf--tecno .pf-tags li { border-radius: 8px; }
.pf--tecno .pf-logo { border-radius: 14px; }

/* --- Oficio: cercano, rayas suaves, lista de servicios con duración --- */
.pf--oficio { --r: 20px; --r-xl: 28px; --h1-w: 600; --h1-ls: -.01em; }
.pf--oficio .pf-cover::before { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--pi) 9%, transparent) 0 2px, transparent 2px 16px); }
.pf--oficio .pf-time { padding: 2px 10px; border-radius: 999px; background: var(--pc); color: var(--pi); }
.pf--oficio .pf-ico { background: var(--pa); color: var(--po); }

/* --- Mercado: toldo de rayas con borde festoneado y precios como etiquetas --- */
/* El toldo usa un tono medio del acento (no el acento pleno): se lee como toldo sin pesar más que el nombre. */
.pf--mercado { --r: 18px; --r-xl: 24px; --aw: color-mix(in srgb, var(--pa) 62%, var(--ps)); }
.pf--mercado .pf-cover { padding-top: calc(clamp(22px, 5vw, 44px) + 54px); }
.pf--mercado .pf-cover::before { inset: 0 0 auto; height: 52px; z-index: 0;
  background: radial-gradient(circle at 14px 0, var(--aw) 13px, transparent 14px) 0 38px / 56px 14px repeat-x,
              radial-gradient(circle at 14px 0, var(--ps) 13px, transparent 14px) 28px 38px / 56px 14px repeat-x,
              repeating-linear-gradient(90deg, var(--aw) 0 28px, var(--ps) 28px 56px) 0 0 / 100% 38px no-repeat; }
.pf--mercado .pf-art { top: auto; bottom: -30px; }
.pf--mercado .pf-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.pf--mercado .pf-tile { align-items: center; text-align: center; padding: 20px 12px 16px; }
.pf--mercado .pf-tile .pf-ico { width: 64px; height: 64px; border-radius: 16px; }
.pf--mercado .pf-tile .pf-price { position: absolute; top: 10px; right: 8px; margin: 0; transform: rotate(-4deg); border-radius: 6px; padding: 3px 8px; font-size: 13px; }

@media (max-width: 560px) {
  .pf-actions { gap: 6px; } .pf-act { min-height: 66px; font-size: 12px; border-radius: 16px; }
  .pf--tecno .pf-act { border-radius: 10px; }
  .pf-row { grid-template-columns: auto 1fr; } .pf-row-end { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
  .pf--mercado .pf-tile .pf-price { position: static; transform: none; margin-top: 6px; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .pf-act { transition: none; } .pf-act:active { transform: none; } }

/* Tarjetas de la lista: icono con la identidad del negocio y qué coincidió con la búsqueda */
.card-main { flex-direction: row; align-items: flex-start; gap: 12px; }
.card-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-top: 2px; border-radius: 14px; background: var(--pc); color: var(--pi); }
.card-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-hit { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--sel-bg); font-size: 13px; font-weight: 600; }

/* Aviso breve (compartir, contacto ficticio) */
.toast { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(108px + env(safe-area-inset-bottom)); margin: 0 auto; width: fit-content; max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: 16px; background: var(--strong); color: var(--on-strong); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; box-shadow: 0 8px 24px rgba(22,48,43,.25); animation: assist-in .18s ease-out; }
@media (min-width: 1025px) { .toast { bottom: 32px; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ===== Editor del perfil (demostración local) ===== */
.page--editor { max-width: 1240px; }
.ed-toggle { display: none; margin: 0; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.ed-form { display: flex; flex-direction: column; gap: 14px; }
.ed-form fieldset { margin: 0; padding: 18px; border: 0; border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ed-form legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.ed-form legend + * { clear: both; }
.ed-form label, .ed-label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.ed-form input[type="text"], .ed-form input:not([type]), .ed-form select, .ed-form textarea { min-height: 44px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); font-weight: 400; font-size: 16px; color: var(--ink); }
.ed-form textarea { resize: vertical; min-height: 88px; line-height: 1.45; }
.ed-form input:focus-visible, .ed-form select:focus-visible, .ed-form textarea:focus-visible { outline: none; border-color: var(--ink); }
.ed-hint { margin: 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.ed-row { display: flex; gap: 10px; } .ed-row > * { flex: 1; min-width: 0; }
.ed-swatches, .ed-icons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ed-swatch, .ed-iconopt { position: relative; }
.ed-swatch input, .ed-iconopt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ed-swatch span { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--bg); font-weight: 500; font-size: 14px; border: 2px solid transparent; }
.ed-swatch i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--sw-c) 50%, var(--sw-a) 50%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.ed-iconopt span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bg); border: 2px solid transparent; }
.ed-swatch input:checked + span, .ed-iconopt input:checked + span { border-color: var(--ink); background: var(--sel-bg); }
.ed-swatch input:focus-visible + span, .ed-iconopt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.ed-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ed-file img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.ed-file input[type="file"] { font-size: 14px; max-width: 100%; }
.ed-items { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ed-item { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 10px; border-radius: 16px; background: var(--bg); }
.ed-item select { grid-row: span 3; min-height: 100%; padding: 4px; font-size: 13px; }
.ed-item .ed-row input { min-width: 0; }
.ed-item-del { grid-column: 2; justify-self: end; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; }
.ed-item-del:hover { background: var(--hover-chip); color: var(--ink); }
.ed-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ed-thumbs li { position: relative; }
.ed-thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; display: block; }
.ed-thumbs button { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--strong); color: var(--on-strong); font-weight: 700; }
.ed-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 -4px 18px rgba(22,48,43,.08); }
.ed-status { margin: 0 auto 0 0; font-size: 14px; color: var(--muted); }
.ed-preview { position: sticky; top: 12px; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); max-height: calc(100vh - 24px); overflow-y: auto; }
.ed-preview-label { position: sticky; top: 0; z-index: 2; margin: 0; padding: 8px 14px; background: var(--strong); color: var(--on-strong); font-size: 13px; font-weight: 600; }
.ed-preview .pf { padding-top: 12px; }
.draft-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; max-width: 1040px; margin: 12px auto 0; padding: 12px 16px; border-radius: 16px; background: var(--moved-bg); color: var(--moved-fg); font-weight: 500; }
.draft-wrap { background: var(--bg); }
/* Acceso de comerciantes (T5): misma tarjeta y campos que el resto de «Negocio» */
.auth-box { flex: none; align-items: stretch; }
.auth-box p { margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 8px; }
.auth-form label { font-weight: 600; font-size: 14px; }
.auth-form input { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); font: inherit; font-size: 16px; color: var(--ink); }
.auth-form input:focus-visible { outline: none; border-color: var(--ink); }
.auth-form .btn, .auth-acts .btn { min-height: 44px; }
.auth-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* Botón de Google según su guía de marca (fondo claro, logotipo «G» oficial y texto), con la forma de los botones de Nubi */
.auth-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; font-weight: 600; }
.auth-google:hover { background: #F2F2F2; }
.auth-google[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.auth-alt { border-radius: 14px; background: var(--bg); padding: 4px 12px; }
.auth-alt summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: 14px; }
.auth-alt[open] { padding-bottom: 12px; } .auth-alt .auth-form { margin-top: 4px; }
.auth-msg { padding: 8px 12px; border-radius: 12px; background: var(--hover); font-size: 14px; }
.auth-msg.is-error { box-shadow: inset 4px 0 0 var(--closed); }
@media (min-width: 561px) { .auth-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; } .auth-form label { flex: 1 0 100%; } .auth-form input { flex: 1 1 260px; width: auto; } }

/* ===== Registro guiado (T6) y moderación (T7): mismas tarjetas, campos y botones de «Negocio» ===== */
#view-owner.is-registro .ed-toggle, #view-owner.is-registro #editor, #view-owner.is-registro .page-grid { display: none; }
.reg { flex: none; align-items: stretch; gap: 14px; overflow-wrap: anywhere; }
.reg-h { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reg-sub { margin: 8px 0 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.reg-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.reg-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; background: var(--hover); font-size: 13px; font-weight: 600; font-family: var(--font-body, inherit); }
.reg-badge--publicado { background: #D8EFC8; color: #27501A; } .reg-badge--pendiente { background: #FFE7BD; color: #6A4200; }
.reg-badge--requiere_correccion, .reg-badge--rechazado, .reg-badge--rechazada, .reg-badge--suspendido { background: #F8D7CF; color: #7A2A16; }
.reg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.reg-item { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: var(--bg); }
.reg-item strong { font-size: 16px; } .reg-item p { margin: 4px 0 0; }
.reg-link { margin-left: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.reg-new, .reg-field { display: flex; flex-direction: column; gap: 6px; }
.reg-field label, .reg-field .ed-label, .reg-radio legend, .mod-mot { font-weight: 600; font-size: 14px; }
.reg input:not([type=radio]):not([type=checkbox]):not([type=file]):not([type=time]), .reg input[type=time], .reg select, .reg textarea, .mod textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); font: inherit; font-size: 16px; color: var(--ink); scroll-margin: 96px 0 200px; }
.reg textarea, .mod textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.reg input:focus-visible, .reg select:focus-visible, .reg textarea:focus-visible, .mod textarea:focus-visible { outline: none; border-color: var(--ink); }
.reg .reg-horas input[type=time] { width: auto; flex: 1 1 110px; min-width: 104px; max-width: 150px; padding: 6px 8px; }
.reg-req { font-size: 12px; font-weight: 700; color: var(--closed); margin-left: 4px; } .reg-opt { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.reg-err { margin: 0; padding: 6px 10px; border-radius: 10px; background: #F8D7CF; color: #7A2A16; font-size: 14px; }
:root[data-theme="dark"] .reg-err { background: #4A2018; color: #FFD9CF; }
.reg-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.reg-steps li { flex: 1 0 auto; } .reg-steps button { width: 100%; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 10px; border: 0; border-radius: 999px; background: var(--bg); color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.reg-steps span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 12px; }
.reg-steps li[aria-current="step"] button { background: var(--strong); color: var(--on-strong); } .reg-steps li[aria-current="step"] span { background: var(--accent); color: var(--on-accent); }
.reg-steps li.is-done span { background: #D8EFC8; color: #27501A; }
.reg-prog { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.reg-step { display: flex; flex-direction: column; gap: 12px; } .reg-step > h3 { margin: 0; font-family: var(--font-display); font-size: 20px; } .reg-step > h3:focus { outline: none; }
.reg-lock { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; opacity: .75; }
.reg-radio { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.reg-radio label, .reg-chk { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border-radius: 14px; background: var(--bg); font-weight: 500; }
.reg-radio input, .reg-chk input { width: 20px; height: 20px; flex: none; accent-color: var(--strong); }
.reg-map { height: 260px; border-radius: 18px; overflow: hidden; background: var(--map); }
.reg-map.is-off { height: auto; padding: 12px; }
.reg-dias { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.reg-dia { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .reg-dia .reg-chk { flex: 0 0 140px; }
.reg-horas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.reg-mini { min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-weight: 600; font-size: 13px; text-decoration: underline; text-align: left; }
.reg-oferta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px; border-radius: 16px; background: var(--bg); }
.reg-preview { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.reg-preview .pf { padding: 12px 12px 20px; }
.reg-falta { padding: 10px 14px; border-radius: 14px; background: #FFE7BD; color: #4A2E00; } .reg-falta ul { margin: 6px 0 0; padding-left: 18px; } .reg-falta .reg-mini { color: inherit; }
/* Navegación del asistente: mismo alto para todos; «Atrás» secundario (contorno) y la acción principal más ancha y rellena. */
.reg-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.reg-nav .btn { box-sizing: border-box; height: 48px; min-height: 48px; padding: 0 20px; font-size: 15px; line-height: 1.15; text-align: center; }
.reg-nav .reg-nav-sec { min-width: 112px; }
.reg-nav .reg-nav-pri { min-width: 180px; }
.reg-nav .reg-nav-pri[aria-disabled="true"] { opacity: .7; }
.reg-local { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); } .reg-local p { margin: 0; }
.reg-aviso { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); font-size: 14px; }
.mod { display: flex; flex-direction: column; gap: 16px; } .mod .panel-card { align-items: stretch; }
.mod-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; } .mod-log span { color: var(--muted); }
.pf-act { overflow-wrap: normal; } /* las etiquetas de acción nunca se parten a mitad de palabra */
.reg-preview .pf-actions, .mod .reg-preview .pf-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-contacts { display: flex; flex-direction: column; gap: 4px; } .pf-contacts a { color: inherit; font-weight: 600; }
.pf-extra { margin: 12px 0 0; font-size: 14px; }
@media (max-width: 560px) { .reg-dia .reg-chk { flex: 1 0 100%; } .reg-nav .reg-nav-sec { flex: 1 1 0; min-width: 0; padding: 0 12px; } .reg-nav .reg-nav-pri { flex: 2 1 0; min-width: 0; padding: 0 12px; } }

/* Responsividad de «Negocio» (corrección 2026-11-20): los campos se ajustan al ancho disponible.
   Causa del desborde: la columna «1fr» no podía ser más estrecha que el contenido mínimo de un destacado
   (dos campos de texto con su ancho intrínseco en fila) y estiraba todo el formulario hasta ~540 px. */
.ed-form input, .ed-form select, .ed-form textarea { width: 100%; max-width: 100%; min-width: 0; }
.ed-form input[type="file"] { width: auto; }
.ed-item { grid-template-columns: 64px minmax(0, 1fr); }
/* al enfocar un campo con el teclado del celular, que no quede tapado por la barra de guardado ni la navegación */
.ed-form input, .ed-form select, .ed-form textarea { scroll-margin: 96px 0 200px; }
.ed-thumbs button::after { content: ''; position: absolute; inset: -8px; } /* área táctil ≥ 44 px sin cambiar el aspecto */
.ed-toggle button { min-height: 44px; }
/* textos del comerciante: una palabra o enlace muy largo se parte en vez de ensanchar la página */
.pf, .ed-form, .ed-file { overflow-wrap: anywhere; }
@media (max-width: 360px) { .pf-act { padding-left: 1px; padding-right: 1px; } }
@media (max-width: 1024px) {
  .ed-toggle { display: flex; }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor[data-pane="edit"] .ed-preview, .editor[data-pane="preview"] .ed-form { display: none; }
  .ed-preview { position: static; max-height: none; }
  .ed-bar { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .ed-item-del { min-height: 44px; }
}
/* poca altura (teléfono en horizontal o teclado abierto): la barra de guardado deja de ser fija para no ocupar la pantalla */
@media (max-height: 500px) { .ed-bar { position: static; } .ed-form input, .ed-form select, .ed-form textarea { scroll-margin: 16px 0 110px; } }
@media (max-width: 480px) {
  /* destacados: el icono pasa arriba y detalle/precio se apilan si no caben */
  .ed-item { grid-template-columns: minmax(0, 1fr); }
  .ed-item select { grid-row: auto; min-height: 44px; padding: 8px 12px; font-size: 16px; }
  .ed-item .ed-row { flex-wrap: wrap; } .ed-item .ed-row > input { flex: 1 1 140px; }
  .ed-item-del { grid-column: 1; }
  .ed-form fieldset { padding: 16px 14px; }
  .ed-bar { padding: 10px 12px; gap: 8px; } .ed-status { flex: 1 0 100%; font-size: 13px; }
  .ed-bar .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; line-height: 1.15; text-align: center; }
}

/* Reportes de contenido */
.pf-report { margin: 18px 0 0; }
.pf-report-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 4px; background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; opacity: .85; }
.rep-dlg { width: min(92vw, 480px); max-height: 90vh; overflow: auto; border: 0; border-radius: var(--r-md, 16px); padding: 18px; background: var(--surface); color: var(--ink); }
.rep-dlg::backdrop { background: rgba(0, 0, 0, .45); }
.rep-dlg h2 { margin: 0 0 10px; font-size: 18px; }
.rep-dlg fieldset { border: 0; margin: 0 0 10px; padding: 0; }
.rep-dlg legend { font-weight: 600; margin-bottom: 6px; }
.rep-op { display: flex; gap: 10px; align-items: flex-start; min-height: 40px; padding: 4px 0; }
.rep-op input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.rep-dlg textarea { width: 100%; font: inherit; padding: 8px; border-radius: 8px; border: 1px solid currentColor; }

/* L02 · Privacidad y cuenta */
.priv-card a, #privacidad a { color: inherit; text-decoration: underline; }
.priv-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; min-height: 40px; line-height: 1.4; }
.priv-check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--ink); }
#privacidad h3 { margin: 14px 0 4px; font-size: 1rem; }
#privacidad p, #privacidad li { overflow-wrap: anywhere; }
.btn--danger { background: transparent; color: var(--closed); border: 2px solid var(--closed); }
