/* Shared visual language for the storefront and inventory. */
:root { --blue: #2454d6; --blue-2: #1941b0; --cta: #c9470a; --cta-2: #a93706; --gold: #ffcc3d; --bg: #f5f5f5; --ink: #19243b; --muted: #536079; --line: #e0e5ef; --paper: #f5f5f5; --card: #fff; --green: #2454d6; --clay: #c9470a; --ok: #087a55; --shadow: 0 8px 26px rgba(36, 84, 214, .07); }
body { font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; line-height: 1.6; font-size: 16px; background: var(--bg); color: var(--ink); }
h1, h2, h3, .marca strong, .brand h1 { font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 800; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2454d6; outline-offset: 4px; }
button, .btn, select, input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
button, a, input, select { touch-action: manipulation; }
button:disabled { cursor: wait; }
.barra, .topbar { background: linear-gradient(115deg, #1941b0, #3169ed); box-shadow: 0 4px 20px #2454d629; }
.sello, .mark { background: #ffcc3d; color: #19243b; border-radius: 13px; font-weight: 900; }
.marca strong { font-size: 1.2rem; letter-spacing: -.025em; }
.marca small { opacity: 1; color: #e9efff; }
.nav-cats button { font-weight: 600; }
.nav-cats .activa { background: #fff; color: #1941b0; }
.nav-cats button:hover { background: #ffffff25; }
.nav-cats .activa:hover { background: #fff; }
.hero { padding-top: 40px; padding-bottom: 30px; gap: 32px; }
.hero h1 { color: #234dc0; font-weight: 800; line-height: 1.08; letter-spacing: -.04em; font-size: clamp(2.5rem, 5vw, 4.6rem); max-width: 13ch; }
.kicker { color: #bc3d08; letter-spacing: .1em; }
.hero .lead { margin-top: 16px; font-size: 1.08rem; }
.hero-acciones { margin-top: 25px; }
.hero .nota { font-size: .85rem; line-height: 1.6; }
.confianza { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; color: #2454b8; font-size: .82rem; font-weight: 650; }
.confianza span::before { content: '✓'; margin-right: 6px; }
.bloque-head h2 { letter-spacing: -.025em; color: #223f87; }
.card { border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px #2454d61c; border-color: #a8bdf4; }
.card .info { padding: 18px; }
.card h3 { line-height: 1.35; }
.card .stage { background: #eef2ff; }
.card .precio, .precios .precio { color: #234dc0; font-weight: 800; }
.card .stage img { object-fit: contain; padding: 16px; mix-blend-mode: multiply; }
.cat-tile { border: 1px solid var(--line); box-shadow: none; }
.cat-tile:hover { border-color: #7597ee; }
.cat-tile.tono-plastico { background: #dcf7ee; color: #067252; border-top: 4px solid #19b787; }
.cat-tile.tono-cocina, .cat-tile.tono-olla { background: #fff0db; color: #a43a0a; border-top: 4px solid #fb8b24; }
.cat-tile.tono-colchon { background: #e5edff; color: #2454c4; border-top: 4px solid #477af5; }
.cat-tile.tono-plato { background: #ffe5ed; color: #b02560; border-top: 4px solid #ec5790; }
.cat-tile.tono-costal { background: #eee6ff; color: #6e37bc; border-top: 4px solid #9b69eb; }
.cat-tile em { color: #536079; }
.filtros { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.resultados-bar { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.btn, .carrito-btn { border-radius: 12px; font-weight: 700; letter-spacing: .005em; }
.btn.cta, .carrito-btn { background: #c9470a; color: #fff; box-shadow: 0 4px 12px #c9470a20; }
.btn.cta:hover, .carrito-btn:hover { background: #a93706; }
.btn.primary { background: #2454d6; color: #fff; }
.btn.primary:hover { background: #1941b0; }
.btn.ghost { color: #2454d6; border-color: #c9d6f8; }
.btn.ghost:hover { background: #edf2ff; }
.badge.oferta { background: #c9470a; color: #fff; }
.badge.nuevo { background: #2454d6; color: #fff; }
.wa-flotante, .btn.wa { background: #087e58; }
.wa-flotante { box-shadow: 0 7px 22px #087e5833; }
.pie { border-top: 1px solid var(--line); color: var(--muted); padding-top: 28px; padding-bottom: 28px; }
.estado-vacio, .estado-carga { grid-column: 1 / -1; width: 100%; background: white; border: 1px dashed #afc1ef; padding: 40px 24px; border-radius: 18px; text-align: center; color: var(--muted); }
.estado-vacio p { margin: 10px 0 20px; }
.saltar { position: fixed; top: -90px; left: 16px; z-index: 30; padding: 12px 20px; background: white; color: var(--blue); border-radius: 10px; }
.saltar:focus { top: 12px; }
.layout { max-width: 1400px; margin: 0 auto; padding: 32px; }
.bienvenida { margin-bottom: 26px; justify-content: space-between; }
.bienvenida h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.035em; margin: 4px 0; }
.bienvenida p:last-child { color: var(--muted); }
.bienvenida .eyebrow { color: #2454d6; opacity: 1; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.metric { min-width: 0; padding: 22px; border-left: 4px solid #477af5; }
.metric:nth-child(2) { border-left-color: #19b787; }
.metric:nth-child(3) { border-left-color: #fb8b24; }
.metric strong { font-size: 2rem; letter-spacing: -.04em; }
.toolbar { background: white; padding: 16px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; }
.toolbar .check { white-space: nowrap; }
.topbar .link { margin-left: auto; white-space: nowrap; }
.form-grid small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.categoria-nueva { flex-wrap: wrap; background: #edf2ff; padding: 14px; border-radius: 12px; }
.categoria-nueva > * { flex: 1; min-width: 140px; }
.dialog-actions { position: sticky; bottom: 0; background: white; padding-top: 14px; border-top: 1px solid var(--line); }
dialog { max-height: 90dvh; overflow: auto; }
.pedido { margin-bottom: 16px; }
.cajon { box-shadow: -12px 0 60px #2454d626; }
body:has(.cajon:not([hidden])), body:has(.filtros.abierto) { overflow: hidden; }
@media (min-width: 900px) { .filtros { position: sticky; top: 100px; align-self: start; } }
@media (min-width: 1100px) {
  .barra-fila { grid-template-columns: auto minmax(240px, 1fr) auto; column-gap: 28px; }
  .marca { grid-column: 1; grid-row: 1; }
  .buscar { grid-column: 2; grid-row: 1; }
  .carrito-btn { grid-column: 3; grid-row: 1; }
  .nav-cats { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; overflow: visible; flex-wrap: wrap; border-top: 1px solid #ffffff20; padding-top: 5px; }
  .nav-cats button { min-height: 36px; }
  .filtros { top: 145px; }
  #productos { scroll-margin-top: 150px; }
}
@media (max-width: 719px) {
  .hero { padding-top: 26px; gap: 22px; }
  .hero h1 { max-width: 15ch; }
  .hero-mosaico { min-height: 250px; }
  .layout { padding: 18px 12px; }
  .metrics { gap: 8px; }
  .metric { padding: 12px 10px; }
  .metric strong { font-size: 1.6rem; }
  .metric span { font-size: .75rem; }
  .bienvenida { align-items: flex-start; flex-direction: column; gap: 14px; }
  .toolbar { flex-wrap: wrap; gap: 12px; }
  .toolbar input[type="search"] { flex-basis: 100%; }
  .topbar { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .tabs { order: 3; flex-basis: 100%; }
  .filtros { border-radius: 0; }
  .wa-flotante { bottom: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
