:root {
  color-scheme: dark;
  --bg: #081a0e;
  --bg-2: #0d2014;
  --surface: #112918;
  --surface-2: #183520;
  --line: #1f4028;
  --line-soft: rgba(255, 255, 255, 0.1);
  --text: #f6f7f0;
  --muted: #8aab8f;
  --muted-2: #b8d4bc;
  --accent: #e63328;
  --accent-dark: #b82620;
  --gold: #f5a623;
  --green: #2a7a3b;
  --green-light: #3daa52;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(42, 122, 59, 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(230, 51, 40, 0.10), transparent 28rem),
    linear-gradient(180deg, #081a0e 0%, #0d2014 52%, #081a0e 100%);
  font-family: "DM Sans", system-ui, sans-serif;
}

body,
button,
input,
select,
textarea {
  font: 400 15px/1.5 "DM Sans", system-ui, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 26, 14, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1440px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font: 400 29px/0.92 "Bebas Neue", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 470px);
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-search span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.header-search input,
.admin-filters input,
.admin-filters select,
input,
select,
textarea {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
}

.header-search input {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(42, 122, 59, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Hamburger button ──────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 103;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
  transform-origin: center;
}

.hamburger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav overlay ────────────────────────────── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: block;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

/* ── Mobile nav drawer ─────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 102;
  display: flex;
  width: min(320px, 90vw);
  padding: 80px 20px 32px;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  flex-direction: column;
  gap: 6px;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.3s;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav .nav-link {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: var(--radius-sm);
  color: var(--muted-2);
  justify-content: flex-start;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.mobile-nav .cart-button {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

.nav-link,
.cart-button,
.btn-primary,
.btn-secondary,
.btn-muted,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-link {
  color: var(--muted-2);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.cart-button,
.btn-primary {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.cart-button:hover,
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.cart-button {
  gap: 9px;
  border-radius: 999px;
}
.cart-icon {
  width: 21px;
  height: 21px;
  display: block;
  flex: 0 0 auto;
}

.cart-button[aria-label="Abrir carrito"] {
  min-width: 70px;
}

.mobile-nav .cart-button[aria-label="Abrir carrito"] {
  min-width: 100%;
}

.cart-button span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: #09090b;
  background: #fff;
  border-radius: 999px;
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-muted {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.btn-muted:hover,
.btn-secondary:hover {
  border-color: var(--muted-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1440px, calc(100% - 40px));
  min-height: 640px;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 96px) 0 clamp(42px, 6vw, 76px);
}

.hero-copy {
  max-width: 770px;
}

.hero-tag,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-tag {
  min-height: 30px;
  margin-bottom: 18px;
  padding: 5px 12px;
  background: rgba(42, 122, 59, 0.18);
  border: 1px solid rgba(42, 122, 59, 0.42);
  border-radius: 999px;
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 8vw, 106px);
  line-height: 0.9;
  text-transform: uppercase;
}

.hero p,
.service-copy p,
.panel-note,
.site-footer p {
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-link-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 86px) 0;
}

.brand-partners-section {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 86px) 0 0;
}

.brand-partners-section .section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

/* ── Sabores grid ── */
.sabores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}

.sabor-card {
  display: grid;
  min-height: 100px;
  place-items: center;
  gap: 8px;
  padding: 16px 10px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sabor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 122, 59, 0.5);
}

.sabor-emoji {
  font-size: 2rem;
  line-height: 1;
}

.sabor-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
}

.feature-link-card,
.category-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(42, 122, 59, 0.14), transparent 42%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-link-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 122, 59, 0.55);
}

.feature-link-card strong,
.category-card strong {
  font-size: 24px;
  line-height: 1.08;
}

.feature-link-card p,
.category-card p {
  margin: 0;
  color: var(--muted);
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.logo-card,
.shop-photo-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.logo-card {
  display: grid;
  min-height: 340px;
  place-items: center;
  padding: 30px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(42, 122, 59, 0.22), transparent 52%),
    linear-gradient(145deg, #081a0e, #112918);
}

.shop-photo-card {
  display: grid;
  min-height: 170px;
  align-content: end;
  gap: 4px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(8, 26, 14, 0.1), rgba(8, 26, 14, 0.92)),
    linear-gradient(110deg, #2a7a3b 0 20%, #0d2014 20% 27%, #e63328 27% 34%, #112918 34% 64%, #081a0e 64% 100%);
}

.shop-photo-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-photo-card strong {
  max-width: 360px;
  font-size: 24px;
  line-height: 1.08;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust-strip div {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: var(--muted);
}

.catalog-section,
.service-section,
.workshop-section,
.appointment-section,
.site-footer {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 86px) 0;
}

.catalog-page {
  padding-top: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.catalog-heading-sticky h1,
.service-copy h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 0.94;
}

.catalog-heading-sticky {
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 26;
  padding: 18px 0 16px;
  margin-bottom: 0;
  background: var(--bg);
  isolation: isolate;
}

.result-count {
  color: var(--muted);
  font-weight: 800;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* ── Barra de filtros: desktop una fila, móvil dos filas ── */
.catalog-filter-bar {
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 29;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: end;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--bg);
}

/* Buscar: ocupa toda la primera columna */
.catalog-search-full {
  min-width: 0;
}
.catalog-search-full input {
  width: 100%;
  box-sizing: border-box;
}

/* Categoría y Ordenar: columnas automáticas, tamaño razonable */
.filters-row-secondary {
  display: contents;
}
.filters-row-secondary label {
  min-width: 0;
  width: 160px;
}
.filters-row-secondary .btn-muted {
  white-space: nowrap;
  align-self: flex-end;
  height: fit-content;
}

.catalog-filter-bar label {
  min-width: 0;
}
.catalog-filter-bar input,
.catalog-filter-bar select {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* ── Móvil: buscar arriba full-width, categ+ordenar abajo en 2 cols ── */
@media (max-width: 680px) {
  .catalog-filter-bar {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 10px 12px;
  }
  .catalog-search-full {
    grid-column: 1 / -1; /* fila 1: ancho completo */
  }
  /* Categoría: columna 1, fila 2 */
  .filters-row-secondary {
    display: contents;
  }
  .filters-row-secondary label {
    width: auto;
  }
  /* Botón limpiar: oculto en móvil o integrado */
  .filters-row-secondary .btn-muted {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }
}

.filters-panel,
.panel-card,
.dialog-card {
  background: rgba(17, 41, 24, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.filters-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.filters-panel.catalog-filter-bar {
  top: var(--header-h, 72px);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 14px;
}

.catalog-page .active-filters {
  margin-top: 2px;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
}

.tag {
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.status-pill.available {
  color: #d8ffe6;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.status-pill.unavailable {
  color: #ffe1cc;
  background: rgba(230, 51, 40, 0.16);
  border: 1px solid rgba(230, 51, 40, 0.34);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 122, 59, 0.52);
}

.product-image-wrap {
  position: relative;
  z-index: 0;
  aspect-ratio: 1;
  background: #f7f7f0;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.14));
}

.product-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--muted);
  background: linear-gradient(145deg, #112918, #0d2014);
}

.product-badges {
  position: absolute;
  inset: 10px 10px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Badge base — todos los badges de la tarjeta son píldoras */
.product-badges .status-pill,
.product-badges .featured-badge,
.product-badges .tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
}

/* Disponible — fondo sólido oscuro para contrastar sobre imagen clara */
.product-badges .status-pill.available {
  color: #fff;
  background: rgba(22, 120, 55, 0.88);
  border: none;
  backdrop-filter: blur(4px);
}

/* No disponible */
.product-badges .status-pill.unavailable {
  color: #fff;
  background: rgba(180, 30, 24, 0.82);
  border: none;
  backdrop-filter: blur(4px);
}

/* Destacado — píldora dorada */
.featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
  color: #1a0f00;
  background: var(--gold);
  border: none;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-category,
.product-brand {
  color: var(--green-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.product-description {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-meta {
  display: grid;
  gap: 6px;
  padding: 10px;
  color: var(--muted-2);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font: 700 18px/1 "Space Mono", monospace;
  color: var(--gold);
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.service-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.page-hero {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 92px) 0 clamp(28px, 5vw, 52px);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.9;
  text-transform: uppercase;
}

.page-hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.category-page-section {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(54px, 7vw, 86px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(54px, 7vw, 86px);
}

.about-copy {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-copy h2 {
  margin: 8px 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.95;
}

.about-copy p {
  color: var(--muted);
  font-size: 17px;
}

.about-grid {
  display: grid;
  gap: 14px;
}

.about-grid article {
  display: grid;
  gap: 8px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(42, 122, 59, 0.14), transparent 48%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-grid strong {
  font-size: 22px;
}

.about-grid span {
  color: var(--muted);
}

.contact-section {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(54px, 7vw, 86px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.contact-card,
.map-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.contact-card h2,
.map-card h2 {
  margin: 6px 0 18px;
  font-size: 42px;
  line-height: 0.95;
}

.contact-links,
.social-list,
.schedule-list {
  display: grid;
  gap: 10px;
}

.contact-links a,
.social-list a,
.schedule-list div {
  display: grid;
  gap: 2px;
  padding: 13px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.contact-links a:hover,
.social-list a:hover {
  border-color: rgba(42, 122, 59, 0.5);
}

.contact-links span,
.social-list span,
.schedule-list span {
  color: var(--muted);
}

.map-card-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.map-card iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-grid {
  display: grid;
  gap: 14px;
}

.service-grid article {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-grid strong,
.service-grid span {
  display: block;
}

.service-grid strong {
  margin-bottom: 6px;
}

.service-grid span {
  color: var(--muted);
}

/* Productos / Catálogo detalle */
.product-detail-view {
  display: grid;
  gap: 22px;
}

.detail-back-button {
  width: fit-content;
  padding: 10px 14px;
  color: var(--muted-2);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  cursor: pointer;
}

.detail-back-button:hover {
  color: var(--text);
  border-color: rgba(42, 122, 59, 0.5);
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 34px;
  align-items: center;
  padding: clamp(18px, 3vw, 34px);
  background: rgba(17, 41, 24, 0.72);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.product-detail-image-box {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.product-detail-image-button {
  display: grid;
  width: 100%;
  min-height: 430px;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  background: #f7f7f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 4px);
  cursor: zoom-in;
}

.product-detail-image-button img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.16));
}

.product-detail-placeholder {
  display: grid;
  width: 100%;
  min-height: 430px;
  place-items: center;
  color: var(--muted);
  background: linear-gradient(145deg, #112918, #0d2014);
  border-radius: calc(var(--radius) + 4px);
}

.image-help-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-detail-info {
  display: grid;
  gap: 16px;
}

.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-detail-info h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.94;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.product-detail-subtitle {
  margin: -6px 0 0;
  color: var(--green-light);
  font-weight: 800;
  letter-spacing: 0.4px;
}

.product-detail-description {
  max-width: 620px;
  margin: 0;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.7;
}

.product-detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-spec {
  display: grid;
  gap: 5px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.detail-spec span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.detail-spec strong {
  font-size: 14px;
  line-height: 1.35;
}

.product-detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1rem;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  background: #22c55e;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-whatsapp:hover {
  filter: brightness(1.06);
}

.similar-products-section {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.similar-products-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-card-compact .product-description {
  min-height: auto;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.image-viewer[hidden] { display: none; }

.image-viewer {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  border: 0;
  backdrop-filter: blur(10px);
}

.image-viewer-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(94vw, 980px);
  max-height: 92vh;
  margin: 0;
  padding: clamp(14px, 3vw, 30px);
  background: #f7f7f0;
  border-radius: calc(var(--radius) + 8px);
}

.image-viewer-panel img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.image-viewer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(8, 26, 14, 0.82);
  color: #fff;
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.index-footer {
  grid-template-columns: 1fr;
  gap: 18px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(150px, 0.8fr)) 1.4fr;
  gap: 22px;
  align-items: start;
}

.footer-brand-block,
.footer-column,
.footer-accepted {
  display: grid;
  gap: 8px;
}

.footer-brand-block > strong,
.footer-column > strong,
.footer-accepted > strong {
  color: var(--text);
  font-size: 14px;
}

.footer-brand-block > span,
.footer-column a,
.footer-accepted span,
.footer-legal a,
.footer-legal span {
  color: var(--muted-2);
  font-size: 13px;
  text-decoration: none;
}

.footer-column a:hover,
.footer-legal a:hover {
  color: var(--green-light);
}

.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.payment-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding: 10px 14px;
  background: #020e05;
  border-radius: var(--radius-sm);
}

.footer-bottom span,
.footer-bottom strong {
  color: var(--muted-2);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.footer-brand {
  margin-bottom: 12px;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
}

.cart-drawer.open {
  display: block;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  border: 0;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 470px);
  height: 100%;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
}

.drawer-header,
.drawer-footer {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.drawer-header h2 {
  margin: 4px 0 0;
  font-size: 42px;
}

.drawer-body {
  overflow: auto;
  padding: 10px 20px;
}

.drawer-footer {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img,
.cart-line-placeholder {
  width: 62px;
  height: 62px;
  object-fit: cover;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.cart-line h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.cart-line p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-row button,
.icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.total-row strong {
  color: var(--gold);
  font: 700 21px/1 "Space Mono", monospace;
}

.quote-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.toast-container {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

/* Admin */
.admin-body {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  background: #050f07;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  padding: 18px;
  background: #081208;
  border-right: 1px solid var(--line);
}

.admin-brand {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 0;
}

.nav-item {
  justify-content: flex-start;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--muted-2);
  font-weight: 800;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: rgba(42, 122, 59, 0.14);
  border-color: rgba(42, 122, 59, 0.32);
}

.admin-sidebar-footer {
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.admin-sidebar-footer span {
  color: var(--gold);
  font-weight: 800;
}

.admin-sidebar-footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 18px 28px;
  background: rgba(5, 15, 7, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.admin-topbar h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
}

.admin-page {
  display: none;
  padding: 28px;
}

.admin-page.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin: 7px 0 2px;
  font: 700 29px/1 "Space Mono", monospace;
}

.dashboard-grid,
.excel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.panel-card {
  padding: 18px;
}

.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-card-header h2 {
  margin: 0;
  font: 800 19px/1.2 "DM Sans", sans-serif;
  letter-spacing: 0;
}

.panel-card-header span {
  color: var(--muted);
  font-weight: 800;
}

.compact-list {
  display: grid;
  gap: 10px;
}

.compact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.compact-item strong,
.compact-item span {
  display: block;
}

.compact-item span {
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

td {
  color: var(--muted-2);
}

.td-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.td-product img,
.td-product-placeholder {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.td-product strong,
.td-product small {
  display: block;
}

.td-product small {
  color: var(--muted);
}

.table-actions {
  display: flex;
  gap: 7px;
}

.table-actions button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.table-actions button.danger {
  color: #ffd3d3;
  border-color: rgba(239, 68, 68, 0.35);
}

.products-header {
  align-items: start;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-filters input,
.admin-filters select {
  width: auto;
  min-width: 160px;
}

.app-dialog {
  width: min(720px, calc(100% - 28px));
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
}

.app-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.dialog-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.small-dialog {
  width: min(420px, 100%);
}

.dialog-card header,
.dialog-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dialog-card h2 {
  margin: 0;
  font-size: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.image-field {
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.image-field img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-top: 12px;
  background: #0b1a0e;
  border-radius: var(--radius-sm);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-brand .brand-logo-img {
  width: 48px;
  height: 48px;
}

.official-logo-card {
  min-height: 340px;
  padding: clamp(24px, 5vw, 54px);
  background:
    radial-gradient(circle at top, rgba(42, 122, 59, 0.22), transparent 50%),
    linear-gradient(145deg, #081a0e, #112918);
}

.official-logo-card img {
  width: min(100%, 320px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.42));
}

.login-logo-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.3));
}

/* Footer index layout */
.site-footer.index-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 72px auto 0;
  padding: 42px 0 24px;
  gap: 28px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.site-footer.index-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) repeat(3, minmax(130px, 0.7fr)) minmax(210px, 0.9fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
}

.footer-brand-block,
.footer-column,
.footer-accepted {
  gap: 10px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.footer-brand { margin-bottom: 4px; }

.footer-brand-block > strong,
.footer-column > strong,
.footer-accepted > strong {
  color: rgba(246, 247, 247, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand-block > strong {
  max-width: 230px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.footer-column a,
.footer-legal a,
.footer-legal span {
  width: fit-content;
  max-width: 100%;
  color: rgba(184, 212, 188, 0.76);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
  overflow-wrap: anywhere;
}

.footer-column a:hover,
.footer-legal a:hover {
  color: var(--text);
  transform: translateX(2px);
}

/* ── Footer accordion mobile ─── */
.footer-desktop-layout { display: grid !important; }
.footer-mobile-layout  { display: none  !important; }

@media (max-width: 720px) {
  .footer-desktop-layout { display: none  !important; }
  .footer-mobile-layout  { display: grid !important; }
}

.footer-group { min-width: 0; color: var(--text); }
.footer-group > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(246, 247, 247, 0.94);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: default;
}
.footer-group > summary::-webkit-details-marker { display: none; }
.footer-chevron { display: none; transition: transform 0.22s ease; }
.footer-group[open] .footer-chevron { transform: rotate(180deg); }
.footer-panel { display: flex !important; flex-direction: column; gap: 10px; margin-top: 14px; }
.footer-panel a { width: fit-content; max-width: 100%; margin: 0; color: rgba(184, 212, 188, 0.76); font-size: 13px; text-decoration: none; transition: color 0.18s ease, transform 0.18s ease; }
.footer-panel a:hover { color: var(--text); transform: translateX(2px); }
.footer-payment-panel { gap: 12px; }
.footer-payment-panel .payment-row { display: flex; flex-wrap: wrap; gap: 8px; }

.site-footer.index-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 0;
  margin-top: 28px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
}

.site-footer.index-footer .footer-bottom span,
.site-footer.index-footer .footer-bottom strong {
  color: rgba(184, 212, 188, 0.68);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 721px) {
  .footer-group:not([open]) > .footer-panel { display: flex !important; }
}

@media (max-width: 720px) {
  .site-footer.index-footer {
    width: min(100% - 28px, 520px);
    margin-top: 52px;
    padding: 28px 0 22px;
  }
  .site-footer.index-footer .footer-accordion-layout { display: grid; grid-template-columns: 1fr; gap: 0; }
  .footer-brand-block { align-items: center; justify-items: center; padding: 0 0 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-brand { justify-content: center; margin-bottom: 2px; }
  .footer-group { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-group > summary { min-height: 54px; padding: 0 2px; font-size: 14px; letter-spacing: 0.01em; text-transform: none; cursor: pointer; }
  .footer-chevron { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--gold); font-size: 21px; }
  .footer-panel { display: flex !important; max-height: 0; margin-top: 0; padding: 0 2px; opacity: 0; overflow: hidden; pointer-events: none; transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.22s ease; }
  .footer-group[open] > .footer-panel { max-height: 360px; padding: 2px 2px 16px; opacity: 1; pointer-events: auto; }
  .footer-panel a { display: flex; align-items: center; width: 100%; min-height: 34px; padding: 5px 0; }
  .site-footer.index-footer .footer-bottom { display: grid; justify-items: center; gap: 6px; padding-top: 18px; margin-top: 0; text-align: center; border-top: 0; }
}

/* Responsive general */
@media (max-width: 1060px) {
  .hero,
  .catalog-layout,
  .home-link-section,
  .brand-partners-section .section-heading,
  .footer-top,
  .about-section,
  .contact-grid,
  .service-section,
  .site-footer,
  .dashboard-grid,
  .excel-grid {
    grid-template-columns: 1fr;
  }
  .filters-panel { position: static; }
  .catalog-filter-bar,
  .filters-panel.catalog-filter-bar {
    position: sticky;
    top: 156px;
  }
  .filters-row-secondary label { min-width: 130px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

@media (max-width: 820px) {
  .header-inner { flex-wrap: nowrap; padding: 0; }
  .header-actions { display: none; }
  .hamburger-btn { display: flex; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: 0; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-nav { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .product-detail-shell { grid-template-columns: 1fr; }
  .product-detail-image-button, .product-detail-placeholder { min-height: 320px; }
}

@media (max-width: 620px) {
  .section-heading:not(.catalog-heading-sticky), .footer-bottom, .admin-topbar, .panel-card-header, .dialog-card header, .dialog-card footer { align-items: stretch; flex-direction: column; }
  .nav-link, .cart-button, .btn-primary, .btn-secondary, .btn-muted:not(.btn-clear-filters) { width: 100%; }
  .hero h1 { font-size: 52px; }
  .page-hero h1 { font-size: 48px; }
  .form-grid, .stats-grid, .admin-nav { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  /* position manejado por .catalog-sticky-wrap */
  .catalog-filter-bar { border-radius: var(--radius); }
  .product-detail-shell { gap: 20px; padding: 14px; border-radius: var(--radius); }
  .product-detail-info h1 { font-size: 34px; }
  .product-detail-specs, .product-detail-actions { grid-template-columns: 1fr; }
  .similar-products-grid { grid-template-columns: 1fr; }
  .sabores-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ══ Catalog sticky: wrapper unificado ═════════════════════════════════════ */
.catalog-page, .catalog-section { overflow: visible; }

/* Desktop: heading y filtro sticky apilados */
.catalog-sticky-wrap {
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 89;
}
.catalog-heading-sticky {
  position: static;
  background: var(--bg);
  padding: 18px 0 14px;
  margin-bottom: 0;
}
.catalog-filter-bar, .filters-panel.catalog-filter-bar {
  position: static;
  background: rgba(17, 41, 24, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  margin-bottom: 18px;
}

/* ── Móvil: heading compacto + filtro = bloque unificado sticky ── */
@media (max-width: 680px) {
  .catalog-sticky-wrap {
    top: var(--header-h, 72px);
    background: rgba(17, 41, 24, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0,0,0,0.28);
    margin-bottom: 12px;
    overflow: hidden;
  }
  /* Heading: fila compacta con kicker + result-count, h1 oculto */
  .catalog-heading-sticky {
    padding: 8px 14px 6px;
    margin-bottom: 0;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .catalog-heading-sticky h1 {
    display: none;
  }
  .catalog-heading-sticky.section-heading {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .catalog-heading-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .result-count {
    margin-left: auto;
    font-size: 12px;
    white-space: nowrap;
  }
  /* Filtro: sin bordes propios, integrado al wrap */
  .catalog-filter-bar,
  .filters-panel.catalog-filter-bar {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 10px 12px 12px;
    margin-bottom: 0;
    gap: 8px;
  }
  /* Búsqueda: input más compacto sin label */
  .catalog-search-full {
    font-size: 0; /* ocultar el label "Buscar" */
  }
  .catalog-search-full input {
    font-size: 14px;
  }
  /* btn limpiar: pequeño e inline */
  .btn-clear-filters {
    grid-column: auto !important;
    width: auto !important;
    padding: 6px 12px;
    font-size: 12px;
    align-self: end;
    white-space: nowrap;
    opacity: 0.7;
  }
  /* Hint: oculto en móvil — consume espacio sin aportar */
  .catalog-hint {
    display: none !important;
  }
  /* Ocultar todo el wrap al hacer scroll hacia abajo */
  .catalog-sticky-wrap {
    transition: transform 0.28s ease, opacity 0.22s ease;
  }
  .catalog-sticky-wrap.wrap-hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
  }
}



/* ══════════════════════════════════════════════════════
   HERO CAROUSEL
══════════════════════════════════════════════════════ */
.hero-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
}

.carousel-track {
  display: flex;
  height: 100%;
  min-height: 340px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.carousel-slide img {
  width: min(100%, 320px);
  height: 100%;
  max-height: 290px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 24px 38px rgba(0,0,0,0.42));
  border-radius: 8px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 41, 24, 0.7);
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
  padding: 0;
}
.carousel-btn:hover { background: rgba(17, 41, 24, 0.95); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--gold, #e8b84b);
  transform: scale(1.3);
}

/* ══════════════════════════════════════════════════════
   CÓDIGO DE CLIENTE — barra flotante en tienda
══════════════════════════════════════════════════════ */
.client-code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface, #112918);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 13px;
}
.client-code-bar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
}
.client-code-bar input::placeholder { color: var(--muted); }
.client-code-bar .btn-apply {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted-2);
  cursor: pointer;
  transition: border-color 0.2s;
}
.client-code-bar .btn-apply:hover { border-color: var(--muted-2); }
.client-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42,122,59,0.25);
  border: 1px solid rgba(42,122,59,0.5);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #7ed99a;
}
.client-code-badge button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
}
.client-code-badge button:hover { opacity: 1; }

/* Precio con descuento */
.price-original {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
  display: block;
}

/* ══════════════════════════════════════════════════════
   ADMIN — pestaña códigos de cliente
══════════════════════════════════════════════════════ */
.code-rules-grid {
  display: grid;
  gap: 8px;
}
.code-rule-row {
  display: grid;
  /* tipo | target | precio | descuento% | eliminar */
  grid-template-columns: 110px 1fr 130px 120px auto;
  gap: 6px;
  align-items: center;
}
.code-rule-row input, .code-rule-row select {
  padding: 6px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  min-width: 0;
}
.rule-type-select {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold) !important;
}
/* En móvil: apilar en 2 columnas */
@media (max-width: 820px) {
  .code-rule-row {
    grid-template-columns: 1fr 1fr auto;
    grid-template-rows: auto auto;
  }
  .rule-type-select  { grid-column: 1; }
  .rule-target-select { grid-column: 2; }
  .rule-price-input   { grid-column: 1; }
  .rule-discount-input { grid-column: 2; }
  .code-rule-row button { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}
