/* Huby Connect — tienda web
   Identidad tomada de sus posts: azul royal con patrón de circuitos,
   titulares anchos en mayúsculas, círculo blanco de precio "REF. / ¡OFERTA!". */

:root {
  --huby: #003a9f;
  --huby-deep: #062f78;
  --huby-soft: #e6eefb;
  --huby-line: rgba(255, 255, 255, .14);
  --cashea: #fdfa3c;
  --oferta: #c81414;
  --wa: #1ea952;
  --bg: #f3f5f9;
  --card: #ffffff;
  --line: #dfe4ee;
  --ink: #0d1a3a;
  --muted: #5a6478;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-title: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(13, 26, 58, .06), 0 4px 16px rgba(13, 26, 58, .05);
  --shadow-pop: 0 18px 44px rgba(13, 26, 58, .18);

  /* Movimiento */
  --ease: cubic-bezier(.22, 1, .36, 1);          /* salida suave */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);     /* rebote leve */
  --autoplay: 6s;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; scrollbar-gutter: stable; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cashea); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cashea); color: var(--ink); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 18px; height: 18px; }
.ico--fill { fill: currentColor; stroke: none; }
.ico--lg { width: 44px; height: 44px; stroke-width: 1.4; }

/* Azul de marca: fondo continuo, sin patrón */
.circuit {
  position: relative;
  background:
    radial-gradient(70% 80% at 72% 40%, rgba(74, 140, 255, .38), rgba(74, 140, 255, 0) 70%),
    linear-gradient(180deg, #0a47b5 0%, var(--huby) 55%, #002d82 100%);
  color: #fff;
  isolation: isolate;
}

/* Estudio azul infinito: la luz cae sobre el producto y el azul continúa sin bordes */
.studio {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(75% 60% at 50% 38%, rgba(96, 155, 255, .5), rgba(96, 155, 255, 0) 72%),
    linear-gradient(180deg, #0b4ec2 0%, var(--huby) 55%, #002c80 100%);
}

/* Tipografía */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.display--md { font-size: clamp(22px, 3.2vw, 32px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 8px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--huby);
}
.eyebrow--light { color: #cfdcf6; }

/* Botones */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn__arrow { transition: transform .35s var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover .btn__arrow { transform: translateX(4px); } }
.btn--white { background: #fff; color: var(--huby); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
@media (hover: hover) and (pointer: fine) { .btn--white:hover { background: var(--cashea); color: var(--ink); } }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px #fff; } }
.btn--blue { background: var(--huby); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn--blue:hover { background: var(--huby-deep); box-shadow: 0 8px 20px rgba(0, 58, 159, .3); } }
.btn--wa { background: var(--wa); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn--wa:hover { background: #178a43; box-shadow: 0 8px 20px rgba(30, 169, 82, .3); } }
.btn--outline { background: #fff; color: var(--huby); box-shadow: inset 0 0 0 2px var(--huby-soft); }
@media (hover: hover) and (pointer: fine) { .btn--outline:hover { box-shadow: inset 0 0 0 2px var(--huby); } }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) { .btn--block:hover { transform: none; } }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 999px; cursor: pointer; transition: background-color .25s, transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--huby-soft); transform: rotate(90deg); } }

/* Header */
.header {
  position: sticky; top: 0; z-index: 30;
  background: var(--huby);
  box-shadow: 0 0 0 rgba(6, 47, 120, 0);
  transition: box-shadow .4s var(--ease), background-color .4s var(--ease);
  animation: header-in .7s var(--ease) both;
}
.header.is-scrolled { background: rgba(0, 58, 159, .94); box-shadow: 0 8px 28px rgba(6, 47, 120, .28); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
@keyframes header-in { from { transform: translateY(-100%); } }
.header__inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.header__logo img { width: 84px; height: auto; transition: transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .header__logo:hover img { transform: scale(1.05); } }
.search {
  flex: 1; display: flex; align-items: center;
  max-width: 560px; margin-left: auto;
  background: #fff; border-radius: 999px; padding: 4px 4px 4px 18px;
  box-shadow: 0 0 0 0 rgba(253, 250, 60, 0);
  transition: box-shadow .35s var(--ease), max-width .5s var(--ease);
}
.search:focus-within { box-shadow: 0 0 0 4px rgba(253, 250, 60, .55); max-width: 620px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; padding: 8px 0; }
.search input::placeholder { color: var(--muted); transition: opacity .3s; }
.search input:focus::placeholder { opacity: .5; }
.search__btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--huby); color: #fff; cursor: pointer; transition: transform .3s var(--ease), background-color .3s; }
@media (hover: hover) and (pointer: fine) { .search__btn:hover { transform: scale(1.08); background: var(--huby-deep); } }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff;
  font-weight: 600; cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .cart-btn:hover { background: rgba(255, 255, 255, .22); } }
.cart-btn.is-bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.14); } }
.cart-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--cashea); color: var(--ink);
  font-size: 13px; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums;
}
.cart-btn__count.is-tick { animation: tick .45s var(--spring); }
@keyframes tick { 0% { transform: translateY(-60%) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Categorías con indicador deslizante */
.cats { background: #fff; border-bottom: 1px solid var(--line); }
.cats__inner { position: relative; display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.cats__inner::-webkit-scrollbar { display: none; }
.cats__thumb {
  position: absolute; top: 0; left: 0; z-index: 0;
  border-radius: 999px; background: var(--huby);
  box-shadow: 0 4px 12px rgba(0, 58, 159, .25);
  transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease);
  pointer-events: none;
}
.cats__inner.no-anim .cats__thumb { transition: none; }
.cat {
  position: relative; z-index: 1;
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .25s var(--ease);
}
.cat .ico { width: 18px; height: 18px; color: var(--huby); transition: color .35s var(--ease), transform .4s var(--spring); }
@media (hover: hover) and (pointer: fine) { .cat:hover { border-color: var(--huby); } }
@media (hover: hover) and (pointer: fine) { .cat:hover .ico { transform: scale(1.15); } }
.cat:active { transform: scale(.96); }
.cat[aria-pressed="true"] { border-color: transparent; color: #fff; }
.cat[aria-pressed="true"] .ico { color: #fff; }

/* Hero: carrusel de destacados con altura fija */
.hero { padding-block: 28px 22px; overflow: hidden; }
.slider { position: relative; outline: none; }
.slider__track { position: relative; height: 430px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center;
  visibility: hidden;
  transition: visibility 0s linear .6s;
}
.slide.is-active { visibility: visible; z-index: 1; transition-delay: 0s; }

.slide__text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.slide__text > * {
  opacity: 0;
  transform: translate3d(calc(var(--dir, 1) * -36px), 0, 0);
  transition: opacity .3s ease, transform .45s var(--ease);
}
.slide.is-active .slide__text > * {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .9s var(--ease);
  transition-delay: calc(.24s + var(--i, 0) * 70ms);
}
.slide__brand { font-family: var(--font-cond); font-weight: 600; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: #cfdcf6; }
.slide__name {
  margin: 0; max-width: 15ch;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.04;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.slide__specs { margin: 0; padding: 0; list-style: none; font-family: var(--font-cond); font-size: 19px; line-height: 1.35; color: #e3ebfb; }
.slide__specs li::before { content: "-"; margin-right: 5px; }
.slide__save { margin: 0; font-size: 15px; color: #cfdcf6; }
.slide__save strong { color: var(--cashea); }
.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.slide__media { position: relative; align-self: stretch; min-width: 0; min-height: 0; }
.slide__float { position: absolute; inset: 0; display: grid; place-items: center; }
.slide__float::after {
  content: ""; position: absolute; z-index: 0;
  left: 16%; right: 16%; bottom: 8px; height: 22px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 8, 32, .55), rgba(0, 8, 32, 0));
  opacity: 0; transform: scaleX(.6);
  transition: opacity .3s ease, transform .4s var(--ease);
}
.slide.is-active .slide__float::after { opacity: 1; transform: none; transition: opacity .8s ease .25s, transform 1s var(--ease) .25s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.slide__img, .slide__float > .ico {
  opacity: 0;
  transform: translate3d(calc(var(--dir, 1) * -90px), 0, 0) scale(.92);
  transition: opacity .35s ease, transform .55s var(--ease);
}
.slide__img { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: calc(100% - 18px); object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 10px 14px rgba(0, 8, 32, .35)); }
.slide__float > .ico { width: 180px; height: 180px; stroke-width: .8; color: rgba(255, 255, 255, .55); }
.slide.is-active .slide__img, .slide.is-active .slide__float > .ico {
  opacity: 1; transform: none;
  transition: opacity .7s ease .05s, transform 1.1s var(--ease) .05s;
}
.slide .price-badge {
  position: absolute; right: 2%; bottom: 6%; z-index: 2;
  opacity: 0; transform: scale(.4) rotate(-25deg);
  transition: opacity .2s ease, transform .3s var(--ease);
}
.slide.is-active .price-badge { opacity: 1; transform: none; transition: opacity .3s ease .45s, transform .8s var(--spring) .45s; }
/* Punto de partida de la diapositiva que entra (sin transición) */
.slide.is-pre .slide__text > *, .slide.is-pre .slide__img, .slide.is-pre .slide__float > .ico, .slide.is-pre .price-badge { transition: none !important; }
.slide.is-pre .slide__text > * { transform: translate3d(calc(var(--dir, 1) * 48px), 0, 0); }
.slide.is-pre .slide__img, .slide.is-pre .slide__float > .ico { transform: translate3d(calc(var(--dir, 1) * 140px), 0, 0) scale(.92); }

.slider__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.slider__arrow {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .slider__arrow:hover { background: rgba(255, 255, 255, .25); } }
@media (hover: hover) and (pointer: fine) { .slider__arrow[data-slide="-1"]:hover { transform: translateX(-3px); } }
@media (hover: hover) and (pointer: fine) { .slider__arrow[data-slide="1"]:hover { transform: translateX(3px); } }
.slider__dots { display: flex; align-items: center; gap: 8px; }
.slider__dot {
  position: relative; width: 26px; height: 6px; padding: 0;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, .3); overflow: hidden; cursor: pointer;
  transition: width .5s var(--ease), background-color .3s;
}
.slider__dot::before { content: ""; position: absolute; inset: -10px -2px; }
@media (hover: hover) and (pointer: fine) { .slider__dot:hover { background: rgba(255, 255, 255, .5); } }
.slider__dot.is-active { width: 58px; }
.slider__fill { position: absolute; inset: 0; background: #fff; border-radius: inherit; transform: scaleX(0); transform-origin: left; }
.slider__dot.is-active .slider__fill { animation: dot-progress var(--autoplay) linear forwards; }
.slider.is-paused .slider__dot.is-active .slider__fill,
.slider:has(:focus-visible) .slider__dot.is-active .slider__fill { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .slider:hover .slider__dot.is-active .slider__fill { animation-play-state: paused; } }
@keyframes dot-progress { to { transform: scaleX(1); } }

/* Círculo de precio */
.price-badge {
  width: 112px; height: 112px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; color: var(--huby);
  box-shadow: 0 6px 18px rgba(6, 47, 120, .22), inset 0 0 0 1.5px var(--huby-soft);
  line-height: 1; text-align: center; flex: none;
}
.price-badge__ref { font-family: var(--font-cond); font-weight: 500; font-size: 13px; color: var(--muted); }
.price-badge__ref s { text-decoration-thickness: 1px; }
.price-badge__label { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 12px; color: var(--oferta); margin: 5px 0 4px; letter-spacing: .02em; }
.price-badge__amount { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; display: flex; align-items: flex-start; }
.price-badge__amount small { font-size: .5em; margin-top: 2px; }
.price-badge__amount sup { font-size: .42em; margin-top: 1px; margin-left: 1px; text-decoration: underline; }
.price-badge.is-long .price-badge__amount { font-size: 21px; }
.price-badge--sm { width: 84px; height: 84px; }
.price-badge--sm .price-badge__ref { font-size: 11px; }
.price-badge--sm .price-badge__label { font-size: 9px; margin: 3px 0 2px; }
.price-badge--sm .price-badge__amount { font-size: 18px; letter-spacing: -.03em; }
.price-badge--sm.is-long .price-badge__amount { font-size: 15px; letter-spacing: -.03em; }
.price-badge--sm.is-long .price-badge__amount sup { display: none; }

/* Catálogo */
.catalog { padding-block: 44px 24px; }
.catalog__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.catalog__status { margin: 0 0 16px; color: var(--muted); font-size: 15px; min-height: 22px; }
.catalog__status button { border: 0; background: none; color: var(--huby); font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; }
.select {
  appearance: none; min-height: 42px; padding: 0 38px 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003a9f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .select:hover { border-color: var(--huby); } }
.select:focus { outline: none; border-color: var(--huby); box-shadow: 0 0 0 3px var(--huby-soft); }
.select--full { width: 100%; border-radius: var(--r-sm); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column;
  color: #fff;
  background:
    radial-gradient(95% 42% at 50% 20%, rgba(105, 162, 255, .55), rgba(105, 162, 255, 0) 75%),
    linear-gradient(180deg, #0b4ec2 0%, var(--huby) 45%, #002c80 100%);
  border-radius: var(--r-md); box-shadow: 0 10px 26px rgba(0, 40, 120, .18);
  overflow: hidden; min-width: 0;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0, 40, 120, .3); } }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; background: none; cursor: pointer; }
/* El producto se apoya en el piso: imagen alineada abajo + sombra de contacto */
.card__stage { position: absolute; inset: 18px 76px 22px 16px; isolation: isolate; }
.card__stage::after {
  content: ""; position: absolute; z-index: -1;
  left: 6%; right: 6%; bottom: -8px; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 8, 32, .55), rgba(0, 8, 32, 0));
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; filter: drop-shadow(0 6px 8px rgba(0, 8, 32, .35)); transition: opacity .6s ease, transform .7s var(--ease); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__img { transform: translateY(-6px) scale(1.03); } }
@media (hover: hover) and (pointer: fine) { .card:hover .card__stage::after { transform: scale(.82); opacity: .6; } }
.card__art { position: absolute; inset: 18px 76px 22px 16px; display: grid; place-items: end center; color: rgba(255, 255, 255, .5); }
.card__art .ico { width: 72px; height: 72px; stroke-width: 1.1; }
.card__media .price-badge { position: absolute; right: 10px; bottom: 10px; transition: transform .6s var(--spring); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__media .price-badge { transform: rotate(-8deg) scale(1.07); } }
.card__flag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 3px 10px; border-radius: 999px;
  background: var(--cashea); color: var(--ink);
  font-family: var(--font-cond); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card__brand { font-family: var(--font-cond); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #b5cbf5; }
.card__name { margin: 0; font-family: var(--font-title); font-stretch: 118%; font-weight: 700; font-size: 16px; line-height: 1.2; letter-spacing: -.005em; color: #fff; }
.card__name button { all: unset; cursor: pointer; transition: color .25s; }
@media (hover: hover) and (pointer: fine) { .card__name button:hover { color: var(--cashea); } }
.card__name button:focus-visible { outline: 3px solid var(--cashea); outline-offset: 2px; }
.card__specs { margin: 0; padding: 0; list-style: none; font-family: var(--font-cond); font-size: 15px; line-height: 1.35; color: #c9d7f4; }
.card__specs li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__note { font-size: 13px; color: var(--cashea); font-weight: 600; }
.card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
.card__save { font-size: 13px; color: #c9d7f4; }
.card__save strong { color: var(--cashea); }

.add-btn {
  position: relative; overflow: hidden;
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #fff; color: var(--huby); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .25s var(--ease), box-shadow .35s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .add-btn:hover { background: var(--cashea); color: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); } }
.add-btn:active { transform: scale(.95); transition-duration: .1s; }
@media (hover: hover) and (pointer: fine) { .add-btn:hover .add-btn__plus { transform: rotate(90deg); } }
.add-btn__icon { position: relative; width: 18px; height: 18px; flex: none; }
.add-btn__icon .ico { position: absolute; inset: 0; transition: opacity .25s ease, transform .5s var(--spring); }
.add-btn__check { opacity: 0; transform: scale(.3) rotate(-60deg); }
.add-btn.is-added, .add-btn.is-added:hover { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(30, 169, 82, .3); }
.add-btn.is-added .add-btn__plus { opacity: 0; transform: scale(.3) rotate(90deg); }
.add-btn.is-added .add-btn__check { opacity: 1; transform: none; stroke-width: 2.4; }

.empty { grid-column: 1 / -1; padding: 48px 16px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--r-md); animation: rise .6s var(--ease) both; }

/* Imágenes que aparecen suavemente al cargar */
.js .fade-img { opacity: 0; }
.js .fade-img.is-loaded { opacity: 1; }

/* Aparición al hacer scroll */
.js .reveal:not(.is-in) { opacity: 0; }
.reveal.is-in { animation: rise .85s var(--ease) backwards; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

/* Transiciones al filtrar y ordenar (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-new(*):only-child { animation: vt-in .45s var(--ease) both; }
::view-transition-old(*):only-child { animation: vt-out .25s ease both; }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes vt-out { to { opacity: 0; transform: scale(.92); } }

/* Promos */
.promo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; padding-block: 32px; }
.promo__card { position: relative; display: flex; align-items: center; gap: 16px; padding: 32px; border-radius: var(--r-lg); overflow: hidden; min-width: 0; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .promo__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); } }
.promo__card p { margin: 12px 0 0; max-width: 44ch; }
.promo__card .btn { margin-top: 20px; }
.promo__card--light { background: #fff; box-shadow: var(--shadow); }
.promo__card--light p { color: var(--muted); }
.promo__fine { font-size: 13px; color: #cfdcf6; }
.promo__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 10vw, 120px); line-height: 1; color: var(--cashea); margin-left: auto; transition: transform .7s var(--spring); }
@media (hover: hover) and (pointer: fine) { .promo__card:hover .promo__big { transform: rotate(-6deg) scale(1.06); } }

/* Sedes */
.stores { padding-block: 24px 64px; }
.stores__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.store { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); min-width: 0; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .store:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); } }
.store h3 { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 20px; color: var(--huby); }
.store p { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.store p .ico { color: var(--huby); margin-top: 2px; }
.store__phones a { font-variant-numeric: tabular-nums; text-decoration: none; font-weight: 600; transition: color .25s; }
@media (hover: hover) and (pointer: fine) { .store__phones a:hover { color: var(--huby); text-decoration: underline; } }
.store__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.store__actions .btn { min-height: 42px; font-size: 15px; padding: 0 18px; }

/* Footer */
.footer { padding-block: 40px 24px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 32px; }
.footer__brand img { width: 96px; height: auto; margin-bottom: 10px; }
.footer__brand p { margin: 0 0 6px; color: #e3ebfb; }
.footer__rif { font-family: var(--font-cond); letter-spacing: .06em; }
.footer__title { margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.methods li { padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--huby); font-weight: 600; font-size: 14px; transition: transform .35s var(--spring); }
@media (hover: hover) and (pointer: fine) { .methods li:hover { transform: translateY(-3px); } }
.footer__links { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer__links a { color: #fff; text-underline-offset: 3px; transition: text-underline-offset .3s var(--ease), opacity .3s; }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { text-underline-offset: 6px; } }
.footer__note { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; color: #cfdcf6; }

/* WhatsApp flotante */
.wa-fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 25;
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 6px 20px rgba(30, 169, 82, .45);
  animation: fab-in .7s var(--spring) .9s both;
  transition: transform .35s var(--spring), background-color .3s;
}
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(30, 169, 82, .5); animation: ring 3.2s ease-out 2s infinite; }
.wa-fab .ico { width: 28px; height: 28px; }
@media (hover: hover) and (pointer: fine) { .wa-fab:hover { background: #178a43; transform: scale(1.1) rotate(-6deg); } }
@keyframes fab-in { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(30, 169, 82, .5); } 60%, 100% { box-shadow: 0 0 0 16px rgba(30, 169, 82, 0); } }

/* Modal de producto */
.modal {
  width: min(780px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
  color: var(--ink); background: var(--card); overflow: hidden;
}
.modal[open] { animation: modal-in .5s var(--ease); }
.modal[open]::backdrop { animation: fade-in .4s ease; }
.modal.is-closing { animation: modal-out .26s ease forwards; }
.modal.is-closing::backdrop { animation: fade-out .26s ease forwards; }
.modal::backdrop { background: rgba(6, 20, 52, .55); backdrop-filter: blur(3px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.modal__body { display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal__media { position: relative; min-height: 340px; display: grid; place-items: center; }
.modal__img { max-height: 320px; object-fit: contain; padding: 24px; animation: modal-img .8s var(--ease) .1s both; }
.modal__media > .ico { width: 140px; height: 140px; stroke-width: .9; color: rgba(255, 255, 255, .5); }
.modal__img { filter: drop-shadow(0 14px 18px rgba(13, 26, 58, .14)); }
@keyframes modal-img { from { opacity: 0; transform: translateY(24px) scale(.9); } }
.modal__media .price-badge { position: absolute; right: 18px; bottom: 18px; animation: badge-in .8s var(--spring) .3s both; }
@keyframes badge-in { from { opacity: 0; transform: scale(.4) rotate(-25deg); } }
.modal__info { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 24px; min-width: 0; }
.modal__info > * { animation: rise .6s var(--ease) both; animation-delay: calc(.08s + var(--i, 0) * 60ms); }
.modal__close { position: absolute; top: 10px; right: 10px; }
.modal__info h2 { margin: 0; padding-right: 36px; font-family: var(--font-title); font-stretch: 118%; font-weight: 800; font-size: 24px; line-height: 1.15; }
.modal__info ul { margin: 0; padding-left: 18px; font-family: var(--font-cond); font-size: 17px; color: var(--muted); }
.modal__prices { display: grid; gap: 4px; padding: 14px; background: var(--bg); border-radius: var(--r-sm); font-variant-numeric: tabular-nums; }
.modal__prices div { display: flex; justify-content: space-between; gap: 12px; }
.modal__prices strong { color: var(--huby); font-size: 20px; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.modal__actions .btn { flex: 1; min-width: 160px; }

/* Pedido */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(6, 20, 52, .5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(420px, 100%); display: flex; flex-direction: column;
  background: var(--card); box-shadow: var(--shadow-pop);
  transform: translateX(105%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease); }
.drawer.is-entering .cart-item, .drawer.is-entering .checkout, .drawer.is-entering .cart-empty { animation: slide-in .6s var(--ease) backwards; animation-delay: calc(.12s + var(--i, 0) * 55ms); }
.drawer.is-entering .checkout { --i: 3; }
@keyframes slide-in { from { opacity: 0; transform: translateX(40px); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 18px; color: var(--huby); }
.drawer__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 24px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.cart-item.is-new { animation: item-new .6s var(--ease); }
@keyframes item-new { from { opacity: 0; transform: translateX(30px); background: var(--huby-soft); } }
.cart-item__thumb { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; color: rgba(255, 255, 255, .6); overflow: hidden; }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-item__thumb .ico { width: 26px; height: 26px; }
.cart-item__name { margin: 0; font-family: var(--font-title); font-stretch: 112%; font-weight: 700; font-size: 14px; line-height: 1.25; }
.cart-item__price { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: 2px; background: var(--bg); border-radius: 999px; padding: 2px; }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--huby); transition: background-color .2s, transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .qty button:hover { background: #fff; } }
.qty button:active { transform: scale(.85); }
.qty .ico { width: 16px; height: 16px; }
.qty span { min-width: 20px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty span.is-tick { animation: tick .4s var(--spring); }
.cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 12px; color: var(--huby); animation: rise .5s var(--ease) both; }
.cart-empty .ico { animation: float 4s ease-in-out infinite; }
.cart-empty p { margin: 8px 0 0; color: var(--ink); }
.cart-empty p.muted { color: var(--muted); }
.checkout { display: grid; gap: 16px; padding-top: 16px; animation: rise .5s var(--ease) both; }
.totals { display: grid; gap: 4px; padding: 14px; background: var(--huby-soft); border-radius: var(--r-sm); font-variant-numeric: tabular-nums; }
.totals__row { display: flex; justify-content: space-between; gap: 12px; }
.totals__row strong { font-size: 22px; color: var(--huby); }
.totals__row--muted { font-size: 14px; color: var(--muted); }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
.input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 16px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.input:focus { outline: none; border-color: var(--huby); box-shadow: 0 0 0 3px var(--huby-soft); }
.input.is-error { border-color: var(--oferta); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
textarea.input { resize: vertical; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label { position: relative; display: block; margin: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-weight: 600; font-size: 15px; transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), transform .2s var(--ease); }
.segmented label:active { transform: scale(.98); }
.segmented label span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { border-color: var(--huby); background: var(--huby-soft); color: var(--huby); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--huby); outline-offset: 2px; }

/* Producto volando al pedido */
.fly-ghost { position: fixed; z-index: 80; pointer-events: none; object-fit: contain; color: var(--huby); filter: drop-shadow(0 8px 16px rgba(0, 20, 60, .3)); will-change: transform; }

/* Aviso */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-pop); max-width: calc(100% - 32px);
  opacity: 0; transform: translate(-50%, 24px) scale(.96); pointer-events: none;
  transition: opacity .3s ease, transform .45s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 900px) {
  .promo { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .slide { gap: 20px; }
  .slide__specs { font-size: 17px; }
}
@media (max-width: 720px) {
  .header__inner { flex-wrap: wrap; gap: 10px; min-height: 60px; padding-block: 8px 12px; }
  .header__logo img { width: 66px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search:focus-within { max-width: none; }
  .cart-btn { margin-left: auto; }

  .hero { padding-block: 18px 16px; }
  .slider__track { height: 520px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: 220px auto; gap: 14px; align-items: start; }
  .slide__media { order: -1; height: 220px; align-self: start; }
  .slide__text { gap: 8px; }
  .slide__name { font-size: 25px; }
  .slide__specs { font-size: 16px; }
  .slide__specs li:nth-child(n+4) { display: none; }
  .slide__actions .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
  .slide .price-badge { width: 92px; height: 92px; right: 0; bottom: 0; }
  .slide .price-badge .price-badge__amount { font-size: 21px; }
  .slide .price-badge.is-long .price-badge__amount { font-size: 17px; }
  .slider__arrow { display: none; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__media { aspect-ratio: 1 / 1; }
  .card__stage { inset: 14px 30px 18px 10px; }
  .card__media .price-badge { transform: scale(.88); transform-origin: bottom right; }
  .card__art { inset: 14px 30px 18px 10px; }
  .card__art .ico { width: 52px; height: 52px; }
  .card__media .price-badge { right: 6px; bottom: 6px; }
  .card__body { padding: 10px 12px 12px; }
  .card__name { font-size: 14px; font-stretch: 112%; }
  .card__specs { font-size: 14px; }
  .card__specs li:nth-child(n+3) { display: none; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 6px; }
  .add-btn { margin-left: 0; }
  .stores__grid { grid-template-columns: 1fr; }
  .promo__card { padding: 24px; }
  .modal__body { grid-template-columns: 1fr; }
  .modal__media { min-height: 230px; }
  .modal__img { max-height: 230px; }
}
@media (max-width: 340px) {
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .slider__dot.is-active .slider__fill { animation: none; transform: scaleX(1); }
}
