/* Ñapa — sistema visual. Blanco y neutros, amarillo como protagonista, tarjetas suaves. */
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/fuentes/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/fuentes/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url("/fuentes/figtree-latin-wght-normal.woff2") format("woff2"); }
:root {
  --amarillo: #ffd43b; --amarillo-suave: #fff3c4; --amarillo-osc: #f2b90c;
  --tinta: #16171b; --gris: #6b6f7b; --gris-claro: #a3a7b3; --linea: #e9eaef;
  --fondo: #f4f5f8; --papel: #ffffff;
  --coral: #f0562f; --coral-suave: #fde9e3; --verde: #18935a; --verde-suave: #e0f4ea;
  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --sombra: 0 1px 2px rgba(22, 23, 27, .04), 0 10px 28px rgba(22, 23, 27, .06);
  --sombra-alta: 0 2px 6px rgba(22, 23, 27, .06), 0 18px 44px rgba(22, 23, 27, .12);
  --logo: "Fredoka", "Arial Rounded MT Bold", "Figtree", sans-serif;
  --texto: "Figtree", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --nav-alto: 68px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 500 16px/1.45 var(--texto); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: 1.7rem; margin-bottom: 14px; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 10px; }
.gris { color: var(--gris); } .peq { font-size: .87rem; } .centro { text-align: center; }
.ico { flex: none; vertical-align: -4px; }

/* ---------- barras y navegación ---------- */
.barra { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linea);
  height: 60px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.marca { font: 400 1.55rem/1 var(--logo); color: var(--tinta); text-decoration: none; }
.barra-sub { font-weight: 700; font-size: .92rem; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-sup { display: none; gap: 6px; align-items: center; }
.nav-sup.ver { display: flex; gap: 16px; }
.nav-sup a { text-decoration: none; font-weight: 700; font-size: .93rem; }
.nav-sup:not(.ver) a { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; color: var(--gris); }
.nav-sup:not(.ver) a.on { background: var(--amarillo); color: var(--tinta); }
.nav-sup:not(.ver) a:hover { color: var(--tinta); }

.nav-inf { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--nav-alto) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--papel); border-top: 1px solid var(--linea); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; }
.nav-inf a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--gris-claro); font-size: .7rem; font-weight: 700; padding: 6px 0; }
.nav-inf a.on { color: var(--tinta); }
.nav-inf a.central { color: var(--tinta); }
.nav-inf a.central .ico { background: var(--amarillo); border-radius: 50%; padding: 13px; width: 54px; height: 54px; margin-top: -30px; box-shadow: var(--sombra-alta); border: 4px solid var(--papel); box-sizing: content-box; }
.zona-cliente, .zona-negocio { padding-bottom: calc(var(--nav-alto) + env(safe-area-inset-bottom) + 12px); }

.lienzo { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; }
.lienzo.ancho { max-width: 1080px; }
.lienzo.portada { max-width: none; padding: 0; }

/* Panel de negocios: lateral en escritorio */
.lateral { display: none; }
@media (min-width: 900px) {
  .nav-inf { display: none; }
  .zona-cliente, .zona-negocio { padding-bottom: 0; }
  .zona-cliente .nav-sup { display: flex; }
  .lienzo.app { max-width: 720px; }
  .panel { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
  .lateral { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--papel); border-right: 1px solid var(--linea); padding: 24px 16px 18px; }
  .lateral .marca { font-size: 1.8rem; padding: 0 10px; }
  .lateral-sub { color: var(--gris); font-weight: 700; font-size: .85rem; padding: 2px 10px 18px; margin: 0; }
  .lateral nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
  .lateral a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: var(--r-md); text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--gris); }
  .lateral a:hover { background: var(--fondo); color: var(--tinta); }
  .lateral a.on { background: var(--amarillo); color: var(--tinta); }
  .lateral-pie { border-top: 1px solid var(--linea); padding-top: 12px; }
  .lateral .mini { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 2px; font-size: .92rem; color: var(--tinta); }
  .lateral .mini > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .lateral .mini .logo { flex: none; }
  .lateral .mini b { font-weight: 800; overflow-wrap: anywhere; }
  .lateral .mini small { font-weight: 600; font-size: .78rem; color: var(--gris); }
  .lateral .mini > svg { flex: none; color: var(--gris-claro); }
  .lateral .mini:hover > svg { color: var(--tinta); }
  .barra.movil { display: none; }
  .panel-cuerpo .lienzo { padding: 34px 34px 60px; }
}

/* ---------- piezas base ---------- */
.caja { background: var(--papel); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sombra); margin-bottom: 16px; }
.caja > h2:first-child, .caja > h3:first-child { margin-bottom: 10px; }
.sec-cab { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 12px; }
.sec-cab a { font-size: .88rem; font-weight: 700; color: var(--coral); text-decoration: none; }
.cab-pag { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cab-pag h1 { margin: 0; }
.rejilla { display: grid; gap: 16px; }
@media (min-width: 720px) { .rejilla.dos { grid-template-columns: 1fr 1fr; } .rejilla.tres { grid-template-columns: repeat(3, 1fr); } .rejilla > .caja, .rejilla > .tj, .rejilla > .promo, .rejilla > .ficha { margin-bottom: 0; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--tinta); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 22px; font: 700 1rem var(--texto); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease; }
.btn:hover { background: #000; } .btn:active { transform: scale(.97); }
.btn.amarillo { background: var(--amarillo); color: var(--tinta); } .btn.amarillo:hover { background: var(--amarillo-osc); }
.btn.sec { background: var(--papel); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); } .btn.sec:hover { background: var(--fondo); }
.btn.coral { background: var(--coral); } .btn.coral:hover { background: #d4441f; }
.btn.bloque { display: flex; width: 100%; }
.btn.chico { padding: 8px 15px; font-size: .88rem; }
.acciones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pila > * + * { margin-top: 10px; }

label { display: block; font-weight: 700; font-size: .9rem; margin: 14px 0 6px; }
input[type=text], input[type=url], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=month], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--linea); border-radius: var(--r-md); font: 500 1rem var(--texto); color: var(--tinta); background: var(--papel); transition: border-color .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tinta); }
input::placeholder, textarea::placeholder { color: var(--gris-claro); }
textarea { min-height: 84px; resize: vertical; }
.ayuda { font-size: .84rem; color: var(--gris); margin: 5px 0 0; }
.acepto { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; font-size: .9rem; }
.acepto input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--tinta); flex: none; }
.grande { font-size: 1.55rem !important; font-weight: 800 !important; letter-spacing: 2px; text-align: center; }
/* Dos columnas solo si cada una tiene espacio de sobra; en cajas angostas los campos se apilan. */
.dos-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(230px, calc(50% - 7px)), 1fr)); gap: 0 14px; }
@media (max-width: 560px) { .dos-col { grid-template-columns: 1fr; } }
.buscador { position: relative; }
.buscador .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gris-claro); }
.buscador input { padding-left: 44px; border-radius: 999px; background: var(--papel); border-color: transparent; box-shadow: var(--sombra); }

.toast { position: fixed; z-index: 60; top: 14px; left: 50%; transform: translateX(-50%); max-width: min(92vw, 460px); background: var(--tinta); color: #fff; border-radius: var(--r-md);
  padding: 12px 16px; display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .93rem; box-shadow: var(--sombra-alta); animation: toast 5.5s ease forwards; }
.toast .ico { color: var(--amarillo); } .toast.error { background: var(--coral); } .toast.error .ico { color: #fff; }
@keyframes toast { 0% { opacity: 0; translate: 0 -12px; } 6%, 88% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -12px; visibility: hidden; } }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--amarillo-suave); white-space: nowrap; }
.chip.ok { background: var(--verde-suave); color: var(--verde); } .chip.gris { background: var(--fondo); color: var(--gris); } .chip.coral { background: var(--coral-suave); color: var(--coral); }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -16px 6px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtros a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .88rem; background: var(--papel); box-shadow: var(--sombra); }
.filtros a.on { background: var(--tinta); color: #fff; }

.avatar, .logo { border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; }
span.avatar { background: var(--amarillo); font-weight: 800; }
.logo { border-radius: 30%; } span.logo { background: var(--amarillo-suave); line-height: 1; }

.vacio { text-align: center; padding: 34px 18px; color: var(--gris); background: var(--papel); border-radius: var(--r-lg); box-shadow: var(--sombra); }
.vacio .ico { color: var(--gris-claro); } .vacio strong { display: block; color: var(--tinta); font-size: 1.05rem; margin: 8px 0 4px; } .vacio p { margin-bottom: 14px; }

/* ---------- tarjeta de sellos (pieza firma) ---------- */
.tj { background: var(--papel); border-radius: var(--r-lg); box-shadow: var(--sombra); padding: 16px 18px 16px; margin-bottom: 16px; position: relative; }
.tj-cab { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.tj-nombre { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-cuenta { font-weight: 800; background: var(--amarillo-suave); padding: 4px 11px; border-radius: 999px; font-size: .86rem; }
.tj-corte { border-top: 2px dashed var(--linea); margin: 14px -18px; position: relative; }
.tj-corte::before, .tj-corte::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--fondo); }
.tj-corte::before { left: -9px; } .tj-corte::after { right: -9px; }
.sellos { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 8px; margin-bottom: 14px; }
.sello { aspect-ratio: 1; max-width: 62px; width: 100%; justify-self: center; border-radius: 50%; border: 2px dashed #d5d8e0; color: var(--gris-claro); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }
.sello.on { border: 0; background: var(--amarillo); color: var(--tinta); font: 700 1.4rem/1 var(--logo); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08); }
.sello.nuevo { animation: sellar .5s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes sellar { from { scale: 2; opacity: 0; rotate: -18deg; } 55% { opacity: 1; } to { scale: 1; rotate: 0deg; } }
.tj-pie { margin: 0; font-size: .93rem; color: var(--gris); } .tj-pie b { color: var(--tinta); }
.tj-listo { display: flex; gap: 9px; align-items: center; background: var(--tinta); color: #fff; padding: 11px 14px; border-radius: var(--r-md); font-size: .92rem; } .tj-listo .ico { color: var(--amarillo); }

/* ---------- comercios y promociones ---------- */
.ficha { display: block; background: var(--papel); border-radius: var(--r-lg); box-shadow: var(--sombra); overflow: hidden; text-decoration: none; margin-bottom: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.ficha:hover { transform: translateY(-2px); box-shadow: var(--sombra-alta); }
.ficha-foto { display: flex; width: 100%; height: 124px; object-fit: cover; }
.ficha-foto.sin { background: var(--amarillo-suave); align-items: center; justify-content: center; font-size: 3rem; }
.ficha-cuerpo { display: flex; gap: 11px; align-items: center; padding: 12px 16px 6px; }
.ficha-txt { min-width: 0; } .ficha-txt strong { display: block; font-weight: 800; } .ficha-txt small { color: var(--gris); font-size: .84rem; }
.ficha-premio { display: flex; gap: 7px; align-items: center; padding: 4px 16px 15px; font-size: .88rem; color: var(--gris); } .ficha-premio .ico { color: var(--amarillo-osc); }
.carril { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carril::-webkit-scrollbar { display: none; }
.carril > * { flex: 0 0 min(82%, 320px); min-width: 0; scroll-snap-align: start; margin-bottom: 0; }

.promo { background: var(--papel); border-radius: var(--r-lg); box-shadow: var(--sombra); padding: 16px 18px; margin-bottom: 16px; position: relative; }
.promo-cab { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: .88rem; color: var(--gris); }
.promo > .chip { position: absolute; right: 16px; top: 18px; }
.promo h3 { margin-bottom: 6px; } .promo p { color: var(--gris); font-size: .94rem; }
.promo details { font-size: .9rem; margin-bottom: 8px; } .promo summary { cursor: pointer; font-weight: 700; }
.promo-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.promo-pie p { margin: 0; }
.vence { color: var(--coral); font-weight: 700; font-size: .86rem; display: inline-flex; align-items: center; gap: 5px; }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cats a { background: var(--papel); border-radius: var(--r-lg); box-shadow: var(--sombra); padding: 14px 8px; text-align: center; text-decoration: none; font-weight: 700; font-size: .82rem; line-height: 1.2; }
.cats a i { display: block; font-style: normal; font-size: 1.9rem; margin-bottom: 4px; }

/* ---------- app del cliente ---------- */
.saludo { background: var(--amarillo); margin: -20px -16px 0; padding: 26px 20px 74px; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.saludo-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.saludo h1 { font-size: 1.55rem; margin: 0; } .saludo h1 small { display: block; font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.saldo { display: flex; gap: 10px; margin-top: 18px; }
.saldo div { background: rgba(255, 255, 255, .55); border-radius: var(--r-md); padding: 10px 14px; flex: 1; }
.saldo b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1; } .saldo span { font-size: .8rem; font-weight: 700; }
.atajos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: -52px 0 6px; position: relative; }
.atajos a { background: var(--papel); border-radius: var(--r-lg); box-shadow: var(--sombra-alta); padding: 14px 4px 12px; text-align: center; text-decoration: none; font-weight: 700; font-size: .78rem; line-height: 1.2; transition: transform .15s ease; }
.atajos a:hover { transform: translateY(-3px); }
.atajos .ico { display: block; margin: 0 auto 7px; background: var(--amarillo-suave); border-radius: 14px; padding: 9px; width: 42px; height: 42px; }
@media (min-width: 900px) { .saludo { margin: 0; border-radius: var(--r-xl); } .atajos { margin-left: 18px; margin-right: 18px; } }

.movs { list-style: none; margin: 0; padding: 0; }
.movs li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linea); } .movs li:last-child { border: 0; padding-bottom: 0; } .movs li:first-child { padding-top: 0; }
.mov-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--fondo); display: flex; align-items: center; justify-content: center; flex: none; }
.mov-ico.premio { background: var(--amarillo-suave); } .mov-ico.promo { background: var(--coral-suave); color: var(--coral); } .mov-ico.bienvenida { background: var(--verde-suave); color: var(--verde); }
.mov-txt { flex: 1; min-width: 0; } .mov-txt strong { display: block; font-size: .93rem; font-weight: 700; } .mov-txt small { color: var(--gris); font-size: .83rem; }
.movs time { color: var(--gris); font-size: .8rem; white-space: nowrap; }

.pase { background: var(--amarillo); border-radius: var(--r-xl); padding: 26px 22px 22px; text-align: center; box-shadow: var(--sombra-alta); }
.pase .marca { font-size: 1.9rem; display: block; margin-bottom: 14px; }
.pase-qr { background: #fff; border-radius: var(--r-lg); padding: 16px; display: inline-block; line-height: 0; } .pase-qr svg { width: min(62vw, 250px); height: auto; aspect-ratio: 1; }
.pase-quien { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 18px; text-align: left; }
.pase-quien strong { display: block; font-size: 1.1rem; } .pase-quien code { font: 700 .95rem var(--texto); letter-spacing: 2px; }
.perfil-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; } .perfil-cab strong { display: block; font-size: 1.2rem; font-weight: 800; }
.portada-com { height: 170px; border-radius: var(--r-lg); object-fit: cover; width: 100%; display: flex; background: var(--amarillo-suave); align-items: center; justify-content: center; font-size: 4rem; }
.com-cab { display: flex; gap: 14px; align-items: center; margin: -28px 12px 14px; position: relative; } .com-cab .logo { box-shadow: 0 0 0 4px var(--fondo); background-color: var(--papel); }
.com-cab h1 { margin: 26px 0 0; font-size: 1.4rem; }
.datos { list-style: none; margin: 0; padding: 0; } .datos li { display: flex; gap: 10px; padding: 7px 0; font-size: .94rem; } .datos .ico { color: var(--gris); margin-top: 1px; }
.subir { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .subir img, .subir .previa { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: var(--fondo); }
.subir.ancha img, .subir.ancha .previa { width: 150px; height: 84px; } .subir input[type=file] { font: inherit; font-size: .88rem; max-width: 100%; }

/* ---------- panel de negocios ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 1100px) { .kpis.seis { grid-template-columns: repeat(6, 1fr); } }
.kpi { background: var(--papel); border-radius: var(--r-lg); box-shadow: var(--sombra); padding: 16px; }
.kpi b { display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; } .kpi span { font-size: .84rem; color: var(--gris); font-weight: 600; }
.kpi small { display: block; margin-top: 6px; font-size: .78rem; font-weight: 800; color: var(--verde); } .kpi small.baja { color: var(--coral); }
.destacado { background: var(--amarillo); border-radius: var(--r-lg); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.destacado strong { font-size: 1.15rem; font-weight: 800; display: block; } .destacado p { margin: 2px 0 0; font-size: .92rem; }
.tabla-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--linea); vertical-align: middle; } tr:last-child td { border: 0; }
th { font-size: .8rem; color: var(--gris); font-weight: 700; } td a { font-weight: 700; }
.persona { display: flex; align-items: center; gap: 10px; text-decoration: none; } .persona small { display: block; color: var(--gris); font-weight: 500; }
.barras { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 22px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar i { width: 100%; max-width: 46px; background: var(--amarillo); border-radius: 8px 8px 3px 3px; display: block; } .bar:last-child i { background: var(--tinta); }
.bar b { font-size: .78rem; margin-bottom: 4px; white-space: nowrap; } .bar span { font-size: .72rem; color: var(--gris); margin-top: 6px; white-space: nowrap; }
.comparar { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 18px; align-items: baseline; font-size: .94rem; } .comparar b { text-align: right; } .comparar .cab { font-size: .8rem; color: var(--gris); font-weight: 700; text-align: right; }
.lista-mas a { display: flex; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1px solid var(--linea); text-decoration: none; font-weight: 700; } .lista-mas a:last-child { border: 0; } .lista-mas a .ico:last-child { margin-left: auto; color: var(--gris-claro); }
.escaner { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 1; max-width: 360px; margin: 0 auto 12px; } .escaner video { width: 100%; height: 100%; object-fit: cover; }
.escaner::after { content: ""; position: absolute; inset: 16%; border: 3px solid var(--amarillo); border-radius: 18px; }
.qr { text-align: center; } .qr svg { width: 240px; max-width: 100%; height: auto; }

/* ---------- página pública ---------- */
.heroe { background: var(--amarillo); padding: 44px 20px 0; overflow: hidden; }
.heroe-in { max-width: 1040px; margin: 0 auto; display: grid; gap: 30px; align-items: end; }
.heroe h1 { font: 700 clamp(2.9rem, 12vw, 4.9rem)/.95 var(--logo); letter-spacing: -.01em; margin-bottom: 16px; }
.heroe p { font-size: 1.12rem; max-width: 36ch; }
.heroe .muestra { max-width: 360px; margin: 0 auto -26px; rotate: -3deg; width: 100%; } .heroe .muestra .tj { box-shadow: var(--sombra-alta); }
.heroe .acciones { margin-bottom: 8px; }
@media (min-width: 820px) { .heroe { padding-top: 70px; } .heroe-in { grid-template-columns: 1.15fr .85fr; } .heroe-txt { padding-bottom: 70px; } }
.seccion { max-width: 1040px; margin: 0 auto; padding: 58px 20px 0; } .seccion > h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); margin-bottom: 8px; } .seccion > p { color: var(--gris); max-width: 56ch; margin-bottom: 22px; }
.pasos { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 14px; } @media (min-width: 720px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.pasos li { counter-increment: p; background: var(--papel); border-radius: var(--r-lg); box-shadow: var(--sombra); padding: 20px; } .pasos li::before { content: counter(p); display: flex; width: 38px; height: 38px; border-radius: 50%; background: var(--amarillo); align-items: center; justify-content: center; font: 700 1.15rem var(--logo); margin-bottom: 12px; }
.pasos strong { display: block; font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; } .pasos span { color: var(--gris); font-size: .94rem; }
.negocios { background: var(--tinta); color: #fff; border-radius: var(--r-xl); padding: 34px 24px; margin: 58px 12px 0; } .negocios-in { max-width: 990px; margin: 0 auto; }
.negocios h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); margin-bottom: 8px; } .negocios > .negocios-in > p { color: #c9ccd6; max-width: 56ch; }
.ventajas { display: grid; gap: 12px; margin: 24px 0; } @media (min-width: 720px) { .ventajas { grid-template-columns: 1fr 1fr; } }
.ventajas div { background: rgba(255, 255, 255, .07); border-radius: var(--r-lg); padding: 18px; } .ventajas .ico { color: var(--amarillo); margin-bottom: 8px; } .ventajas strong { display: block; font-weight: 800; margin-bottom: 3px; } .ventajas span { color: #c9ccd6; font-size: .93rem; }
.pie { max-width: 1040px; margin: 0 auto; padding: 44px 20px 40px; color: var(--gris); font-size: .88rem; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; } .pie a { font-weight: 700; }

/* ---------- afiche imprimible ---------- */
/* ---------- afiche v2: hoja A5 con la marca Ñapa; cada negocio pone su nombre, su logotipo y su premio ---------- */
.afiche { position: relative; overflow: hidden; width: 148mm; height: 210mm; max-width: none; margin: 0 auto; padding: 7mm 11mm 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: radial-gradient(120% 70% at 50% 38%, #fffdf7 0%, #fff4d2 100%); border-radius: 6mm; color: var(--tinta); box-shadow: 0 10px 40px rgba(22,23,27,.12); }
.afiche, .afiche * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.afiche > * { position: relative; z-index: 1; }
.afiche .af-mancha { position: absolute; z-index: 0; background: linear-gradient(160deg, #ffdc52, var(--amarillo-osc)); }
.afiche .af-mancha.uno { width: 96mm; height: 70mm; left: -52mm; top: -30mm; border-radius: 46% 54% 62% 38% / 50% 46% 54% 50%; transform: rotate(-14deg); }
.afiche .af-mancha.dos { width: 110mm; height: 130mm; right: -74mm; top: 118mm; border-radius: 58% 42% 40% 60% / 44% 56% 44% 56%; transform: rotate(10deg); }
.afiche .af-mancha.tres { width: 70mm; height: 80mm; left: -50mm; top: 150mm; border-radius: 50%; }
.afiche .marca { display: block; width: 66mm; height: 26mm; margin: 0 auto; background-image: url(/arte/logo-negro.svg); background-position: center; }
.afiche .lema { font: 600 12.5pt var(--logo); margin: 0 0 5mm; }
.afiche .af-titular { font: 700 25pt/1.08 var(--logo); letter-spacing: -.012em; margin: 0 0 6mm; }
.afiche .af-titular span { background: radial-gradient(60% 100% at 50% 100%, var(--amarillo-osc) 0 99%, transparent 100%) bottom / 100% 1.6mm no-repeat; padding-bottom: 1.4mm; }
.afiche .af-tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; width: 100%; margin: 0 0 5mm; }
.afiche .af-tres div { background: rgba(255,255,255,.9); border-radius: 7mm; padding: 3.5mm 2mm 4mm; box-shadow: 0 2mm 6mm rgba(190,140,0,.16); font: 700 11pt/1.12 var(--logo); }
.afiche .af-tres img { display: block; height: 19mm; width: auto; max-width: 86%; margin: 0 auto 2mm; object-fit: contain; }
.afiche .af-negocio { display: flex; align-items: center; gap: 4mm; width: 88%; margin: 0 0 4mm; padding: 3mm 6mm 3.2mm 4.5mm; background: rgba(255,255,255,.92); border: .5mm solid var(--amarillo); border-radius: 9mm; text-align: left; box-shadow: 0 2mm 6mm rgba(190,140,0,.14); }
.afiche .af-logo { width: 15mm; height: 15mm; border-radius: 4mm; object-fit: cover; flex: none; }
.afiche .af-negocio svg { width: 13mm; height: 13mm; flex: none; }
.afiche .af-negocio > div { min-width: 0; font: 600 10.5pt/1.2 var(--texto); }
.afiche h1 { font: 700 14.5pt/1.1 var(--logo); margin: 0 0 .6mm; overflow-wrap: anywhere; }
.afiche .af-negocio b { font-weight: 800; overflow-wrap: anywhere; }
.afiche .af-base { margin-top: auto; width: 100%; padding-bottom: 5mm; display: flex; flex-direction: column; align-items: center; }
.afiche .af-base::before { content: ""; position: absolute; z-index: -1; left: -26mm; right: -26mm; bottom: 0; height: 43mm; background: var(--tinta); border-radius: 50% 50% 0 0 / 26mm 26mm 0 0; }
.afiche .codigo { position: relative; background: #fff; display: inline-block; padding: 3.2mm; border-radius: 5mm; line-height: 0; box-shadow: 0 2mm 7mm rgba(22,23,27,.2); }
.afiche .codigo::before { content: ""; position: absolute; inset: -2.4mm; border: 1.5mm solid var(--amarillo); border-radius: 7.5mm;
  -webkit-mask: linear-gradient(#000 0 0) top left / 13mm 13mm no-repeat, linear-gradient(#000 0 0) top right / 13mm 13mm no-repeat, linear-gradient(#000 0 0) bottom left / 13mm 13mm no-repeat, linear-gradient(#000 0 0) bottom right / 13mm 13mm no-repeat;
  mask: linear-gradient(#000 0 0) top left / 13mm 13mm no-repeat, linear-gradient(#000 0 0) top right / 13mm 13mm no-repeat, linear-gradient(#000 0 0) bottom left / 13mm 13mm no-repeat, linear-gradient(#000 0 0) bottom right / 13mm 13mm no-repeat; }
.afiche .codigo svg { width: 44mm; height: 44mm; display: block; }
.afiche .af-llamado { margin-top: 5mm; background: linear-gradient(180deg, #ffdc52, var(--amarillo)); color: var(--tinta); border-radius: 6mm; padding: 2.4mm 8mm 2.8mm; font: 700 13pt/1.12 var(--logo); }
.afiche-marco { overflow-x: auto; padding: 4px 0 24px; }
@media print { @page { margin: 8mm; } .afiche { zoom: 1.15; border-radius: 0; box-shadow: none; break-inside: avoid; } .afiche-marco { overflow: visible; padding: 0; } }
/* fin afiche v2 */

@media print { .barra, .nav-inf, .lateral, .toast, .no-imprimir { display: none !important; } body { background: #fff; padding: 0 !important; } .panel { display: block; } .lienzo { max-width: none; padding: 0; } .caja, .kpi { box-shadow: none; border: 1px solid #ccc; } .bar i, .kpi { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; } .toast { animation: none; } }

/* ---------- avisos y recomendaciones ---------- */
.campana { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--tinta); margin-left: auto; flex: none; }
.zona-cliente .nav-sup + .campana { margin-left: 8px; }
.campana:hover, .campana.on { background: var(--amarillo-suave); }
.campana i { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font: 800 .68rem/18px var(--texto, inherit); font-style: normal; text-align: center; }
.avisos { padding: 6px 18px; }
.avisos a { display: flex; gap: 12px; padding: 13px 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--linea); }
.avisos a:last-child { border-bottom: 0; }
.av-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fondo); }
.avisos a.nuevo .av-ic { background: var(--amarillo); }
.av-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.av-txt span { color: var(--gris); font-size: .92rem; }
.av-txt small { color: var(--gris); font-size: .78rem; }
.push { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.push .ayuda { margin: 3px 0 0; }
.push .btn { flex: none; }
.reco { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.reco .chip { align-self: flex-start; white-space: normal; }
[hidden] { display: none !important; }

/* ---------- vitrina, carrusel, intereses y guía del negocio ---------- */
.carrusel { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--amarillo-suave); }
.car-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: -3px; }
.car-pista::-webkit-scrollbar { display: none; }
.car-foto { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; height: 230px; }
.car-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-foto figcaption { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; pointer-events: none; }
.car-foto figcaption strong, .car-foto figcaption > span:not(.chip) { background: rgba(22, 23, 27, .78); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .84rem; font-weight: 700; }
.car-foto figcaption strong:empty { display: none; }
.car-foto figcaption .chip { background: var(--amarillo); }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--sombra); display: grid; place-items: center; cursor: pointer; color: var(--tinta); }
.car-btn.ant { left: 10px; } .car-btn.sig { right: 10px; }
.car-btn:hover { background: #fff; }
.car-puntos { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 5px; }
.car-puntos i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(22, 23, 27, .25); transition: width .2s, background .2s; }
.car-puntos i.on { width: 18px; border-radius: 999px; background: var(--amarillo); }
@media (min-width: 760px) { .car-foto { height: 320px; } }
.promo.con-foto { padding-top: 0; overflow: hidden; }
.promo-foto { display: block; width: calc(100% + 36px); margin: 0 -18px 14px; height: 150px; object-fit: cover; }
.promo.con-foto > .chip:not(.motivo) { top: 12px; right: 12px; }
.chip.motivo { position: static !important; display: inline-flex; margin: 8px 0 0; }
.promo-cab + .chip.motivo, .promo .chip + .chip.motivo { margin-left: 0; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.foto-adm { background: var(--papel); border-radius: var(--r-lg); box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; }
.foto-adm.fijada { box-shadow: 0 0 0 3px var(--amarillo), var(--sombra); }
.foto-adm img { width: 100%; height: 150px; object-fit: cover; display: block; }
.foto-info { padding: 10px 14px 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.foto-adm .acciones { padding: 0 14px 14px; margin-top: 10px; }
.lista-ayuda { margin: 0; padding-left: 18px; color: var(--gris); font-size: .93rem; } .lista-ayuda li { margin-bottom: 6px; }
.gustos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.gusto { cursor: pointer; margin: 0; }
.gusto input { position: absolute; opacity: 0; pointer-events: none; }
.gusto span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--fondo); font-weight: 700; font-size: .9rem; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.gusto input:checked + span { background: var(--amarillo); border-color: var(--tinta); }
.gusto input:focus-visible + span { outline: 2px solid var(--tinta); outline-offset: 2px; }
.pregunta { background: var(--amarillo-suave); margin-top: 18px; }
.guia-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guia-cab h2 { margin: 0; }
.guia-barra { height: 8px; border-radius: 999px; background: var(--fondo); margin: 12px 0 6px; overflow: hidden; }
.guia-barra i { display: block; height: 100%; background: var(--amarillo); border-radius: 999px; }
.guia ul { list-style: none; margin: 0; padding: 0; }
.guia li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linea); }
.guia li:last-child { border-bottom: 0; }
.guia li > span:nth-child(2) { flex: 1; font-weight: 600; }
.guia li.hecho > span:nth-child(2) { color: var(--gris); text-decoration: line-through; font-weight: 500; }
.guia-marca { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--linea); display: grid; place-items: center; }
.guia li.hecho .guia-marca { background: var(--verde); border-color: var(--verde); color: #fff; }
.gusto { position: relative; }

/* ---------- logo e ilustraciones ---------- */
.marca { display: inline-block; flex: none; width: 92px; height: 38px; font-size: 0 !important; color: transparent; background: url(/arte/logo.svg) left center / contain no-repeat; }
@media (min-width: 900px) { .lateral .marca { width: 124px; height: 52px; padding: 0; margin: 0 0 2px 8px; } }
.pase .marca { display: block; width: 132px; height: 55px; margin: 0 auto 14px; background-image: url(/arte/logo-negro.svg); background-position: center; }
.heroe-arte { display: block; width: min(100%, 400px); height: auto; margin: 0 auto -8px; }
@media (min-width: 820px) { .heroe-arte { width: min(100%, 460px); margin-bottom: 0; align-self: end; } }
.pasos li img { display: block; height: 150px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 14px; }
.negocios-arte { display: block; width: min(72%, 300px); height: auto; margin: -70px auto 10px; }
@media (min-width: 860px) { .negocios-arte { float: right; width: 300px; margin: -76px 0 0 24px; } }
.vacio-arte { display: block; height: 120px; width: auto; max-width: 80%; object-fit: contain; margin: 0 auto 6px; }
.ficha-foto.sin { background: var(--amarillo-suave); } .ficha-foto.sin img { height: 104px; width: auto; }
span.logo { overflow: hidden; } span.logo img { width: 82%; height: 82%; object-fit: contain; }
.portada-com img { height: 150px; width: auto; }
.mini-cat { width: 22px; height: 22px; object-fit: contain; vertical-align: -5px; margin: -2px 0; }
.av-ic img { width: 28px; height: 28px; object-fit: contain; }

/* Filtros: cada opción conserva su tamaño; en pantallas anchas pasan a varias líneas en vez de cortarse. */
.filtros a { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.filtros .mini-cat { margin: -3px 0; vertical-align: middle; }
@media (min-width: 720px) { .filtros { flex-wrap: wrap; overflow: visible; margin: 0 0 6px; padding: 2px 0 10px; } }

/* Títulos con la letra redondeada del logo. */
h1, .seccion > h2, .negocios h2, .sec-cab h2 { font-family: var(--logo); font-weight: 600; letter-spacing: -.005em; }
.heroe h1 { font-weight: 700; }

/* ---------- menú, pedido por WhatsApp, visor de fotos y ubicación ---------- */
.menu { margin-top: 6px; }
.menu-sec { padding: 6px 18px; } .menu-sec h3 { margin: 12px 0 2px; font-size: 1.02rem; }
.menu-sec ul { list-style: none; margin: 0; padding: 0; }
.plato { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.plato:last-child { border-bottom: 0; }
.plato > img { width: 62px; height: 62px; border-radius: 14px; object-fit: cover; flex: none; cursor: zoom-in; }
.plato-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plato-txt span { color: var(--gris); font-size: .88rem; } .plato-txt b { font-weight: 800; font-size: .95rem; }
.cant { flex: none; display: flex; align-items: center; gap: 2px; background: var(--fondo); border-radius: 999px; padding: 3px; }
.cant button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--papel); box-shadow: var(--sombra); font: 800 1.15rem/1 inherit; cursor: pointer; color: var(--tinta); }
.cant [data-mas] { background: var(--amarillo); }
.cant output { min-width: 22px; text-align: center; font-weight: 800; }
.plato.elegido .plato-txt strong { color: var(--tinta); } .plato.elegido { background: linear-gradient(90deg, var(--amarillo-suave), transparent 70%); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.pedido { position: sticky; bottom: calc(var(--nav-alto) + env(safe-area-inset-bottom) + 10px); z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--tinta); color: #fff; border-radius: var(--r-lg); padding: 12px 14px 12px 18px; box-shadow: var(--sombra-alta); margin-top: 12px; }
.zona-publica .pedido { bottom: 12px; }
@media (min-width: 900px) { .pedido { bottom: 16px; } }
.pedido div { display: flex; flex-direction: column; min-width: 0; } .pedido span { font-size: .86rem; color: #c9ccd6; }
.pedido .btn { background: var(--amarillo); color: var(--tinta); flex: none; }
.carrusel img, .promo-foto { cursor: zoom-in; }
.visor { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; display: none; align-items: center; justify-content: center; }
.visor[open] { display: flex; }
.visor::backdrop { background: rgba(10, 10, 14, .9); }
.visor img { max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 12px; cursor: default; }
.visor button { position: fixed; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font: 400 1.7rem/1 inherit; cursor: pointer; z-index: 1; }
.ubicar { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--fondo); } .ubicar > label { margin-top: 0; }
.cerca { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; } .cerca .btn.on { background: var(--tinta); color: #fff; }
.ficha-cuerpo { position: relative; } .ficha-dist { margin-left: auto; flex: none; }
.sin-foto { height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--fondo); color: var(--gris); }
.pedido strong { white-space: nowrap; } .pedido .btn { padding-left: 14px; padding-right: 14px; white-space: nowrap; }

/* El QR ocupa su caja, pero los iconos de los botones dentro de ella conservan su tamaño. */
.qr .btn .ico { width: 18px; height: 18px; flex: none; }
.qr .btn { margin-top: 12px; }
/* Subir imágenes: recuadro de vista previa con borde punteado y botón propio en vez del control del navegador. */
.subir { gap: 14px 16px; padding: 12px; border-radius: 18px; background: var(--fondo); }
.subir .previa { border: 2px dashed #cfd2da; background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9eaa' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v14H4z'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='m4 17 5-4 4 3 3-2 4 3'/%3E%3C/svg%3E") center / 30px no-repeat; }
.subir img { box-shadow: var(--sombra); background: var(--papel); }
.subir input[type=file] { flex: 1; min-width: 0; color: var(--gris); font-size: .85rem; cursor: pointer; }
.subir input[type=file]::file-selector-button { font: inherit; font-weight: 700; font-size: .88rem; color: var(--tinta); background: var(--papel); border: 0; border-radius: 999px; padding: 9px 16px; margin-right: 12px; box-shadow: var(--sombra); cursor: pointer; }
.subir input[type=file]::file-selector-button:hover { background: var(--amarillo); }

/* ---------- Mi negocio: subsecciones, ubicación e imágenes ---------- */
h3.sub { margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--linea); font-size: 1.02rem; }
.ubicar { margin-top: 0; padding: 14px; }
.ubicar-cab { display: flex; align-items: flex-start; gap: 10px; }
.ubicar-cab > .ico { flex: none; margin-top: 2px; }
.ubicar-cab > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ubicar-cab span:not(.chip) { color: var(--gris); font-size: .88rem; }
.ubicar-cab .chip { flex: none; }
.ubicar-acc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; }
.enlace { border: 0; background: none; padding: 6px 4px; font: inherit; font-weight: 700; font-size: .88rem; color: var(--gris); text-decoration: underline; cursor: pointer; }
.enlace:hover { color: var(--coral); }
.imagenes label { margin-top: 0; } .imagenes .ayuda { margin-top: 6px; }
.oculto-accesible { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.subir { position: relative; flex-wrap: nowrap; }
.subir-control { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.subir-nombre { font-size: .8rem; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.subir img, .subir .previa { flex: none; }
@media (max-width: 420px) { .subir.ancha img, .subir.ancha .previa { width: 120px; height: 68px; } }
.rejilla > *, .dos-col > * { min-width: 0; }
.subir { flex-wrap: wrap; }
.subir-control { flex: 1 1 120px; }
.ficha { position: relative; } .ficha-cuerpo { position: static; }
.ficha-dist { position: absolute; top: 10px; right: 10px; margin: 0; background: var(--papel); box-shadow: var(--sombra); }

/* ---------- Descubrir: productos y estrellas ---------- */
.segmento { display: inline-flex; background: var(--papel); border-radius: 999px; padding: 4px; box-shadow: var(--sombra); margin-bottom: 14px; }
.segmento a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--gris); }
.segmento a.on { background: var(--amarillo); color: var(--tinta); }
.producto { background: var(--papel); border-radius: var(--r-lg); box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.producto-foto { display: block; height: 150px; background: var(--amarillo-suave); }
.producto-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.producto-foto .sin { display: flex; height: 100%; align-items: center; justify-content: center; } .producto-foto .sin img { width: auto; height: 110px; object-fit: contain; }
.producto-cuerpo { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.producto-cuerpo > strong { font-size: 1.02rem; } .producto-cuerpo > b { font-weight: 800; }
.producto-negocio { display: inline-flex; align-items: center; gap: 5px; color: var(--gris); font-size: .86rem; font-weight: 700; text-decoration: none; }
.producto-negocio:hover { color: var(--tinta); }
.producto-cuerpo p { margin: 4px 0 0; }
.estrellas { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.estrellas i { --p: 0%; display: inline-block; width: 86px; height: 17px; background: linear-gradient(90deg, var(--amarillo-osc) var(--p), #dfe1e7 var(--p)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath id='e' d='m10 1 2.6 5.6 6 .8-4.4 4.2 1.1 6L10 14.7 4.7 17.6l1.1-6L1.4 7.4l6-.8z'/%3E%3Cuse href='%23e' x='20'/%3E%3Cuse href='%23e' x='40'/%3E%3Cuse href='%23e' x='60'/%3E%3Cuse href='%23e' x='80'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath id='e' d='m10 1 2.6 5.6 6 .8-4.4 4.2 1.1 6L10 14.7 4.7 17.6l1.1-6L1.4 7.4l6-.8z'/%3E%3Cuse href='%23e' x='20'/%3E%3Cuse href='%23e' x='40'/%3E%3Cuse href='%23e' x='60'/%3E%3Cuse href='%23e' x='80'/%3E%3C/svg%3E") center / contain no-repeat; }
.estrellas small { color: var(--gris); } .estrellas.sin small { font-size: .84rem; }
.calificar { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--linea); width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
/* Las estrellas van de 5 a 1 en el código y se muestran al revés: así, al pasar el cursor, se iluminan todas las anteriores. */
.puntuar { display: inline-flex; flex-direction: row-reverse; }
.puntuar button { border: 0; background: none; font-size: 1.7rem; line-height: 1; padding: 2px 3px; color: #d5d8df; cursor: pointer; }
.puntuar button.on, .puntuar button:hover, .puntuar button:hover ~ button, .puntuar button:focus-visible, .puntuar button:focus-visible ~ button { color: var(--amarillo-osc); }
.carril.productos > * { flex-basis: min(68%, 240px); }
.plato-txt .nota { color: var(--gris); font-size: .82rem; font-weight: 700; }

/* ---------- perfil: foto arriba ---------- */
.perfil-top { display: flex; align-items: center; gap: 18px; }
.foto-perfil { position: relative; flex: none; margin: 0; cursor: pointer; border-radius: 50%; line-height: 0; }
.foto-perfil .avatar { width: 92px; height: 92px; box-shadow: 0 0 0 4px var(--amarillo-suave); }
.foto-perfil .camara { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--tinta); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--papel); }
.foto-perfil:hover .camara, .foto-perfil:focus-within .camara { background: var(--amarillo); color: var(--tinta); }
.perfil-quien { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.perfil-quien strong { font-size: 1.25rem; font-weight: 800; }
.perfil-quien .chip { margin-top: 6px; white-space: normal; }

/* Perfil del negocio: el logotipo monta sobre la imagen, pero el nombre empieza con aire por debajo de ella. */
.com-cab { align-items: flex-start; margin: -30px 12px 16px; }
.com-cab > div { padding-top: 42px; min-width: 0; }
.com-cab h1 { margin: 0 0 2px; line-height: 1.15; }
.com-cab .logo { box-shadow: 0 0 0 4px var(--papel), var(--sombra); }

/* ---------- subir imágenes: vista previa con la forma real y nota de tamaño ---------- */
.subir[data-forma] { align-items: flex-start; }
.subir[data-forma] img, .subir[data-forma] .previa { aspect-ratio: var(--prop, 1); height: auto; object-fit: cover; }
.subir[data-forma=cuadrada] img, .subir[data-forma=cuadrada] .previa { width: 104px; border-radius: 30%; }
.subir[data-forma=horizontal] { flex-direction: column; align-items: stretch; }
.subir[data-forma=horizontal] img, .subir[data-forma=horizontal] .previa { width: 100%; max-width: 360px; border-radius: 16px; }
.subir-nombre { white-space: normal; overflow: visible; font-size: .82rem; line-height: 1.35; }
.subir-nombre b { color: var(--tinta); }
.subir-pie { font-size: .82rem; color: var(--gris); line-height: 1.35; }
.subir-pie.bien { color: var(--verde); font-weight: 700; } .subir-pie.ojo { color: var(--coral); font-weight: 700; }
/* ---------- mapa ---------- */
.mapa { display: block; width: 100%; height: 220px; border: 0; border-radius: 16px; margin-top: 12px; background: var(--fondo); }
.ubicar-enlace { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--linea); } .ubicar-enlace label { margin-top: 0; }
/* Logotipo y portada: una debajo de la otra, cada una con su vista previa a la izquierda y las notas a la derecha. */
.dos-col.imagenes { grid-template-columns: 1fr; gap: 14px; }
.subir[data-forma=horizontal] { flex-direction: row; align-items: flex-start; }
.subir[data-forma=horizontal] img, .subir[data-forma=horizontal] .previa { flex: 0 0 min(46%, 230px); width: min(46%, 230px); max-width: none; }
.subir[data-forma] .subir-control { flex: 1 1 170px; gap: 7px; }

/* ---------- centro de fidelización ---------- */
.estrategia { display: flex; flex-direction: column; border: 2px solid transparent; }
.estrategia.activa { border-color: var(--amarillo); }
.est-cab { display: flex; align-items: flex-start; gap: 12px; }
.est-cab > div { flex: 1; min-width: 0; } .est-cab h3 { margin: 2px 0 2px; font-size: 1.05rem; } .est-cab p { margin: 0; color: var(--gris); font-size: .9rem; }
.est-ico { flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--fondo); display: grid; place-items: center; }
.estrategia.activa .est-ico { background: var(--amarillo); }
.est-logro { display: flex; gap: 7px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--fondo); font-size: .88rem; color: var(--gris); }
.est-logro .ico { flex: none; margin-top: 2px; }
.estrategia.activa .est-logro { background: var(--verde-suave); color: var(--tinta); }
.interruptor { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 0; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; pointer-events: none; }
.interruptor span { width: 46px; height: 28px; border-radius: 999px; background: #d5d8df; position: relative; transition: background .15s; }
.interruptor span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.interruptor input:checked + span { background: var(--verde); } .interruptor input:checked + span::after { transform: translateX(18px); }
.interruptor input:focus-visible + span { outline: 2px solid var(--tinta); outline-offset: 2px; }
.interruptor em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--gris); }
.segmentos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; } @media (min-width: 900px) { .segmentos { grid-template-columns: repeat(4, 1fr); } }
.segmento-caja { margin: 0; display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 2px solid transparent; }
.segmento-caja.elegido { border-color: var(--tinta); }
.segmento-caja b { font: 700 2rem/1 var(--logo); } .segmento-caja span { color: var(--gris); font-size: .84rem; }
.segmento-caja .acciones { margin-top: auto; padding-top: 12px; }
.promo.cupon { border: 2px dashed var(--amarillo-osc); background: var(--amarillo-suave); }

/* ---------- VIP e invitación ---------- */
.caja.vip { display: flex; align-items: center; gap: 12px; background: var(--tinta); color: #fff; }
.caja.vip > .ico { flex: none; color: var(--amarillo); }
.caja.vip div { display: flex; flex-direction: column; } .caja.vip span { color: #d6d9e0; font-size: .92rem; }
.caja.invitar { background: var(--amarillo-suave); margin-top: 14px; } .caja.invitar p { margin: 4px 0 0; font-size: .94rem; }
.segmentos { grid-template-columns: repeat(2, 1fr); } @media (min-width: 1100px) { .segmentos { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) and (max-width: 1099px) { .segmentos { grid-template-columns: repeat(3, 1fr); } }
.caja.vip { margin-top: 14px; }

/* ---------- Mi negocio: mapa para elegir el punto, horario y barra de guardar ---------- */
.ubicar-paso { margin: 14px 0 8px; font-size: .92rem; }
.otra-opcion { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 18px; padding: 14px 18px; border: 1.5px dashed var(--gris-claro); border-radius: 18px; }
.otra-opcion p { margin: 0; flex: 1 1 240px; } .otra-opcion strong { display: block; }
.mapa-buscar { display: flex; gap: 8px; margin-bottom: 8px; } .mapa-buscar input { flex: 1; min-width: 0; margin: 0; }
.mapa-elegir { height: 420px; border-radius: 16px; overflow: hidden; background: var(--fondo); z-index: 0; cursor: crosshair; }
.pin-napa span { display: block; width: 30px; height: 30px; margin: 2px; border-radius: 50% 50% 50% 0; background: var(--amarillo); border: 3px solid var(--tinta); transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.pin-napa span::after { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--tinta); }
details.ubicar-enlace summary { cursor: pointer; font-weight: 700; font-size: .9rem; } details.ubicar-enlace input { margin-top: 10px; }
.horario { background: var(--fondo); border-radius: 16px; padding: 6px 14px; }
.horario-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.horario-fila:last-child { border-bottom: 0; }
.horario-fila .acepto { margin: 0; flex: 1 1 170px; font-weight: 700; }
.horario-horas { display: flex; align-items: center; gap: 8px; } .horario-horas input { width: auto; margin: 0; padding: 8px 10px; }
.horario-cerrado { display: none; color: var(--gris); font-weight: 700; font-size: .9rem; }
.horario-fila.cerrado .horario-horas { display: none; } .horario-fila.cerrado .horario-cerrado { display: inline; }
.guardar-fijo { position: sticky; bottom: calc(var(--nav-alto) + env(safe-area-inset-bottom) + 8px); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 22px -6px 0; padding: 10px 12px 10px 16px; border-radius: 18px; background: var(--papel); box-shadow: 0 -2px 18px rgba(22, 23, 27, .14), 0 0 0 1px var(--linea); }
@media (min-width: 900px) { .guardar-fijo { bottom: 14px; } }
.guardar-fijo > span { font-size: .9rem; font-weight: 700; color: var(--gris); }
.guardar-fijo.pendiente { background: var(--amarillo-suave); } .guardar-fijo.pendiente > span { color: var(--tinta); }
.guardar-fijo > div { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* ---------- tamaño de letra: textos y títulos un poco más pequeños ---------- */
html { font-size: 15px; }
body { font-size: 15px; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.08rem; }
.heroe h1 { font-size: clamp(2.45rem, 10vw, 4.1rem); }
.com-cab h1 { font-size: 1.28rem; }
.perfil-quien strong, .perfil-cab strong { font-size: 1.12rem; }
/* Los campos se quedan en 16px: con menos, el iPhone hace zoom al tocarlos. */
input, select, textarea { font-size: 16px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { font-size: 16px !important; }

/* ---------- plan y cobros ---------- */
.aviso-plan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; border-radius: 16px; background: var(--amarillo-suave); color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .94rem; }
.aviso-plan > span { flex: 1 1 220px; } .aviso-plan b { text-decoration: underline; white-space: nowrap; }
.aviso-plan.urgente { background: var(--coral-suave); }
.plan-estado { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border: 2px solid var(--amarillo); }
.plan-estado.gracia, .plan-estado.suspendido { border-color: var(--coral); }
.plan-estado > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; flex: 1 1 240px; }
.plan-estado strong { font-size: 1.15rem; font-weight: 800; } .plan-estado span:not(.chip) { color: var(--gris); font-size: .92rem; }
.plan-precio { font: 700 1.8rem/1 var(--logo); text-align: right; } .plan-precio small { display: block; font: 600 .8rem/1.4 var(--texto, inherit); color: var(--gris); }

/* ---------- ambiente de pruebas ---------- */
.franja-pruebas { position: sticky; top: 0; z-index: 60; background: var(--coral); color: #fff; text-align: center; font-weight: 800; font-size: .82rem; padding: 5px 12px; letter-spacing: .02em; }
@media print { .franja-pruebas { display: none; } }
@media (min-width: 900px) { .en-pruebas .lateral { top: 28px; height: calc(100vh - 28px); } }

.en-pruebas .barra { top: 28px; }
