/* =========================================================
   SAVA Ofimática — Hoja de estilos
   Paleta: grafito #2F3033 · piedra #77736C · topo #B9AC97 · beige #E2D8C7 · arena #EFE9DF · hueso #F6F3EE · camel #B08D5E
   ========================================================= */
:root {
  --ink: #232427;
  --graphite: #2F3033;
  --graphite-2: #44454A;
  --stone: #77736C;
  --taupe: #B9AC97;
  --beige: #E2D8C7;
  --sand: #EFE9DF;
  --bone: #F6F3EE;
  --white: #FFFFFF;
  --camel: #B08D5E;
  --camel-d: #8E6E43;
  --sale: #9A5B45;
  --ok: #5C7D63;
  --warn: #A2783A;
  --line: #E3DDD2;
  --line-2: #D6CEC0;
  --r: 12px;
  --r-lg: 18px;
  --sh-1: 0 1px 2px rgba(47, 48, 51, .06);
  --sh-2: 0 1px 2px rgba(47, 48, 51, .05), 0 12px 28px -16px rgba(47, 48, 51, .28);
  --sh-3: 0 24px 60px -20px rgba(35, 36, 39, .35);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--graphite); background: var(--bone); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--camel); outline-offset: 2px; }
.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--stone); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--graphite); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; letter-spacing: .01em; transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--graphite); color: #fff; }
.btn--dark:hover { background: var(--ink); box-shadow: 0 8px 18px -10px rgba(35, 36, 39, .6); }
.btn--camel { background: var(--camel); color: #fff; }
.btn--camel:hover { background: var(--camel-d); }
.btn--light { background: var(--white); border-color: var(--line-2); color: var(--graphite); }
.btn--light:hover { border-color: var(--graphite); }
.btn--sand { background: var(--sand); color: var(--graphite); }
.btn--sand:hover { background: var(--beige); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 24px; font-size: 15px; }
.btn--sm { padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); display: inline-grid; place-items: center; transition: border-color .15s, background .15s; }
.iconbtn:hover { border-color: var(--graphite); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--camel-d); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--graphite); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge--sale { background: var(--sale); color: #fff; }
.badge--feat { background: var(--graphite); color: #fff; }
.badge--soft { background: var(--sand); color: var(--graphite-2); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok); }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--pedido { color: var(--warn); }
.stock--agotado { color: var(--sale); }

/* ---------- Topbar ---------- */
.topbar { background: var(--graphite); color: #E9E4DA; font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__promo { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar__promo svg { color: var(--camel); flex: none; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; opacity: .88; transition: opacity .15s; }
.topbar__links a:hover { opacity: 1; color: #fff; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(35, 36, 39, .35); }
.header__in { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.logo img { height: 50px; width: auto; }
.hamb { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 9px; flex-direction: column; justify-content: space-between; }
.hamb span { height: 2px; background: var(--graphite); border-radius: 2px; }

.search { position: relative; flex: 1; min-width: 0; display: flex; align-items: stretch; height: 48px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--bone); transition: border-color .15s, box-shadow .15s, background .15s; }
.search:focus-within { border-color: var(--graphite); background: var(--white); box-shadow: 0 0 0 4px rgba(176, 141, 94, .15); }
.search select { border: 0; background: transparent; padding: 0 12px 0 16px; border-right: 1px solid var(--line-2); font-weight: 600; font-size: 13px; max-width: 170px; outline: none; color: var(--graphite-2); }
.search input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; padding: 0 14px; outline: none; }
.search button { width: 54px; border: 0; background: var(--graphite); color: #fff; border-radius: 0 10px 10px 0; margin: -1.5px -1.5px -1.5px 0; display: grid; place-items: center; transition: background .15s; }
.search button:hover { background: var(--camel-d); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-3); overflow: hidden; z-index: 60; }
.suggest a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; }
.suggest a:hover, .suggest a.is-active { background: var(--bone); }
.suggest img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--sand); }
.suggest b { font-size: 14px; font-weight: 600; display: block; line-height: 1.3; }
.suggest small { color: var(--stone); font-size: 12px; }
.suggest .price-mini { font-weight: 700; font-size: 13px; }
.suggest__all { display: block !important; text-align: center; padding: 10px !important; border-top: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--camel-d); }

.hactions { display: flex; align-items: center; gap: 8px; }
.hact { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; transition: background .15s; }
.hact:hover { background: var(--bone); }
.hact small { display: block; font-size: 11px; color: var(--stone); line-height: 1.1; }
.hact b { display: block; font-size: 14px; line-height: 1.25; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hact__icon { position: relative; display: grid; }
.count { position: absolute; top: -7px; right: -9px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--camel); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--white); }
.count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }

/* Nav de categorías */
.catnav { background: var(--sand); border-top: 1px solid var(--line); }
.catnav__in { display: flex; align-items: center; gap: 6px; height: 48px; }
.mega { position: relative; }
.mega__btn { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 18px; background: var(--graphite); color: #fff; border: 0; font-weight: 700; font-size: 14px; }
.mega__btn:hover, .mega__btn[aria-expanded="true"] { background: var(--ink); }
.mega__panel { position: absolute; top: 100%; left: 0; width: min(760px, 92vw); background: var(--white); border: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: var(--sh-3); padding: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; z-index: 55; animation: drop .2s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mega__panel a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.mega__panel a:hover { background: var(--bone); }
.mega__panel a span.ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--sand); color: var(--graphite); flex: none; }
.mega__panel a small { margin-left: auto; color: var(--stone); font-weight: 600; }
.catnav__links { display: flex; list-style: none; margin: 0; padding: 0; overflow: hidden; flex: 1; }
.catnav__links a { display: block; padding: 0 14px; line-height: 48px; font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--graphite-2); position: relative; }
.catnav__links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 2px; background: var(--camel); transform: scaleX(0); transition: transform .2s var(--ease); }
.catnav__links a:hover::after, .catnav__links a.is-active::after { transform: scaleX(1); }
.catnav__offer { font-weight: 800; font-size: 14px; color: var(--sale); padding: 0 6px; white-space: nowrap; }

/* Menú móvil */
.scrim { position: fixed; inset: 0; background: rgba(35, 36, 39, .45); z-index: 70; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.mnav { position: fixed; top: 0; bottom: 0; left: 0; width: min(330px, 86vw); background: var(--white); z-index: 71; transform: translateX(-102%); transition: transform .3s var(--ease); display: flex; flex-direction: column; }
.mnav.is-open { transform: none; }
.mnav__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mnav__logo { height: 38px; }
.mnav nav { overflow-y: auto; padding: 10px; }
.mnav nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; font-weight: 600; }
.mnav nav a:hover { background: var(--bone); }
.mnav nav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

/* ---------- Secciones genéricas ---------- */
main { min-height: 60vh; outline: none; }
.section { padding: 48px 0; }
.section--tight { padding: 28px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--camel-d); margin-bottom: 6px; }
.sec-head a { font-weight: 700; font-size: 14px; color: var(--camel-d); white-space: nowrap; }
.sec-head a:hover { color: var(--graphite); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--stone); padding: 18px 0 6px; }
.crumbs a:hover { color: var(--graphite); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Hero ---------- */
.hero { padding-top: 22px; }
.slider { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); box-shadow: var(--sh-2); }
.slides { display: flex; transition: transform .7s var(--ease); }
.slide { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1.05fr; min-height: 420px; position: relative; }
.slide__copy { padding: 56px 56px 64px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; background: linear-gradient(120deg, var(--sand) 60%, rgba(239, 233, 223, 0)); position: relative; z-index: 1; }
.slide__copy h1, .slide__copy h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.02em; max-width: 14ch; }
.slide__copy p { margin: 0; color: var(--graphite-2); font-size: 17px; max-width: 42ch; }
.slide__media { position: relative; }
.slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__media::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 120px; background: linear-gradient(90deg, var(--sand), rgba(239, 233, 223, 0)); z-index: 1; }
.slider__nav { position: absolute; left: 56px; bottom: 26px; display: flex; gap: 8px; z-index: 2; }
.slider__nav button { width: 28px; height: 4px; border-radius: 4px; border: 0; background: rgba(47, 48, 51, .2); padding: 0; transition: background .2s, width .3s var(--ease); }
.slider__nav button.is-active { background: var(--graphite); width: 44px; }
.slider__arrows { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 8px; z-index: 2; }
.slider__arrows button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1); display: grid; place-items: center; }
.slider__arrows button:hover { background: #fff; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.benefit { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.benefit__ic { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; color: var(--camel-d); flex: none; }
.benefit b { display: block; font-size: 14px; }
.benefit div span { display: block; font-size: 13px; color: var(--stone); line-height: 1.35; }

/* ---------- Categorías ---------- */
.cattiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cattile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 6px 4px; border-radius: var(--r); transition: transform .2s var(--ease); }
.cattile:hover { transform: translateY(-3px); }
.cattile__ic { width: 100%; aspect-ratio: 1; max-width: 120px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--graphite); transition: border-color .2s, box-shadow .2s, background .2s; }
.cattile:hover .cattile__ic { border-color: var(--taupe); box-shadow: var(--sh-2); background: var(--sand); }
.cattile b { font-size: 13px; font-weight: 700; line-height: 1.25; }
.cattile small { font-size: 12px; color: var(--stone); margin-top: -6px; }

/* ---------- Tarjeta de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .25s var(--ease), border-color .25s, transform .25s var(--ease); }
.card:hover { box-shadow: var(--sh-2); border-color: var(--line-2); transform: translateY(-2px); }
.card__media { position: relative; display: block; aspect-ratio: 1; background: var(--bone); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.card__play { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--graphite); }
.card__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__brand { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); min-height: 15px; }
.card__name { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.card__name:hover { color: var(--camel-d); }
.card__sku { font-size: 12px; color: var(--stone); }
.prices { margin-top: 8px; min-height: 48px; }
.prices__old { font-size: 12px; color: var(--stone); }
.prices__old s { margin-right: 6px; }
.prices__old b { color: var(--sale); font-weight: 700; }
.prices__now { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.prices__now small { font-size: 11px; font-weight: 600; color: var(--stone); margin-left: 3px; }
.prices__ask { font-size: 15px; font-weight: 800; color: var(--camel-d); padding-top: 14px; display: block; }
.card__foot { margin-top: 10px; display: grid; gap: 8px; }
.add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid var(--graphite); background: var(--graphite); color: #fff; font-weight: 700; font-size: 13px; transition: background .15s, color .15s, border-color .15s; }
.add:hover { background: var(--ink); }
.add.is-in { background: var(--sand); color: var(--graphite); border-color: var(--beige); }
.add.is-in:hover { border-color: var(--graphite); }

.skel { border-radius: var(--r); background: linear-gradient(100deg, #ECE6DC 30%, #F7F4EF 50%, #ECE6DC 70%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; height: 380px; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Carrusel */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__btn { position: absolute; top: 38%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); box-shadow: var(--sh-2); display: grid; place-items: center; z-index: 2; transition: opacity .2s; }
.rail__btn--prev { left: -18px; } .rail__btn--next { right: -18px; }
.rail__btn:disabled { opacity: 0; pointer-events: none; }

/* Banners dobles */
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.promo { position: relative; border-radius: var(--r-lg); padding: 38px; min-height: 230px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; overflow: hidden; }
.promo h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); max-width: 18ch; }
.promo p { margin: 0; max-width: 40ch; }
.promo--dark { background: var(--graphite); color: #E9E4DA; }
.promo--dark h3 { color: #fff; }
.promo--beige { background: var(--beige); }
.promo__deco { position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(176, 141, 94, .35); }
.promo--beige .promo__deco { border-color: rgba(255, 255, 255, .45); }

.brands { display: flex; flex-wrap: wrap; gap: 12px; }
.brands span { flex: 1 1 140px; text-align: center; padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); font-size: 14px; transition: color .2s, border-color .2s; }
.brands span:hover { color: var(--graphite); border-color: var(--taupe); }

.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.about h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 14px; }
.about p { color: var(--graphite-2); font-size: 16px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: var(--taupe); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--camel-d); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--graphite-2); }

/* ---------- Listado ---------- */
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; padding-bottom: 60px; }
.listing__head { padding: 6px 0 18px; }
.listing__head h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.filters { position: sticky; top: 150px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.filters h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); margin: 4px 0 10px; }
.filters h3:not(:first-child) { margin-top: 22px; }
.filters ul { list-style: none; margin: 0; padding: 0; }
.filters li a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--graphite-2); }
.filters li a:hover { background: var(--bone); }
.filters li a.is-active { background: var(--graphite); color: #fff; }
.filters li a small { color: inherit; opacity: .6; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 2px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--graphite); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar p { margin: 0; color: var(--stone); font-size: 14px; }
.select { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--white); font-weight: 600; font-size: 14px; }
.filters-toggle { display: none; }
.empty { text-align: center; padding: 60px 20px; background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty__ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; color: var(--camel-d); }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--stone); margin: 0 0 18px; }

/* ---------- Página de producto ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; padding: 8px 0 30px; align-items: start; }
.gallery { position: sticky; top: 150px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery__thumbs button { position: relative; width: 76px; height: 76px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); overflow: hidden; padding: 0; }
.gallery__thumbs button.is-active { border-color: var(--graphite); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(35, 36, 39, .35); color: #fff; }
.gallery__main { aspect-ratio: 1; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__main iframe, .gallery__main video { width: 100%; height: 100%; border: 0; background: #000; }
.pinfo { display: flex; flex-direction: column; gap: 12px; }
.pinfo__brand { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--camel-d); }
.pinfo h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.pinfo__meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; color: var(--stone); }
.pinfo .prices { padding: 16px 0; border-block: 1px solid var(--line); margin: 4px 0; }
.pinfo .prices__now { font-size: 32px; }
.pinfo .prices__ask { font-size: 22px; padding: 0; }
.pinfo__desc { color: var(--graphite-2); margin: 0; }
.buybox { display: flex; gap: 12px; flex-wrap: wrap; }
.buybox .btn { flex: 1; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); overflow: hidden; }
.stepper button { width: 40px; height: 46px; border: 0; background: none; font-size: 18px; font-weight: 600; color: var(--graphite); }
.stepper button:hover { background: var(--bone); }
.stepper input { width: 50px; text-align: center; border: 0; font-weight: 700; outline: none; -moz-appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper--sm button { width: 30px; height: 34px; font-size: 16px; }
.stepper--sm input { width: 38px; font-size: 14px; }
.trust { list-style: none; padding: 16px; margin: 6px 0 0; background: var(--sand); border-radius: var(--r); display: grid; gap: 10px; font-size: 14px; }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust svg { color: var(--camel-d); flex: none; }
.ptabs { margin-top: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ptabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 14px; overflow-x: auto; }
.ptabs__nav button { border: 0; background: none; padding: 16px 14px; font-weight: 700; color: var(--stone); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ptabs__nav button.is-active { color: var(--ink); border-color: var(--camel); }
.ptabs__panel { padding: 24px 26px; }
.ptabs__panel p { margin-top: 0; white-space: pre-line; color: var(--graphite-2); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; background: var(--bone); font-weight: 700; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.videos .vbox { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.videos iframe, .videos video { width: 100%; height: 100%; border: 0; }
.pdf-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--camel-d); }

/* ---------- Cotización ---------- */
.steps { display: flex; gap: 8px; margin: 6px 0 22px; flex-wrap: wrap; }
.steps span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--stone); padding: 7px 14px 7px 7px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); }
.steps span i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--sand); }
.steps span.is-done i { background: var(--ok); color: #fff; }
.steps span.is-current { color: var(--ink); border-color: var(--graphite); }
.steps span.is-current i { background: var(--graphite); color: #fff; }
.qpage { display: grid; grid-template-columns: 1fr 370px; gap: 26px; align-items: start; padding-bottom: 60px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel__head h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.panel__head h2 i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--graphite); color: #fff; display: grid; place-items: center; font-size: 13px; }
.panel__body { padding: 20px 22px; }
.panel + .panel { margin-top: 18px; }
.qitems { list-style: none; margin: 0; padding: 0; }
.qitem { display: grid; grid-template-columns: 72px 1fr auto auto 32px; gap: 16px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.qitem:last-child { border-bottom: 0; }
.qitem img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--bone); border: 1px solid var(--line); }
.qitem__name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.qitem__name:hover { color: var(--camel-d); }
.qitem__meta { font-size: 12px; color: var(--stone); margin-top: 2px; }
.qitem__sub { font-weight: 800; min-width: 90px; text-align: right; }
.qitem__rm { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--stone); font-size: 18px; }
.qitem__rm:hover { background: var(--sand); color: var(--sale); }
.summary { position: sticky; top: 150px; }
.summary .panel__body { display: grid; gap: 12px; }
.sumrow { display: flex; justify-content: space-between; font-size: 14px; }
.sumrow b { font-weight: 700; }
.sumtotal { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.sumtotal b { font-size: 24px; font-weight: 800; }
.note { font-size: 12px; color: var(--stone); margin: 0; line-height: 1.45; }

/* Cliente / formularios */
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--sand); padding: 4px; border-radius: 12px; gap: 4px; margin-bottom: 18px; width: 100%; max-width: 420px; }
.seg label { position: relative; text-align: center; padding: 10px 12px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--stone); transition: background .2s, color .2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--white); color: var(--ink); box-shadow: var(--sh-1); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--camel); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fgrid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 700; color: var(--graphite-2); }
.field label i { color: var(--sale); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; background: var(--white); outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--graphite); box-shadow: 0 0 0 4px rgba(176, 141, 94, .15); }
.field .err { font-size: 12px; color: var(--sale); font-weight: 600; min-height: 0; }
.field.invalid input, .field.invalid select { border-color: var(--sale); background: #FBF4F1; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--graphite-2); margin-top: 14px; cursor: pointer; }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--graphite); flex: none; }
.form-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #F7ECE7; color: var(--sale); font-size: 14px; font-weight: 600; }
.form-error:empty { display: none; }
.tabs2 { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: -20px -22px 20px; }
.tabs2 button { flex: 1; border: 0; background: none; padding: 15px; font-weight: 700; color: var(--stone); border-bottom: 2px solid transparent; }
.tabs2 button.is-active { color: var(--ink); border-color: var(--camel); background: var(--bone); }
.client-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.client-card__av { width: 52px; height: 52px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-weight: 800; color: var(--camel-d); font-size: 18px; }
.client-card h3 { font-size: 17px; margin-bottom: 4px; }
.client-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 10px 0 0; font-size: 14px; }
.client-card dt { color: var(--stone); }
.client-card dd { margin: 0; font-weight: 600; }
.client-card__actions { grid-column: 1 / -1; display: flex; gap: 16px; }

.done { text-align: center; max-width: 620px; margin: 30px auto 80px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px 32px; box-shadow: var(--sh-2); }
.done__ic { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; background: var(--ok); color: #fff; display: grid; place-items: center; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h1 { font-family: var(--serif); font-weight: 600; font-size: 32px; margin-bottom: 8px; }
.done__num { display: inline-block; font-size: 22px; font-weight: 800; letter-spacing: .04em; padding: 10px 20px; border-radius: 10px; background: var(--sand); margin: 8px 0 16px; }
.done p { color: var(--graphite-2); }
.done__actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* Cuenta */
.account { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; padding-bottom: 60px; }
.account--in { grid-template-columns: 1.1fr 1fr; }
.qhist { width: 100%; border-collapse: collapse; font-size: 14px; }
.qhist th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.qhist td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.qhist pre { margin: 0; font-family: var(--font); white-space: pre-wrap; font-size: 13px; color: var(--graphite-2); }
.status { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--sand); }
.status--Nueva { background: #E9E3F0; } .status--Enviada { background: #E2ECE4; color: var(--ok); } .status--Ganada { background: var(--ok); color: #fff; } .status--Perdida { background: #F3E3DD; color: var(--sale); }

/* Contacto / ayuda */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; padding-bottom: 60px; align-items: start; }
.cinfo { display: grid; gap: 12px; }
.cinfo a, .cinfo div { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.cinfo a:hover { border-color: var(--taupe); }
.cinfo .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; color: var(--camel-d); flex: none; }
.cinfo small { display: block; color: var(--stone); font-size: 12px; }
.cinfo b { display: block; font-size: 15px; }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: var(--sand); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.6) sepia(.15); }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; margin-bottom: 40px; }
.howto li { list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; counter-increment: s; }
.howto li::before { content: '0' counter(s); display: block; font-family: var(--serif); font-size: 40px; color: var(--camel); line-height: 1; margin-bottom: 12px; }
.howto h3 { font-size: 18px; margin-bottom: 6px; }
.howto p { margin: 0; color: var(--graphite-2); }
.howto { padding: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--graphite); color: #CFC9BE; margin-top: 30px; padding-top: 56px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 360px; color: #ABA59A; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: .02em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a:hover { color: #fff; }
.footer .muted { color: #96907F; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--camel); border-color: var(--camel); color: #fff; }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: #96907F; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #3B8F5E; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(35, 36, 39, .6); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.07); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--sh-3); transition: transform .3s var(--ease), opacity .3s, visibility .3s; display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast a { color: var(--beige); text-decoration: underline; white-space: nowrap; }

.fade-in { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .rail__track { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
  .cattiles { grid-template-columns: repeat(4, 1fr); }
  .hact b:not(.count), .hact small { display: none; }
}
@media (max-width: 960px) {
  .topbar__links a:not(:first-child) { display: none; }
  .catnav { display: none; }
  .hamb { display: flex; }
  .header__in { flex-wrap: wrap; gap: 10px 14px; padding: 10px 0 12px; }
  .logo img { height: 40px; }
  .hactions { margin-left: auto; }
  .search { order: 5; flex-basis: 100%; height: 46px; }
  .search select { display: none; }
  .slide { grid-template-columns: 1fr; min-height: 0; }
  .slide__media { height: 230px; order: -1; }
  .slide__media::before { display: none; }
  .slide__copy { padding: 26px 24px 58px; background: var(--sand); }
  .slider__nav { left: 24px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .rail__track { grid-auto-columns: calc((100% - 2 * 14px) / 2.3); gap: 14px; }
  .rail__btn { display: none; }
  .duo, .about, .contact, .account, .account--in { grid-template-columns: 1fr; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery__thumbs button { flex: none; width: 64px; height: 64px; }
  .qpage { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .howto { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  .topbar__promo { font-size: 12px; }
  .topbar__links { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card__body { padding: 10px 10px 12px; }
  .prices__now { font-size: 17px; }
  .add { font-size: 12px; padding: 10px 6px; }
  .cattiles { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cattile b { font-size: 11px; }
  .cattile small { display: none; }
  .cattile__ic svg { width: 26px; height: 26px; }
  .benefit { padding: 12px; gap: 10px; }
  .benefit__ic { width: 36px; height: 36px; }
  .benefit div span { display: none; }
  .slide__copy h1, .slide__copy h2 { font-size: 28px; }
  .slide__copy p { font-size: 15px; }
  .slide__media { height: 190px; }
  .fgrid { grid-template-columns: 1fr; }
  .qitem { grid-template-columns: 60px 1fr 28px; gap: 10px 12px; padding: 12px 14px; }
  .qitem img { width: 60px; height: 60px; grid-row: span 2; }
  .qitem .stepper { grid-column: 2; }
  .qitem__sub { grid-column: 2; grid-row: 3; text-align: left; display: none; }
  .qitem__rm { grid-column: 3; grid-row: 1; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .promo { padding: 28px 24px; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .ptabs__panel { padding: 18px; }
  .specs th { width: 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   PANEL ADMINISTRADOR
   ========================================================= */
.adm-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 10%, var(--sand), var(--bone) 60%); }
.adm-login__card { width: min(420px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--sh-3); }
.adm-login__card img { height: 52px; margin-bottom: 24px; }
.adm-login__card h1 { font-size: 22px; margin-bottom: 4px; }
.adm-login__card p { color: var(--stone); margin: 0 0 22px; }
.adm-login__card form { display: grid; gap: 14px; }
.demo-note { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--sand); font-size: 13px; }

.adm { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.adm-side { background: var(--graphite); color: #D9D3C8; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.adm-side img { height: 42px; width: auto; margin: 0 8px 26px; align-self: flex-start; }
.adm-side button, .adm-side a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px; border: 0; background: none; color: inherit; font-weight: 600; font-size: 14px; text-align: left; }
.adm-side button:hover, .adm-side a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.adm-side button.is-active { background: var(--camel); color: #fff; }
.adm-side .sep { flex: 1; }
.adm-side small.cnt { margin-left: auto; background: rgba(255, 255, 255, .15); border-radius: 99px; padding: 1px 8px; font-size: 11px; }
.adm-main { padding: 28px 34px 80px; min-width: 0; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.adm-head h1 { font-size: 26px; font-weight: 800; }
.adm-head p { margin: 4px 0 0; color: var(--stone); }
.demo-banner { background: var(--beige); border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: 13px; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.kpi b { display: block; font-size: 28px; font-weight: 800; color: var(--ink); }
.kpi span { color: var(--stone); font-size: 13px; }
.adm-tools { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.adm-tools input, .adm-tools select { border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; background: var(--white); }
.adm-tools input { flex: 1; min-width: 200px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--stone); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bone); white-space: nowrap; }
.ptable td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable tr:hover td { background: #FBFAF7; }
.ptable img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--sand); }
.ptable .pname { font-weight: 700; line-height: 1.3; }
.ptable .psub { font-size: 12px; color: var(--stone); }
.ptable .acts { display: flex; gap: 6px; justify-content: flex-end; }
.mini { border: 1px solid var(--line-2); background: var(--white); border-radius: 8px; padding: 7px 11px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.mini:hover { border-color: var(--graphite); }
.mini--danger:hover { border-color: var(--sale); color: var(--sale); }
.mini--confirm { background: var(--sale); border-color: var(--sale); color: #fff !important; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s var(--ease); box-shadow: var(--sh-1); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.table-scroll { overflow-x: auto; }

.editor { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.editor .panel__body { display: grid; gap: 16px; }
.editor__side { position: sticky; top: 20px; display: grid; gap: 16px; }
.hint { font-weight: 500; color: var(--stone); font-size: 12px; }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 22px; text-align: center; background: var(--bone); cursor: pointer; transition: border-color .2s, background .2s; display: block; }
.drop:hover, .drop.is-over { border-color: var(--camel); background: var(--sand); }
.drop svg { margin: 0 auto 6px; color: var(--camel-d); }
.drop b { display: block; font-size: 14px; }
.drop span { font-size: 12px; color: var(--stone); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.media-grid:empty { display: none; }
.mthumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--sand); cursor: grab; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.mthumb.is-video { display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 700; color: var(--graphite-2); padding: 6px; }
.mthumb .x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); font-size: 12px; font-weight: 800; box-shadow: var(--sh-1); }
.mthumb .x:hover { background: var(--sale); color: #fff; }
.mthumb .tag { position: absolute; left: 5px; bottom: 5px; font-size: 10px; font-weight: 800; background: var(--graphite); color: #fff; border-radius: 5px; padding: 2px 6px; }
.mthumb.dragging { opacity: .4; }
.mthumb.is-loading::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='18' fill='none' stroke='%23B08D5E' stroke-width='5' stroke-dasharray='80 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 34px no-repeat; }
.inline-add { display: flex; gap: 8px; }
.inline-add input { flex: 1; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.toggles { display: grid; gap: 12px; }
.toggles label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 14px; }
.file-pill { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bone); font-size: 13px; font-weight: 600; }
.cfg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.cfg-grid .panel + .panel { margin-top: 0; }
.cfg-grid .panel__body { display: grid; gap: 14px; }
.banner-ed { display: grid; grid-template-columns: 180px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bone); }
.banner-ed__img { position: relative; aspect-ratio: 5 / 3; border-radius: 10px; overflow: hidden; background: var(--sand); }
.banner-ed__img img { width: 100%; height: 100%; object-fit: cover; }
.banner-ed__img label { position: absolute; inset: auto 6px 6px 6px; text-align: center; background: rgba(255, 255, 255, .92); border-radius: 7px; padding: 5px; font-size: 11px; font-weight: 800; cursor: pointer; }
.banner-ed .fgrid { gap: 10px; }
.logo-ed { display: flex; align-items: center; gap: 16px; }
.logo-ed__box { width: 200px; height: 80px; border-radius: 10px; background: var(--bone); border: 1px solid var(--line); display: grid; place-items: center; padding: 10px; }
.logo-ed__box img { max-height: 60px; }
.save-bar { position: sticky; bottom: 0; margin-top: 20px; background: rgba(246, 243, 238, .95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 14px 0; display: flex; gap: 12px; justify-content: flex-end; z-index: 5; }
.qrow-detail { font-size: 13px; color: var(--graphite-2); line-height: 1.5; }

@media (max-width: 1100px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: sticky; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; gap: 4px; z-index: 20; }
  .adm-side img { display: none; }
  .adm-side .sep { display: none; }
  .adm-side button, .adm-side a { width: auto; white-space: nowrap; }
  .adm-main { padding: 20px 16px 80px; }
  .editor, .cfg-grid { grid-template-columns: 1fr; }
  .editor__side { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .ptable .hide-m { display: none; }
  .banner-ed { grid-template-columns: 1fr; }
  .row3 { grid-template-columns: 1fr; }
}

.qitem .stepper { justify-self: start; }
