@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800;900&display=swap");

:root {
  --gold: #f4aa1f;
  --gold-dark: #d88900;
  --orange-soft: #fff4df;
  --ink: #23252b;
  --muted: #69707c;
  --line: #e8e9ed;
  --soft: #f7f8fa;
  --green: #28c66f;
  --panel: #ffffff;
  --shadow: 0 16px 35px rgba(24, 28, 35, .16);
  --radius: 8px;
  font-family: "Nunito", "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  padding-bottom: 64px;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
img { display: block; max-width: 100%; }

.top-promo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  min-height: 40px;
  background: #1a1d23;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.top-promo[hidden] { display: none; }
.top-promo a {
  padding: 4px 40px;
  text-align: center;
  color: #fff;
  text-decoration: none;
}

.top-promo a:hover {
  text-decoration: underline;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
}

.promo-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  max-width: 1320px;
  margin: 32px auto 0;
  padding: 16px 24px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
}

.brand img {
  width: min(230px, 52vw);
  max-height: 76px;
  object-fit: contain;
}

.search {
  display: grid;
  grid-template-columns: 1fr 48px;
  min-height: 48px;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 170, 31, 0.15), 0 4px 12px rgba(0,0,0,0.08);
}

.search input {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 20px;
  color: var(--ink);
  outline: none;
  font-size: 15px;
}

.search button {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  margin: 4px;
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.search button:hover {
  transform: scale(1.05);
}

.search button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ========== BARRA DE ACCIONES UNIFICADA ========== */
.action-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--muted);
  position: relative;
}

.action-btn:hover {
  background: var(--soft);
  color: var(--ink);
}

.action-btn svg {
  flex-shrink: 0;
  stroke-width: 2;
}

/* Badges de contador */
.action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--gold);
  color: #fff;
}

.action-badge[hidden] {
  display: none;
}

/* Estados activos de cada botón */
.cart-btn:hover {
  background: rgba(244, 170, 31, 0.1);
  color: var(--gold);
}

.favorites-btn:hover {
  background: rgba(229, 57, 53, 0.1);
  color: #e53935;
}

.favorites-btn.has-items {
  color: #e53935;
}

.compare-btn:hover {
  background: rgba(34, 139, 34, 0.1);
  color: #228b22;
}

.compare-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.compare-btn:disabled:hover {
  background: transparent;
}

.compare-btn.has-items {
  color: #228b22;
}

.favorite-toggle {
  position: absolute;
  top: 8px;
  right: 44px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.95);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--muted);
  z-index: 10;
}

.favorite-toggle:hover {
  border-color: #e53935;
  color: #e53935;
  transform: scale(1.1);
}

.favorite-toggle.active {
  background: #e53935;
  border-color: #e53935;
  color: #fff;
}

.compare-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.95);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--muted);
  z-index: 10;
}

.compare-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.1);
}

.compare-toggle.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.quick-view-toggle,
.share-toggle {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.95);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--muted);
  z-index: 10;
  opacity: 0;
}

.product-card:hover .quick-view-toggle,
.product-card:hover .share-toggle {
  opacity: 1;
}

.quick-view-toggle {
  top: 80px;
}

.share-toggle {
  top: 116px;
}

.quick-view-toggle:hover,
.share-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.1);
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
}

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 46px;
}

.hero {
  display: grid;
  gap: 22px;
}

.banner {
  position: relative;
  isolation: isolate;
  min-height: clamp(310px, 34vw, 520px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #eef0e7;
  box-shadow: 0 12px 26px rgba(24, 28, 35, .12);
  animation: liftIn .45s ease both;
}

.banner img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 5.2s ease;
}

.banner:hover img { transform: scale(1.07); }

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,.06) 58%, rgba(0,0,0,.18));
}

.banner-copy {
  display: grid;
  align-content: end;
  max-width: 560px;
  height: 100%;
  padding: clamp(28px, 5vw, 54px);
  color: #fff;
}

.banner-copy p,
.banner-copy h1,
.banner-copy span { margin: 0; }

.banner-copy p {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.banner-copy h1 {
  margin-top: 10px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: .95;
  font-weight: 950;
}

.banner-copy span {
  margin-top: 16px;
  max-width: 440px;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 650;
}

.banner-cta {
  width: fit-content;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  padding: 12px 18px;
  font-size: 15px;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.banner-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.banner-dot.active {
  width: 28px;
  background: var(--gold);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(24, 28, 35, .18);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
}

.category-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  font-size: 19px;
  line-height: 1.05;
  font-weight: 900;
}

.shop-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

.category-panel,
.offers {
  background: var(--gold);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-panel {
  position: sticky;
  top: 98px;
  padding: 20px 18px;
}

.category-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

#categoryList {
  display: grid;
}

.category-link {
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: transparent;
  padding: 13px 0;
  color: #fff;
  text-align: left;
  font-weight: 820;
}

.category-link.active { color: #1f2229; }

.catalog {
  min-width: 0;
  display: grid;
  gap: 28px;
}

.section-block { min-width: 0; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

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

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: -4px 0 16px;
}

.filter-chip,
.catalog-tools select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 850;
}

.filter-chip.active {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}

.catalog-tools select {
  border-radius: var(--radius);
  margin-left: auto;
}

.section-heading span { color: var(--gold-dark); }

.link-button {
  border: 0;
  background: transparent;
  color: var(--gold-dark);
  font-weight: 850;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  border: 1px solid rgba(35,37,43,.06);
  box-shadow: 0 14px 30px rgba(24, 28, 35, .12);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: productIn .34s ease both;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(24, 28, 35, .16);
}

.product-card.is-out {
  opacity: .58;
}

.product-card.is-out img {
  filter: grayscale(.8);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f1f2f4;
}

.product-card .product-info {
  display: grid;
  gap: 5px;
  min-height: 106px;
  padding: 12px 44px 16px 14px;
}

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

.product-card small {
  color: var(--muted);
  font-weight: 850;
}

.price {
  color: #0f1116;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.quick-hint {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 900;
}

.add-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px 0 0;
  background: var(--gold);
  color: #fff;
  font-weight: 950;
}

.badge-stack {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.badge {
  border-radius: 7px;
  background: var(--gold);
  color: #fff;
  padding: 5px 9px;
  font-weight: 950;
  font-size: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
}

.badge-stack .badge:last-child {
  background: #e53935;
}

.offers {
  padding: 24px;
}

.offers .section-heading {
  margin-bottom: 20px;
  text-align: center;
}

.offers .section-heading p {
  margin: 8px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Carousel de Ofertas */
.offers-carousel-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.offers-carousel {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.offers-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s ease;
}

.offers-track .product-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: rgba(255,255,255,0.7);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 52px 0 36px;
  padding: 34px 0;
  border: 1px solid rgba(244, 170, 31, .22);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, var(--orange-soft));
  text-align: center;
}

.trust-band article {
  display: grid;
  justify-items: center;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-dark);
  font-size: 18px;
  font-weight: 950;
}

.why-band {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: 28px;
  margin: 0 0 42px;
  padding: 34px;
  border-radius: 16px;
  background: #17191f;
  color: #fff;
  overflow: hidden;
}

.why-copy p {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.why-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.why-grid article {
  display: grid;
  gap: 12px;
  min-height: 130px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  padding: 18px;
}

.why-grid strong {
  color: var(--gold);
  font-size: 24px;
}

.why-grid span {
  color: rgba(255,255,255,.82);
  font-weight: 800;
}

.trust-band h2 {
  margin: 12px 0 6px;
  font-size: 18px;
  text-transform: uppercase;
}

.trust-band p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.faq {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.faq .section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.faq-search-container {
  max-width: 800px;
  margin: 0 auto 40px;
}

.faq-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 170, 31, 0.15), 0 4px 12px rgba(0,0,0,0.08);
}

.faq-search-box svg {
  flex-shrink: 0;
  color: var(--muted);
}

.faq-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
  padding: 6px 0;
}

.faq-search-btn {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.faq-search-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.faq-search-results {
  margin-top: 16px;
  padding: 16px;
  background: var(--soft);
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  display: none;
}

.faq-search-results.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.faq-search-results .result-title {
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 16px;
}

.faq-search-results .result-answer {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.faq-search-results .result-similarity {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
}

.faq-search-results .no-results {
  text-align: center;
  color: var(--muted);
  padding: 20px;
}

.faq-search-results .no-results strong {
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}

.faq-search-results .whatsapp-suggestion {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.faq-search-results .whatsapp-suggestion a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.2s ease;
}

.faq-search-results .whatsapp-suggestion a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faq-item summary {
  padding: 16px 18px;
  font-weight: 850;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.footer {
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
  border-top: 1px solid var(--line);
  padding: 48px 24px 100px;
}

main {
  padding-top: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 8px 0;
}

/* Columna 1: Brand */
.footer-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

/* Columna 2: Mapa */
.footer-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 280px;
}

/* Columna 3: Formulario */
.footer-contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-form input,
.footer-contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 170, 31, 0.1);
}

.footer-contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.whatsapp-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-submit-btn svg {
  flex-shrink: 0;
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.admin-access {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-access:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Responsive footer */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .footer-form-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-form-col {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: 44px;
  background: #1a1d23;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  font-weight: 850;
  transition: color 0.2s ease;
}

.bottom-nav a:first-child { color: var(--gold); }

.bottom-nav a:hover {
  color: #fff;
}

.bottom-nav img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(1.2);
  transition: transform 0.2s ease;
}

.bottom-nav a:hover img {
  transform: scale(1.1);
}

.bottom-nav .nav-icon {
  transition: transform 0.2s ease;
  padding: 6px;
}

.bottom-nav .nav-icon:hover {
  transform: translateY(-3px);
}

.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 60px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px 0 20px;
  border-radius: 999px;
  background: #1a1d23;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

.whatsapp-float strong img {
  filter: brightness(0) invert(1);
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.whatsapp-bubble {
  position: absolute;
  left: 6px;
  bottom: calc(100% + 12px);
  min-width: 172px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  color: var(--ink);
  padding: 11px 14px;
  box-shadow: 0 14px 34px rgba(24, 28, 35, .2);
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  animation: helperBubble 12s ease infinite 2s;
}

.whatsapp-bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -7px;
  border: 8px solid transparent;
  border-top-color: #fff;
  border-left-color: #fff;
}

.whatsapp-float strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

dialog {
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

dialog:not([open]) {
  display: none !important;
}

dialog::backdrop { background: rgba(15, 17, 22, .48); }

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  color: var(--ink);
}

.product-modal {
  width: min(1040px, calc(100vw - 28px));
  padding: 22px;
  background: #fff;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 28px;
}

.modal-main-image {
  width: 100%;
  aspect-ratio: 1.1 / .82;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--soft);
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.thumbs button {
  flex: 0 0 80px;
  border: 2px solid transparent;
  border-radius: 7px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.thumbs button.active { border-color: var(--gold); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.detail-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.pill {
  width: fit-content;
  border-radius: 999px;
  background: rgba(246,184,0,.14);
  color: var(--gold-dark);
  padding: 6px 12px;
  font-weight: 850;
}

.detail-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
}

.modal-price {
  font-size: 38px;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-colors {
  margin: 12px 0;
}

.product-colors label {
  display: block;
  margin: 12px 0 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.product-colors select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.product-colors select:focus {
  outline: none;
  border-color: var(--gold);
}

.mini-badge {
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--gold-dark);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  align-items: stretch;
}

.detail-actions .secondary-button {
  min-height: 38px;
  font-size: 13px;
  padding: 0 12px;
}

.detail-actions .whatsapp-button {
  min-height: 48px;
  font-size: 15px;
  padding: 0 20px;
}

.detail-actions > *,
.detail-copy > .mercado-button {
  width: 100%;
}

.mercado-button.is-disabled,
.whatsapp-button.is-disabled {
  pointer-events: none;
  opacity: .45;
  filter: grayscale(.35);
}

.mini-badge:last-child {
  background: rgba(229, 57, 53, .12);
  color: #c62828;
}

.related-products {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.related-products h3 {
  margin: 0;
  font-size: 16px;
}

#relatedProducts {
  display: grid;
  gap: 8px;
}

#relatedProducts button {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
  text-align: left;
}

#relatedProducts img {
  width: 58px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

#relatedProducts span,
#relatedProducts strong {
  font-size: 13px;
  font-weight: 900;
}

.detail-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pay-button,
.mercado-button,
.whatsapp-button,
.primary-button,
.secondary-button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 900;
}

.pay-button,
.primary-button {
  background: var(--gold);
  color: #fff;
}

.mercado-button {
  background: #009ee3;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 158, 227, .24);
}

.whatsapp-button {
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 211, 102, .22);
}

.payment-embed {
  display: grid;
  gap: 10px;
}

.payment-embed:empty { display: none; }

.payment-embed iframe,
.payment-embed script,
.payment-embed form {
  max-width: 100%;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.admin-modal {
  width: auto;
  min-width: 400px;
  max-width: min(1100px, calc(100vw - 40px));
  max-height: calc(100vh - 80px);
  padding: 0;
  margin: auto;
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.admin-modal.login-mode {
  max-width: 400px;
  justify-content: center;
  align-items: center;
}

.cart-modal {
  width: min(560px, calc(100vw - 24px));
  padding: 24px;
  background: #fff;
}

.customer-name-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--soft);
  border-radius: var(--radius);
}

.customer-name-field label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.customer-name-field input {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.customer-name-field input:focus {
  border-color: var(--gold);
}

.customer-name-field small {
  color: var(--muted);
  font-size: 12px;
}

.favorites-modal {
  width: min(900px, calc(100vw - 24px));
  padding: 24px;
  background: #fff;
}

.favorites-shell {
  display: grid;
  gap: 20px;
}

.favorites-shell h2 {
  margin: 0;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.favorites-shell h2::before {
  content: "❤️";
  font-size: 28px;
}

.favorites-shell > p {
  margin: 0;
  color: var(--muted);
}

.favorites-container {
  min-height: 150px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.favorite-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.favorite-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.favorite-item .remove-favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  opacity: 0;
}

.favorite-item:hover .remove-favorite {
  opacity: 1;
}

.favorite-item .remove-favorite:hover {
  background: #e53935;
  transform: scale(1.1);
}

.favorite-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.favorite-item h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
}

.favorite-item h4:hover {
  color: var(--gold);
}

.favorite-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--gold);
}

.add-to-cart-btn {
  padding: 10px 16px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

.add-to-cart-btn:hover {
  background: var(--gold-dark);
}

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

.empty-favorites svg {
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-favorites p {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.empty-favorites small {
  font-size: 14px;
}

.favorites-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.compare-modal {
  width: min(1000px, calc(100vw - 24px));
  padding: 24px;
  background: #fff;
}

.compare-shell {
  display: grid;
  gap: 20px;
}

.compare-shell h2 {
  margin: 0;
  font-size: 24px;
}

.compare-shell > p {
  margin: 0;
  color: var(--muted);
}

.compare-container {
  min-height: 200px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.compare-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-item .remove-compare {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #e53935;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.compare-item .remove-compare:hover {
  transform: scale(1.1);
}

.compare-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}

.compare-item h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.compare-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
}

.compare-category {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compare-stock {
  font-size: 13px;
  padding: 4px 10px;
  background: var(--soft);
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.compare-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.compare-consult-btn {
  padding: 12px 20px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compare-consult-btn:hover {
  background: var(--gold-dark);
}

.compare-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.empty-compare {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

.cart-shell {
  display: grid;
  gap: 18px;
}

.cart-shell h2,
.cart-shell p {
  margin: 0;
}

.cart-shell p {
  color: var(--muted);
}

.cart-items {
  display: grid;
  gap: 10px;
  max-height: 48vh;
  overflow: auto;
}

.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.cart-row img {
  width: 72px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-row div {
  display: grid;
  gap: 3px;
}

.cart-row span,
.cart-empty {
  color: var(--muted);
  font-weight: 750;
}

.cart-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
}

.login-card {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  padding: 40px 32px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
}

.login-card[hidden] {
  display: none !important;
}

.login-card,
.admin-shell,
.admin-panel,
.product-form {
  background: #fff;
}

.admin-shell {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
}

.login-card h2,
.login-card p { margin: 0; }

.login-card input,
.admin-shell input,
.admin-shell textarea,
.admin-shell select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  outline: none;
  background: #fff;
}

.admin-shell textarea {
  min-height: 86px;
  resize: vertical;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.admin-head h2,
.admin-head p { margin: 0; }
.admin-head p { color: var(--muted); }

.admin-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-title svg {
  flex-shrink: 0;
  color: var(--gold);
}

.admin-title h2 {
  margin: 0;
  font-size: 22px;
}

.admin-title p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
}

.admin-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 14px;
  font-weight: 850;
}

.admin-tabs button.active {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}

.admin-note {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.admin-panel {
  display: none;
  gap: 14px;
}

.admin-panel.active { display: grid; }

.admin-panel label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

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

@media (min-width: 640px) {
  .inline-form {
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.5fr) auto;
  }
}

.banner-form {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .banner-form {
    grid-template-columns: minmax(130px, 1fr) minmax(180px, 1.4fr) minmax(160px, 1fr) auto;
  }
}

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

.editor-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .editor-row {
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.4fr) auto auto;
  }
}

.banner-editor-row,
.home-card-row {
  grid-template-columns: 1fr auto auto;
}

@media (min-width: 768px) {
  .banner-editor-row,
  .home-card-row {
    grid-template-columns: 86px minmax(140px, 1fr) minmax(180px, 1.4fr) minmax(130px, .9fr) auto auto;
  }
}

.banner-editor-row img,
.home-card-row img {
  width: 86px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--soft);
}

.product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-form label:nth-child(5),
.product-form label:nth-child(7),
.product-form label:nth-child(8),
.product-form label:nth-child(9) {
  grid-column: 1 / -1;
}

/* Alinear checkboxes horizontalmente */
.product-form .checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.product-form .checkbox input {
  margin: 0;
  width: auto;
}

/* Agrupar checkboxes en 2x2 */
.product-form .checkbox:nth-child(10),
.product-form .checkbox:nth-child(11),
.product-form .checkbox:nth-child(12),
.product-form .checkbox:nth-child(13) {
  grid-column: span 1;
}

/* Grid para checkboxes 2x2 */
.checkboxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0;
}

.checkboxes-grid .checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin: 0;
}

/* Selector de colores con bolitas */
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  padding: 12px;
  background: var(--soft);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  position: relative;
}

.color-option:hover {
  transform: scale(1.1);
  border-color: var(--gold);
}

/* Colores en tarjetas de producto */
.product-card-colors {
  display: flex;
  gap: 4px;
  margin: 4px 0;
  flex-wrap: wrap;
}

.color-dot-small {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}

.more-colors {
  font-size: 10px;
  color: var(--text-light);
  line-height: 12px;
}

/* Seccion de colores en admin */
.color-section {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.color-option.selected {
  border: 3px solid #FFD700 !important;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.4) !important;
  transform: scale(1.15) !important;
  z-index: 5;
}

.color-option.selected::after {
  content: "✓" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #000 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-shadow: 0 0 2px #fff !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 215, 0, 0.9) !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Corregir ancho del dropdown de stock */
.stock-select {
  width: 100%;
  max-width: 200px;
}

/* Fila para formularios lado a lado */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}

.form-row label {
  margin: 0;
}

/* Estilos para el dropdown de etiquetas */
.tags-select {
  width: 100%;
  max-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.tags-select:focus {
  outline: none;
  border-color: var(--gold);
}

.tags-select option {
  padding: 4px 8px;
}

.color-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.color-actions button {
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 12px;
}

.image-upload-label span {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.image-counter {
  background: var(--gold);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  transition: all 0.2s ease;
}

.image-counter.warning {
  background: #ff9800;
}

.image-counter.full {
  background: #4caf50;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: -8px 0 8px;
  padding: 12px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  min-height: 80px;
  grid-column: 1 / -1;
}

.image-preview-grid:empty {
  display: none;
}

.image-preview-grid .preview-item {
  position: relative;
  aspect-ratio: 1;
}

.image-preview-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-preview-grid .preview-slot {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 2px dashed var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.image-preview-grid .delete-image-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease, background-color 0.2s ease;
  line-height: 1;
}

.image-preview-grid .delete-image-btn:hover {
  transform: scale(1.1);
  background: #c62828;
}

.file-upload-label span {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upload-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.counter-badge {
  background: var(--gold);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin-left: 8px;
}

.save-confirmation {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4caf50;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(76, 175, 80, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  z-index: 100;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.save-confirmation.show {
  transform: translateX(0);
}

.save-confirmation svg {
  width: 24px;
  height: 24px;
}

.save-site-button {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
  font-size: 15px !important;
  padding: 0 24px !important;
  box-shadow: 0 4px 15px rgba(244, 170, 31, 0.4) !important;
  transition: all 0.2s ease !important;
}

.save-site-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 170, 31, 0.5) !important;
}

.file-upload-label input[type="file"] {
  padding: 10px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  cursor: pointer;
  width: 100%;
}

.file-upload-label input[type="file"]:hover {
  border-color: var(--gold);
  background: var(--orange-soft);
}

.checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.checkbox input {
  width: auto;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.product-editor-list .editor-row {
  grid-template-columns: 80px minmax(160px, 1fr) auto auto;
}

.product-editor-list img {
  width: 80px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
}

.toast {
  position: fixed;
  left: 50%;
  top: 80px;
  z-index: 80;
  transform: translateX(-50%) translateY(-20px);
  max-width: min(480px, calc(100vw - 24px));
  min-width: 280px;
  border-radius: 12px;
  background: #1f2229;
  color: #fff;
  padding: 14px 18px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.toast.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.toast.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: 0 0 0 12px;
  animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ========== QUICK VIEW MODAL ========== */

.quick-view-modal {
  width: min(800px, calc(100vw - 24px));
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.quick-view-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.quick-view-content > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.quick-view-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-view-info h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.quick-view-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
}

.quick-view-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-view-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.quick-view-actions {
  display: flex;
  gap: 12px;
}

.quick-view-actions button {
  flex: 1;
}

/* ========== HISTORIAL DE BÚSQUEDA ========== */

.search {
  position: relative;
}

.search-history {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 12px;
  display: none;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.search-history.show {
  display: block;
}

.search-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.search-history-header span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-history-header button {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.search-history-header button:hover {
  background: var(--soft);
}

.search-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  border-radius: 8px;
  text-align: left;
  transition: background 0.2s ease;
}

.search-history-item:hover {
  background: var(--soft);
}

/* ========== ESTRELLAS DE RATING ========== */

.star-rating {
  display: flex;
  gap: 2px;
}

.star {
  width: 16px;
  height: 16px;
  color: #ddd;
}

.star.filled {
  color: #ffc107;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ========== ETIQUETAS DE URGENCIA ========== */

.urgency-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.stock-urgency {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffebee;
  color: #c62828;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px;
  }

  .brand { justify-content: start; }
  .search { grid-column: 1 / -1; grid-row: 2; }

  .action-bar {
    gap: 4px;
    padding: 4px;
  }

  .action-btn {
    min-height: 38px;
    padding: 0 10px;
  }

  .action-btn span {
    display: none;
  }

  main { padding-inline: 14px; }
  .category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 1fr; }
  .category-panel { position: static; }
  .product-grid, .offers .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-band { grid-template-columns: 1fr; }
  .why-band { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .search { min-height: 48px; grid-template-columns: 1fr 50px; }
  .banner { min-height: 380px; }
  .category-strip { grid-template-columns: 1fr; }
  .product-grid, .offers .product-grid { grid-template-columns: 1fr; }
  .inline-form,
  .banner-form,
  .editor-row,
  .banner-editor-row,
  .home-card-row,
  .product-editor-list .editor-row,
  .product-form {
    grid-template-columns: 1fr;
  }
  .admin-head { align-items: start; flex-direction: column; }
  .whatsapp-float > span:not(.whatsapp-bubble) { display: none; }
  .whatsapp-float { width: 48px; height: 48px; justify-content: center; padding: 0; }
  .catalog-tools select { width: 100%; margin-left: 0; }
  .cart-button span { display: none; }
  .cart-button { padding: 0 10px; }
  .cart-row { grid-template-columns: 56px 1fr auto; }
  .cart-row img { width: 56px; height: 48px; }
  .detail-actions { grid-template-columns: 1fr; }
  .image-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .save-confirmation { right: 10px; left: 10px; max-width: none; }
}

@media (max-width: 480px) {
  .image-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@keyframes liftIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes productIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes helperBubble {
  0%, 18%, 100% { opacity: 0; transform: translateY(8px) scale(.96); }
  24%, 50% { opacity: 1; transform: translateY(0) scale(1); }
  56% { opacity: 0; transform: translateY(8px) scale(.96); }
}
