/* =====================================================================
   StockStore365 · Tienda web pública (mobile-first)
   Estética de moda premium: mucho blanco, tipografía Poppins, imágenes grandes.
   ===================================================================== */
:root {
  /* Marca StockStore365: azul marino + verde del logo */
  --ink: #141824;
  --ink-2: #262c3d;
  --brand: #178a36;
  --brand-600: #11702b;
  --brand-lime: #6cc70a;
  --brand-grad: linear-gradient(135deg, #6cc70a 0%, #2fa83a 55%, #178a36 100%);
  --muted: #6f6f6f;
  --line: #e9e7e3;
  --soft: #f6f4f1;
  --soft-2: #efece7;
  --bg: #ffffff;
  --sale: #c8102e;
  --ok: #1a7f37;
  --warn: #b45309;
  --info: #1d4ed8;
  --wa: #25d366;
  --radius: 4px;
  --radius-lg: 14px;
  --shadow: 0 12px 40px rgba(17, 17, 17, .10);
  --header-h: 64px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.55rem); }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.text-sale { color: var(--sale); }
.stack > * + * { margin-top: 14px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
@media (min-width: 1200px) { .container { padding: 0 40px; } }
.only-mobile { display: inline-flex; }
.hide-mobile { display: none !important; }
@media (min-width: 992px) { .only-mobile { display: none !important; } .hide-mobile { display: inline-flex !important; } }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------------- Botones ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 500; font-size: .92rem; letter-spacing: .02em; border-radius: var(--radius); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; text-align: center; white-space: nowrap; }
.btn:hover { background: #333; border-color: #333; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn-disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--soft); border-color: var(--soft); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .84rem; }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.icon-btn:hover { background: var(--soft); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .9rem; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-more i { font-size: .75rem; transition: transform .2s; }
.link-more:hover i { transform: translateX(3px); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Formularios ---------------- */
.input, .select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #d9d6d0; border-radius: var(--radius); background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
textarea.input { min-height: 70px; resize: vertical; }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.08); }
.input.is-invalid, .select.is-invalid { border-color: var(--sale); }
.select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
.select-sm { min-height: 38px; font-size: .88rem; width: auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: .82rem; font-weight: 500; letter-spacing: .02em; }
.field .error { color: var(--sale); font-size: .8rem; }
.fgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid .col-2 { grid-column: span 2; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.seg { display: inline-flex; border: 1px solid #d9d6d0; border-radius: var(--radius); overflow: hidden; width: max-content; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px 22px; font-size: .9rem; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -4px; }

/* ---------------- Alertas / estados ---------------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; margin: 0 0 16px; font-size: .92rem; background: var(--soft); }
.alert i { margin-top: 3px; }
.alert-error { background: #fdecee; color: #8d0b20; }
.alert-success { background: #e8f5ec; color: #145c2a; }
.alert-warn { background: #fdf3e5; color: #7c3d06; }
.note { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.note:empty { display: none; }
.empty-state { text-align: center; padding: 60px 16px 80px; max-width: 520px; margin: 0 auto; }
.empty-state > i { font-size: 2.6rem; color: #c9c4bb; margin-bottom: 16px; }
.loading-line { list-style: none; padding: 30px 0; color: var(--muted); }
.status { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 500; background: var(--soft); white-space: nowrap; }
.status-warning { background: #fdf3e5; color: var(--warn); }
.status-danger { background: #fdecee; color: var(--sale); }
.status-success { background: #e8f5ec; color: var(--ok); }
.status-info { background: #e9effd; color: var(--info); }

/* ---------------- Header ---------------- */
.announce { background: var(--ink); color: #fff; font-size: .78rem; letter-spacing: .06em; text-align: center; padding: 8px 0; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.logo { font-size: 1.28rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.logo span { font-weight: 300; }
.logo-light { color: #fff; }
.site-header .logo { margin-right: auto; }
.main-nav { display: none; }
.search { display: none; position: relative; }
.search input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 42px 8px 16px; background: var(--soft); font-size: 15px; }
.search input:focus { outline: none; border-color: var(--ink); background: #fff; }
.search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 34px; height: 34px; cursor: pointer; }
.search.search-open { display: block; position: absolute; left: 0; right: 0; top: 100%; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.search-block { display: block; margin: 0 0 16px; }
.header-actions { display: flex; align-items: center; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sale); color: #fff; font-size: .68rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (min-width: 992px) {
  .site-header .logo { margin-right: 18px; }
  .main-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
  .main-nav > a, .nav-item > a { display: inline-block; padding: 8px 11px; font-size: .86rem; font-weight: 500; letter-spacing: .02em; border-radius: 999px; }
  .main-nav > a:hover, .nav-item > a:hover { background: var(--soft); }
  .nav-sale { color: var(--sale); }
  .nav-item { position: relative; }
  .nav-drop { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease); }
  .nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }
  .nav-drop a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .88rem; }
  .nav-drop a:hover { background: var(--soft); }
  .site-header .search { display: block; width: 240px; }
}
@media (min-width: 1200px) { .site-header .search { width: 300px; } }

/* ---------------- Drawers ---------------- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer::before { content: ''; position: absolute; inset: 0; background: rgba(17,17,17,.45); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: absolute; top: 0; bottom: 0; width: min(92vw, 400px); background: #fff; padding: 18px 20px 24px; overflow-y: auto; transition: transform .3s var(--ease); display: flex; flex-direction: column; }
.drawer-left .drawer-panel { left: 0; transform: translateX(-100%); }
.drawer-right .drawer-panel { right: 0; transform: translateX(100%); }
.drawer.open { visibility: visible; }
.drawer.open::before { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.drawer-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.drawer-nav > a, .drawer-nav summary { padding: 14px 2px; border-bottom: 1px solid var(--line); font-weight: 500; cursor: pointer; list-style: none; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav summary::after { content: '+'; float: right; font-weight: 300; }
.drawer-nav details[open] summary::after { content: '–'; }
.drawer-nav details a { display: block; padding: 10px 14px; color: var(--muted); }
.drawer-links { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; font-size: .92rem; }
.drawer-links i { width: 22px; }
.drawer-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; }
body.no-scroll { overflow: hidden; }

/* ---------------- Hero y secciones ---------------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: linear-gradient(135deg, #2b2724, #6b5d50 55%, #b9a58f); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6)); }
.hero-content { position: relative; padding-top: 80px; padding-bottom: 56px; max-width: 1320px; }
.hero h1 { font-size: clamp(2rem, 7vw, 4.2rem); font-weight: 600; letter-spacing: -.02em; max-width: 14ch; margin-bottom: .3em; }
.hero p { max-width: 46ch; font-size: 1.02rem; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.eyebrow { display: inline-block; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 12px; font-weight: 500; }
.section { padding: 44px 0; }
.section-soft { background: var(--soft); }
@media (min-width: 992px) { .section { padding: 68px 0; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }

.cat-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.cat-rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .cat-rail { grid-auto-columns: 32%; } }
@media (min-width: 992px) { .cat-rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.cat-tile { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; scroll-snap-align: start; color: var(--ink); transition: transform .35s var(--ease); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-tile:hover { transform: translateY(-4px); }
/* Con foto: degradado oscuro abajo para que el nombre se lea sobre cualquier imagen */
.cat-tile:has(img) { color: #fff; }
.cat-tile:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 38%, rgba(0,0,0,0) 60%); }
.cat-tile:has(img) .cat-name, .cat-tile:has(img) .cat-count { z-index: 1; }
.cat-tile:has(img) .cat-count { color: rgba(255,255,255,.85); }
.cat-name { position: relative; font-size: 1.25rem; font-weight: 600; }
.cat-count { position: relative; font-size: .8rem; color: rgba(17,17,17,.65); }

.promo { padding: 8px 0 44px; }
.promo-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .promo-grid { grid-template-columns: 1fr 1fr; } }
.promo-card { border-radius: var(--radius-lg); padding: 34px 28px; }
.promo-card h3 { font-size: 1.5rem; font-weight: 600; }
.promo-dark { background: var(--ink); color: #fff; }
.promo-light { background: var(--soft-2); }
.promo-card p { opacity: .85; max-width: 42ch; }

.store-cards { display: grid; gap: 12px; }
@media (min-width: 768px) { .store-cards { grid-template-columns: repeat(3, 1fr); } }
.store-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; font-size: .9rem; transition: border-color .2s, box-shadow .2s; }
.store-card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.store-card strong { font-size: 1.02rem; font-weight: 600; }
.store-card span { color: var(--muted); }

.benefits { border-top: 1px solid var(--line); }
.benefits-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 992px) { .benefits-row { grid-template-columns: repeat(4, 1fr); } }
.benefits-row div { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; }
.benefits-row i { font-size: 1.3rem; margin-bottom: 8px; }
.benefits-row span { color: var(--muted); font-size: .8rem; }

/* ---------------- Placeholder de imagen ---------------- */
.ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ph-mono { font-size: clamp(3rem, 12vw, 6rem); font-weight: 200; color: rgba(17,17,17,.20); letter-spacing: -.04em; }
.ph-brand { position: absolute; bottom: 14px; font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(17,17,17,.35); }
.ph-lg .ph-mono { font-size: 9rem; }
.ph-0 { background: linear-gradient(160deg, #f3ede4, #e2d6c4); }
.ph-1 { background: linear-gradient(160deg, #eef0ec, #d5dccf); }
.ph-2 { background: linear-gradient(160deg, #f4ecec, #e3cfd0); }
.ph-3 { background: linear-gradient(160deg, #ebeff3, #cfd8e2); }
.ph-4 { background: linear-gradient(160deg, #f1efea, #dedbd2); }
.ph-5 { background: linear-gradient(160deg, #f5efe6, #e9d9c0); }

/* ---------------- Tarjeta de producto ---------------- */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
@media (min-width: 768px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 18px; } }
@media (min-width: 1100px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-products.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1360px) { .grid-products.grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.pcard-media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); border-radius: 2px; }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .45s; }
.pcard-media img.alt { opacity: 0; }
.pcard-media .ph { transition: transform .8s var(--ease); }
.pcard:hover .pcard-media img, .pcard:hover .pcard-media .ph { transform: scale(1.045); }
.pcard:hover .pcard-media img.alt { opacity: 1; }
.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: #fff; color: var(--ink); border-radius: 2px; }
.tag-sale { background: var(--sale); color: #fff; }
.tag-new { background: #fff; color: var(--ink); }
.tag-out { background: var(--ink); color: #fff; }
.tag-ok { background: #e8f5ec; color: var(--ok); text-transform: none; letter-spacing: 0; font-weight: 500; }
.pcard-cta { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255,255,255,.94); text-align: center; padding: 10px; font-size: .8rem; font-weight: 500; letter-spacing: .04em; transform: translateY(12px); opacity: 0; transition: .3s var(--ease); display: none; }
@media (hover: hover) { .pcard-cta { display: block; } .pcard:hover .pcard-cta { opacity: 1; transform: none; } }
.pcard.is-out .pcard-media img, .pcard.is-out .ph { filter: grayscale(.6); opacity: .75; }
.pcard-body { display: flex; flex-direction: column; gap: 3px; padding-top: 12px; }
.pcard-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pcard-title { font-size: .92rem; font-weight: 400; margin: 0; line-height: 1.35; }
.pcard-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: .92rem; }
.price strong { font-weight: 600; }
.price .price-sale { color: var(--sale); }
.price s { color: var(--muted); font-size: .85em; }
.swatches { display: flex; gap: 5px; margin-top: 6px; }
.swatches i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }

/* ---------------- Catálogo ---------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); padding: 18px 0 10px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.catalog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.catalog-head h1 { margin: 0; }
.catalog-head p { margin: 0; }
.catalog-tools { display: flex; gap: 10px; align-items: center; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; }
.subcats, .active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; background: #fff; }
.chip:hover, .chip.active { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; }
.chip-x i { font-size: .7rem; }
.link-clear { font-size: .82rem; text-decoration: underline; color: var(--muted); }
.catalog-layout { display: block; padding-bottom: 40px; }
@media (min-width: 992px) {
  .catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
  .drawer-desktop-static { position: sticky; top: calc(var(--header-h) + 16px); inset: auto; visibility: visible; z-index: 1; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
  .drawer-desktop-static::before { display: none; }
  .drawer-desktop-static .drawer-panel { position: static; transform: none; width: auto; padding: 0; overflow: visible; }
}
.filters { display: flex; flex-direction: column; }
.fgroup { border-bottom: 1px solid var(--line); padding: 12px 0; }
.fgroup summary { cursor: pointer; font-weight: 500; font-size: .88rem; list-style: none; display: flex; justify-content: space-between; padding: 4px 0; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: '+'; font-weight: 300; }
.fgroup[open] summary::after { content: '–'; }
.fgroup > *:not(summary) { margin-top: 10px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 4px 0; font-size: .88rem; cursor: pointer; }
.opt input { accent-color: var(--ink); width: 16px; height: 16px; }
.opt-sub { padding-left: 24px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill input, .color-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .82rem; cursor: pointer; }
.pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill input:focus-visible + span, .color-opt input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.color-opt { display: flex; align-items: center; gap: 8px; font-size: .82rem; cursor: pointer; padding: 3px 0; }
.color-opt i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.color-opt input:checked + i { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.color-opt input:checked ~ span { font-weight: 600; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range .input { min-height: 40px; }
.filters-actions { display: grid; gap: 8px; padding-top: 16px; position: sticky; bottom: 0; background: #fff; padding-bottom: 4px; }
.load-more { text-align: center; padding: 40px 0 10px; }

/* ---------------- Producto ---------------- */
.product-layout { display: grid; gap: 24px; padding-bottom: 20px; }
@media (min-width: 992px) { .product-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; } .product-info { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main { position: relative; aspect-ratio: 3 / 4; background: var(--soft); overflow: hidden; border-radius: 2px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumbs .thumb { flex: none; width: 72px; aspect-ratio: 3 / 4; border: 1px solid transparent; padding: 0; background: var(--soft); cursor: pointer; opacity: .65; }
.gallery-thumbs .thumb.active, .gallery-thumbs .thumb:hover { opacity: 1; border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 6px 0 10px; }
.product-price { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; flex-wrap: wrap; }
.product-price .price { font-size: 1.3rem; }
.opt-block { margin: 18px 0; }
.opt-label { font-size: .85rem; margin-bottom: 10px; }
.color-select { display: flex; flex-wrap: wrap; gap: 10px; }
.color-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; transition: box-shadow .15s; }
.color-btn.active { box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--ink); }
.color-btn.is-out::after { content: ''; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 1.5px; background: rgba(17,17,17,.6); transform: rotate(45deg); }
.size-select { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn { min-width: 52px; min-height: 44px; padding: 8px 12px; border: 1px solid #d9d6d0; background: #fff; border-radius: var(--radius); cursor: pointer; font-size: .9rem; position: relative; }
.size-btn:hover:not(:disabled) { border-color: var(--ink); }
.size-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-btn:disabled { color: #b5b1aa; background: var(--soft); cursor: not-allowed; text-decoration: line-through; }
.stock-line { min-height: 24px; font-size: .88rem; margin-bottom: 12px; }
.stock-line .ok { color: var(--ok); }
.stock-line .low { color: var(--warn); }
.stock-line .out { color: var(--sale); }
.buy-row { display: flex; gap: 10px; margin-bottom: 10px; }
.qty { display: inline-flex; border: 1px solid #d9d6d0; border-radius: var(--radius); align-items: stretch; }
.qty button { width: 40px; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; }
.qty input { width: 44px; border: 0; text-align: center; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; height: 34px; }
.qty-sm input { width: 36px; font-size: 14px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.stores-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin: 18px 0; }
.stores-box h3 { font-size: 1rem; font-weight: 600; }
.store-list { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.store-list li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--soft); border-radius: 8px; font-size: .86rem; }
.store-list li small { display: block; color: var(--muted); }
.store-list .none { background: transparent; padding: 0; color: var(--muted); }
.accordion details { border-top: 1px solid var(--line); padding: 14px 0; }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-weight: 300; }
.accordion details[open] summary::after { content: '–'; }
.accordion p { margin: 10px 0 0; color: var(--ink-2); font-size: .92rem; }
.spec { list-style: none; padding: 0; margin: 10px 0 0; font-size: .9rem; }
.spec li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.spec span { color: var(--muted); }
.spec strong { font-weight: 500; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-buy div { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-buy small { color: var(--muted); font-size: .78rem; }

/* ---------------- Carrito y checkout ---------------- */
.steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: .8rem; padding: 20px 0 12px; color: var(--muted); }
.step { display: inline-flex; align-items: center; gap: 6px; }
.step + .step::before { content: ''; width: 22px; height: 1px; background: var(--line); margin-right: 6px; }
.step b { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: .72rem; }
.step.active { color: var(--ink); font-weight: 500; }
.step.active b, .step.done b { background: var(--ink); color: #fff; border-color: var(--ink); }
.cart-layout, .checkout-layout { display: grid; gap: 24px; padding-bottom: 50px; }
@media (min-width: 992px) {
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
  .summary { position: sticky; top: calc(var(--header-h) + 20px); }
}
.cart-lines { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .cart-line { grid-template-columns: 110px 1fr auto; } }
.cart-img { position: relative; aspect-ratio: 3 / 4; background: var(--soft); overflow: hidden; display: block; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-img .ph-mono, .mini-img .ph-mono { font-size: 2rem; }
.cart-img .ph-brand, .mini-img .ph-brand { display: none; }
.cart-info { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.cart-info strong { font-weight: 500; font-size: .95rem; }
.cart-info .meta { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cart-info .meta i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); display: inline-block; }
.cart-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.line-error { color: var(--sale); font-size: .82rem; }
.cart-total { grid-column: 2; font-weight: 600; }
@media (min-width: 640px) { .cart-total { grid-column: auto; text-align: right; } }
.link-btn { border: 0; background: none; padding: 0; text-decoration: underline; cursor: pointer; font-size: .82rem; color: var(--muted); }
.summary { background: var(--soft); border-radius: var(--radius-lg); padding: 22px; }
.summary h2 { font-size: 1.1rem; font-weight: 600; }
.totals { margin: 12px 0 16px; font-size: .92rem; }
.totals div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; text-align: right; }
.totals .total { border-top: 1px solid #dcd8d1; margin-top: 6px; padding-top: 12px; font-size: 1.12rem; font-weight: 600; }
.summary .check { margin: 8px 0 14px; }
.co-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
@media (min-width: 768px) { .co-box { padding: 26px; } }
.co-box h2 { font-size: 1.08rem; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.co-box .num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.dopt input, .sopt input { position: absolute; opacity: 0; pointer-events: none; }
.dopt span { display: flex; flex-direction: column; gap: 2px; border: 1px solid #d9d6d0; border-radius: 10px; padding: 14px; cursor: pointer; height: 100%; transition: border-color .2s, box-shadow .2s; }
.dopt i { font-size: 1.2rem; margin-bottom: 6px; }
.dopt small { color: var(--muted); font-size: .76rem; }
.dopt input:checked + span, .sopt input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dopt input:focus-visible + span, .sopt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.dopt.is-disabled span { opacity: .45; cursor: not-allowed; }
.store-options { display: grid; gap: 8px; margin-bottom: 16px; }
.sopt span { display: flex; justify-content: space-between; gap: 10px; border: 1px solid #d9d6d0; border-radius: 10px; padding: 12px 14px; cursor: pointer; font-size: .88rem; }
.sopt span small { display: block; color: var(--muted); }
.sopt.is-disabled span { opacity: .5; cursor: not-allowed; background: var(--soft); }
.pay-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--ink); border-radius: 10px; margin-bottom: 10px; }
.pay-card i { font-size: 1.4rem; margin-top: 3px; }
.pay-card small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.pay-manual { border-color: #e2c48f; background: #fffaf1; }
.mini-lines { list-style: none; margin: 0 0 10px; padding: 0; }
.mini-lines li { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: .85rem; }
.mini-lines li.loading-line { display: block; }
.mini-img { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--soft-2); overflow: hidden; border-radius: 2px; }
.mini-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-img .ph-mono { font-size: 1.4rem !important; }
.mini-lines strong { font-weight: 500; display: block; }
.mini-lines small { color: var(--muted); }

/* ---------------- Resultado de pago y seguimiento ---------------- */
.page-result { padding: 50px 16px 70px; }
.result { max-width: 620px; margin: 0 auto; text-align: center; }
.result-icon { font-size: 3.4rem; margin-bottom: 12px; }
.result-ok .result-icon { color: var(--ok); }
.result-error .result-icon { color: var(--sale); }
.result-wait .result-icon { color: var(--warn); }
.result-code { background: var(--soft); display: inline-block; padding: 10px 18px; border-radius: 999px; font-size: .9rem; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.page-track { padding-top: 20px; padding-bottom: 60px; }
.track-lookup { max-width: 460px; margin: 30px auto; text-align: center; }
.track-lookup > i { font-size: 2.4rem; margin-bottom: 10px; }
.track-lookup form { text-align: left; margin-top: 20px; }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.track-head h1 { margin: 0; }
.pay-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 22px; background: #fffdf8; }
.pay-box h2 { font-size: 1.12rem; font-weight: 600; margin-top: 10px; }
.countdown { background: #fdf3e5; color: #7c3d06; padding: 10px 14px; border-radius: 8px; font-size: .88rem; }
.countdown.expired { background: #fdecee; color: #8d0b20; }
.manual-pay ol { padding-left: 20px; font-size: .9rem; }
.progress { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.progress li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: .72rem; color: var(--muted); position: relative; }
.progress li::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.progress li:first-child::before { display: none; }
.progress li.done::before, .progress li.current::before { background: var(--ink); }
.progress .dot { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; z-index: 1; font-size: .78rem; }
.progress li.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.progress li.current .dot { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,17,.08); }
.progress li.current { color: var(--ink); font-weight: 600; }
@media (min-width: 640px) { .progress li { font-size: .82rem; } }
.track-grid { display: grid; gap: 18px; }
@media (min-width: 992px) { .track-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 12px; font-size: .88rem; }
.timeline li::before { content: ''; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
.timeline li small { display: block; color: var(--muted); }
.timeline li strong { font-weight: 500; }

/* ---------------- Tiendas ---------------- */
.page-stores { padding-top: 24px; padding-bottom: 60px; }
.stores-layout { display: grid; gap: 18px; }
@media (min-width: 992px) { .stores-layout { grid-template-columns: 420px 1fr; gap: 28px; align-items: start; } .stores-map { position: sticky; top: calc(var(--header-h) + 20px); } }
.stores-map #map { height: 360px; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); z-index: 1; }
@media (min-width: 992px) { .stores-map #map { height: calc(100vh - var(--header-h) - 60px); min-height: 480px; } }
.stores-list { display: flex; flex-direction: column; gap: 12px; order: 2; }
@media (min-width: 992px) { .stores-list { order: 0; } }
.store-item { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; transition: border-color .2s, box-shadow .2s; cursor: pointer; font-size: .9rem; }
.store-item:hover, .store-item.active { border-color: var(--ink); box-shadow: var(--shadow); }
.store-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.store-item h2 { font-size: 1.05rem; font-weight: 600; }
.store-item p { margin: 0 0 4px; color: var(--ink-2); }
.store-item p i { width: 18px; color: var(--muted); }
.store-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.leaflet-popup-content { font-family: var(--font); font-size: .85rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #d6d3ce; font-size: .88rem; }
.footer-grid { display: grid; gap: 30px; padding-top: 46px; padding-bottom: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } .footer-brand { grid-column: auto; } }
.footer-grid h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 500; margin-bottom: 14px; }
.footer-grid a, .footer-grid span { display: block; margin-bottom: 8px; color: #bdb9b2; }
.footer-grid a:hover { color: #fff; }
.footer-grid .btn { display: inline-flex; color: #fff; }
.footer-brand p { margin: 10px 0 16px; color: #a9a59e; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #2a2a2a; padding-top: 18px; padding-bottom: 22px; font-size: .78rem; color: #8f8b85; }
.pay-icons { display: flex; gap: 12px; font-size: 1.3rem; color: #bdb9b2; }
.wa-float { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
body[data-page="producto"] .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { body[data-page="producto"] .wa-float { bottom: 24px; } .wa-float { right: 24px; bottom: 24px; } }

/* ---------------- Agregado / toasts ---------------- */
.added-body { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 8px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; font-size: .9rem; }
.added-body .cart-img { width: 90px; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; font-size: .88rem; box-shadow: var(--shadow); animation: fadeUp .3s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast-error { background: var(--sale); }
.toast-ok i { color: #7ee2a0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .hero-video { display: none; } }
@media print { .site-header, .announce, .site-footer, .benefits, .wa-float, .sticky-buy { display: none !important; } }

/* =====================================================================
   Marca StockStore365 · verde del logo sobre azul marino
   ===================================================================== */
.btn { background: var(--brand-grad); border-color: var(--brand); box-shadow: 0 8px 22px rgba(23,138,54,.25); }
.btn:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); box-shadow: none; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.btn-light:hover { background: #eefbe6; border-color: #eefbe6; }
.btn-ghost-light { background: rgba(20,24,36,.25); color: #fff; border-color: rgba(255,255,255,.8); box-shadow: none; backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-wa { background: var(--wa); border-color: var(--wa); box-shadow: none; }
:focus-visible { outline-color: var(--brand); }
.input:focus, .select:focus, .search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,138,54,.15); }
.check input, .opt input { accent-color: var(--brand); }

.announce { background: var(--brand-grad); font-weight: 500; }
/* Logo SVG (nítido en cualquier pantalla) */
.logo .logo-svg { height: 40px; width: auto; display: block; }
.logo .logo-svg-sm { height: 34px; }
.logo .logo-svg-lg { height: 52px; }
@media (min-width: 992px) { :root { --header-h: 76px; } .site-header .logo .logo-svg { height: 50px; } }
.cart-count { background: var(--brand); }

.hero { background: radial-gradient(circle at 85% 20%, rgba(108,199,10,.35), transparent 45%), linear-gradient(135deg, #141824 0%, #1d2a33 50%, #178a36 130%); }
.hero-shade { background: linear-gradient(180deg, rgba(20,24,36,.05) 30%, rgba(20,24,36,.72)); }
.promo-dark { background: linear-gradient(135deg, #141824, #1c3326); }

.chip.active, .seg input:checked + span, .pill input:checked + span, .size-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:hover, .size-btn:hover:not(:disabled), .gallery-thumbs .thumb.active, .gallery-thumbs .thumb:hover,
.store-card:hover, .store-item:hover, .store-item.active { border-color: var(--brand); }
.color-btn.active { box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--brand); }
.color-opt input:checked + i { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--brand); }
.step.active { color: var(--brand); }
.step.active b, .step.done b, .co-box .num { background: var(--brand); border-color: var(--brand); }
.dopt input:checked + span, .sopt input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: #f3fbef; }
.pay-card { border-color: var(--brand); }
.progress li.done::before, .progress li.current::before, .progress li.done .dot, .timeline li::before { background: var(--brand); border-color: var(--brand); }
.progress li.current .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px rgba(23,138,54,.15); }
.progress li.current { color: var(--brand); }
.tag-new { background: var(--brand-lime); color: #0e2a12; }
.link-more:hover { color: var(--brand); }
.spinner { border-top-color: var(--brand); }

.site-footer { background: #141824; border-top: 4px solid #178a36; }
.footer-grid a:hover { color: var(--brand-lime); }
.footer-bottom { border-top-color: #262c3d; }
.ph-brand { color: rgba(23,138,54,.45); }

/* ---------- Tiendas alquiladas: logo propio, vista previa y botones para compartir ---------- */
.logo-img { display: block; height: 44px; width: auto; max-width: 190px; object-fit: contain; }
.logo-svg-sm.logo-img { height: 36px; }
.logo-light .logo-img { background: #fff; border-radius: 10px; padding: 4px 8px; height: 52px; }
.logo-text { font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.logo-light .logo-text { color: #fff; font-size: 24px; }
.preview-bar { background: #141824; color: #fff; text-align: center; font-size: 13.5px; padding: 9px 14px; }
.preview-bar i { color: #b9f24b; margin-right: 4px; }
/* Barra de las tiendas demo: cambiar de rubro (colores fijos, no los de la plantilla) */
.demo-bar { background: #0d1019; color: #e6e9f0; font-family: Poppins, system-ui, sans-serif; font-size: 13px; }
.demo-bar-row { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.demo-bar-t { flex-shrink: 0; font-weight: 600; white-space: nowrap; }
.demo-bar-t i { color: #b9f24b; margin-right: 4px; }
.demo-bar-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.demo-bar-list::-webkit-scrollbar { display: none; }
.demo-bar-list a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); color: #e6e9f0; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s; }
.demo-bar-list a:hover { border-color: #b9f24b; }
.demo-bar-list a.on { background: #b9f24b; border-color: #b9f24b; color: #0d1019; font-weight: 600; }
@media (max-width: 640px) { .demo-bar-t { display: none; } }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.share-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: inline-grid; place-items: center; color: #fff; font-size: 17px; cursor: pointer; text-decoration: none; transition: transform .2s; }
.share-btn:hover { transform: translateY(-2px); }
.share-wa { background: #25d366; } .share-fb { background: #1877f2; } .share-tt { background: #111; } .share-cp { background: var(--ink-2); }
.share-msg { flex-basis: 100%; font-size: 13px; color: var(--ok); min-height: 1.2em; }
