/* Home — paleta suave con acentos verdes */
.nx-topbar {
  background: var(--st-surface);
  border-bottom: 1px solid color-mix(in srgb, var(--st-outline) 55%, transparent);
  font-size: .75rem;
  color: var(--st-muted);
}
.nx-topbar-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: .4rem 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.nx-topbar a { color: var(--st-muted); }
.nx-topbar a:hover { color: var(--st-accent); }

.nx-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--st-surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--st-outline) 60%, transparent);
}
.nx-header-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: .75rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}
.nx-logo { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.nx-logo img { height: 40px; width: auto; }
.nx-logo strong {
  font-family: var(--st-font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 1rem;
  white-space: nowrap;
}
.nx-logo strong span { color: var(--st-accent); }
.nx-search {
  display: flex; align-items: stretch;
  background: var(--st-surface);
  border: 1px solid color-mix(in srgb, var(--st-outline) 40%, transparent);
  border-radius: .45rem;
  overflow: hidden;
  max-width: 720px;
  width: 100%;
}
.nx-search select {
  border: 0; background: var(--st-surface-low); color: var(--st-muted);
  padding: 0 .7rem; max-width: 140px; outline: none;
}
.nx-search input {
  flex: 1; border: 0; background: transparent; color: var(--st-on);
  padding: .75rem .85rem; outline: none; min-width: 0;
}
.nx-search button {
  border: 0; background: var(--st-accent); color: var(--st-on-accent);
  padding: 0 1rem; cursor: pointer; display: grid; place-items: center;
}
.nx-tools { display: flex; align-items: center; gap: .45rem; }
.nx-tool {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem; min-width: 64px; padding: .35rem .4rem; border-radius: .45rem;
  color: var(--st-muted); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase;
  position: relative;
}
.nx-tool:hover { color: var(--st-accent); background: var(--st-surface-low); }
.nx-tool .material-symbols-outlined { font-size: 22px; }
.nx-tool .st-badge { top: 0; right: 8px; }

.nx-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  align-items: start;
}
.nx-cats {
  background: var(--st-surface);
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: var(--st-shadow, 0 8px 24px rgba(31, 42, 36, 0.08));
  border: 1px solid color-mix(in srgb, var(--st-outline) 70%, transparent);
  position: sticky; top: 5.5rem;
}
.nx-cats-head {
  background: color-mix(in srgb, var(--st-accent) 10%, var(--st-surface-low));
  padding: .85rem 1rem;
  font-family: var(--st-font-display);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: .5rem;
  color: var(--st-on);
}
.nx-cats-list { list-style: none; margin: 0; padding: .35rem 0; max-height: min(70vh, 640px); overflow: auto; }
.nx-cats-list a {
  display: flex; align-items: center; gap: .65rem;
  padding: .7rem 1rem; color: var(--st-on); font-size: .9rem;
  border-left: 3px solid transparent;
}
.nx-cats-list a:hover {
  background: var(--st-surface-low);
  border-left-color: var(--st-accent);
  color: var(--st-accent);
}
.nx-cats-list .material-symbols-outlined { color: var(--st-accent); font-size: 20px; }
.nx-cats-list small { margin-left: auto; color: var(--st-muted); font-size: .72rem; }

.nx-main { display: grid; gap: 1rem; min-width: 0; }
.nx-hero-row {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 1rem;
  min-height: 320px;
}
.nx-banner {
  position: relative; overflow: hidden; border-radius: .5rem;
  background: var(--st-surface); min-height: 320px;
  box-shadow: var(--st-shadow, 0 8px 24px rgba(31, 42, 36, 0.08));
  border: 1px solid color-mix(in srgb, var(--st-outline) 65%, transparent);
}
.nx-banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.nx-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245, 247, 246, .94) 8%, rgba(245, 247, 246, .55) 48%, transparent 78%);
}
.nx-banner-body {
  position: relative; z-index: 1; padding: 1.5rem; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem;
  max-width: 34rem;
  color: var(--st-on);
}
.nx-side-deals { display: grid; gap: .7rem; }
.nx-deal {
  background: var(--st-surface); border-radius: .5rem; padding: .85rem;
  display: grid; grid-template-columns: 72px 1fr; gap: .7rem; align-items: center;
  box-shadow: var(--st-shadow, 0 8px 24px rgba(31, 42, 36, 0.08));
  border: 1px solid color-mix(in srgb, var(--st-outline) 65%, transparent);
}
.nx-deal img {
  width: 72px; height: 72px; object-fit: cover; border-radius: .35rem; background: var(--st-surface-lowest);
}
.nx-deal.placeholder img { object-fit: contain; padding: .5rem; opacity: .8; }

.nx-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem;
}
.nx-strip-item {
  background: var(--st-surface-low); border-radius: .5rem; padding: .85rem;
  display: flex; gap: .65rem; align-items: center;
}
.nx-strip-item .ico {
  width: 38px; height: 38px; border-radius: .4rem; background: var(--st-surface-lowest);
  color: var(--st-accent); display: grid; place-items: center; flex: 0 0 auto;
}

.nx-section {
  background: var(--st-surface);
  border-radius: .5rem;
  padding: 1rem;
  box-shadow: var(--st-shadow, 0 8px 24px rgba(31, 42, 36, 0.08));
  border: 1px solid color-mix(in srgb, var(--st-outline) 65%, transparent);
}
.nx-section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  margin-bottom: .9rem; padding-bottom: .7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--st-outline) 25%, transparent);
}
.nx-section-head h2 {
  margin: 0; font-family: var(--st-font-display); font-size: 1.05rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.nx-section-head p { margin: .2rem 0 0; color: var(--st-muted); font-size: .85rem; }
.nx-section-head a { color: var(--st-accent); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }

.nx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.nx-card {
  background: var(--st-surface-low);
  border-radius: .45rem;
  padding: .7rem;
  display: flex; flex-direction: column; gap: .45rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.nx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--st-accent) 35%, transparent),
              0 10px 22px rgba(31, 42, 36, 0.1);
}
.nx-card-media {
  aspect-ratio: 1.15; border-radius: .35rem; overflow: hidden;
  background: var(--st-surface-lowest); display: grid; place-items: center;
}
.nx-card-media img { width: 100%; height: 100%; object-fit: cover; }
.nx-card-media.placeholder img { width: 45%; height: auto; object-fit: contain; opacity: .75; }
.nx-card .tag {
  color: var(--st-accent); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.nx-card h3 {
  margin: 0; font-size: .92rem; line-height: 1.3; font-family: var(--st-font-display);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.4em;
}
.nx-card .price { color: var(--st-accent); font-family: var(--st-font-display); font-size: 1.15rem; font-weight: 700; }
.nx-card .meta { color: var(--st-muted); font-size: .75rem; }
.nx-card-actions { margin-top: auto; display: flex; gap: .4rem; }

.nx-cat-tiles {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem;
}
.nx-tile {
  background: var(--st-surface-low); border-radius: .45rem; padding: 1rem .8rem;
  text-align: center; display: grid; gap: .45rem; justify-items: center;
}
.nx-tile:hover { outline: 1px solid color-mix(in srgb, var(--st-accent) 45%, transparent); }
.nx-tile .ico {
  width: 48px; height: 48px; border-radius: 999px; background: var(--st-surface-lowest);
  color: var(--st-accent); display: grid; place-items: center;
}
.nx-tile strong { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.nx-tile span { color: var(--st-muted); font-size: .75rem; }

.nx-footer {
  width: min(1280px, 100%);
  margin: 1.5rem auto 0;
  padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--st-outline) 25%, transparent);
  color: var(--st-muted); font-size: .85rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem;
}
.nx-footer h4 {
  margin: 0 0 .6rem; color: var(--st-on); font-family: var(--st-font-display);
  letter-spacing: .06em; text-transform: uppercase; font-size: .8rem;
}
.nx-footer a { color: var(--st-muted); display: block; padding: .2rem 0; }
.nx-footer a:hover { color: var(--st-accent); }

.nx-mobile-cats { display: none; }

@media (max-width: 1100px) {
  .nx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nx-shell { grid-template-columns: 1fr; }
  .nx-cats { display: none; }
  .nx-mobile-cats { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: .5rem; overflow-x: auto; }
  .nx-hero-row { grid-template-columns: 1fr; }
  .nx-header-inner { grid-template-columns: 1fr; }
  .nx-tools { justify-content: flex-end; }
  .nx-footer { grid-template-columns: 1fr; }
  .nx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nx-cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-strip { grid-template-columns: 1fr; }
  .nx-tool span.label { display: none; }
}
