/* ===== Variables (paleta Ikalex) ===== */
:root {
  --brand: #00aeef;
  --brand-dark: #008fc4;
  --brand-light: #e7f8ff;
  --accent-yellow: #7cff2a; /* lima del logo — nombre histórico en CSS */
  --accent-lime: #7cff2a;
  --accent-blue: #1a3a6b;
  --ink: #121212;
  --neutral-50: #f7f8fa;
  --neutral-100: #f0f2f5;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --container: 1280px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--neutral-50);
  color: var(--neutral-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .hero-title, .rail-heading, .logo-text, .section-title {
  font-family: "Oxanium", "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button, input { font: inherit; }
button { cursor: pointer; border: none; background: none; }

.container-store {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container-store { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container-store { padding: 0 2rem; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: 0.2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-yellow { background: var(--accent-lime); color: var(--ink); }
.btn-yellow:hover { filter: brightness(0.95); }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
}
.btn-icon:hover { background: var(--neutral-100); }

/* ===== Top Bar ===== */
.topbar {
  background: var(--neutral-900);
  color: #f5f5f5;
  border-bottom: 1px solid var(--neutral-800);
}
.topbar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0.5rem 0;
}
@media (min-width: 640px) {
  .topbar-grid { grid-template-columns: repeat(4, 1fr); }
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  font-size: 0.75rem;
}
@media (min-width: 640px) {
  .topbar-item { justify-content: center; font-size: 0.875rem; }
}
.topbar-icon { color: var(--accent-yellow); flex-shrink: 0; }
.topbar-title { margin: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-desc { display: none; margin: 0; color: var(--neutral-400); font-size: 0.75rem; }
@media (min-width: 640px) { .topbar-desc { display: block; } }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
  background: #fff;
  border-bottom: 3px solid var(--accent-lime);
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.08);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
@media (min-width: 1024px) { .header-main { height: 76px; } }

.header-left { display: flex; align-items: center; gap: 0.75rem; }
.mobile-menu-toggle { display: flex; color: var(--neutral-800); }
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }

.logo { display: flex; align-items: center; gap: 0.65rem; }
.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #000;
  box-shadow:
    0 0 0 2px rgba(0, 174, 239, 0.45),
    0 6px 16px rgba(0, 174, 239, 0.22);
}
@media (min-width: 1024px) {
  .logo-img { width: 54px; height: 54px; }
}
.logo-mark {
  width: 40px; height: 40px;
  display: none;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand) 0%, #0077a8 55%, var(--accent-lime) 100%);
  font-family: "Oxanium", "Segoe UI", sans-serif;
  font-size: 0.8rem; font-weight: 800; color: #fff;
}
.logo-text { display: none; flex-direction: column; }
@media (min-width: 640px) { .logo-text { display: flex; } }
.logo-name {
  font-family: "Oxanium", "Segoe UI", sans-serif;
  font-size: 1.2rem; font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em;
}
.logo-accent { color: var(--brand); }
.logo-tagline {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--neutral-500);
  font-weight: 600;
}

.header-search {
  display: none;
  flex: 1;
  max-width: 38rem;
  position: relative;
}
@media (min-width: 1024px) { .header-search { display: flex; align-items: center; } }
.header-search svg {
  position: absolute; left: 0.95rem;
  color: var(--neutral-400);
  pointer-events: none;
}
.header-search input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  background: #f7f8fa;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.header-search input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.18);
}

.header-actions { display: flex; align-items: center; gap: 0.35rem; }
.header-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-size: 0.875rem; font-weight: 600; color: var(--neutral-700);
  transition: background 0.2s, color 0.2s;
}
.header-link:hover { background: #f3f4f6; color: #101820; }
.cart-link {
  position: relative;
  background: var(--ink);
  color: #fff;
}
.cart-link:hover { background: #1a2533; color: #fff; }
.cart-badge {
  position: absolute; top: -0.2rem; right: -0.2rem;
  min-width: 1.2rem; height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--accent-lime);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.mobile-search-toggle { display: flex; }
@media (min-width: 1024px) { .mobile-search-toggle { display: none; } }
.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline; } }

/* Category nav */
.desktop-nav {
  display: block;
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(0, 174, 239, 0.18), transparent 28%),
    linear-gradient(180deg, #131c26 0%, #101820 100%);
}
.desktop-nav .container-store {
  overflow: visible;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.15rem;
  margin: 0;
  padding: 0.2rem 0;
  list-style: none;
  overflow: visible;
}
.nav-item {
  position: relative;
  flex-shrink: 0;
}
.nav-link,
button.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.78rem 0.9rem;
  font-family: "Oxanium", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover,
button.nav-link:hover,
.nav-item.has-dropdown.is-open > .nav-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.nav-link:hover::after,
button.nav-link:hover::after,
.nav-item.has-dropdown.is-open > .nav-link::after,
.nav-highlight::after {
  transform: scaleX(1);
}
.nav-chevron {
  transition: transform 0.2s ease;
  opacity: 0.75;
}
.nav-item.has-dropdown:hover .nav-chevron,
.nav-item.has-dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-highlight,
.nav-item.is-highlight > .nav-link {
  color: var(--accent-yellow);
}
.nav-pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 0 0 rgba(255, 203, 5, 0.55);
  animation: nav-pulse 1.8s infinite;
}
@keyframes nav-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 203, 5, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 203, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 203, 5, 0); }
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 260px;
  padding: 0.65rem;
  background: #fff;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(16, 24, 32, 0.18);
  z-index: 90;
  animation: nav-drop-in 0.18s ease;
}
@keyframes nav-drop-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-title {
  margin: 0 0 0.45rem;
  padding: 0.35rem 0.55rem;
  font-family: "Oxanium", "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
}
.nav-dropdown-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-dropdown-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.nav-dropdown-list a svg {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s;
  color: var(--brand);
}
.nav-dropdown-list a:hover {
  background: #fff7db;
  color: #101820;
  transform: translateX(2px);
}
.nav-dropdown-list a:hover svg {
  opacity: 1;
  transform: translateX(0);
}
.nav-item.has-dropdown:hover > .nav-dropdown,
.nav-item.has-dropdown.is-open > .nav-dropdown {
  display: block;
}
@media (max-width: 767px) {
  .nav-link,
  button.nav-link {
    padding: 0.65rem 0.7rem;
    font-size: 0.7rem;
  }
  .nav-dropdown { min-width: 220px; }
}
/* Mobile Menu */
.mobile-menu[hidden] { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 100; }
.mobile-menu-backdrop {
  position: absolute; inset: 0;
  background: rgba(16, 24, 32, 0.55);
  backdrop-filter: blur(2px);
}
.mobile-menu-panel {
  position: absolute; top: 0; left: 0;
  width: min(100%, 340px); height: 100%;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
}
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.15rem;
  background: #101820;
  color: #fff;
  border-bottom: 3px solid var(--accent-yellow);
}
.mobile-menu-header strong {
  font-family: "Oxanium", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}
.mobile-menu-header .btn-icon { color: #fff; }
.mobile-nav { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.mobile-nav-link {
  display: block; padding: 0.95rem 1.15rem;
  font-family: "Oxanium", "Segoe UI", sans-serif;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--neutral-100);
}
.mobile-nav-link.nav-highlight { color: var(--brand); }
.mobile-nav-group { border-bottom: 1px solid var(--neutral-100); }
.mobile-nav-group summary {
  padding: 0.95rem 1.15rem;
  font-family: "Oxanium", "Segoe UI", sans-serif;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.mobile-nav-group summary::-webkit-details-marker { display: none; }
.mobile-nav-group ul { margin: 0; padding: 0 0 0.4rem; list-style: none; }
.mobile-nav-group ul a {
  display: block; padding: 0.65rem 1.35rem;
  font-size: 0.9rem; color: var(--neutral-600);
  background: #f8fafc;
}
.mobile-nav-group ul a:hover { color: var(--brand); background: var(--brand-light); }


/* ===== Mobile polish ===== */
.mobile-search-panel {
  display: none;
}
.mobile-menu-footer {
  display: none;
}

@media (max-width: 1023px) {
  .topbar {
    display: none;
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .header-main {
    height: 58px;
    gap: 0.5rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    font-size: 0.7rem;
    border-radius: 8px;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    display: flex;
  }

  .logo-name {
    font-size: 1rem;
  }

  .logo-tagline {
    display: none;
  }

  .header-link.cart-link {
    padding: 0.45rem 0.55rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-search-panel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--neutral-200);
    border-radius: 10px;
    background: #f7f8fa;
  }

  .mobile-search-panel[hidden] {
    display: none !important;
  }

  .mobile-search-panel svg {
    flex-shrink: 0;
    color: var(--neutral-400);
  }

  .mobile-search-panel input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
  }

  .mobile-search-go {
    flex-shrink: 0;
    padding: 0.4rem 0.7rem;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .mobile-menu-panel {
    width: min(100%, 100%);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-menu-footer {
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--neutral-200);
    background: #fafafa;
  }

  .mobile-menu-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: #101820;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
  }

  .mobile-menu-action-soft {
    background: #fff;
    color: #101820;
    border: 1px solid var(--neutral-300);
  }

  .mobile-menu-action-cart {
    background: var(--brand);
  }

  .hero-grid {
    padding: 1.5rem 0 1.75rem;
    min-height: 0;
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .hero-controls {
    margin-top: 1.25rem;
  }

  .category-banners {
    padding: 1.25rem 0;
  }

  .banner-grid {
    gap: 0.75rem;
  }

  .category-banner {
    border-radius: 12px;
  }

  .category-banner-overlay {
    padding: 1rem;
  }

  .category-banner-overlay h3 {
    font-size: 1.05rem;
  }

  .banner-cta {
    opacity: 1;
    margin-top: 0.5rem;
  }

  .product-section,
  .product-section--carousel {
    padding: 1.35rem 0 1.5rem;
  }

  .rail-header {
    margin-bottom: 0.85rem;
  }

  .rail-heading {
    font-size: 1.15rem;
    letter-spacing: 0.02em;
  }

  .product-rail {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rail-nav {
    display: none;
  }

  .product-rail-track {
    gap: 0.75rem;
    padding: 0.15rem 0.1rem 0.65rem;
  }

  .product-card--rail {
    flex: 0 0 min(68vw, 180px);
  }

  .product-card--rail .product-image-wrap {
    min-height: 140px;
    aspect-ratio: 1;
  }

  .product-card--rail .product-image-wrap img,
  .product-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: contain;
    background: #f3f4f6;
  }

  .product-card--rail .product-body {
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .product-card--rail .product-name {
    font-size: 0.78rem;
    min-height: 2.4em;
  }

  .btn-add-cart--rail {
    font-size: 0.74rem;
  }

  .rail-footer {
    margin-top: 0.15rem;
  }

  .rail-cta {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
  }

  .product-grid {
    gap: 0.75rem;
  }

  .site-footer {
    margin-top: 2rem;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (min-width: 1024px) {
  .mobile-search-panel {
    display: none !important;
  }
}
/* ===== Hero ===== */
.hero {
  background: var(--neutral-900);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 0;
  min-height: 320px;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    padding: 3.5rem 0;
  }
}
.hero-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-yellow);
}
.hero-slide { display: none; }
.hero-slide.is-active { display: block; }
.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15; color: #fff;
}
.hero-subtitle {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  font-size: 1rem; color: #d4d4d4;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.125rem; } }

.hero-controls {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 2rem;
}
.hero-btn {
  padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; color: #fff;
}
.hero-btn:hover { background: rgba(255,255,255,0.1); }
.hero-dots { display: flex; gap: 0.5rem; }
.hero-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
  padding: 0;
}
.hero-dot.is-active { width: 2rem; background: var(--accent-yellow); }

.hero-media { position: relative; aspect-ratio: 4/3; border-radius: 1rem; overflow: hidden; }
@media (min-width: 768px) { .hero-media { height: 340px; aspect-ratio: auto; } }
.hero-image-wrap {
  display: none;
  position: absolute; inset: 0;
}
.hero-image-wrap.is-active { display: block; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-wrap::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.4; z-index: 1;
}
.hero-accent-blue::before { background: linear-gradient(135deg, var(--accent-blue), #312e81); }
.hero-accent-orange::before { background: linear-gradient(135deg, #ea580c, #991b1b); }
.hero-accent-purple::before { background: linear-gradient(135deg, #7e22ce, #9d174d); }

/* ===== Category Banners ===== */
.category-banners { padding: 2.5rem 0; }
.banner-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .banner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .banner-grid { grid-template-columns: repeat(4, 1fr); }
}
.category-banner {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #1a2330;
}
.category-banner img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.category-banner img.is-broken {
  opacity: 0;
  pointer-events: none;
}
.category-banner:hover img:not(.is-broken) { transform: scale(1.05); }
.banner-theme-pokemon {
  background:
    linear-gradient(135deg, rgba(16,24,32,0.2), rgba(16,24,32,0.55)),
    linear-gradient(135deg, #1a3a6b 0%, #00aeef 55%, #7cff2a 100%);
}
.banner-theme-tcg {
  background:
    linear-gradient(135deg, rgba(16,24,32,0.25), rgba(16,24,32,0.6)),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 50%, #0ea5e9 100%);
}
.banner-theme-figuras {
  background:
    linear-gradient(135deg, rgba(16,24,32,0.2), rgba(16,24,32,0.55)),
    linear-gradient(135deg, #7c2d12 0%, #ea580c 55%, #fbbf24 100%);
}
.banner-theme-anime {
  background:
    linear-gradient(135deg, rgba(16,24,32,0.2), rgba(16,24,32,0.55)),
    linear-gradient(135deg, #7f1d1d 0%, #dc2626 45%, #fb7185 100%);
}
.category-banner-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.2), transparent);
  color: #fff;
  z-index: 1;
}
.category-banner-overlay h3 { margin: 0; font-size: 1.25rem; }
.category-banner-overlay p { margin: 0.25rem 0 0; font-size: 0.875rem; color: #d4d4d4; }
.banner-cta {
  margin-top: 0.75rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--accent-yellow);
  opacity: 0;
  transition: opacity 0.2s;
}
.category-banner:hover .banner-cta { opacity: 1; }

/* ===== Product Section ===== */
.product-section {
  padding: 2rem 0 2.25rem;
}
.product-section--carousel {
  padding: 2.25rem 0 2.5rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-head-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.section-accent {
  width: 4px;
  height: 1.4rem;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--brand);
}
.product-section--nuevo .section-accent {
  background: linear-gradient(180deg, var(--accent-yellow), var(--brand));
}
.product-section--preventas .section-accent {
  background: var(--accent-yellow);
}
.product-section--inmediata .section-accent {
  background: var(--accent-blue);
}
.section-kicker {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-title {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
}
.section-subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: var(--neutral-500);
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--neutral-100);
  color: var(--brand);
  transition: background 0.2s ease;
}
.section-link:hover { background: var(--brand-light); }

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== Home rails (carousel) ===== */
.rail-header {
  text-align: center;
  margin-bottom: 1.35rem;
}
.rail-kicker {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-section--nuevo .rail-kicker {
  background: rgba(0, 174, 239, 0.1);
  color: var(--brand);
}
.product-section--preventas .rail-kicker {
  background: rgba(255, 203, 5, 0.22);
  color: #7a5f00;
}
.product-section--oferta .rail-kicker {
  background: rgba(0, 174, 239, 0.15);
  color: var(--brand-dark);
}
.product-section--ultimas .rail-kicker {
  background: rgba(146, 64, 14, 0.12);
  color: #92400e;
}
.product-section--inmediata .rail-kicker {
  background: rgba(59, 76, 202, 0.12);
  color: var(--accent-blue);
}
.rail-heading {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e3a5f;
}
.rail-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.65rem auto 0;
  border-radius: 2px;
  background: var(--brand);
}
.product-section--preventas .rail-heading::after { background: var(--accent-yellow); }
.product-section--oferta .rail-heading::after { background: var(--brand); }
.product-section--ultimas .rail-heading::after { background: #d97706; }
.product-section--inmediata .rail-heading::after { background: var(--accent-blue); }
.rail-lead {
  margin: 0.55rem auto 0;
  max-width: 34rem;
  font-size: 0.9rem;
  color: var(--neutral-500);
}

.product-rail {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
}
.product-rail-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.15rem 0.85rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-rail-track::-webkit-scrollbar { display: none; }

.rail-nav {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--neutral-200);
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 8px 18px rgba(16, 24, 32, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}
.rail-nav:hover {
  transform: scale(1.06);
  border-color: var(--brand);
  color: var(--brand);
}
.product-section--preventas .rail-nav:hover {
  border-color: #c9a000;
  color: #8a6d00;
}
.product-section--oferta .rail-nav:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.product-section--ultimas .rail-nav:hover {
  border-color: #d97706;
  color: #92400e;
}
.product-section--inmediata .rail-nav:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
@media (max-width: 639px) {
  .product-rail { grid-template-columns: 1fr; }
  .rail-nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
  }
  .rail-nav-prev { left: 0.15rem; }
  .rail-nav-next { right: 0.15rem; }
  .rail-nav:hover { transform: translateY(-50%) scale(1.06); }
}

.product-card--rail {
  flex: 0 0 min(72vw, 210px);
  scroll-snap-align: start;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
@media (min-width: 640px) {
  .product-card--rail { flex-basis: 200px; }
}
@media (min-width: 900px) {
  .product-card--rail { flex-basis: 210px; }
}
@media (min-width: 1200px) {
  .product-card--rail { flex-basis: 220px; }
}
.product-card--rail:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 174, 239, 0.25);
  box-shadow: 0 18px 34px rgba(16, 24, 32, 0.12);
}
.product-section--preventas .product-card--rail:hover {
  border-color: rgba(255, 203, 5, 0.55);
}
.product-section--oferta .product-card--rail:hover {
  border-color: rgba(0, 174, 239, 0.35);
}
.product-section--ultimas .product-card--rail:hover {
  border-color: rgba(217, 119, 6, 0.45);
}
.product-section--inmediata .product-card--rail:hover {
  border-color: rgba(59, 76, 202, 0.35);
}
.product-card--rail .product-image-wrap {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.9), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.product-card--rail .product-image-wrap img {
  object-fit: contain;
  padding: 0.75rem;
}
.product-quick-view {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%) translateY(8px);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.product-card--rail:hover .product-quick-view {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.product-card--rail .product-body {
  padding: 0.85rem 0.9rem 1rem;
}
.product-card--rail .product-name {
  min-height: 2.5em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--neutral-800);
}
.product-card--rail .product-price {
  font-size: 1.05rem;
  color: var(--accent-blue);
}
.product-card--rail .product-footer {
  padding-top: 0.55rem;
}
.btn-add-cart--rail {
  margin-top: 0.55rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-color: transparent;
  background: var(--neutral-100);
  color: var(--neutral-800);
}
.btn-add-cart--rail:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.rail-footer {
  display: flex;
  justify-content: center;
  margin-top: 0.35rem;
}
.rail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 280px);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.rail-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 28px rgba(234, 88, 12, 0.34);
}
.product-section--nuevo .rail-cta {
  background: linear-gradient(180deg, #33c4f5 0%, var(--brand) 100%);
  box-shadow: 0 12px 24px rgba(0, 174, 239, 0.28);
}
.product-section--preventas .rail-cta {
  background: linear-gradient(180deg, #9cff5c 0%, var(--accent-lime) 100%);
  color: #101820;
  box-shadow: 0 12px 24px rgba(124, 255, 42, 0.3);
}
.product-section--oferta .rail-cta {
  background: linear-gradient(180deg, #33c4f5 0%, var(--brand-dark) 100%);
  box-shadow: 0 12px 24px rgba(0, 143, 196, 0.28);
}
.product-section--ultimas .rail-cta {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  color: #1f1305;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}
.product-section--inmediata .rail-cta {
  background: linear-gradient(180deg, #4f63d8 0%, var(--accent-blue) 100%);
  box-shadow: 0 12px 24px rgba(26, 58, 107, 0.28);
}
/* ===== Product Card ===== */
.product-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.product-card:hover {
  border-color: var(--neutral-300);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--neutral-100);
  min-height: 140px;
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.product-badges {
  position: absolute; top: 0.5rem; left: 0.5rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.badge {
  display: inline-flex;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-nuevo { background: #d1fae5; color: #065f46; }
.badge-preventa { background: #ede9fe; color: #5b21b6; }
.badge-oferta { background: var(--brand-light); color: var(--brand-dark); }
.badge-ultimas { background: #fef3c7; color: #92400e; }
.badge-inmediata { background: #e0f2fe; color: #075985; }
.badge-discount { background: var(--brand); color: #fff; }

.product-body {
  display: flex; flex-direction: column;
  flex: 1; padding: 1rem;
}
.product-name {
  font-size: 0.875rem; font-weight: 500; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-name:hover { color: var(--brand); }
.product-desc {
  margin: 0.25rem 0 0;
  font-size: 0.75rem; color: var(--neutral-500);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-footer { margin-top: auto; padding-top: 0.75rem; }
.product-prices { display: flex; align-items: baseline; gap: 0.5rem; }
.product-price { font-size: 1.125rem; font-weight: 700; }
.product-price-old { font-size: 0.875rem; color: var(--neutral-400); text-decoration: line-through; }
.btn-add-cart {
  width: 100%; margin-top: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  background: #fff;
  transition: 0.2s;
}
.btn-add-cart:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand-dark);
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 4rem;
  background: var(--neutral-900);
  color: #d4d4d4;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  padding: 3rem 0;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-img--footer {
  width: 48px;
  height: 48px;
}
.mobile-menu-logo {
  gap: 0.55rem;
}
.mobile-menu-logo .logo-img {
  width: 36px;
  height: 36px;
}
.footer-logo-text { font-size: 1.125rem; font-weight: 700; color: #fff; }
.footer-about { font-size: 0.875rem; line-height: 1.6; color: var(--neutral-400); margin: 0 0 1rem; }
.footer-contact { font-size: 0.875rem; margin: 0; }
.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: #fff;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-links-spaced { margin-top: 1.5rem; }
.payment-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.payment-tag {
  display: inline-block;
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--neutral-700);
  border-radius: 6px;
  background: var(--neutral-800);
  color: inherit;
  font-size: 0.75rem;
  text-decoration: none;
}
a.payment-tag:hover {
  border-color: var(--brand-cyan, #00aeef);
  color: #fff;
}
.footer-bottom { border-top: 1px solid var(--neutral-800); }
.footer-bottom-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.5rem 0;
  font-size: 0.75rem; color: var(--neutral-500);
}
@media (min-width: 640px) {
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; }
}

/* ===== Product detail page ===== */
.product-page {
  padding: 1.5rem 0 0;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--neutral-500);
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-current {
  color: var(--neutral-700);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 900px) {
  .product-detail {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.product-gallery-main {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--neutral-200);
  background: #fff;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.product-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
  background: #fff;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-thumb.is-active,
.product-thumb:hover {
  border-color: var(--brand);
}

.product-category-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.product-detail-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}
.product-detail-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.product-detail-price {
  font-size: 1.75rem;
  font-weight: 800;
}
.product-detail-price-old {
  font-size: 1rem;
  color: var(--neutral-400);
  text-decoration: line-through;
}
.product-detail-save {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #065f46;
  background: #d1fae5;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.product-stock {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.product-stock.is-in-stock { color: #047857; }
.product-stock.is-out-of-stock { color: var(--brand); }
.product-detail-short {
  margin: 0 0 1.5rem;
  color: var(--neutral-700);
  font-size: 0.975rem;
}

.product-buy-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.product-cart-note {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #047857;
}
.qty-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.qty-row {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--neutral-700);
}
.qty-btn:hover { background: var(--neutral-100); }
.qty-input {
  width: 3rem;
  height: 2.5rem;
  border: 0;
  border-left: 1px solid var(--neutral-300);
  border-right: 1px solid var(--neutral-300);
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .product-actions { flex-direction: row; }
}
.btn-buy {
  flex: 1;
  min-height: 2.75rem;
  font-size: 0.95rem;
}
.btn-buy:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--neutral-300);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-800);
  transition: 0.2s ease;
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

.product-highlights {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
}
.product-highlights li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--neutral-700);
}
.product-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #047857;
  font-weight: 700;
}

.product-description-block {
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--neutral-200);
}
.product-description-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}
.product-description-block p {
  margin: 0;
  color: var(--neutral-700);
  line-height: 1.7;
}

.product-not-found {
  padding: 4rem 1rem;
  text-align: center;
}
.product-not-found h1 {
  margin: 0 0 0.75rem;
}
.product-not-found p {
  margin: 0 0 1.5rem;
  color: var(--neutral-500);
}

/* ===== Category listing ===== */
.category-page {
  padding: 1.5rem 0 3rem;
}
.category-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.search-page-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: -0.5rem 0 1.75rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
}
.search-page-input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font: inherit;
  outline: none;
}
.search-page-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}
.search-page-form .btn {
  min-height: 44px;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) {
  .category-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.category-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
}
.category-desc {
  margin: 0.4rem 0 0;
  color: var(--neutral-500);
  max-width: 40rem;
}
.category-count {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-500);
}

.category-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .category-layout {
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.category-sidebar {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.filter-block + .filter-block,
.filter-form .filter-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--neutral-200);
}
.category-sidebar > .filter-block:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.filter-heading {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neutral-700);
}
.filter-list {
  display: grid;
  gap: 0.25rem;
}
.filter-link {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--neutral-700);
}
.filter-link:hover,
.filter-link.is-active {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
}
.filter-select,
.price-fields input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  background: #fff;
  font-size: 0.875rem;
  outline: none;
}
.filter-select:focus,
.price-fields input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}
.price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.price-fields label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--neutral-500);
}
.filter-submit {
  width: 100%;
  margin-top: 1.25rem;
}
.filter-reset {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-500);
}
.filter-reset:hover { color: var(--brand); }

.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.sort-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-700);
}
.sort-select {
  width: auto;
  min-width: 210px;
}
.category-empty {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--neutral-300);
  border-radius: var(--radius);
  background: #fff;
}
.category-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.category-empty p {
  margin: 0 0 1.25rem;
  color: var(--neutral-500);
}

/* ===== Cart ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.cart-page { padding: 1.5rem 0 3rem; }
.cart-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.cart-header h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.cart-header p { margin: 0; color: var(--neutral-500); font-weight: 600; }
.cart-flash {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.875rem;
  font-weight: 600;
}
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--neutral-300);
  border-radius: var(--radius);
  background: #fff;
}
.cart-empty h2 { margin: 0 0 0.5rem; }
.cart-empty p { margin: 0 0 1.25rem; color: var(--neutral-500); }
.cart-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}
.cart-list {
  display: grid;
  gap: 1rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
}
@media (min-width: 640px) {
  .cart-item {
    grid-template-columns: 110px 1fr auto;
    align-items: center;
  }
}
.cart-item-image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--neutral-100);
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-name {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.cart-item-name:hover { color: var(--brand); }
.cart-item-price {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--neutral-500);
}
.cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.cart-qty-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-qty-form input {
  width: 4rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
}
.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
}
.cart-remove {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
}
.cart-remove:hover { text-decoration: underline; }
.cart-item-total {
  font-size: 1.125rem;
  font-weight: 800;
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .cart-item-total {
    grid-column: auto;
    text-align: right;
  }
}
.cart-clear-form { margin-top: 0.25rem; }
.cart-summary {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 6rem;
}
.cart-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}
.cart-summary-note {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--neutral-500);
}
.cart-continue {
  display: flex;
  width: 100%;
  margin-top: 0.75rem;
}

/* ===== Checkout / Order ===== */
.checkout-page { padding: 1.5rem 0 3rem; }
.checkout-header { margin-bottom: 1.5rem; }
.checkout-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.checkout-header p {
  margin: 0.35rem 0 0;
  color: var(--neutral-500);
}
.checkout-errors {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: #e7f8ff;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.checkout-errors ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.checkout-layout,
.order-details-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .checkout-layout,
  .order-details-grid {
    grid-template-columns: 1.4fr 0.9fr;
    align-items: start;
  }
}
.checkout-form-card,
.checkout-summary {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.checkout-form-card h2,
.checkout-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}
.form-section-title {
  margin-top: 1.75rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--neutral-200);
}
.form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field-full { grid-column: 1 / -1; }
}
.form-field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-700);
}
.form-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font-weight: 400;
  outline: none;
}
.form-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}
.payment-options {
  display: grid;
  gap: 0.75rem;
}
.payment-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: 10px;
  cursor: pointer;
}
.payment-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-light);
}
.payment-option strong {
  display: block;
  font-size: 0.9rem;
}
.payment-option small {
  display: block;
  margin-top: 0.2rem;
  color: var(--neutral-500);
  font-weight: 400;
  line-height: 1.4;
}
.checkout-items {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--neutral-200);
}
.checkout-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
.checkout-items span {
  color: var(--neutral-700);
}
.cart-summary-total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--neutral-200);
  font-size: 1.05rem;
}
.order-success {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
}
.order-success-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #047857;
}
.order-success h1 {
  margin: 0 0 0.75rem;
}
.order-code {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: #1ebe57;
  color: #fff;
}
.order-wa-hint {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  color: var(--neutral-500);
}
.cart-discount-row strong {
  color: #047857;
}
.coupon-form {
  margin: 0.75rem 0;
}
.coupon-form-row {
  display: flex;
  gap: 0.5rem;
}
.coupon-form-row input {
  flex: 1;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font: inherit;
}
.coupon-remove-form {
  margin: 0 0 0.75rem;
}
.checkout-coupon-bar {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
}
.coupon-applied-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

/* ===== Admin panel ===== */
.admin-body { background: #f3f4f6; }
.admin-topbar {
  background: var(--neutral-900);
  color: #fff;
  border-bottom: 1px solid var(--neutral-800);
}
.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}
.admin-brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}
.admin-brand span { color: var(--accent-yellow); }
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.admin-nav a { color: #d4d4d4; }
.admin-nav a:hover { color: #fff; }
.admin-main { padding: 1.5rem 0 3rem; }
.admin-page-header {
  margin-bottom: 1.25rem;
}
.admin-page-header h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.admin-page-header p {
  margin: 0.4rem 0 0;
  color: var(--neutral-500);
}
.admin-back {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.admin-filter {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--neutral-300);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--neutral-700);
}
.admin-filter.is-active,
.admin-filter:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand-dark);
}
.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th,
.admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--neutral-200);
  vertical-align: top;
}
.admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--neutral-500);
  background: var(--neutral-50);
}
.admin-table td small {
  display: block;
  margin-top: 0.15rem;
  color: var(--neutral-500);
}
.admin-status {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.admin-status-pendiente { background: #fef3c7; color: #92400e; }
.admin-status-pagado { background: #d1fae5; color: #065f46; }
.admin-status-listo { background: #ede9fe; color: #5b21b6; }
.admin-status-enviado { background: #e0f2fe; color: #075985; }
.admin-status-cancelado { background: #fee2e2; color: #991b1b; }
.admin-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.admin-login-card {
  width: min(100%, 400px);
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.admin-login-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}
.admin-login-card > p {
  margin: 0 0 1.25rem;
  color: var(--neutral-500);
}
.admin-login-form {
  display: grid;
  gap: 1rem;
}
.admin-status-form .filter-select {
  margin-top: 0;
}

/* ===== Auth / Account ===== */
.auth-page {
  padding: 2.5rem 0 3.5rem;
}
.auth-card {
  width: min(100%, 440px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}
.auth-card > p {
  margin: 0 0 1.25rem;
  color: var(--neutral-500);
}
.auth-form {
  display: grid;
  gap: 1rem;
}
.auth-switch {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--neutral-500);
}
.auth-switch a {
  color: var(--brand);
  font-weight: 600;
}
.account-page {
  padding: 1.5rem 0 3rem;
}
.account-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.account-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.account-header p {
  margin: 0.35rem 0 0;
  color: var(--neutral-500);
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}
.account-empty {
  margin: 0;
  color: var(--neutral-500);
}
.account-empty a {
  color: var(--brand);
  font-weight: 600;
}

/* Admin products */
.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.admin-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 900px) {
  .admin-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.admin-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.admin-search input {
  min-width: 220px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  background: #fff;
}
.admin-product-cell {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.admin-product-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--neutral-100);
  flex-shrink: 0;
}
.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.admin-actions-cell form {
  display: inline;
  margin: 0;
}
.line-through {
  text-decoration: line-through;
}
.admin-product-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
  outline: none;
}
.admin-product-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.admin-image-box {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}
@media (min-width: 640px) {
  .admin-image-box {
    grid-template-columns: 160px 1fr;
    align-items: start;
  }
}
.admin-image-preview {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-100);
}
.admin-image-fields {
  display: grid;
  gap: 0.75rem;
}
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 0;
}
.admin-gallery-item {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-50, #f8fafc);
  cursor: pointer;
}
.admin-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--neutral-100);
}
.admin-gallery-check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--neutral-700);
}
.admin-help {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--neutral-500);
}
.admin-help code {
  background: var(--neutral-100);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* ===== Info / help / legal pages ===== */
.info-page {
  padding: 2rem 0 3.5rem;
  background: linear-gradient(180deg, #f4f7fb 0%, #fff 40%);
}
.info-page__inner {
  max-width: 44rem;
}
.info-page__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--neutral-900, #0f172a);
}
.info-page__body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--neutral-700, #334155);
}
.info-page__body h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--neutral-900, #0f172a);
}
.info-page__body p,
.info-page__body ul,
.info-page__body ol {
  margin: 0 0 0.85rem;
}
.info-page__body ul,
.info-page__body ol {
  padding-left: 1.25rem;
}
.info-page__body li {
  margin-bottom: 0.35rem;
}
.info-page__body a {
  color: var(--brand-blue, #1a3a6b);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.info-page__note {
  margin-top: 1.75rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--neutral-200, #e2e8f0);
  font-size: 0.9375rem;
  color: var(--neutral-600, #475569);
}
.info-page__callout {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--brand-cyan, #00aeef);
  background: #eef8fd;
  border-radius: 0 8px 8px 0;
  color: var(--neutral-800, #1e293b);
}
.info-page__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}
