/* ================= HOME ================= */
.hero { background: var(--yellow); position: relative; overflow: hidden; }
.hero__inner { display: grid; gap: 32px; padding-block: clamp(36px, 7vw, 84px); align-items: center; position: relative; z-index: 1; }
.hero__text { display: grid; gap: 22px; justify-items: start; }
.hero__title em { font-style: italic; color: var(--red); }
.hero__lead { font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 44ch; color: #2a2a26; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__inner > * { min-width: 0; }
.hero__iso { position: absolute; right: -6%; top: 50%; width: min(520px, 60vw); transform: translateY(-50%) rotate(-6deg); opacity: 0.12; pointer-events: none; }

/* Celular: portada compacta para que las ofertas queden a la vista desde el primer momento */
@media (max-width: 699px) {
  .hero__inner { gap: 18px; padding-block: 22px 14px; }
  .hero__text { gap: 14px; }
  .hero__text .eyebrow { display: none; }
  .hero__title { font-size: clamp(1.9rem, 9.5vw, 2.4rem); }
  .hero__lead { display: none; }
  .hero__cta { gap: 8px; flex-wrap: nowrap; width: 100%; }
  .hero__cta .btn { flex: 1; padding: 0 10px; min-height: 44px; font-size: 0.8rem; }
  .hero__cta .btn svg { display: none; }
  .hero__cta .btn--feature { font-size: 0.72rem; letter-spacing: 0; }
}

/* Ofertas deslizándose en la portada (celular y escritorio) */
.hero__art { position: relative; display: grid; gap: 12px; }
.hero__art-label { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.hero__art-label::before { content: ''; width: 28px; height: 4px; background: var(--red); border-radius: 4px; }
.rail.hero__rail {
  grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(250px, 72%);
  overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-block: 4px 12px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail.hero__rail::-webkit-scrollbar { display: none; }
.hero__rail .card { box-shadow: 0 10px 30px rgba(17, 17, 17, 0.14); border-color: transparent; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr 1fr; }
  .rail.hero__rail { margin-inline: 0; padding-inline: 4px; scroll-padding-inline: 4px; grid-auto-columns: 250px; }
}

.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.trust__item { display: flex; gap: 12px; align-items: center; padding: 16px 8px; font-size: 0.86rem; }
.trust__item strong { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.82rem; }
.trust__item span { color: var(--muted); }
.trust__ico { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
@media (min-width: 900px) { .trust__list { grid-template-columns: repeat(4, 1fr); } .trust__item { padding: 20px 16px; } }

.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 16px; border-radius: var(--radius-lg); background: var(--bg-soft); overflow: hidden; transition: background 0.2s; }
.cat-tile:hover { background: var(--yellow); }
.cat-tile__img { position: absolute; right: 8px; top: 8px; width: 55%; height: 62%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.3s var(--ease); }
.cat-tile:hover .cat-tile__img { transform: scale(1.07) rotate(-3deg); }
.cat-tile__name { position: relative; font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.1rem; line-height: 1.05; }
.cat-tile__count { position: relative; font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.cat-tile:hover .cat-tile__count { color: var(--ink-2); }

.cta-band { background: var(--red); color: #fff; }
.cta-band__inner { display: grid; gap: 20px; justify-items: start; padding-block: 48px; }
.cta-band .eyebrow { color: var(--yellow); }
@media (min-width: 800px) { .cta-band__inner { grid-template-columns: 1fr auto; align-items: center; } }

/* ================= CATÁLOGO ================= */
.page-head { display: grid; gap: 14px; padding-bottom: 20px; }
.page-head__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; justify-content: space-between; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; scroll-behavior: smooth; }
.subcats::-webkit-scrollbar { display: none; }
.subcats .chip { flex: none; }

/* Fila con flechas, degradé en los bordes y arrastre con el mouse */
.scrollrow { position: relative; min-width: 0; max-width: 100%; } /* min-width: 0 evita que el bloque se estire al ancho de todos los chips */
.page-head > * { min-width: 0; }
.scrollrow.is-scrollable [data-row] { cursor: grab; }
[data-row].is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; user-select: none; }
[data-row].is-dragging > * { pointer-events: none; }
.scrollrow.can-next:not(.can-prev) [data-row] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); }
.scrollrow.can-prev:not(.can-next) [data-row] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 64px), transparent); }
.scrollrow.can-prev.can-next [data-row] { -webkit-mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
.scrollrow__arrow {
  position: absolute; top: calc(50% - 2px); transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  background: var(--ink); color: #fff; border: 0; border-radius: 50%; box-shadow: var(--shadow);
  transition: transform 0.15s var(--ease), background-color 0.15s;
}
.scrollrow__arrow:hover { background: var(--red); transform: translateY(-50%) scale(1.08); }
.scrollrow__arrow--prev { left: 0; }
.scrollrow__arrow--next { right: 0; }
@media (hover: none) { .scrollrow__arrow { display: none; } } /* en pantallas táctiles alcanza con deslizar */

.catalog { display: grid; gap: 24px; padding-bottom: 72px; }
@media (min-width: 960px) { .catalog { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; } }

.filters { display: grid; gap: 0; align-content: start; }
.filter-group { border-top: 1px solid var(--line); padding-block: 16px; display: grid; gap: 10px; }
.filter-group:first-child { border-top: 0; padding-top: 0; }
.filter-group__title { font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.filter-list { display: grid; gap: 2px; max-height: 280px; overflow-y: auto; padding-right: 4px; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.price-range .input { min-height: 40px; padding: 0 10px; }
.filters__drawer-head { display: none; }

@media (max-width: 959px) {
  .filters {
    position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(380px, 92vw); background: #fff;
    padding: 0 20px 100px; overflow-y: auto; transform: translateX(100%);
    visibility: hidden; /* cerrado: sin sombra asomando por el borde ni foco de teclado dentro del panel */
    transition: transform 0.28s var(--ease), visibility 0s 0.28s, box-shadow 0.28s;
  }
  .filters.is-open { transform: none; visibility: visible; box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18); transition-delay: 0s; }
  .filters__drawer-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; padding: 16px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); z-index: 1; }
  .filters__apply { position: fixed; bottom: 0; right: 0; width: min(380px, 92vw); padding: 14px 20px; background: #fff; border-top: 1px solid var(--line); z-index: 2; }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 70; }
}
@media (min-width: 960px) { .filters__apply, .btn-filters { display: none; } }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: space-between; margin-bottom: 14px; }
.toolbar__count { font-weight: 600; }
.toolbar__right { display: flex; gap: 10px; align-items: center; }
.toolbar .select { min-height: 42px; width: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.load-more { display: grid; justify-items: center; gap: 10px; margin-top: 36px; }
.progress { width: min(280px, 100%); height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--red); }

/* ================= PRODUCTO ================= */
.pdp { display: grid; gap: 28px; padding-bottom: 56px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; } }

.gallery { display: grid; gap: 12px; }
.gallery__main { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; position: relative; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; }
.gallery__thumb { width: 72px; height: 72px; padding: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); }
.gallery__thumb[aria-current='true'], .gallery__thumb:hover { border-color: var(--ink); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

.pdp__info { display: grid; gap: 18px; align-content: start; }
.pdp__brand { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pdp__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.12; letter-spacing: -0.015em; }
.pdp__sku { font-size: 0.84rem; color: var(--muted); }

.notice { display: flex; gap: 12px; padding: 12px 14px; background: var(--yellow-soft); border-left: 4px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.9rem; }
.notice strong { font-weight: 700; }

.buy { display: grid; gap: 14px; padding: 18px; background: var(--bg-soft); border-radius: var(--radius-lg); }
.buy__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buy__row .btn { flex: 1; min-width: 200px; }
.buy__ask { font-size: 0.9rem; color: var(--ink-2); }
.buy__ask a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.buy__ask a:hover { color: var(--red); }

.desc { max-width: 70ch; display: grid; gap: 10px; color: var(--ink-2); }
.pdp__section { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; }

/* ================= CARRITO ================= */
.cart { display: grid; gap: 28px; padding-bottom: 72px; }
@media (min-width: 960px) { .cart { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; } }
.cart-lines { display: grid; }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding-block: 18px; border-top: 1px solid var(--line); }
.cart-line:first-child { border-top: 0; }
.cart-line__img { width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; background: #fff; }
.cart-line__body { display: grid; gap: 6px; min-width: 0; }
.cart-line__name { font-weight: 600; line-height: 1.3; }
.cart-line__name:hover { text-decoration: underline; }
.cart-line__opts { font-size: 0.84rem; color: var(--muted); }
.cart-line__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cart-line__remove { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 0.84rem; text-decoration: underline; text-underline-offset: 3px; }
.cart-line__remove:hover { color: var(--red); }
.cart-line__total { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; text-align: right; }

.summary { display: grid; gap: 18px; padding: 22px; background: var(--bg-soft); border-radius: var(--radius-lg); }
@media (min-width: 960px) { .summary { position: sticky; top: 140px; } }
.summary__row { display: flex; justify-content: space-between; gap: 12px; }
.summary__total { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; }
.summary__hint { font-size: 0.84rem; color: var(--muted); }
.checkout { display: grid; gap: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: grid; place-items: center; min-height: 46px; border: 1.5px solid #cfcfc6; border-radius: var(--radius); font-weight: 700; font-size: 0.9rem; cursor: pointer; background: #fff; text-align: center; padding: 0 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span, .seg label:has(input:checked) { border-color: var(--ink); background: var(--yellow); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }

.done { max-width: 560px; margin-inline: auto; text-align: center; display: grid; gap: 18px; justify-items: center; padding-block: 56px; }
.done__ico { width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }

.specs { display: grid; margin: 0; }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 0.9rem; }
.specs dd { margin: 0; font-weight: 600; }

/* ================= SUCURSALES ================= */
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2a2a26; }

.branches-head { display: grid; gap: 10px; padding-block: clamp(28px, 5vw, 56px) 20px; }
.branches-head__lead { max-width: 58ch; color: var(--ink-2); font-size: clamp(1rem, 2vw, 1.15rem); }

.branch-controls { display: grid; gap: 14px; padding-bottom: 8px; }
@media (min-width: 900px) { .branch-controls { grid-template-columns: minmax(280px, 380px) 1fr; align-items: center; gap: 24px; } }
.branch-search__box { position: relative; display: flex; align-items: center; }
.branch-search__box svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.branch-search__box .input { padding-left: 42px; }
.branch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.branch-chips .chip { min-height: 42px; }
.branch-count { margin: 6px 0 4px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }

.zone { padding-block: 22px 8px; }
.zone__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 3px solid var(--yellow); }
.zone__blurb { color: var(--muted); font-size: 0.92rem; }
.zone__blurb strong { color: var(--ink); }

.branch-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .branch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

.branch {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); border-top: 4px solid var(--yellow);
  transition: border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.branch:hover { border-color: var(--ink); border-top-color: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); }
.branch__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.branch__city { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.branch__name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.15; letter-spacing: -0.01em; }
.branch__line { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 0.95rem; }
.branch__line svg { flex: none; margin-top: 2px; color: var(--red); }
.branch__line a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(17, 17, 17, 0.3); }
.branch__line a:hover { color: var(--red); text-decoration-color: currentColor; }
.branch__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.branch__actions .btn { flex: 1; min-width: 120px; gap: 6px; padding: 0 12px; white-space: nowrap; }
.branch__hours { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.branch__hours:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.branch__note { color: var(--muted); font-size: 0.9rem; }
.branch--soon { border-style: dashed; border-top-style: dashed; border-top-color: var(--line); background: var(--bg-soft); }
.branch--soon:hover { transform: none; box-shadow: none; border-color: var(--line); }

.how { display: grid; gap: 28px; }
@media (min-width: 1000px) { .how { grid-template-columns: 1fr 1.5fr auto; align-items: center; gap: 48px; } }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step__n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); font-family: var(--font-display); font-weight: 900; }
.step p { color: var(--ink-2); font-size: 0.9rem; margin-top: 2px; }
.how__help { display: grid; gap: 12px; padding: 18px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }

.trust__link { display: flex; gap: 12px; align-items: center; width: 100%; border-radius: var(--radius); }
.trust__link:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.zone-tiles { display: grid; gap: 14px; }
@media (min-width: 800px) { .zone-tiles { grid-template-columns: repeat(3, 1fr); } }
.zone-tile { display: grid; gap: 4px; padding: 20px; background: var(--bg-soft); border-radius: var(--radius-lg); border-left: 5px solid var(--yellow); transition: background-color 0.2s, border-color 0.2s; }
.zone-tile:hover { background: var(--yellow); border-left-color: var(--red); }
.zone-tile__n { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--red); }
.zone-tile__name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.zone-tile__list { color: var(--muted); font-size: 0.88rem; }
.zone-tile:hover .zone-tile__list { color: var(--ink-2); }

/* =====================================================================
   Construcción en seco: categoría destacada por el cliente
   ===================================================================== */
/* Barra: primera de la lista y resaltada, como una etiqueta promocional */
.nav__link--feature {
  align-self: center; min-height: 34px; margin-right: 6px; padding: 0 12px;
  background: var(--red); color: #fff; border-radius: 6px;
  box-shadow: 0 2px 0 var(--red-dark); transition: background-color 0.2s, transform 0.2s var(--ease);
}
.nav__link--feature::after { display: none; }
.nav__link--feature:hover, .nav__link--feature[aria-current='page'] { background: var(--red-dark); transform: translateY(-1px); }
.nav__link--feature::before {
  content: ''; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--yellow);
  animation: feature-dot 1.8s ease-in-out infinite;
}
@keyframes feature-dot { 50% { transform: scale(1.5); opacity: 0.6; } }

/* Menú lateral */
.drawer__cat--feature { background: linear-gradient(90deg, rgba(226, 6, 19, 0.07), transparent); border-left: 4px solid var(--red); padding-left: 10px; margin-left: -14px; }
.drawer__tag { margin-left: 8px; padding: 2px 7px; border-radius: 4px; background: var(--red); color: #fff; font-family: var(--font-body); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* Sección grande en la home */
.feature { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-top: 6px solid var(--yellow); scroll-margin-top: 90px; }
.feature::after {
  content: ''; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 236, 0, 0.18), transparent 65%); pointer-events: none;
}
.feature__inner { position: relative; z-index: 1; display: grid; gap: 28px; padding-block: clamp(36px, 6vw, 72px); }
.feature__inner > * { min-width: 0; }
@media (min-width: 1000px) { .feature__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 48px; } }
.feature__text { display: grid; gap: 18px; justify-items: start; }
.feature .eyebrow { color: var(--yellow); display: inline-flex; align-items: center; gap: 10px; }
.feature .eyebrow::before { content: ''; width: 28px; height: 4px; border-radius: 4px; background: var(--red); }
.feature__title { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.7rem); overflow-wrap: anywhere; }
.feature .card { color: var(--ink); } /* las tarjetas son blancas: no heredan el texto blanco de la sección */
.feature__title em { color: var(--yellow); }
.feature__lead { max-width: 46ch; color: #cfcfc6; font-size: clamp(1rem, 2vw, 1.1rem); }
.feature__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feature__chips .chip { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.feature__chips .chip:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.feature__chips .chip span { color: rgba(255, 255, 255, 0.55); }
.feature__chips .chip:hover span { color: var(--ink-2); }
.rail.feature__rail {
  grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(250px, 72%);
  overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-block: 4px 12px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail.feature__rail::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .rail.feature__rail { margin-inline: 0; padding-inline: 2px; scroll-padding-inline: 2px; grid-auto-columns: 250px; } }

/* Hero: botón de la categoría destacada */
.btn--feature { background: var(--ink); color: #fff; }
.btn--feature:hover { background: var(--red); }

/* Pin de sucursales, a la izquierda del carrito */
.pin-btn {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  background: none; border: 0; border-radius: 50%; color: var(--pill-brand);
  transition: color 0.2s, transform 0.2s var(--ease);
}
.pin-btn:hover, .pin-btn:focus-visible { color: var(--ink); transform: scale(1.18); }
.pin-btn:active { transform: scale(0.94); }
@media (min-width: 900px) { .site-header.is-floating .pin-btn { width: 38px; height: 38px; } }
#sucursales { scroll-margin-top: 100px; }

/* Marcas como fichas con logo: todas del mismo tamaño y marco */
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 372px; overflow-y: auto; padding: 3px; margin: -3px; }
.brand-tile { display: block; cursor: pointer; }
.brand-tile__box {
  position: relative; display: grid; place-items: center; aspect-ratio: 5 / 3; overflow: hidden;
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s var(--ease);
}
.brand-tile__box img { width: 100%; height: 100%; object-fit: cover; }
.brand-tile__name {
  padding: 8px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 0.82rem;
  line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2); overflow-wrap: anywhere;
}
.brand-tile:hover .brand-tile__box { border-color: var(--ink); transform: translateY(-1px); }
.brand-tile__check {
  position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--red); color: #fff; opacity: 0; transform: scale(0.5);
  transition: opacity 0.15s, transform 0.2s var(--ease);
}
.brand-tile input:checked + .brand-tile__box { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.brand-tile input:checked + .brand-tile__box .brand-tile__check { opacity: 1; transform: none; }
.brand-tile input:focus-visible + .brand-tile__box { outline: 3px solid var(--ink); outline-offset: 2px; }

/* =====================================================================
   Tema "Sagi en seco": la sección de Construcción en seco tiene identidad propia,
   como en la web oficial. Barra grafito con acentos amarillos y logo de la sección.
   Se activa con body.theme-seco (catálogo de la sección y fichas de sus productos).
   ===================================================================== */
.brand__seco { display: none; }

.theme-seco .site-header,
.theme-seco.bar-yellow .site-header {
  --pill-bg: #1f1f1d; --pill-fg: #fff; --pill-brand: var(--yellow);
  --pill-field: rgba(255, 255, 255, 0.13); --pill-field-fg: #fff; --pill-field-ph: rgba(255, 255, 255, 0.66);
  --pill-btn: var(--yellow); --pill-btn-fg: var(--ink); --pill-burger: transparent; --pill-burger-fg: var(--yellow);
  --pill-border: rgba(255, 255, 255, 0.14);
}
/* la barra flotante conserva el grafito sin importar el fondo que tenga detrás */
.theme-seco .site-header.is-floating[data-tone] {
  --pill-bg: #1f1f1d; --pill-fg: #fff; --pill-brand: var(--yellow);
  --pill-field: rgba(255, 255, 255, 0.13); --pill-field-fg: #fff; --pill-field-ph: rgba(255, 255, 255, 0.66);
  --pill-btn: var(--yellow); --pill-btn-fg: var(--ink); --pill-burger: transparent; --pill-burger-fg: var(--yellow);
  --pill-border: transparent;
}
.theme-seco .site-header .brand__iso, .theme-seco .site-header .brand__name { display: none; }
.theme-seco .site-header .brand__seco { display: block; height: 42px; width: auto; }
.theme-seco .site-header.is-floating .brand__seco { height: 34px; }
.theme-seco .site-header .pin-btn { color: var(--yellow); }
.theme-seco .site-header .pin-btn:hover, .theme-seco .site-header .pin-btn:focus-visible { color: #fff; }
.theme-seco .site-header .search__input:focus { box-shadow: 0 0 0 3px var(--yellow); }
.theme-seco .nav { border-top-color: rgba(255, 255, 255, 0.14); }
.theme-seco .nav__link::after { background: var(--yellow); }
.theme-seco .nav__link--sale { color: #ff7a7a; }
.theme-seco .promo-strip { background: var(--yellow); color: var(--ink); }
.theme-seco .promo-strip strong { color: var(--red); }
.theme-seco .promo-strip__close { color: var(--ink); }
.theme-seco .promo-strip__close:hover { background: rgba(17, 17, 17, 0.12); }
@media (max-width: 899px) {
  .theme-seco .site-header, .theme-seco.bar-yellow .site-header { background: rgba(31, 31, 29, 0.97); border-color: rgba(255, 255, 255, 0.14); }
  .theme-seco .site-header .brand__seco { height: 36px; }
}
@media (min-width: 900px) { .theme-seco .site-header.is-floating .search--desktop:focus-within .search__input { box-shadow: 0 0 0 4px var(--yellow); } }

/* Lista lateral de la sección (en escritorio reemplaza a la fila de subcategorías) */
.sidenav { padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.sidenav__title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.15; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.sidenav ul { margin-top: 4px; }
.sidenav li + li { border-top: 1px solid var(--line); }
.sidenav a {
  position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 6px 11px 14px; color: var(--ink-2); transition: color 0.15s, padding-left 0.2s var(--ease);
}
.sidenav a::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); transform: translateY(-50%); transition: background-color 0.15s, height 0.2s var(--ease); }
.sidenav a:hover { color: var(--ink); padding-left: 18px; }
.sidenav a:hover::before { background: var(--yellow); }
.sidenav a[aria-current='page'] { color: var(--ink); font-weight: 700; }
.sidenav a[aria-current='page']::before { background: var(--red); height: 22px; border-radius: 3px; width: 4px; }
.sidenav__count { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
@media (min-width: 960px) { .theme-seco .scrollrow { display: none; } }

/* ================= HOME: "Acompañamos cada etapa" ================= */
.stage-grid { display: grid; gap: 14px; }
@media (min-width: 800px) { .stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.stage {
  position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden;
  min-height: 380px; border-radius: 18px; color: #fff; background: var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
@media (min-width: 800px) { .stage { min-height: 0; aspect-ratio: 4 / 5; } }
.stage:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(17, 17, 17, 0.28); }
.stage__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.stage:hover .stage__img { transform: scale(1.07); }
.stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.6) 40%, rgba(17, 17, 17, 0) 72%);
}
.stage__n {
  position: absolute; top: 14px; left: 18px; font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: clamp(2.8rem, 6vw, 3.6rem); line-height: 1; color: var(--yellow); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.stage__n::after { content: ''; display: block; width: 36px; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--red); transition: width 0.4s var(--ease); }
.stage:hover .stage__n::after { width: 64px; }
.stage__body { display: grid; gap: 8px; padding: 24px; width: 100%; }
.stage__verb { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); }
.stage__title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.stage__text { color: #e8e8e1; font-size: 0.95rem; max-width: 36ch; }
.stage__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; font-size: 0.92rem; }
.stage__cta svg { transition: transform 0.3s var(--ease); }
.stage:hover .stage__cta svg { transform: translateX(7px); }

/* ================= HOME: tira de marcas ================= */
.brand-strip__row {
  display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x proximity;
  padding: 6px 2px 14px;
}
.brand-strip__row::-webkit-scrollbar { display: none; }
.brand-logo {
  flex: none; scroll-snap-align: start; width: 150px; aspect-ratio: 5 / 3; overflow: hidden;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
@media (min-width: 700px) { .brand-logo { width: 196px; } }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo:hover, .brand-logo:focus-visible { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-4px); }
.brand-strip .scrollrow__arrow { top: calc(50% - 6px); }

/* Cuotas en el carrito y en la ficha */
.summary__cuotas { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; background: #fff; border-radius: var(--radius); border: 1px dashed #cfcfc6; font-size: 0.88rem; line-height: 1.35; }
.summary__cuotas svg { flex: none; margin-top: 2px; color: var(--red); }
.pay__list { display: grid; margin: 0; padding: 0; list-style: none; }
.pay__list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.pay__list li span:last-child { text-align: right; color: var(--ink-2); }
.pay__list b { color: var(--ink); }
.pay__note { color: var(--muted); font-size: 0.82rem; }
.pay .h3 { display: flex; align-items: center; gap: 8px; }
.pay .h3 svg { color: var(--red); }

/* ================= PAGO (simulado) ================= */
.pay-page { padding-bottom: 72px; }
.pay-head { display: grid; gap: 6px; padding-block: 24px 14px; }
.sim-banner {
  margin-bottom: 22px; padding: 12px 16px; background: var(--yellow-soft); border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.9rem;
}
.pay-layout { display: grid; gap: 28px; }
@media (min-width: 960px) { .pay-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 44px; align-items: start; } }
.pay-main { display: grid; gap: 16px; counter-reset: step; }
.pay-step { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 14px; }
.pay-step[hidden] { display: none; }
.pay-step > h2 { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.pay-step > h2::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); font-weight: 900; font-size: 0.92rem;
}

/* opciones tipo tarjeta seleccionable */
.method-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .method-grid { grid-template-columns: 1fr 1fr; } }
.method__box, .bank-seg__box, .plan__box {
  display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff;
  border: 1.5px solid #cfcfc6; border-radius: 12px; cursor: pointer; height: 100%;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.method__box:hover, .bank-seg__box:hover, .plan__box:hover { border-color: var(--ink); }
.method__box small, .bank-seg__box small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.3; margin-top: 2px; }
.method input:checked + .method__box, .bank-seg input:checked + .bank-seg__box, .plan input:checked + .plan__box {
  border-color: var(--ink); background: var(--yellow-soft); box-shadow: 0 0 0 2px var(--ink);
}
.method input:focus-visible + .method__box, .bank-seg input:focus-visible + .bank-seg__box, .plan input:focus-visible + .plan__box { outline: 3px solid var(--red); outline-offset: 2px; }
.method__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--bg-soft); color: var(--red); }
.method__ico--mp { background: #009ee3; color: #fff; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 0.95rem; }
.bank-seg { display: grid; gap: 8px; }
@media (min-width: 640px) { .bank-seg { grid-template-columns: repeat(3, 1fr); } }
.bank-seg__box { display: block; }

.card-fields { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field--wide { grid-column: 1 / -1; }
.cc-input { position: relative; }
.cc-input .input { padding-right: 14px; letter-spacing: 0.04em; }
.cc-input.has-brand .input { padding-right: 130px; } /* lugar para el nombre de la marca, sólo cuando ya se detectó */
.cc-brand { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); pointer-events: none; }

.mp-box { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: #e8f6fd; border-radius: 12px; }
.mp-box p { margin-top: 4px; font-size: 0.9rem; color: var(--ink-2); }

.plans { display: grid; gap: 8px; }
.plan__box { flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.plan__main { font-size: 1rem; }
.plan__sub { color: var(--muted); font-size: 0.82rem; }

.sim-panel { border: 1.5px dashed #b9b9b0; border-radius: 12px; background: var(--bg-soft); }
.sim-panel summary { padding: 12px 16px; cursor: pointer; font-weight: 700; }
.sim-panel summary small { font-weight: 500; color: var(--muted); }
.sim-panel__body { display: grid; gap: 12px; padding: 0 16px 16px; }
.sim-panel__body p { font-size: 0.84rem; color: var(--ink-2); }
.sim-panel .btn { justify-self: start; }

.pay-error { padding: 14px 16px; background: #fdecee; border: 1.5px solid var(--red); border-radius: 12px; color: var(--red-dark); font-weight: 500; }
.pay-submit { min-height: 56px; font-size: 1.05rem; }
.pay-back { justify-self: center; color: var(--muted); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.pay-back:hover { color: var(--ink); }

.pay-summary { gap: 14px; }
@media (min-width: 960px) { .pay-summary { position: sticky; top: 130px; } }
.mini-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; max-height: 320px; overflow-y: auto; }
.mini { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; font-size: 0.9rem; }
.mini img, .mini__ph { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.mini__name { display: block; line-height: 1.25; font-weight: 500; }
.mini small { display: block; font-size: 0.78rem; }
.pay-plan { padding: 10px 12px; background: #fff; border: 1px dashed #cfcfc6; border-radius: var(--radius); font-size: 0.9rem; }
.pay-delivery { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.pay-delivery svg { flex: none; margin-top: 2px; color: var(--red); }

.processing { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.processing[hidden] { display: none; }
.processing__box { display: grid; justify-items: center; gap: 10px; padding: 28px 36px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); text-align: center; }
.processing__box small { color: var(--muted); }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--yellow); border-top-color: var(--red); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.receipt { max-width: 620px; margin-inline: auto; padding-block: 48px 72px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.receipt__grid { width: 100%; display: grid; margin: 8px 0; padding: 4px 18px; background: var(--bg-soft); border-radius: 14px; text-align: left; }
.receipt__grid div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.receipt__grid div:last-child { border-bottom: 0; }
.receipt__grid dt { color: var(--muted); font-size: 0.9rem; }
.receipt__grid dd { margin: 0; text-align: right; }
@media (max-width: 520px) { .card-fields { grid-template-columns: 1fr; } .receipt__grid div { flex-direction: column; gap: 2px; } .receipt__grid dd { text-align: left; } }

/* =====================================================================
   Colores: muestras en el filtro, puntitos en las tarjetas y selector en la ficha.
   Los tonos son de REFERENCIA (ver backend/data/colors.json).
   ===================================================================== */
.is-clear { /* transparente: damero + una raya diagonal */
  background:
    linear-gradient(135deg, transparent 46%, rgba(226, 6, 19, 0.7) 47%, rgba(226, 6, 19, 0.7) 53%, transparent 54%),
    repeating-conic-gradient(#e3e3dc 0 25%, #fff 0 50%) 50% / 10px 10px !important;
}

/* filtro de color */
.color-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
.color-swatch { display: grid; justify-items: center; gap: 4px; cursor: pointer; text-align: center; }
.color-swatch__dot {
  position: relative; display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--c);
  border: 1px solid rgba(17, 17, 17, 0.18); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.18s var(--ease), box-shadow 0.18s;
}
.color-swatch__dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent;
  transition: border-color 0.15s;
}
.color-swatch:hover .color-swatch__dot { transform: scale(1.1); }
.color-swatch input:checked + .color-swatch__dot::after { border-color: var(--red); }
.color-swatch input:checked + .color-swatch__dot { box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.1), 0 0 0 2px #fff; }
.color-swatch input:focus-visible + .color-swatch__dot::after { border-color: var(--ink); }
.color-swatch__name { font-size: 0.7rem; line-height: 1.15; color: var(--ink-2); }
.color-swatch input:checked ~ .color-swatch__name { color: var(--ink); font-weight: 700; }
.filter-note { font-size: 0.74rem; line-height: 1.35; color: var(--muted); }

/* puntitos en la tarjeta */
.color-dots { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.color-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--c); border: 1px solid rgba(17, 17, 17, 0.2); flex: none; }
.color-dots__more { margin-left: 2px; font-size: 0.72rem; font-weight: 600; color: var(--muted); }

/* selector en la ficha */
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 2px; }
.swatch { position: relative; width: 42px; height: 42px; padding: 0; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.swatch__dot {
  display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c);
  border: 1px solid rgba(17, 17, 17, 0.2); box-shadow: inset 0 -5px 9px rgba(0, 0, 0, 0.1);
  transition: transform 0.18s var(--ease);
}
.swatch::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2.5px solid transparent; transition: border-color 0.15s; pointer-events: none; }
.swatch:hover .swatch__dot { transform: scale(1.1); }
.swatch[aria-pressed='true']::after { border-color: var(--ink); }
.swatch:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.swatch-name { font-weight: 600; min-height: 1.5em; }
.swatch-name span { color: var(--muted); font-weight: 400; }
.color-note { font-size: 0.78rem; color: var(--muted); }
.spec-color { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; }
.spec-color .color-dot { width: 14px; height: 14px; }

/* =====================================================================
   "Creá tu color": mezclador + resultados ordenados por cercanía
   ===================================================================== */
.studio-open { margin-bottom: 12px; }
.near-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 10px; padding: 10px; margin-bottom: 12px; background: var(--bg-soft); border-radius: 12px; }
.near-box b { white-space: nowrap; }
.near-box .btn { grid-column: 1 / -1; grid-row: 2; }
.near-box__dot { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 1px solid rgba(17, 17, 17, 0.2); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.1); }
.near-box small { display: block; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; }
.near-box__x { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.near-box__x:hover { background: rgba(17, 17, 17, 0.08); color: var(--ink); }
.chip .color-dot { margin-right: 2px; }

/* etiqueta de coincidencia en la tarjeta */
.match-tag { display: flex; align-items: center; gap: 7px; margin-top: 2px; padding: 5px 8px; background: var(--yellow-soft); border-radius: 8px; font-size: 0.76rem; line-height: 1.25; }
.match-tag .color-dot { width: 16px; height: 16px; }
.match-tag b { font-weight: 700; }
.match-tag small { color: var(--ink-2); }

/* ventana */
.studio { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 16px; }
.studio[hidden] { display: none; }
.studio__scrim { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade-in 0.2s; }
@keyframes fade-in { from { opacity: 0; } }
.studio__panel {
  position: relative; width: min(760px, 100%); max-height: min(92vh, 860px); overflow-y: auto;
  display: grid; gap: 18px; padding: 22px; background: #fff; border-radius: 20px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  animation: studio-in 0.3s var(--ease);
}
@keyframes studio-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.studio__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.studio__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-soft); }
.studio__close:hover { background: var(--yellow); }
.studio__body { display: grid; gap: 20px; }
@media (min-width: 640px) { .studio__body { grid-template-columns: 250px 1fr; align-items: start; } }

.studio__preview { display: grid; place-items: end start; height: 170px; padding: 14px; border-radius: 16px; border: 1px solid rgba(17, 17, 17, 0.15); box-shadow: inset 0 -16px 30px rgba(0, 0, 0, 0.08); transition: background-color 0.1s; }
.studio__preview span { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.06em; font-size: 1.05rem; }
.studio__bases { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.studio__base { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid rgba(17, 17, 17, 0.25); background: var(--c); cursor: pointer; transition: transform 0.15s var(--ease); }
.studio__base:hover { transform: scale(1.18); }

.studio__right { display: grid; gap: 14px; }
.studio__slider { display: grid; gap: 6px; }
.studio__slider label { font-weight: 600; font-size: 0.88rem; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px; outline-offset: 4px; cursor: pointer; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.slider--h { background: linear-gradient(90deg, hsl(0 85% 50%), hsl(60 85% 50%), hsl(120 85% 45%), hsl(180 85% 45%), hsl(240 85% 55%), hsl(300 85% 50%), hsl(360 85% 50%)); }
.slider--s { background: linear-gradient(90deg, hsl(var(--h) 0% var(--l)), hsl(var(--h) 100% var(--l))); }
.slider--l { background: linear-gradient(90deg, #000, hsl(var(--h) var(--s) 50%), #fff); }
.studio__row { display: flex; align-items: flex-end; gap: 10px; }
.studio__row .field { flex: 1; }
.studio__row .input { text-transform: uppercase; letter-spacing: 0.06em; }
.studio__native { position: relative; display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1.5px solid #cfcfc6; border-radius: var(--radius); background: #fff; cursor: pointer; }
.studio__native:hover { border-color: var(--ink); }
.studio__native input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.studio__native span { pointer-events: none; display: grid; }

.studio__near h3 { font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.studio__near-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .studio__near-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.near { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; text-align: left; cursor: pointer; transition: border-color 0.15s, transform 0.15s var(--ease); }
.near:hover { border-color: var(--ink); transform: translateY(-1px); }
.near__dot { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 1px solid rgba(17, 17, 17, 0.2); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.1); }
.near__txt { min-width: 0; line-height: 1.2; }
.near__txt b { display: block; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near__txt small { color: var(--muted); font-size: 0.74rem; }

.studio__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.studio__note { flex: 1 1 100%; color: var(--muted); font-size: 0.78rem; }
@media (min-width: 640px) { .studio__note { flex: 1; } }

/* Celular: barra flotante más delgada */
@media (max-width: 899px) {
  .site-header { top: 8px; margin: 8px 10px 0; border-radius: 16px; }
  .header__main { padding-block: 5px; }
  .brand__iso { width: 32px; height: 32px; }
  .site-header .brand__name { font-size: 1.15rem; }
  .theme-seco .site-header .brand__seco { height: 30px; }
  .header__actions .pin-btn, .header__actions .burger { width: 36px; height: 38px; }
  .header__actions .burger svg { width: 24px; height: 24px; }
  .cart-btn { min-height: 38px; padding: 0 9px; }
  .cart-btn__count { min-width: 20px; height: 20px; font-size: 0.72rem; }
}
