/* =========================================================
   IKIQ STORE — estilos base (mobile-first)
   ========================================================= */

:root {
  --bg: #0d0d0f;
  --bg-alt: #161618;
  --card: #1b1b1e;
  --card-hover: #202023;
  --border: #2a2a2e;
  --text: #f4f4f5;
  --text-muted: #9a9aa2;
  --accent: #ff6a1a;
  --accent-dark: #e0570e;
  --accent-light: #ff8a4c;
  --accent-contrast: #0d0d0f;
  --success: #2fb571;
  --error: #e5484d;
  --warning: #e3a008;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 10px 24px rgba(255, 106, 26, 0.28);
  --container: 1200px;
  --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font); letter-spacing: -0.01em; }

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.section { padding: 2rem 0; }

.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent) 55%, var(--accent-dark));
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  border-color: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(255, 106, 26, 0.38);
}
.btn--lg { padding: 0.9rem 1.8rem; font-size: 1rem; }
.btn--sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.btn--block { width: 100%; }
.btn--danger { background: transparent; border-color: var(--error); color: var(--error); }
.btn--danger:hover { background: var(--error); color: #fff; }

.link-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  transition: gap 0.15s ease;
}
.link-arrow:hover { gap: 0.55rem; }

/* ---------- Promo bar ---------- */
.promo-bar {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent) 50%, var(--accent-dark));
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 68px;
}
.logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.logo span { color: var(--accent); }
.logo::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 106, 26, 0.7);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  order: -1;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.main-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg);
  flex-direction: column;
  gap: 0;
  padding: 1rem;
  overflow-y: auto;
  z-index: 40;
}
.main-nav.open { display: flex; }
.main-nav a {
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.main-nav a.active { color: var(--accent); }

.nav-search {
  display: flex;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.nav-search input {
  flex: 1;
  background: var(--bg-alt);
  border: none;
  color: var(--text);
  padding: 0.6rem 0.8rem;
}
.nav-search input:focus { outline: none; }
.nav-search button {
  background: var(--bg-alt);
  border: none;
  color: var(--text-muted);
  padding: 0 0.9rem;
  cursor: pointer;
}

.cart-link {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--bg-alt) var(--hero-image) center/cover no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,15,0.55) 0%, rgba(13,13,15,0.85) 100%);
}
.hero__content { position: relative; z-index: 1; padding: 3rem 1rem; }
.hero__eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  font-weight: 800;
  text-transform: uppercase;
}
.hero__subtitle {
  max-width: 480px;
  color: #e4e4e7;
  margin: 0 0 1.5rem;
}

/* ---------- Hero 3D ring (coverflow) ---------- */
.hero-ring {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 3rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% 8%, rgba(255, 106, 26, 0.18), transparent 62%),
    radial-gradient(circle at 12% 90%, rgba(255, 106, 26, 0.08), transparent 55%),
    repeating-linear-gradient(135deg, rgba(244, 244, 245, 0.025) 0 2px, transparent 2px 26px),
    var(--bg);
  border-bottom: 1px solid var(--border);
  touch-action: pan-y;
  user-select: none;
  --drag-px: 0px;
  --spot-hue: 24;
  animation: heroReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-ring__backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
}
.hero-ring__orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(244, 244, 245, 0.1);
}
.hero-ring__orbit--in {
  width: min(64vw, 380px);
  height: min(64vw, 380px);
  animation: heroSpin 60s linear infinite;
  border-style: dashed;
}
.hero-ring__orbit--out {
  width: min(88vw, 520px);
  height: min(88vw, 520px);
  border-color: rgba(244, 244, 245, 0.06);
  animation: heroSpin 90s linear infinite reverse;
}
.hero-ring__spotlight {
  position: absolute;
  width: min(56vw, 420px);
  height: min(56vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, hsla(var(--spot-hue, 24), 92%, 55%, 0.4), hsla(var(--spot-hue, 24), 92%, 55%, 0.1) 55%, transparent 74%);
  filter: blur(14px);
  animation: heroPulse 3.4s ease-in-out infinite;
  transition: background 0.4s ease;
}
@keyframes heroSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.1); opacity: 1; }
}
.hero-ring__watermark {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(calc(-50% + var(--drag-px, 0px) * -0.12), -50%);
  z-index: 0;
  font-size: clamp(3.2rem, 20vw, 8.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 244, 245, 0.13);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.hero-ring__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  height: min(88vw, 400px);
  perspective: 1400px;
  cursor: grab;
  outline: none;
  touch-action: pan-y;
  --spacing: 140px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transition: transform 0.35s ease;
  transform-style: preserve-3d;
}
.hero-ring__stage.is-dragging { transition: none; }
.hero-ring__stage:active,
.hero-ring__stage.is-dragging { cursor: grabbing; }
.hero-ring__stage:focus-visible { box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.4); border-radius: var(--radius); }
.hero-ring__item {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(88vw, 360px);
  aspect-ratio: 1 / 1;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease, filter 0.55s ease;
  transform:
    translateX(calc(var(--offset, 0) * var(--spacing, 130px) + var(--drag-px, 0px)))
    translateZ(calc(var(--abs-offset, 0) * -130px))
    rotateY(calc(var(--offset, 0) * -24deg))
    scale(calc(1 - var(--abs-offset, 0) * 0.17));
  opacity: calc(1 - var(--abs-offset, 0) * 0.4);
  z-index: calc(20 - var(--abs-offset, 0));
  filter: blur(calc(var(--abs-offset, 0) * 0.6px));
  cursor: pointer;
}
.hero-ring__stage.is-dragging .hero-ring__item { transition: none; }
.hero-ring__item.is-active { cursor: default; filter: none; }
.hero-ring__item.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: heroShimmer 0.9s ease-out;
  pointer-events: none;
  mix-blend-mode: overlay;
}
@keyframes heroShimmer {
  to { transform: translateX(130%); }
}
.hero-ring__item::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 68%;
  height: 12%;
  transform: translateX(-50%) scaleX(calc(1 - var(--abs-offset, 0) * 0.2));
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 72%);
  filter: blur(5px);
  opacity: calc(0.9 - var(--abs-offset, 0) * 0.3);
}
.hero-ring__img-wrap { width: 100%; height: 100%; }
.hero-ring__item.is-active .hero-ring__img-wrap {
  animation: heroBreathe 3.8s ease-in-out infinite;
}
@keyframes heroBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
.hero-ring__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  -webkit-user-drag: none;
}
.hero-ring__info {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 1rem;
  max-width: 360px;
}
.hero-ring__eyebrow {
  display: block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.hero-ring__name {
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  margin: 0 0 0.35rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
}
.hero-ring__price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-ring__cta svg { transition: transform 0.2s ease; }
.hero-ring__cta:hover svg { transform: translateX(3px); }
.hero-ring__hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  z-index: 1;
}
.hero-ring__count {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.hero-ring__count em { font-style: normal; color: var(--text-muted); font-weight: 600; }
.hero-ring__arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(13, 13, 15, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.hero-ring__arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.15), var(--shadow-sm);
  transform: translateY(-50%) scale(1.06);
}
.hero-ring__arrow:active { transform: translateY(-50%) scale(0.96); }
.hero-ring__arrow--prev { left: 0.5rem; }
.hero-ring__arrow--next { right: 0.5rem; }
.hero-ring__dots {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.hero-ring__dot {
  position: relative;
  width: 28px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: rgba(244, 244, 245, 0.18);
  cursor: pointer;
  overflow: hidden;
}
.hero-ring__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-ring__dot.active::after { transform: scaleX(1); }
.hero-ring__dot.filling::after {
  animation: heroDotFill var(--autoplay-ms, 4500ms) linear forwards;
}
.hero-ring__dots.is-paused .hero-ring__dot.filling::after { animation-play-state: paused; }
@keyframes heroDotFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ring__orbit, .hero-ring__spotlight, .hero-ring__img-wrap { animation: none !important; }
  .hero-ring__item { transition: opacity 0.3s ease !important; }
  .hero-ring__item.is-active::after { animation: none !important; display: none; }
  .hero-ring__dot.filling::after { animation: none !important; }
  .hero-ring { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-ring__stage { transform: none !important; transition: none !important; }
}

@media (min-width: 640px) {
  .hero-ring__stage { height: min(52vw, 440px); }
  .hero-ring__item { width: min(46vw, 400px); }
}

@media (min-width: 860px) {
  .hero-ring { min-height: 86vh; padding: 3rem 1rem; }
  .hero-ring__watermark { font-size: clamp(5.5rem, 13vw, 11rem); }
  .hero-ring__stage { height: min(38vw, 460px); }
  .hero-ring__item { width: min(30vw, 400px); }
  .hero-ring__info { margin-top: 1.5rem; }
  .hero-ring__arrow--prev { left: 2rem; }
  .hero-ring__arrow--next { right: 2rem; }
  .hero-ring__count { top: 1.75rem; right: 2rem; font-size: 0.95rem; }
}

/* ---------- USP strip ---------- */
.usp-strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
}
.usp-strip__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.usp-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}
.usp-item svg { flex-shrink: 0; color: var(--accent); }
.usp-item strong { display: block; color: var(--text); font-size: 0.85rem; font-weight: 700; }
.usp-item span { display: block; font-size: 0.75rem; }

/* ---------- Promo banner ---------- */
.promo-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 100% at 100% 0%, rgba(255, 106, 26, 0.16), transparent 60%),
    linear-gradient(135deg, #17171a, #0d0d0f);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.promo-banner__inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 1rem;
}
.promo-banner__content { text-align: center; max-width: 420px; }
.promo-banner__eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.promo-banner__content h2 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}
.promo-banner__content p { color: var(--text-muted); margin: 0 0 1.4rem; line-height: 1.55; }
.promo-banner__media {
  position: relative;
  width: min(70vw, 300px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-banner__glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.32), transparent 70%);
  filter: blur(10px);
}
.promo-banner__media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.55));
}

/* ---------- Why us ---------- */
.why-us { background: var(--bg-alt); }
.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.why-us__item { text-align: center; }
.why-us__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 106, 26, 0.1);
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.why-us__item h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 800; }
.why-us__item p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

@media (min-width: 640px) {
  .usp-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .why-us__grid { grid-template-columns: repeat(3, 1fr); }
  .promo-banner__inner { flex-direction: row; text-align: left; padding: 4rem 1rem; }
  .promo-banner__content { text-align: left; }
}

@media (min-width: 860px) {
  .usp-strip__inner { grid-template-columns: repeat(4, 1fr); }
  .promo-banner__media { width: min(32vw, 360px); }
}

/* ---------- Category strip ---------- */
.category-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.category-tile {
  position: relative;
  height: 200px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1.25rem;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  overflow: hidden;
  background: linear-gradient(135deg, #232326, #141416);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.category-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.68) 5%, rgba(0,0,0,0.15) 55%, transparent 75%);
  z-index: 1;
}
.category-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.09) 42%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  z-index: 2;
}
.category-tile:hover::before { transform: translateX(120%); }
.category-tile__glow {
  position: absolute;
  top: 10%;
  right: -6%;
  width: 60%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  filter: blur(14px);
  z-index: 0;
}
.category-tile__img {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 58%;
  max-width: 210px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.55));
  transform: rotate(-8deg);
  transition: transform 0.35s ease;
  z-index: 0;
  pointer-events: none;
}
.category-tile:hover .category-tile__img { transform: rotate(-3deg) scale(1.07); }
.category-tile__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.category-tile__label::after {
  content: '→';
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.category-tile:hover .category-tile__label::after { opacity: 1; transform: translateX(0); }
.category-tile--hombre { background: linear-gradient(135deg, #2c2c30, #16161a); }
.category-tile--mujer { background: linear-gradient(135deg, #33221f, #16161a); }
.category-tile--nino { background: linear-gradient(135deg, #1f2c22, #16161a); }
.category-tile:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---------- Section title ---------- */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.section-title h1, .section-title h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  padding-left: 0.85rem;
}
.section-title h1::before, .section-title h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent-dark));
}
.section-title__actions { display: flex; align-items: center; gap: 0.6rem; }
.row-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.row-arrow:hover { border-color: var(--accent); color: var(--accent); }
.row-arrow:active { transform: scale(0.94); }

/* ---------- Product grid & card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Single-row horizontal product slider (e.g. Productos destacados) */
.product-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.2rem 0.2rem 0.6rem;
  margin: -0.2rem -0.2rem 0;
}
.product-row::-webkit-scrollbar { display: none; }
.product-row .product-card {
  flex: 0 0 auto;
  width: clamp(160px, 42vw, 220px);
  scroll-snap-align: start;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(16px);
}
.product-card.is-visible { opacity: 1; transform: translateY(0); }
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  overflow: hidden;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.08); }
.badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  z-index: 1;
}
.badge--sale { background: var(--accent); color: #fff; box-shadow: 0 4px 10px rgba(255,106,26,0.4); }
.badge--soldout { background: rgba(20,20,22,0.85); color: #ccc; left: auto; right: 0.6rem; backdrop-filter: blur(4px); }
.product-card__body { padding: 0.9rem 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.product-card__category { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.product-card__name { font-size: 0.92rem; margin: 0; font-weight: 700; line-height: 1.3; }
.product-card__prices { display: flex; gap: 0.5rem; align-items: baseline; margin-top: 0.3rem; }
.product-card__prices--lg { font-size: 1.4rem; margin: 0.5rem 0 1rem; }
.price { font-weight: 800; color: var(--accent); }
.price--old { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .product-card { opacity: 1; transform: none; }
}

.empty-msg { color: var(--text-muted); padding: 2rem 0; text-align: center; }

/* ---------- Category links (home) ---------- */
.cat-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cat-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.cat-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 106, 26, 0.08);
  transform: translateY(-2px);
}

/* ---------- Catalog layout ---------- */
.catalog-layout { display: flex; flex-direction: column; gap: 1.5rem; }
.filters-form { display: flex; flex-direction: column; gap: 1.25rem; }
.filter-group h4 { margin: 0 0 0.5rem; font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); }
.filter-group { display: flex; flex-direction: column; gap: 0.3rem; }
.filter-group a { padding: 0.3rem 0; font-size: 0.9rem; color: var(--text-muted); }
.filter-group a.active, .filter-group a:hover { color: var(--accent); }

.pagination { display: flex; gap: 0.4rem; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}
.pagination a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Product detail ---------- */
.breadcrumbs { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumbs a:hover { color: var(--accent); }
.product-detail__grid { display: flex; flex-direction: column; gap: 1.5rem; }
.product-gallery__main {
  aspect-ratio: 1/1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; overflow-x: auto; }
.thumb {
  width: 60px; height: 60px; flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--card);
  transition: border-color 0.15s ease;
}
.thumb:hover { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-description { color: var(--text-muted); line-height: 1.6; }

.size-selector, .qty-selector { margin: 1.25rem 0; }
.size-selector h4, .qty-selector h4 { margin: 0 0 0.5rem; font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); }
.size-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.size-option {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.size-option:hover { border-color: var(--accent); transform: translateY(-1px); }
.size-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option:has(input:checked) { border-color: var(--accent); color: var(--accent); background: rgba(255,106,26,0.08); }
.size-option.disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.qty-selector input[type="number"] {
  width: 90px;
  padding: 0.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}

/* ---------- Cart ---------- */
.empty-state { text-align: center; padding: 3rem 0; }
.empty-state p { color: var(--text-muted); margin-bottom: 1rem; }
.cart-layout { display: flex; flex-direction: column; gap: 1.5rem; }
.cart-items { display: flex; flex-direction: column; gap: 0.75rem; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  grid-template-areas: "img info remove" "img qty subtotal";
  gap: 0.5rem 0.9rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cart-item:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.cart-item img { grid-area: img; width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item__info { grid-area: info; display: flex; flex-direction: column; gap: 0.15rem; }
.cart-item__info a { font-weight: 600; }
.cart-item__qty { grid-area: qty; }
.cart-item__qty input {
  width: 60px; padding: 0.35rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text);
}
.cart-item__subtotal { grid-area: subtotal; font-weight: 700; justify-self: end; }
.btn-remove {
  grid-area: remove;
  justify-self: end;
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1.1rem;
}
.btn-remove:hover { color: var(--error); }

.cart-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  align-self: flex-start;
  position: sticky;
  top: 80px;
}
.cart-summary h3 { margin-top: 0; }
.summary-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.9rem; }
.summary-row--total { font-size: 1.1rem; font-weight: 800; border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.75rem; }
.cart-summary .btn { margin-top: 1rem; }
.cart-summary .link-arrow { display: block; text-align: center; }

/* ---------- Checkout ---------- */
.checkout-layout { display: flex; flex-direction: column-reverse; gap: 1.5rem; }
.checkout-form { display: flex; flex-direction: column; gap: 0.9rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.checkout-form h3 { margin: 0.5rem 0 0; }
.checkout-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--text-muted); }
.checkout-form input, .checkout-form textarea, .checkout-form select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checkout-form input:focus, .checkout-form textarea:focus, .checkout-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.15);
}
.checkout-form .form-row { display: flex; flex-direction: column; gap: 0.9rem; }

.form-row { display: flex; flex-direction: column; gap: 0.9rem; }

/* ---------- Order result pages ---------- */
.order-result { text-align: center; padding: 4rem 1rem; max-width: 480px; margin: 0 auto; }
.order-result__icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.8rem; font-weight: 800;
  background: var(--card); border: 1px solid var(--border);
}
.order-result__icon--success { color: var(--success); border-color: var(--success); }
.order-result__icon--error { color: var(--error); border-color: var(--error); }
.order-result__icon--pending { color: var(--warning); border-color: var(--warning); }
.order-result__details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; margin: 1.5rem 0; text-align: left;
}
.order-result__details p { margin: 0.3rem 0; font-size: 0.9rem; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius); padding: 0.9rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; }
.alert ul { padding-left: 1.2rem; list-style: disc; }
.alert--error { background: rgba(229,72,77,0.12); border: 1px solid var(--error); color: #ffb3b5; }
.alert--warning { background: rgba(227,160,8,0.12); border: 1px solid var(--warning); color: #ffd479; }
.alert--success { background: rgba(47,181,113,0.12); border: 1px solid var(--success); color: #8fe8b4; }
.alert--info { background: rgba(255,106,26,0.1); border: 1px solid var(--accent); color: #ffb98a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 3rem; padding: 2.5rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h4 { margin: 0 0 0.3rem; font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); }
.footer-col a, .footer-col span { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.logo--footer { margin-bottom: 0.5rem; }
.social-links { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.social-icon:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-3px);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; gap: 0.5rem;
}
.footer-admin-link { opacity: 0.5; font-size: 0.75rem; }
.footer-admin-link:hover { opacity: 1; }

/* ============ Tablet / Desktop ============ */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-strip { grid-template-columns: repeat(3, 1fr); }
  .product-row .product-card { width: clamp(200px, 26vw, 240px); }
  .checkout-form .form-row { flex-direction: row; }
  .form-row { flex-direction: row; }
}

@media (min-width: 860px) {
  .catalog-layout { flex-direction: row; align-items: flex-start; }
  .filters { width: 220px; flex-shrink: 0; }
  .catalog-results { flex: 1; }
  .checkout-layout { flex-direction: row; align-items: flex-start; }
  .checkout-form { flex: 1; }
  .cart-summary { width: 320px; flex-shrink: 0; }
  .cart-layout { flex-direction: row; align-items: flex-start; }
  .cart-items { flex: 1; }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-row .product-card { width: clamp(220px, 19vw, 250px); }
  .product-detail__grid { flex-direction: row; gap: 3rem; }
  .product-gallery { width: 45%; }
  .product-info { flex: 1; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  .menu-toggle { display: none; }
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    inset: auto;
    background: transparent;
  }
  .main-nav a { border: none; padding: 0; }
  .nav-search { margin-top: 0; width: 220px; }
}
