/* CanacaPromos — estilo "etiqueta de anaquel": amarillo de oferta, tinta azul, rojo de remate */
/* Fuentes alojadas en el sitio (licencia SIL Open Font License) */
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/bigshoulders-800.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/instrument-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/instrument-500.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/instrument-600.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/instrument-700.woff2") format("woff2"); }

:root {
  --tinta: #1B2440;
  --tinta-2: #2C3760;
  --papel: #F3F5F9;
  --blanco: #FFFFFF;
  --etiqueta: #FFD23F;
  --etiqueta-osc: #E9B800;
  --remate: #E5383B;
  --baja: #138A5E;
  --hielo: #2F6FED;
  --linea: #DDE2EC;
  --gris: #5B6475;
  --gris-2: #8A93A5;
  --radio: 10px;
  --sombra: 0 1px 0 rgba(27, 36, 64, .06), 0 6px 18px -12px rgba(27, 36, 64, .35);
  --display: "Big Shoulders Display", "Arial Narrow", system-ui, sans-serif;
  --texto: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.5;
  color: var(--tinta);
  background: var(--papel);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--hielo); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 28px); margin-inline: auto; }

/* ---------- Encabezado ---------- */
.top {
  background: var(--tinta);
  color: #fff;
  position: sticky; top: 0; z-index: 30;
}
.top-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-word {
  font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: .5px; line-height: 1;
}
.logo-tag {
  position: relative; display: inline-block; margin-left: 4px;
  background: var(--etiqueta); color: var(--tinta);
  font-family: var(--display); font-weight: 800; font-size: 27px; line-height: 1;
  padding: 3px 9px 3px 16px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  transform: rotate(-3deg);
}
.logo-tag::before {
  content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--tinta);
}
.top-search { flex: 1; position: relative; }
.top-search input {
  width: 100%; height: 42px; border: 0; border-radius: 8px; padding: 0 44px 0 14px;
  background: #fff; color: var(--tinta); font-size: 15px;
}
.top-search button {
  position: absolute; right: 4px; top: 4px; height: 34px; width: 36px; border: 0; border-radius: 6px;
  background: var(--etiqueta); color: var(--tinta); cursor: pointer;
}
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.top-actions a { text-decoration: none; font-weight: 600; font-size: 14px; }
.top-link { padding: 8px 10px; border-radius: 6px; }
.top-link:hover { background: rgba(255,255,255,.1); }
.nav { background: var(--tinta-2); }
.nav-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-row::-webkit-scrollbar { display: none; }
.nav-row a {
  white-space: nowrap; color: #DCE2F2; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 9px 12px; border-bottom: 3px solid transparent;
}
.nav-row a:hover { color: #fff; }
.nav-row a[aria-current="page"] { color: #fff; border-bottom-color: var(--etiqueta); }

.suggest {
  position: absolute; left: 0; right: 0; top: 46px; background: #fff; color: var(--tinta);
  border-radius: 8px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); overflow: hidden; z-index: 40;
}
.suggest a { display: block; padding: 9px 14px; text-decoration: none; font-size: 14px; border-top: 1px solid var(--linea); }
.suggest a:first-child { border-top: 0; }
.suggest a:hover, .suggest a.on { background: #FFF6CF; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: 8px; border: 2px solid var(--tinta);
  background: var(--tinta); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--tinta-2); border-color: var(--tinta-2); }
.btn-amarillo { background: var(--etiqueta); color: var(--tinta); border-color: var(--etiqueta); }
.btn-amarillo:hover { background: var(--etiqueta-osc); border-color: var(--etiqueta-osc); }
.btn-borde { background: transparent; color: var(--tinta); }
.btn-borde:hover { background: var(--tinta); color: #fff; }
.btn-chico { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn-rojo { background: var(--remate); border-color: var(--remate); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Portada: buscador ---------- */
.hero { padding: 26px 0 8px; }
.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(42px, 7.4vw, 80px); line-height: .92;
  margin: 0 0 16px; letter-spacing: .3px; max-width: 15ch;
}
.hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1020px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.hero-demo {
  display: none; background: var(--tinta); color: #fff; border-radius: 14px; padding: 20px 20px 22px;
  transform: rotate(1.2deg); box-shadow: 0 18px 40px -24px rgba(27, 36, 64, .8);
}
@media (min-width: 1020px) { .hero-demo { display: block; } }
.hero-demo .demo-label { margin: 14px 0 6px; font-size: 13px; color: #AEB8D3; }
.hero-demo .demo-label:first-child { margin-top: 0; }
.hero-demo .demo-q { margin: 0; font-size: 18px; font-weight: 600; }
.hero-demo .chip { background: rgba(255,255,255,.1); color: #fff; }
.hero-demo .chips:first-of-type .chip { background: var(--etiqueta); color: var(--tinta); }
.hero-search { position: relative; max-width: 760px; }
.hero-search input {
  width: 100%; height: 58px; border-radius: 12px; border: 3px solid var(--tinta); padding: 0 130px 0 18px;
  font-size: 17px; background: #fff;
}
.hero-search .btn { position: absolute; right: 7px; top: 7px; height: 44px; }
.hero-search .suggest { top: 62px; }
.hero-hint { color: var(--gris); font-size: 14px; margin: 10px 0 0; max-width: 62ch; }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.idea {
  border: 1px solid var(--linea); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px;
  text-decoration: none; color: var(--tinta);
}
.idea:hover { border-color: var(--tinta); }

/* ---------- Pestañas del feed ---------- */
.feed-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 22px 0 10px; flex-wrap: wrap; }
.feed-head h1, .feed-head h2 { font-family: var(--display); font-weight: 800; font-size: 34px; margin: 0; line-height: 1; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  white-space: nowrap; text-decoration: none; font-weight: 700; font-size: 14px; padding: 7px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--linea);
}
.tabs a[aria-current="page"] { background: var(--tinta); color: #fff; border-color: var(--tinta); }

.layout { display: grid; grid-template-columns: 1fr; gap: 22px; padding-bottom: 50px; }
@media (min-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; } }

/* ---------- Tarjeta de oferta ---------- */
.deals { display: grid; gap: 10px; }
.deal {
  position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px;
  background: #fff; border-radius: var(--radio); padding: 12px; box-shadow: var(--sombra);
}
@media (min-width: 640px) { .deal { grid-template-columns: 132px minmax(0, 1fr) auto; padding: 14px; gap: 16px; } }
.deal.is-expired { opacity: .62; }
.deal-img {
  position: relative; text-decoration: none; width: 92px; height: 92px; border-radius: 8px; overflow: visible; background: var(--papel);
  display: grid; place-items: center;
}
@media (min-width: 640px) { .deal-img { width: 132px; height: 132px; } }
.deal-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.deal-img .ph {
  width: 100%; height: 100%; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 44px; color: #fff;
}
/* La etiqueta de descuento: el sello de la casa */
.tag {
  position: absolute; left: -6px; top: 8px; z-index: 2;
  background: var(--etiqueta); color: var(--tinta);
  font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1;
  padding: 5px 8px 5px 15px;
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%);
  transform: rotate(-6deg);
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.tag::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: #fff;
}
.tag.big { font-size: 30px; padding: 8px 12px 8px 22px; clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%); }
.tag.big::before { left: 8px; width: 7px; height: 7px; margin-top: -3.5px; }
.tag.cupon { background: var(--tinta); color: var(--etiqueta); }

.deal-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.deal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--gris); }
.store-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--tinta); text-decoration: none; }
.store-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.deal-title { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 0; }
.deal-title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-title a:hover { text-decoration: underline; }
.prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--remate); }
.price-old { color: var(--gris-2); text-decoration: line-through; font-size: 15px; }
.ship { color: var(--baja); font-weight: 700; font-size: 13px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 2px 8px; border: 1px solid var(--linea); color: var(--gris); background: #fff;
}
.pill.ia { border-color: #C9D6FF; color: #2847A8; background: #F1F4FF; }
.pill.ok { border-color: #BFE5D4; color: var(--baja); background: #EFFAF5; }
.pill.wait { border-color: #F3DA8A; color: #8A6400; background: #FFF8DD; }
.deal-desc { color: var(--gris); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.deal-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--linea); padding-top: 10px; }
@media (min-width: 640px) {
  .deal-foot { grid-column: auto; flex-direction: column; align-items: stretch; justify-content: space-between; border-top: 0; padding-top: 0; min-width: 150px; }
}
.foot-row { display: flex; align-items: center; gap: 10px; }
.foot-row .btn { flex: 1; }
.comments-n { font-size: 13px; color: var(--gris); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }

/* Termómetro (votos) */
.temp { display: inline-flex; align-items: center; border: 1px solid var(--linea); border-radius: 999px; background: #fff; }
.temp button {
  width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center; color: var(--gris);
}
.temp button:hover { background: var(--papel); }
.temp button.up.on { color: var(--remate); }
.temp button.down.on { color: var(--hielo); }
.temp-val { min-width: 48px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 19px; }
.temp-val.hot { color: var(--remate); }
.temp-val.fire { color: #fff; background: var(--remate); border-radius: 6px; padding: 0 6px; }
.temp-val.cold { color: var(--hielo); }

/* Cupón */
.code {
  align-self: flex-start;
  display: inline-flex; align-items: stretch; border: 2px dashed var(--tinta); border-radius: 8px; overflow: hidden; max-width: 100%;
}
.code span { padding: 5px 10px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code button { border: 0; background: var(--tinta); color: #fff; font-weight: 700; font-size: 13px; padding: 0 10px; cursor: pointer; }
.code button.done { background: var(--baja); }

/* ---------- Barra lateral ---------- */
.side { display: grid; gap: 16px; align-content: start; }
.box { background: #fff; border-radius: var(--radio); padding: 16px; box-shadow: var(--sombra); }
.box h3 { font-family: var(--display); font-weight: 800; font-size: 22px; margin: 0 0 10px; line-height: 1; }
.box ul { list-style: none; margin: 0; padding: 0; }
.box li + li { border-top: 1px solid var(--linea); }
.box li a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; text-decoration: none; font-size: 14px; }
.box li a:hover { text-decoration: underline; }
.box .n { color: var(--gris); font-variant-numeric: tabular-nums; }
.box-amarilla { background: var(--etiqueta); box-shadow: none; }
.box-amarilla p { margin: 0 0 12px; font-size: 14px; }
.mini-coupon { display: grid; gap: 4px; padding: 10px 0; }
.mini-coupon + .mini-coupon { border-top: 1px solid var(--linea); }
.mini-coupon a { text-decoration: none; font-size: 14px; font-weight: 600; }

/* ---------- Búsqueda ---------- */
.ai-bar {
  display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: var(--radio); padding: 14px 16px;
  box-shadow: var(--sombra); margin-bottom: 12px; border-left: 5px solid var(--etiqueta);
}
.ai-bar p { margin: 0; }
.ai-bar .muted { color: var(--gris); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { background: var(--papel); border-radius: 6px; padding: 3px 9px; font-size: 13px; font-weight: 600; }
a.chip { text-decoration: none; border: 1px solid var(--linea); background: #fff; }
a.chip:hover { border-color: var(--tinta); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--linea); border-top-color: var(--tinta); animation: spin .8s linear infinite; flex-shrink: 0; margin-top: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.live {
  background: var(--tinta); color: #fff; border-radius: var(--radio); padding: 18px; margin: 14px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.live p { margin: 0; flex: 1 1 260px; }
.live strong { font-family: var(--display); font-size: 24px; display: block; line-height: 1.1; margin-bottom: 4px; }

/* ---------- Página de oferta ---------- */
.crumbs { font-size: 14px; color: var(--gris); margin: 16px 0 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.dp { display: grid; gap: 22px; grid-template-columns: 1fr; background: #fff; border-radius: 14px; padding: 18px; box-shadow: var(--sombra); }
@media (min-width: 820px) { .dp { grid-template-columns: 360px minmax(0, 1fr); padding: 26px; } }
.dp-img { position: relative; max-width: 460px; width: 100%; background: #fff; border: 1px solid var(--linea); border-radius: 12px; aspect-ratio: 1; display: grid; place-items: center; overflow: visible; }
.dp-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.dp-img .ph { width: 100%; height: 100%; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 120px; color: #fff; }
.dp h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin: 6px 0 10px; }
.dp .price { font-size: 52px; }
.dp-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.dp-actions .btn { min-height: 48px; font-size: 16px; padding: 0 22px; }
.note { font-size: 14px; color: var(--gris); background: var(--papel); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.note.ia { background: #F1F4FF; color: #2847A8; }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 10px; }
.section-title { font-family: var(--display); font-weight: 800; font-size: 30px; margin: 30px 0 12px; line-height: 1; }
.alts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.alt { background: #fff; border-radius: var(--radio); padding: 14px; text-decoration: none; box-shadow: var(--sombra); display: grid; gap: 4px; border: 1px solid transparent; }
.alt:hover { border-color: var(--tinta); }
.alt b { font-size: 15px; }
.alt span { font-size: 13px; color: var(--gris); }

/* Historial de precio */
.chart { width: 100%; height: auto; display: block; }
.chart-wrap { background: #fff; border-radius: var(--radio); padding: 16px; box-shadow: var(--sombra); }
.stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 10px; }
.stats div { display: grid; }
.stats small { color: var(--gris); font-size: 13px; }
.stats b { font-family: var(--display); font-size: 28px; line-height: 1.05; }

/* Comentarios */
.comments { display: grid; gap: 10px; }
.comment { background: #fff; border-radius: var(--radio); padding: 12px 14px; box-shadow: var(--sombra); }
.comment header { font-size: 13px; color: var(--gris); margin-bottom: 4px; display: flex; gap: 10px; }
.comment header b { color: var(--tinta); }
.comment p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- Formularios ---------- */
.card { background: #fff; border-radius: 14px; padding: 20px; box-shadow: var(--sombra); }
.narrow { max-width: 720px; margin: 22px auto 60px; }
.tiny { max-width: 430px; margin: 30px auto 60px; }
.page-title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 46px); margin: 22px 0 6px; line-height: 1; }
.lead { color: var(--gris); margin: 0 0 18px; max-width: 64ch; }
.field { display: grid; gap: 5px; margin-bottom: 14px; }
.field label, .label { font-weight: 700; font-size: 14px; }
.field small { color: var(--gris); font-size: 13px; }
.input, .field input[type=text], .field input[type=url], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=date], .field input[type=datetime-local], .field select, .field textarea {
  width: 100%; min-height: 44px; border: 1.5px solid #C9CFDB; border-radius: 8px; padding: 9px 12px; background: #fff; font-size: 16px;
}
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tinta); outline: none; box-shadow: 0 0 0 3px rgba(47,111,237,.18); }
.row2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.seg { display: inline-flex; border: 2px solid var(--tinta); border-radius: 9px; overflow: hidden; margin-bottom: 14px; }
.seg label { padding: 8px 16px; font-weight: 700; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--tinta); color: #fff; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 14px; }
.check input { width: 18px; height: 18px; }
.alert { border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-weight: 600; font-size: 15px; }
.alert.ok { background: #E7F7EF; color: #0D6B48; }
.alert.error { background: #FDECEC; color: #A3171A; }
.alert.info { background: #FFF6CF; color: #6B5100; }
.autofill { display: flex; gap: 8px; }
.autofill input { flex: 1; }
.preview-img { max-height: 120px; border-radius: 8px; border: 1px solid var(--linea); margin-top: 6px; }

/* ---------- Tiendas ---------- */
.store-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.store-card {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radio); padding: 12px; text-decoration: none; box-shadow: var(--sombra);
  border: 1px solid transparent;
}
.store-card:hover { border-color: var(--tinta); }
.store-card .ini { width: 38px; height: 38px; border-radius: 8px; color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; flex-shrink: 0; }
.store-card b { display: block; font-size: 15px; line-height: 1.2; }
.store-card small { color: var(--gris); }
.store-head { display: flex; align-items: center; gap: 14px; }
.store-head .ini { width: 54px; height: 54px; border-radius: 12px; color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 32px; }

/* ---------- Varios ---------- */
.empty { background: #fff; border-radius: var(--radio); padding: 30px 22px; text-align: center; box-shadow: var(--sombra); }
.empty h3 { font-family: var(--display); font-size: 28px; margin: 0 0 6px; }
.empty p { color: var(--gris); margin: 0 auto 14px; max-width: 46ch; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: #fff; text-decoration: none; font-weight: 700; box-shadow: var(--sombra); padding: 0 12px; }
.pager span { background: var(--tinta); color: #fff; }
.foot { background: var(--tinta); color: #C9D0E4; padding: 30px 0; font-size: 14px; }
.foot a { color: #fff; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; }
.foot p { margin: 0 0 6px; max-width: 60ch; }
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--tinta); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 60; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.grid-products { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.prod { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; background: #fff; border-radius: var(--radio); padding: 10px; text-decoration: none; box-shadow: var(--sombra); }
.prod img, .prod .ph { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: var(--papel); }
.prod b { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .price { font-size: 22px; }
.prod .down { color: var(--baja); font-weight: 700; font-size: 13px; }

/* ---------- Panel de administración ---------- */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.admin-nav a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--linea); }
.admin-nav a[aria-current="page"] { background: var(--etiqueta); border-color: var(--etiqueta); }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 16px; }
.kpi { background: #fff; border-radius: var(--radio); padding: 14px; box-shadow: var(--sombra); }
.kpi small { color: var(--gris); font-size: 13px; display: block; }
.kpi b { font-family: var(--display); font-size: 34px; line-height: 1.05; }
.tbl-wrap { overflow-x: auto; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tbl th { background: var(--papel); font-size: 13px; color: var(--gris); }
.tbl input.input { min-height: 34px; padding: 4px 8px; font-size: 14px; }
.tbl form { display: inline; }
.log { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--tinta); color: #E6EBF7; padding: 14px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.fieldset h2 { font-family: var(--display); font-size: 28px; margin: 0 0 4px; }
.fieldset > p { color: var(--gris); margin: 0 0 14px; font-size: 14px; }
.ok-dot, .bad-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.ok-dot { background: var(--baja); }
.bad-dot { background: var(--remate); }

@media (max-width: 720px) {
  .top-row { flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  .top-search { order: 3; flex-basis: 100%; }
  .top-actions { gap: 4px; }
  .top-actions .hide-m { display: none; }
  .top-link { padding: 6px 8px; }
  .logo-word, .logo-tag { font-size: 23px; }
  .dp-img:has(.ph) { aspect-ratio: 16 / 9; }
  .dp .price { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
