:root {
  --wd-blue: #0A1F44;
  --wd-gray: #6B7280;
  --wd-white: #FFFFFF;
  --wd-green: #16A34A;
  --wd-border: #d7dbe2;
  --bg-soft: #f3f6fb;
  --shadow-md: 0 14px 40px rgba(10, 31, 68, 0.12);
  --shadow-sm: 0 8px 18px rgba(10, 31, 68, 0.08);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Open Sans", sans-serif;
  color: var(--wd-blue);
  background:
    radial-gradient(circle at 15% 0%, rgba(22, 163, 74, 0.1), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(10, 31, 68, 0.09), transparent 40%),
    linear-gradient(180deg, #edf2fb 0%, #f7f9fd 35%, #f3f6fb 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
}

.top-header,
.sub-header,
.hero,
.market-strip,
.section-shell,
.catalog-page,
.site-footer {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.top-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(10, 31, 68, 0.08);
}

.brand-copy { display: grid; gap: 0.15rem; }
.brand-copy strong {
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: 1.02rem;
  line-height: 1.05;
}
.brand-copy span { color: var(--wd-gray); font-size: 0.79rem; }

.header-search {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: var(--wd-white);
  border: 1px solid rgba(10, 31, 68, 0.15);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header-search input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  color: var(--wd-blue);
}

.header-search button {
  border: 0;
  background: linear-gradient(135deg, #13316b, var(--wd-blue));
  color: var(--wd-white);
  padding: 0.9rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.header-actions { display: flex; gap: 0.65rem; }

.action-card {
  display: grid;
  gap: 0.12rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  min-width: 138px;
}

.action-card.accent {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0.02));
  border-color: rgba(22, 163, 74, 0.28);
}

.action-label { color: var(--wd-gray); font-size: 0.72rem; }
.action-card strong { font-size: 0.88rem; }

.sub-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0 0 0.8rem;
}

.sub-header a {
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: #213457;
  font-weight: 600;
  font-size: 0.88rem;
}

.sub-header a:hover,
.sub-header a.active { background: rgba(10, 31, 68, 0.08); }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-content,
.hero-panel {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(10, 31, 68, 0.08);
  box-shadow: var(--shadow-md);
}

.hero-content {
  padding: 1.35rem 1.35rem 1.1rem;
  background:
    radial-gradient(circle at 80% 10%, rgba(22, 163, 74, 0.14), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(10, 31, 68, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.92);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--wd-green);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.hero-text {
  color: #304562;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0.75rem 0 0;
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 12px;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.92rem;
}

.btn-primary {
  color: var(--wd-white);
  background: linear-gradient(135deg, #163975 0%, var(--wd-blue) 75%);
  box-shadow: 0 8px 24px rgba(10, 31, 68, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--wd-blue);
  border-color: rgba(10, 31, 68, 0.12);
}

.btn.full-width { width: 100%; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.hero-metrics > div {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 12px;
  padding: 0.75rem;
}

.hero-metrics strong { display: block; font-family: "Poppins", sans-serif; font-size: 0.95rem; }
.hero-metrics span { color: var(--wd-gray); font-size: 0.78rem; }

.hero-panel { padding: 1rem; }

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.panel-header span { font-weight: 700; }
.panel-header a { color: var(--wd-green); font-weight: 700; font-size: 0.87rem; }

.hero-category-list { display: grid; gap: 0.7rem; }

.hero-category-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  border-radius: 14px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  background: #fff;
  padding: 0.65rem;
}

.hero-category-icon {
  aspect-ratio: 1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(10, 31, 68, 0.92), rgba(22, 163, 74, 0.8));
  color: var(--wd-white);
}

.hero-category-item h3 { margin: 0; font-size: 0.95rem; }
.hero-category-item p { margin: 0.15rem 0 0; color: var(--wd-gray); font-size: 0.78rem; }
.hero-category-item strong { font-size: 0.82rem; color: var(--wd-green); }

.market-strip {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.market-chip {
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(10, 31, 68, 0.1);
  padding: 0.7rem 0.95rem;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}

.section-shell {
  margin-top: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(10, 31, 68, 0.08);
  box-shadow: var(--shadow-md);
  padding: 1.15rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
}

.inline-link { font-weight: 700; color: var(--wd-green); white-space: nowrap; }
.section-text { margin: 0.45rem 0 0; color: var(--wd-gray); }

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

.category-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(10, 31, 68, 0.14);
}

.category-thumb {
  aspect-ratio: 16 / 10;
  padding: 0.8rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  font-size: 0.9rem;
}

.thumb-urnas { background: linear-gradient(135deg, #0a1f44, #334b79); }
.thumb-urnas-perro { background: linear-gradient(135deg, #1b305f, #16a34a); }
.thumb-barberia { background: linear-gradient(135deg, #0a1f44, #101827); }
.thumb-unas { background: linear-gradient(135deg, #123b6e, #4f46e5); }
.thumb-desechables { background: linear-gradient(135deg, #0a1f44, #0f766e); }

.category-body { padding: 0.8rem; }
.category-body h3 { margin: 0; font-size: 0.95rem; }
.category-body p { margin: 0.35rem 0 0; color: var(--wd-gray); font-size: 0.82rem; line-height: 1.35; }
.category-body span { display: inline-block; margin-top: 0.5rem; color: var(--wd-green); font-size: 0.82rem; font-weight: 700; }

.product-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(10, 31, 68, 0.08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.product-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  padding: 0.85rem;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(10, 31, 68, 0.07);
  background: linear-gradient(135deg, #eaf0fb, #ffffff);
}

.product-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(22, 163, 74, 0.18), transparent 40%),
    radial-gradient(circle at 82% 15%, rgba(10, 31, 68, 0.12), transparent 42%);
}

.thumb-label {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 31, 68, 0.1);
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--wd-blue);
}

.thumb-tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(10, 31, 68, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.product-body {
  padding: 0.85rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.product-title { font-weight: 700; line-height: 1.3; margin: 0; font-size: 0.95rem; }

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(10, 31, 68, 0.06);
  color: #27405f;
  border: 1px solid rgba(10, 31, 68, 0.08);
  font-size: 0.72rem;
  padding: 0.28rem 0.5rem;
  font-weight: 600;
}

.pill.stock {
  background: rgba(22, 163, 74, 0.1);
  color: #147a39;
  border-color: rgba(22, 163, 74, 0.2);
}

.pill.out {
  background: rgba(107, 114, 128, 0.08);
  color: #4b5563;
}

.product-desc { margin: 0; color: #4b607c; font-size: 0.82rem; line-height: 1.45; }

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.price-label { display: grid; gap: 0.15rem; }
.price-label small { color: var(--wd-gray); font-size: 0.72rem; }
.price-label strong { font-family: "Poppins", sans-serif; font-size: 1rem; }

.mini-btn {
  border: 1px solid rgba(10, 31, 68, 0.12);
  background: #fff;
  color: var(--wd-blue);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-weight: 700;
  font-size: 0.8rem;
}

.featured-shell .product-card { min-width: 0; }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.benefit-card {
  background: #fff;
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 16px;
  padding: 1rem;
}

.benefit-card h3 { margin: 0 0 0.45rem; font-size: 1rem; }
.benefit-card p { margin: 0; color: var(--wd-gray); line-height: 1.5; font-size: 0.9rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(10, 31, 68, 0.08);
  padding: 1rem;
}

.contact-card h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.contact-card p { margin: 0.25rem 0; color: #334960; font-size: 0.9rem; }
.contact-card a { color: var(--wd-green); font-weight: 700; }

.cta-card {
  background:
    radial-gradient(circle at 85% 10%, rgba(22, 163, 74, 0.15), transparent 45%),
    linear-gradient(180deg, #fff, #f3f8f5);
}

.cta-card .btn { margin-top: 0.6rem; width: fit-content; }

.catalog-page { margin-top: 1rem; }

.catalog-hero {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 31, 68, 0.08);
  background:
    radial-gradient(circle at 90% 20%, rgba(22, 163, 74, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
  padding: 1.05rem 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.catalog-hero h1 {
  margin: 0;
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.catalog-hero p:last-child { margin: 0.45rem 0 0; color: var(--wd-gray); }
.mobile-filter-toggle { display: none; }

.catalog-shell {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
}

.filters-panel {
  position: sticky;
  top: 122px;
  align-self: start;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 31, 68, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  padding: 0.95rem;
}

.filters-block + .filters-block {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(10, 31, 68, 0.08);
}

.filters-block h2, .filters-block h3 { margin: 0; }
.filters-block h2 { font-size: 1rem; }
.filters-block h3 { font-size: 0.95rem; }
.filters-help { margin: 0.35rem 0 0; color: var(--wd-gray); font-size: 0.82rem; line-height: 1.4; }

.filters-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.radio-item,
.check-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  cursor: pointer;
  color: #243b5d;
  font-size: 0.86rem;
}

.radio-item input,
.check-item input { margin-top: 0.12rem; }

.radio-item small {
  display: block;
  color: var(--wd-gray);
  margin-top: 0.05rem;
  font-size: 0.73rem;
}

.catalog-main {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 31, 68, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.catalog-toolbar h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
}

.toolbar-controls select {
  border-radius: 10px;
  border: 1px solid rgba(10, 31, 68, 0.14);
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--wd-blue);
  font-weight: 600;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(22, 163, 74, 0.1);
  color: #156d37;
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.products-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.catalog-main .product-card { min-height: 100%; }

.empty-state {
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(10, 31, 68, 0.2);
  background: #fff;
  padding: 1rem;
  text-align: center;
}

.empty-state h3 { margin: 0; }
.empty-state p { color: var(--wd-gray); margin: 0.45rem 0 0.8rem; }
.hidden { display: none !important; }

.site-footer {
  margin-top: 1.2rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 31, 68, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer.compact { margin-top: 1rem; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(10, 31, 68, 0.08);
}

.footer-brand strong { display: block; font-family: "Montserrat", "Poppins", sans-serif; }
.footer-brand p { margin: 0.15rem 0 0; color: var(--wd-gray); font-size: 0.85rem; }
.footer-copy { margin: 0; color: #3d516b; font-size: 0.85rem; }

@media (max-width: 1180px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-header { grid-template-columns: 1fr; }
  .header-actions { width: 100%; }
  .action-card { flex: 1; min-width: 0; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .benefits, .contact-grid { grid-template-columns: 1fr; }
  .catalog-shell { grid-template-columns: 1fr; }
  .filters-panel { position: static; display: none; }
  .filters-panel.open { display: block; }
  .mobile-filter-toggle { display: inline-flex; }
}

@media (max-width: 680px) {
  .top-header,
  .sub-header,
  .hero,
  .market-strip,
  .section-shell,
  .catalog-page,
  .site-footer {
    width: min(var(--container), calc(100% - 1rem));
  }

  .brand img { width: 56px; height: 56px; }
  .brand-copy strong { font-size: 0.95rem; }
  .header-search input { padding: 0.8rem 0.9rem; }
  .header-search button { padding: 0.8rem 0.95rem; }

  .hero-content,
  .hero-panel,
  .section-shell,
  .catalog-main,
  .filters-panel,
  .catalog-hero { padding: 0.9rem; }

  .hero-metrics { grid-template-columns: 1fr; }
  .category-grid, .product-rail, .products-grid { grid-template-columns: 1fr; }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-controls select { width: 100%; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
