/* ====== Tienda — estilos (sin fuentes externas: funciona sin internet) ====== */
:root {
  /* Colores corporativos Thunderbolt 3D (tomados del logo) */
  --brand: #16872f;        /* verde corporativo (botones, enlaces) */
  --brand-dark: #0f6b25;
  --brand-2: #99ca11;      /* lima del rayo */
  --lime: #b8e62a;
  --neon: #d8ff3c;         /* neón de la versión negra del ícono */
  --accent: #e58005;       /* naranjo de "Ideas en movimiento" */
  --accent-ink: #a95a00;
  --brand-soft: #ebf7df;
  --ink: #111611;
  --ink-2: #444c44;
  --muted: #7d867d;
  --line: #e4e9e2;
  --bg: #f6f8f4;
  --card: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --info: #2563eb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 21, 31, .05), 0 6px 24px rgba(22, 21, 31, .06);
  --shadow-lg: 0 24px 60px rgba(22, 21, 31, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
body.no-scroll { overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.row-end { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.grow { flex: 1; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap; text-decoration: none !important; line-height: 1.2; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; border-color: #d4d4e0; }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .86rem; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-ghost.busy::after, .btn-soft.busy::after { border-color: var(--brand); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

label { font-weight: 600; font-size: .88rem; display: block; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fields-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], input[type=date], input[type=color], select, textarea {
  width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; }
input[type=color] { padding: 4px; height: 44px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; margin: 6px 0; color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
.form-error { color: var(--bad); font-size: .88rem; margin: 6px 0 10px; min-height: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f0f0f5; color: var(--ink-2); white-space: nowrap; }
.st-warn { background: #fff4e0; color: #9a5b00; }
.st-ok { background: #e3f8ea; color: #11743a; }
.st-info { background: #e6efff; color: #1d4ed8; }
.st-done { background: #e3f1d6; color: #2f6b12; }
.st-bad { background: #fde8e8; color: #b91c1c; }

/* ---------- barra superior ---------- */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: .84rem; padding: 7px 16px; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none !important; white-space: nowrap; }
.logo img { height: 44px; width: auto; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: #fff; font-size: 1.05rem; box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 35%, transparent); }
.search { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.search input { padding-left: 40px; border-radius: 999px; background: #f3f3f8; border-color: transparent; }
.search input:focus { background: #fff; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.suggest a:hover, .suggest a.active { background: var(--brand-soft); }
.suggest .thumb { width: 42px; height: 42px; border-radius: 8px; overflow: hidden; flex: none; }
.suggest .thumb > * { width: 100%; height: 100%; object-fit: cover; }
.suggest .all { justify-content: center; font-weight: 600; color: var(--brand); border-top: 1px solid var(--line); }
.head-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: #f0f0f6; }
.count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.count.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.45); } }
.nav { border-top: 1px solid var(--line); }
.nav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.nav-in::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; text-decoration: none; }
.nav a:hover { background: #f0f0f6; }
.nav a.active { background: var(--ink); color: #fff; }

/* ---------- inicio ---------- */
.hero { position: relative; overflow: hidden; border-radius: 24px; margin: 22px 0 34px; padding: clamp(28px, 5vw, 64px);
  background: radial-gradient(700px 380px at 85% 40%, rgba(184, 230, 42, .28), transparent 65%), radial-gradient(500px 300px at 10% 110%, rgba(22, 135, 47, .45), transparent 60%), #070b07;
  color: #fff; display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: linear-gradient(rgba(184, 230, 42, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(184, 230, 42, .35) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%); }
.hero h1 { color: #fff; margin-bottom: 14px; font-size: clamp(2rem, 4.4vw, 3.3rem); font-style: italic; letter-spacing: -.02em; }
.neon { background: linear-gradient(90deg, #f3ff3a, var(--lime) 45%, #2fe05a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(184, 230, 42, .35)); }
.hero p { color: #c9d6c6; font-size: 1.06rem; max-width: 540px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-lime { background: linear-gradient(90deg, var(--neon), #6fdc2c); color: #0b120b; box-shadow: 0 8px 26px rgba(184, 230, 42, .35); }
.btn-lime:hover { filter: brightness(1.06); }
.hero-kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--neon); border: 1px solid rgba(216, 255, 60, .35); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero-social { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: #9fb09c; font-size: .85rem; }
.hero-visual { position: relative; min-height: 340px; display: grid; place-items: center; }
.hero-bolt { width: min(320px, 80%); height: auto; filter: drop-shadow(0 0 40px rgba(184, 230, 42, .45)); animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 50% { filter: drop-shadow(0 0 60px rgba(184, 230, 42, .7)); transform: scale(1.02); } }
.hero-float { position: absolute; width: 110px; height: 110px; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); border: 2px solid rgba(216, 255, 60, .35); animation: float 6s ease-in-out infinite; }
.hero-float > * { width: 100%; height: 100%; object-fit: cover; }
.hero-float.f0 { top: 4%; left: 2%; transform: rotate(-8deg); }
.hero-float.f1 { bottom: 2%; right: 0; animation-delay: -2s; }
.hero-float.f2 { bottom: 10%; left: 8%; width: 88px; height: 88px; animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -10px; } }
.section { margin: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 170px; color: #fff; display: flex; align-items: flex-end; padding: 20px; text-decoration: none !important; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.cat-card .art { position: absolute; top: 0; right: 0; width: 58%; height: 100%; transition: transform .5s; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card:hover .art { transform: scale(1.06); }
.cat-card div { position: relative; }
.cat-card h3 { margin: 0; color: #fff; font-size: 1.25rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.cat-card span { font-size: .85rem; opacity: .92; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.perk { display: flex; gap: 14px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.perk-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; font-size: 1.3rem; }
.perk b { display: block; }
.perk span { font-size: .85rem; color: var(--muted); }

/* ---------- tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; position: relative; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #f1f1f6; display: block; }
.pcard-img > img, .pcard-img > .art { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard-img > img, .pcard:hover .pcard-img > .art { transform: scale(1.05); }
.pcard-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.tag-sale { background: var(--accent-ink); color: #fff; }
.tag-out { background: var(--ink); color: #fff; }
.fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: transform .15s; }
.fav:hover { transform: scale(1.1); }
.fav.on { color: #e11d48; }
.fav.on svg { fill: currentColor; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pcard-name { font-weight: 700; color: var(--ink); line-height: 1.3; text-decoration: none; }
.pcard-name:hover { color: var(--brand); text-decoration: none; }
.price { font-weight: 800; font-size: 1.12rem; }
.price-old { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .88rem; margin-left: 6px; }
.pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.add-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .15s, background .15s; flex: none; }
.add-btn:hover { background: var(--brand); transform: scale(1.08); }
.add-btn:disabled { background: #cfcfda; cursor: not-allowed; transform: none; }
.stock-low { color: var(--warn); font-size: .8rem; font-weight: 700; }

/* ---------- catálogo ---------- */
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin: 26px 0 50px; }
.filters { position: sticky; top: 130px; align-self: start; }
.filters h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 18px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.filter-link { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none !important; font-weight: 500; }
.filter-link:hover { background: #efeff6; }
.filter-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.price-inputs { display: flex; gap: 8px; }
.price-inputs input { padding: 8px 10px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar select { width: auto; padding: 9px 12px; }
.filters-toggle { display: none; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-ico { font-size: 2.6rem; margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, #ececf3 25%, #f6f6fa 37%, #ececf3 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- ficha de producto ---------- */
.crumbs { font-size: .86rem; color: var(--muted); margin: 20px 0; }
.crumbs a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; margin-bottom: 40px; }
.pdp-img { border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: #f1f1f6; position: sticky; top: 130px; cursor: zoom-in; }
.pdp-img > img, .pdp-img > .art { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pdp-img.zoom > img, .pdp-img.zoom > .art { transform: scale(1.8); }
.pdp h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 10px; }
.pdp .price { font-size: 1.8rem; }
.variant-label { font-weight: 700; margin: 20px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: all .15s; }
.chip:hover:not(:disabled) { border-color: var(--ink); }
.chip.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.chip:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 38px; height: 40px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--ink); border-radius: 50%; }
.qty button:hover:not(:disabled) { background: #f0f0f6; }
.qty button:disabled { opacity: .3; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.qty-sm button { width: 30px; height: 30px; font-size: 1rem; }
.buy-row { display: flex; gap: 12px; margin: 22px 0 12px; flex-wrap: wrap; }
.buy-row .btn-primary { flex: 1; min-width: 180px; }
.stock-info { font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.info-list { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; display: grid; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.info-list div { display: flex; gap: 10px; }
.desc { white-space: pre-line; color: var(--ink-2); }
.reviews { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rating-big { font-size: 3rem; font-weight: 800; line-height: 1; }
.star-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { display: none; }
.star-input label { font-size: 1.8rem; color: #d9dbe3; cursor: pointer; margin: 0; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }

/* ---------- carrito lateral ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(15, 14, 25, .45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; z-index: 81; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer.open + .drawer-bg, .drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px; background: #fcfcfe; }
.line { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-img { width: 70px; height: 70px; border-radius: 10px; overflow: hidden; }
.line-img > * { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-weight: 600; color: var(--ink); line-height: 1.3; display: block; }
.line-var { font-size: .82rem; color: var(--muted); }
.line-remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .8rem; padding: 4px 0; text-decoration: underline; }
.line-remove:hover { color: var(--bad); }
.ship-bar { background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; font-size: .86rem; margin: 12px 0; }
.ship-bar .track { height: 6px; background: #fff; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.ship-bar .fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; transition: width .5s; }
.sum-row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--ink-2); }
.sum-total { font-weight: 800; font-size: 1.2rem; color: var(--ink); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 28px; margin: 26px 0 60px; align-items: start; }
.step { margin-bottom: 18px; }
.step h3 { display: flex; align-items: center; gap: 10px; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.options { display: grid; gap: 10px; }
.option { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; transition: border-color .15s, background .15s; font-weight: 500; margin: 0; color: var(--ink); }
.option:hover { border-color: #c9c9d8; }
.option:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 60%, #fff); }
.option input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.option b { display: block; }
.option small { color: var(--muted); font-weight: 400; }
.summary { position: sticky; top: 130px; }
.coupon-row { display: flex; gap: 8px; margin: 14px 0; }
.coupon-row input { text-transform: uppercase; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 12px; }
.alert-warn { background: #fff7e8; color: #8a5300; border: 1px solid #ffe2ad; }
.alert-ok { background: #eafaf0; color: #116b36; border: 1px solid #bfeccf; }
.alert-info { background: #eef3ff; color: #1e40af; border: 1px solid #cddcff; }
.alert-bad { background: #fdeeee; color: #9b1c1c; border: 1px solid #f7c9c9; }

/* ---------- pedido ---------- */
.order-hero { text-align: center; padding: 34px 20px 20px; }
.order-hero .big-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; font-size: 2rem; color: #fff; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(0); } }
.timeline { display: flex; justify-content: space-between; position: relative; margin: 26px 0 10px; }
.timeline::before { content: ""; position: absolute; top: 15px; left: 8%; right: 8%; height: 3px; background: var(--line); }
.timeline .bar { position: absolute; top: 15px; left: 8%; height: 3px; background: var(--brand); transition: width .6s; }
.tl-step { position: relative; flex: 1; text-align: center; font-size: .8rem; color: var(--muted); font-weight: 600; }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin: 0 auto 6px; display: grid; place-items: center; font-size: .8rem; color: #fff; }
.tl-step.done .tl-dot { background: var(--brand); border-color: var(--brand); }
.tl-step.done { color: var(--ink); }
.bank { white-space: pre-line; background: #f7f7fb; border: 1px dashed #cfcfe0; border-radius: var(--radius-sm); padding: 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; font-size: .9rem; }
.history li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

/* ---------- pago simulado ---------- */
.paybox { background: linear-gradient(135deg, #1e1b4b, #4338ca); color: #fff; border-radius: 16px; padding: 22px; margin: 14px 0; position: relative; overflow: hidden; }
.paybox::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.paybox .num { font-family: ui-monospace, monospace; font-size: 1.2rem; letter-spacing: .12em; margin: 22px 0 12px; }
.sim-note { background: #fff7e8; color: #8a5300; border-radius: 8px; padding: 8px 12px; font-size: .82rem; }

/* ---------- cuenta ---------- */
.account { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin: 26px 0 60px; }
.side-menu { display: flex; flex-direction: column; gap: 4px; }
.side-menu a, .side-menu button { text-align: left; padding: 11px 14px; border-radius: 10px; color: var(--ink-2); font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-decoration: none !important; display: flex; gap: 10px; align-items: center; }
.side-menu a:hover, .side-menu button:hover { background: #efeff6; }
.side-menu a.active { background: var(--ink); color: #fff; }
.auth-box { max-width: 440px; margin: 40px auto 60px; }
.tabs { display: flex; background: #efeff6; border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.order-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; color: var(--ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; flex-wrap: wrap; }
.order-row:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.thumbs { display: flex; }
.thumbs > div { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; border: 2px solid #fff; margin-left: -8px; }
.thumbs > div:first-child { margin-left: 0; }
.thumbs > div > * { width: 100%; height: 100%; object-fit: cover; }

/* ---------- pie ---------- */
.footer { background: #070b07; color: #aab5a8; padding: 48px 0 26px; margin-top: 60px; font-size: .9rem; border-top: 3px solid; border-image: linear-gradient(90deg, var(--brand-2), var(--brand), var(--accent)) 1; }
.footer h4 { color: #fff; font-size: .95rem; }
.footer a { color: #d7e2d4; }
.footer a:hover { color: var(--neon); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand b { color: #fff; font-size: 1.15rem; display: block; font-style: italic; }
.f-tag { color: var(--accent); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; font-style: italic; }
.f-links { display: grid; gap: 6px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #e6efe3; border: 1px solid rgba(255, 255, 255, .1); transition: all .15s; }
.socials a:hover { background: var(--neon); color: #0b120b; transform: translateY(-2px); }
.hero-social .socials { margin: 0; }
.pay-logos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.pay-chip { font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #cfd9cc; }
.footer-bottom { border-top: 1px solid #1c231b; margin-top: 22px; padding-top: 18px; font-size: .82rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37, 211, 102, .45); z-index: 60; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- modales y avisos ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(15, 14, 25, .5); z-index: 100; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; overflow-y: auto; }
.modal-wrap.in { opacity: 1; }
.modal { background: #fff; border-radius: 18px; padding: 26px; width: 100%; max-width: 460px; position: relative; box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); transition: transform .2s; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-wide { max-width: 760px; }
.modal-wrap.in .modal { transform: none; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f0f0f6; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.modal h3 { padding-right: 30px; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px 11px 12px; border-radius: 999px; font-size: .92rem; font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); transform: translateY(20px); opacity: 0; transition: all .25s; max-width: calc(100vw - 32px); }
.toast.in { transform: none; opacity: 1; }
.toast-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; flex: none; background: var(--ok); }
.toast-err .toast-ico { background: var(--bad); }
.toast-info .toast-ico { background: var(--info); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.reveal.shown { opacity: 1; transform: none; }
.fly { position: fixed; z-index: 300; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; pointer-events: none; transition: all .7s cubic-bezier(.5, -0.3, .7, 1); box-shadow: var(--shadow-lg); }
.fly > * { width: 100%; height: 100%; object-fit: cover; }

/* ---------- tablas (admin y cuenta) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafafd; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbf5; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .shop, .account { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; gap: 22px; }
  .pdp-img { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .side-menu { flex-direction: row; overflow-x: auto; }
  .side-menu a, .side-menu button { white-space: nowrap; }
}
@media (max-width: 640px) {
  .header-in { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .head-actions { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard-body { padding: 10px 12px 12px; }
  .price { font-size: 1rem; }
  .fields-2, .fields-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .filters, .pdp-img, .summary { top: 0; }
  .tl-step { font-size: .68rem; }
  .card-pad { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- compartir, cookies, pago, SEO ---------- */
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.share a, .share > button:not(.btn) { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-size: 1rem; transition: all .15s; }
.share a:hover, .share > button:not(.btn):hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.share .sh-wa { color: #1da851; }
.cookie { position: fixed; left: 16px; bottom: 16px; max-width: 420px; z-index: 90; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-lg); font-size: .9rem; }
.cookie p { margin-bottom: 12px; }
.pay-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(7, 11, 7, .88); color: #fff; display: grid; place-items: center; text-align: center; padding: 20px; }
.pay-overlay img { margin: 0 auto 16px; animation: pulse 1.6s ease-in-out infinite; }
.pay-overlay h3 { color: #fff; }
.js .ssr { display: none; }
.ssr { padding: 30px 0; }
.ssr img { max-width: 360px; border-radius: 12px; }
.paybox { background: linear-gradient(135deg, #0b120b, var(--brand-dark)); }
@media (max-width: 960px) { .hero-visual { display: none; } }
@media (max-width: 640px) { .logo img { height: 34px; } .cookie { left: 8px; right: 8px; bottom: 8px; max-width: none; } }

/* ---------- cuenta y seguridad ---------- */
.pw-meter { height: 6px; background: #e4e9e2; border-radius: 9px; overflow: hidden; margin-top: 8px; }
.pw-meter div { height: 100%; transition: width .25s, background .25s; }
.sess { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sess:last-child { border-bottom: 0; }
.legal h3 { margin-top: 22px; }
.legal p { color: var(--ink-2); }
.check a { font-weight: 600; }
/* Marcas y courier en el checkout */
.pcard-brand { color: var(--muted); font-weight: 600; }
.pdp-meta { margin: -4px 0 12px; }
.ship-opts .option { align-items: center; }
.ship-opts .option > b { white-space: nowrap; }
/* Ficha técnica del producto */
.specs { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fbfcfa; }
.specs h4 { margin: 0 0 8px; }
.specs dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
/* Cotización pública (imprimible) */
.quote-page { max-width: 900px; margin: 24px auto; }
.quote-bar { display: grid; gap: 10px; margin-bottom: 14px; }
.quote-bar .row { justify-content: flex-end; }
.quote-doc { padding: clamp(18px, 4vw, 40px); }
.qd-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 3px solid var(--brand); padding-bottom: 16px; margin-bottom: 16px; }
.qd-logo { height: 46px; width: auto; display: block; margin-bottom: 8px; }
.qd-title { text-align: right; }
.qd-title h1 { margin: 0; font-size: 1.6rem; }
.qd-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 1.1rem; color: var(--brand-dark); }
.qd-client { background: #f6f8f4; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.qd-client .lbl, .qd-notes .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.qd-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.qd-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 6px; }
.qd-table td { border-bottom: 1px solid var(--line); padding: 10px 6px; vertical-align: top; }
.qd-table .num { text-align: right; white-space: nowrap; }
.qd-totals { margin: 14px 0 0 auto; max-width: 320px; }
.qd-notes { margin-top: 18px; }
@media (max-width: 640px) { .qd-title { text-align: left; } .qd-table th:nth-child(4), .qd-table td:nth-child(4) { display: none; } }
@media print {
  body { background: #fff !important; }
  body * { visibility: hidden; }
  .quote-doc, .quote-doc * { visibility: visible; }
  .quote-doc { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  .no-print { display: none !important; }
  @page { margin: 14mm; }
}

/* ---------- v7: líneas, segmentos y filtros contextuales ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.door { position: relative; display: flex; gap: 16px; align-items: flex-start; text-align: left; padding: 22px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--card); box-shadow: var(--shadow); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s; }
.door:hover, .door:focus-visible { border-color: var(--door); transform: translateY(-2px); }
.door.on { border-color: var(--door); }
.door-ico { font-size: 2.2rem; line-height: 1; }
.door-body { display: flex; flex-direction: column; gap: 4px; }
.door-body b { font-size: 1.15rem; }
.door-body > span { color: var(--ink-2); }
.door-cta { margin-top: 6px; font-weight: 700; color: var(--door) !important; }
.door-mark { position: absolute; top: 10px; right: 12px; font-size: .72rem; font-weight: 700; background: var(--door); color: #fff; border-radius: 999px; padding: 2px 9px; }
.seg-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--brand-soft); }
.line-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 18px 0 0; padding-bottom: 4px; }
.line-tabs a { --lc: var(--brand); white-space: nowrap; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; text-decoration: none !important; }
.line-tabs a span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.line-tabs a.active { border-color: var(--lc); background: var(--lc); color: #fff; }
.line-tabs a.active span { color: rgba(255, 255, 255, .8); }
.fgroup { border-top: 1px solid var(--line); padding: 10px 0; }
.fgroup:first-child { border-top: 0; padding-top: 0; }
.fgroup summary { cursor: pointer; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 4px 0 8px; list-style: none; display: flex; align-items: center; gap: 6px; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: '▾'; margin-left: auto; }
.fgroup:not([open]) summary::after { content: '▸'; }
.fsel { background: var(--brand); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .7rem; letter-spacing: 0; }
.fopt { margin: 4px 0; }
.fopt .grow { flex: 1; }
.fopt.more { display: none; }
.fopt input:disabled + span { color: var(--muted); }
.fsearch { padding: 7px 10px; margin-bottom: 6px; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; color: var(--brand); cursor: pointer; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 14px; }
.active-chips:empty { display: none; }
.achip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--brand); background: var(--brand-soft); color: var(--brand); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.achip:hover { background: #dcefcb; }
.filters-head, .filters-apply, .filters-bg { display: none; }
.check .grow { flex: 1; }
.seg-pick { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin: 8px 0 12px; }
.seg-pick legend { font-weight: 700; padding: 0 6px; }
.seg-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; cursor: pointer; }
.seg-opt:hover { background: var(--bg); }
.seg-opt input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.seg-opt span { display: flex; flex-direction: column; }
.seg-opt small { color: var(--muted); }
@media (max-width: 960px) {
  .filters, .filters.open { display: block; position: fixed; top: 0; bottom: 0; left: 0; align-self: stretch; height: 100vh; height: 100dvh; width: min(360px, 88vw); z-index: 80; border-radius: 0; overflow-y: auto; transform: translateX(-105%); transition: transform .2s; padding-bottom: 80px; }
  .filters.open { transform: none; }
  .filters-bg.open { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 79; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .filters-apply { display: block; position: sticky; bottom: 0; margin: 14px 0 -60px; box-shadow: 0 -8px 16px rgba(255,255,255,.9); }
  .doors { grid-template-columns: 1fr; }
}

/* ---------- v8: sub-marcas, Zona Maker y menú con paneles ---------- */
.logo { position: relative; }
.zone-badge { font-size: .68rem; font-weight: 900; letter-spacing: .14em; color: #fff; background: var(--zone, var(--accent)); border-radius: 6px; padding: 3px 7px; align-self: center; }
.zone-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; white-space: nowrap; text-decoration: none !important;
  color: #fff; background: var(--accent); box-shadow: 0 4px 12px rgba(229, 128, 5, .25); transition: transform .15s; margin-right: 4px; }
.zone-switch:hover { transform: translateY(-1px); }
body[data-zone="maker"] .zone-switch { background: var(--brand); box-shadow: 0 4px 12px rgba(22, 135, 47, .25); }
.nav { position: relative; }
.nav-in { align-items: center; }
.nav-drop { padding: 7px 14px; border-radius: 999px; color: var(--ink-2); font: inherit; font-weight: 600; font-size: .9rem; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.nav-drop:hover, .nav-drop.open { background: #f0f0f6; }
.nav-drop.active { background: var(--ink); color: #fff; }
.nav-drop .caret { font-size: .7rem; margin-left: 2px; display: inline-block; transition: transform .15s; }
.nav-drop.open .caret { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(22, 21, 31, .12); z-index: 45; }
.mega-in { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding-top: 22px; padding-bottom: 24px; }
.mega-intro p { color: var(--muted); margin: 6px 0 12px; font-size: .92rem; }
.mega-intro b { font-size: 1.1rem; }
.mega-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mega-cat { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none !important; border: 1px solid transparent; }
.mega-cat:hover { background: var(--bg); border-color: var(--line); }
.mega-ico { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; }
.mega-ico svg { width: 100%; height: 100%; }
.mega-cat span { display: flex; flex-direction: column; }
.mega-cat small { color: var(--muted); }
.zone-banner { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: var(--radius); color: #fff !important; text-decoration: none !important;
  background: linear-gradient(120deg, #111611 0%, #111611 45%, var(--zb) 140%); box-shadow: var(--shadow); }
.zone-banner b { display: block; font-size: 1.2rem; }
.zone-banner .grow span { opacity: .8; }
.zb-ico { font-size: 2.2rem; }
.zb-btn { background: var(--zb); color: #fff; border: 0; }
.hero-maker { background: radial-gradient(circle at 80% 40%, rgba(229, 128, 5, .35), transparent 55%), #0c0f0c !important; }
.hero-maker .neon { background: linear-gradient(90deg, #ffb347, #e58005) !important; -webkit-background-clip: text !important; background-clip: text !important; }
body[data-zone="maker"] .nav a.active, body[data-zone="maker"] .nav-drop.active { background: var(--accent-ink); }
body[data-zone="maker"] .header { border-bottom: 3px solid var(--accent); }
@media (max-width: 960px) {
  .mega-in { grid-template-columns: 1fr; gap: 12px; }
  .mega { max-height: 70vh; overflow-y: auto; }
}
@media (max-width: 640px) {
  .zone-switch { padding: 7px 10px; font-size: .8rem; }
  .zone-banner { flex-direction: column; align-items: flex-start; }
  .mega-cats { grid-template-columns: 1fr; }
}
.hero-maker .btn-lime { background: linear-gradient(90deg, #ffc46b, #e58005); color: #1a0f00; box-shadow: 0 8px 26px rgba(229, 128, 5, .35); }
.hero-maker .hero-kicker { color: #ffb347; border-color: rgba(255, 179, 71, .4); }
@media (max-width: 640px) { .zs-txt { display: none; } .zone-switch { width: 38px; height: 38px; padding: 0; justify-content: center; margin-right: 0; } .zone-badge { font-size: .58rem; padding: 2px 5px; } }
.options-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .options-2 { grid-template-columns: 1fr; } }

/* ---------- v9.1: galería de fotos del producto ---------- */
.pdp-gallery { position: sticky; top: 130px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.pdp-gallery .pdp-img { position: relative; top: 0; background: #fff; border: 1px solid var(--line); }
.pdp-img > #pdp-main { object-fit: contain; }
.pdp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); z-index: 2; }
.pdp-nav.prev { left: 10px; } .pdp-nav.next { right: 10px; }
.pdp-nav:hover { background: #fff; }
.pdp-count { position: absolute; bottom: 10px; right: 12px; font-size: .75rem; font-weight: 700; background: rgba(17, 22, 17, .7); color: #fff; padding: 2px 8px; border-radius: 999px; z-index: 2; }
.pdp-img.zoom .pdp-nav, .pdp-img.zoom .pdp-count { display: none; }
.pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.pdp-thumb { flex: 0 0 72px; height: 72px; border-radius: 10px; border: 2px solid var(--line); background: #fff; padding: 3px; cursor: pointer; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.pdp-thumb.active { border-color: var(--brand); }
.pdp-thumb:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 960px) { .pdp-gallery { position: static; } }
@media (max-width: 640px) { .pdp-thumb { flex-basis: 58px; height: 58px; } }
/* v9.2: miniatura del color en el botón de la variante */
.chip.chip-img { display: inline-flex; align-items: center; gap: 6px; padding-left: 5px; }
.chip.chip-img img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.chip.chip-img:disabled img { opacity: .45; }
/* v9.2: pre-venta */
.tag-presale { background: #7c3aed; color: #fff; }
.presale-note { color: #6d28d9; font-weight: 600; }
.presale-box { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 4px; padding: 10px 14px; border-radius: 12px; background: #f5f0ff; border: 1px solid #ddd0fb; color: #3b1d80; font-size: .92rem; }
.presale-alert { background: #f5f0ff; border: 1px solid #ddd0fb; color: #3b1d80; }
/* v9.2: campos obligatorios — asterisco automático y marca roja al intentar guardar sin completarlos */
.field:has(> input:required, > select:required, > textarea:required) > label::after,
.field:has(> input:required, > select:required, > textarea:required) > label:first-child::after { content: ' *'; color: var(--bad); font-weight: 700; }
form.was-validated :is(input, select, textarea):invalid, .is-invalid { border-color: var(--bad) !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important; }
.req-note { font-size: .8rem; color: var(--muted); }
.req-note b { color: var(--bad); }
