/* =========================================================================
   IGUALO · Home marketplace (v2)
   Todo va con prefijo .hx- para no chocar con el CSS global.
   Mobile-first · breakpoints: 640 / 900 / 1200
   ========================================================================= */

/* Variables en el body de la home y en cualquier contenedor .hx (p. ej. categorías) */
.page-home-v2, .hx {
  --hx-bg: #070b14;
  --hx-bg-2: #0b1120;
  --hx-surface: #0f172a;
  --hx-surface-2: #131d33;
  --hx-line: rgba(148, 163, 184, .14);
  --hx-line-2: rgba(148, 163, 184, .24);
  --hx-text: #f1f5f9;
  --hx-muted: #94a3b8;
  --hx-dim: #64748b;
  --hx-green: #22c55e;
  --hx-green-2: #4ade80;
  --hx-teal: #2dd4bf;
  --hx-amber: #fbbf24;
  --hx-coral: #fb7185;
  --hx-violet: #a78bfa;
  --hx-radius: 20px;
  --hx-radius-sm: 14px;
  --hx-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --hx-display: "Sora", "Inter", system-ui, sans-serif;
  background: var(--hx-bg);
  color: var(--hx-text);
}

.hx { font-family: "Inter", system-ui, sans-serif; overflow-x: clip; }
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx a { color: inherit; text-decoration: none; }
.hx img { display: block; max-width: 100%; }
.hx-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 640px) { .hx-wrap { padding: 0 28px; } }

.hx-section { padding: 56px 0; position: relative; }
@media (min-width: 900px) { .hx-section { padding: 88px 0; } }

.hx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 24px; }
.hx-head > div:first-child { min-width: 0; }
@media (max-width: 560px) { .hx-head .hx-link { padding: 8px 12px; font-size: .84rem; } .hx-head .hx-link-long { display: none; } }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-green-2); margin-bottom: 10px; }
.hx-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.hx-h2 { font-family: var(--hx-display); font-size: clamp(1.55rem, 1.1rem + 2vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 0; }
.hx-sub { color: var(--hx-muted); margin: 8px 0 0; font-size: .98rem; max-width: 52ch; }
.hx-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--hx-text); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--hx-line-2); transition: background .2s, border-color .2s; white-space: nowrap; }
.hx-link:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .35); }
.hx-link svg { width: 16px; height: 16px; transition: transform .2s; }
.hx-link:hover svg { transform: translateX(3px); }
.hx-grad { background: linear-gradient(100deg, var(--hx-green-2), var(--hx-teal) 55%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: .95rem; border-radius: 999px; padding: 14px 22px; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.hx-btn svg { width: 18px; height: 18px; }
.hx-btn-primary { background: var(--hx-green); color: #04130a !important; box-shadow: 0 10px 30px -10px rgba(34, 197, 94, .8); }
.hx-btn-primary:hover { transform: translateY(-2px); background: var(--hx-green-2); }
.hx-btn-ghost { background: rgba(255, 255, 255, .06); color: var(--hx-text); border: 1px solid var(--hx-line-2); }
.hx-btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* =========================================================================
   HERO
   ========================================================================= */
.hx-hero { position: relative; padding: 40px 0 92px; isolation: isolate; }
@media (min-width: 900px) { .hx-hero { padding: 72px 0 88px; } }

.hx-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hx-volcanoes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; opacity: .9; }
@media (min-width: 640px) { .hx-volcanoes { height: 130px; } }
@media (min-width: 1200px) { .hx-volcanoes { height: 160px; } }
.hx-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hx-blob-1 { width: 520px; height: 520px; background: #16a34a; top: -220px; left: -160px; opacity: .35; }
.hx-blob-2 { width: 460px; height: 460px; background: #0d9488; top: 0; right: -180px; opacity: .3; }
.hx-blob-3 { width: 420px; height: 420px; background: #0067c6; bottom: -200px; left: 30%; opacity: .22; }

.hx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hx-hero-grid > * { min-width: 0; }
@media (min-width: 1200px) { .hx-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; } }

.hx-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .25); font-size: .82rem; color: #bbf7d0; margin-bottom: 20px; }
.hx-pill b { background: var(--hx-green); color: #052e13; padding: 3px 9px; border-radius: 999px; font-size: .72rem; letter-spacing: .04em; }
.hx-live { width: 8px; height: 8px; border-radius: 50%; background: var(--hx-green-2); box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: hx-ping 2s infinite; }
@keyframes hx-ping { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.hx-h1 { font-family: var(--hx-display); font-weight: 700; color: var(--hx-text); text-transform: none; letter-spacing: -.045em; line-height: 1.02; font-size: clamp(2.3rem, 1.1rem + 4.6vw, 4.4rem); margin: 0 0 18px; }
.hx-h1 .hx-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hx-h1 .hx-line > span { display: inline-block; }
.hx-search, .hx-stats { max-width: 720px; }
.hx-lead { color: var(--hx-muted); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.6; max-width: 54ch; margin: 0 0 28px; }

/* Buscador */
.hx-search { width: 100%; grid-template-columns: minmax(0, 1fr); background: rgba(15, 23, 42, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--hx-line-2); border-radius: 22px; padding: 8px; display: grid; gap: 6px; box-shadow: var(--hx-shadow); }
.hx-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .03); position: relative; }
.hx-field svg { width: 18px; height: 18px; color: var(--hx-dim); flex: none; }
.hx-field input, .hx-field select { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--hx-text); font: inherit; font-size: 1rem; height: 52px; appearance: none; -webkit-appearance: none; }
.hx-field select { cursor: pointer; padding-right: 18px; }
.hx-field select option { background: #0f172a; color: #fff; }
.hx-field input::placeholder { color: var(--hx-dim); }
.hx-field:focus-within { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .45); }
.hx-field-sel::after { content: ""; position: absolute; right: 16px; width: 7px; height: 7px; border-right: 2px solid var(--hx-dim); border-bottom: 2px solid var(--hx-dim); transform: rotate(45deg) translateY(-3px); pointer-events: none; }
.hx-search .hx-btn { min-height: 52px; border-radius: 14px; }
.hx-search-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hx-field { min-width: 0; }
.hx-field select { width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
@media (min-width: 640px) {
  .hx-search { grid-template-columns: minmax(0, 1fr) auto; }
  .hx-search-row { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .hx-search { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) auto; border-radius: 999px; padding: 7px; }
  .hx-search-row { display: contents; }
  .hx-field { border-radius: 999px; background: transparent; }
  .hx-field + .hx-field, .hx-search-row .hx-field { border-left: 1px solid var(--hx-line); border-radius: 0; }
  .hx-field:focus-within { border-radius: 999px; }
  .hx-search .hx-btn { border-radius: 999px; padding: 0 24px; }
  .hx-field-sel > svg, .hx-field-sel > i { display: none; }
  .hx-field-sel { padding: 0 14px 0 18px; }
}

.hx-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: .85rem; color: var(--hx-dim); }
.hx-popular a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hx-line); color: var(--hx-muted); transition: .2s; }
.hx-popular a:hover { color: #fff; border-color: rgba(74, 222, 128, .5); background: rgba(34, 197, 94, .08); }

.hx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 32px; border-radius: 18px; overflow: hidden; border: 1px solid var(--hx-line); background: var(--hx-line); max-width: 560px; }
@media (min-width: 640px) { .hx-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hx-stat { background: rgba(11, 17, 32, .9); padding: 14px 16px; }
.hx-stat strong { display: block; font-family: var(--hx-display); font-size: 1.25rem; letter-spacing: -.02em; }
.hx-stat span { font-size: .78rem; color: var(--hx-dim); }

/* Collage de tarjetas del hero */
.hx-stage { position: relative; height: 380px; max-width: 520px; margin: 0 auto; width: 100%; }
@media (min-width: 640px) { .hx-stage { height: 460px; } }
@media (min-width: 1200px) { .hx-stage { height: 540px; max-width: none; } }
.hx-float { position: absolute; width: 58%; max-width: 280px; border-radius: 22px; overflow: hidden; background: var(--hx-surface); border: 1px solid var(--hx-line-2); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .9); transition: transform .35s; will-change: transform; }
.hx-float:hover { transform: translateY(-6px) rotate(0deg) !important; z-index: 5; }
.hx-float img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hx-float-body { padding: 12px 14px 14px; }
.hx-float-body p { margin: 0 0 4px; font-size: .86rem; color: var(--hx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-float-body strong { font-family: var(--hx-display); font-size: 1.05rem; }
.hx-float-1 { left: 0; top: 8%; transform: rotate(-6deg); z-index: 2; }
.hx-float-2 { right: 0; top: 0; transform: rotate(5deg); z-index: 1; }
.hx-float-3 { left: 24%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.hx-toast { position: absolute; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(15, 23, 42, .92); backdrop-filter: blur(10px); border: 1px solid var(--hx-line-2); font-size: .82rem; box-shadow: var(--hx-shadow); }
.hx-toast i, .hx-toast svg { width: 18px; height: 18px; }
.hx-toast small { display: block; color: var(--hx-dim); font-size: .74rem; }
.hx-toast-a { right: 2%; bottom: 22%; }
.hx-toast-b { left: -2%; bottom: 6%; }
.hx-toast .hx-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.hx-ic-green { background: rgba(34, 197, 94, .15); color: var(--hx-green-2); }
.hx-ic-amber { background: rgba(251, 191, 36, .15); color: var(--hx-amber); }
@media (max-width: 639px) {
  .hx-stage, .hx-stats { display: none; }
  .hx-section { padding: 44px 0; }
  .hx-hero { padding: 28px 0 96px; }
  .hx-lead { margin-bottom: 22px; }
}
@media (max-width: 480px) {
  .hx-toast-b { display: none; }
  .hx-float { width: 56%; }
  .hx-stage { height: 330px; }
  .hx-toast-a { right: 0; bottom: 30%; max-width: 78%; }
  .hx-toast small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
  .hx-field { padding: 0 12px; gap: 8px; }
  .hx-field input, .hx-field select { font-size: 16px; } /* 16px evita el zoom de iOS */
}

/* =========================================================================
   CATEGORÍAS
   ========================================================================= */
.hx-cats { display: grid; grid-auto-flow: column; grid-auto-columns: 140px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; padding: 4px 18px 12px; margin: 0 -18px; scrollbar-width: none; }
.hx-cats::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .hx-cats { margin: 0 -28px; padding: 4px 28px 12px; scroll-padding-inline: 28px; } }
@media (min-width: 1200px) { .hx-cats { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); overflow: visible; margin: 0; padding: 0; } }
.hx-cat { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--hx-radius-sm); background: var(--hx-surface); border: 1px solid var(--hx-line); transition: transform .25s, border-color .25s, background .25s; overflow: hidden; min-height: 132px; }
.hx-cat::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; border-radius: 50%; background: var(--c, #22c55e); opacity: .12; filter: blur(20px); transition: opacity .25s; }
.hx-cat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c, #22c55e) 55%, transparent); background: var(--hx-surface-2); }
.hx-cat:hover::before { opacity: .3; }
.hx-cat.has-photo { min-height: 150px; justify-content: flex-end; border-color: rgba(255, 255, 255, .1); }
.hx-cat.has-photo::before { display: none; }
.hx-cat-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hx-cat.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(2, 6, 23, .05) 20%, rgba(2, 6, 23, .55) 55%, rgba(2, 6, 23, .92)); }
.hx-cat.has-photo > :not(img) { position: relative; z-index: 2; }
.hx-cat.has-photo .hx-cat-ic { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; font-size: 1.15rem; background: rgba(2, 6, 23, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: rgba(255, 255, 255, .18); }
.hx-cat.has-photo b { font-size: 1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hx-cat.has-photo small { margin-top: 2px; color: #cbd5e1; }
.hx-cat.has-photo:hover .hx-cat-photo { transform: scale(1.08); }
@media (min-width: 1200px) { .hx-cat.has-photo, .hx-cat { min-height: 170px; } }
.hx-cat-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--c, #22c55e) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c, #22c55e) 30%, transparent); }
.hx-cat b { font-size: .95rem; font-weight: 600; line-height: 1.25; }
.hx-cat small { color: var(--hx-dim); font-size: .8rem; margin-top: auto; display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.hx-cat small svg { width: 13px; height: 13px; transition: transform .2s; }
.hx-cat:hover small { color: var(--hx-text); }
.hx-cat:hover small svg { transform: translateX(3px); }

/* =========================================================================
   TARJETA DE ANUNCIO
   ========================================================================= */
.hx-card { position: relative; display: flex; flex-direction: column; border-radius: var(--hx-radius-sm); background: var(--hx-surface); border: 1px solid var(--hx-line); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.hx-card:hover { transform: translateY(-4px); border-color: var(--hx-line-2); box-shadow: var(--hx-shadow); }
.hx-card-media { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%) 0 0 / 250% 100%, color-mix(in srgb, var(--c, #22c55e) 16%, #131d33); animation: hx-shimmer 1.6s linear infinite; overflow: hidden; }
@keyframes hx-shimmer { to { background-position: -250% 0, 0 0; } }
.hx-photos { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(2, 6, 23, .65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: .72rem; font-weight: 700; }
.hx-photos svg { width: 13px; height: 13px; }
.hx-share { position: absolute; top: 52px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(2, 6, 23, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .15); color: #fff; transition: transform .2s, background .2s, color .2s; }
.hx-share svg { width: 18px; height: 18px; }
.hx-share:hover { transform: scale(1.1); background: #25d366; color: #fff; border-color: #25d366; }
@media (hover: hover) and (min-width: 900px) {
  .hx-share { opacity: 0; transform: translateY(-4px); }
  .hx-card:hover .hx-share, .hx-share:focus-visible { opacity: 1; transform: none; }
}
.hx-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hx-card:hover .hx-card-media img { transform: scale(1.06); }
.hx-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; background: radial-gradient(circle at 30% 20%, rgba(34, 197, 94, .25), transparent 60%), var(--hx-surface-2); }
.hx-badges { position: absolute; top: 10px; left: 10px; right: 54px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.hx-badge { font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); letter-spacing: .02em; }
.hx-badge-feat { background: rgba(251, 191, 36, .92); color: #3b2800; }
.hx-badge-new { background: rgba(34, 197, 94, .92); color: #04130a; }
.hx-badge-cond { background: rgba(2, 6, 23, .65); color: #e2e8f0; }
.hx-fav { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(2, 6, 23, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .15); color: #fff; cursor: pointer; transition: transform .2s, background .2s; padding: 0; }
.hx-fav:hover { transform: scale(1.1); background: rgba(2, 6, 23, .8); }
.hx-fav svg { width: 17px; height: 17px; }
.hx-fav.is-on { color: var(--hx-coral); }
.hx-fav.is-on svg { fill: currentColor; }
.hx-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hx-price { font-family: var(--hx-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.hx-price.is-neg { color: var(--hx-amber); font-size: .98rem; }
.hx-title { font-family: "Inter", system-ui, sans-serif; font-weight: 500; letter-spacing: 0; font-size: .9rem; color: #cbd5e1; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; margin: 0; }
.hx-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; font-size: .76rem; color: var(--hx-dim); }
.hx-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hx-meta svg { width: 13px; height: 13px; flex: none; }
.hx-card-link { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 420px) {
  .hx-card-body { padding: 10px 11px 12px; }
  .hx-price { font-size: .98rem; }
  .hx-title { font-size: .84rem; }
  .hx-meta .hx-hide-xs { display: none; }
  .hx-badges .hx-badge-cond:not(:first-child) { display: none; }
}

/* Grid del feed */
.hx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .hx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .hx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1280px) { .hx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hx-grid .hx-card.is-hidden { display: none; }

.hx-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 22px; padding: 2px 18px; }
.hx-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .hx-tabs { margin: 0 0 26px; padding: 2px 0; flex-wrap: wrap; } }
.hx-tab { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--hx-line); background: transparent; color: var(--hx-muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: .2s; }
.hx-tab:hover { color: #fff; border-color: var(--hx-line-2); }
.hx-tab.is-active { background: #f1f5f9; color: #0b1120; border-color: #f1f5f9; }
.hx-more { display: flex; justify-content: center; margin-top: 32px; }

/* =========================================================================
   DESTACADOS (carrusel)
   ========================================================================= */
.hx-featured { background: linear-gradient(180deg, transparent, rgba(251, 191, 36, .04) 30%, transparent); }
.hx-rail-wrap { position: relative; }
.hx-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scroll-behavior: smooth; padding: 4px 18px 16px; margin: 0 -18px; scrollbar-width: none; }
.hx-rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .hx-rail { grid-auto-columns: 42%; margin: 0 -28px; padding: 4px 28px 16px; scroll-padding-inline: 28px; } }
@media (min-width: 1024px) { .hx-rail { grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; margin: 0; padding: 4px 0 16px; scroll-padding-inline: 0; } }
.hx-rail > * { scroll-snap-align: start; }
.hx-rail .hx-card-media { aspect-ratio: 4 / 3.4; }
.hx-arrows { display: none; gap: 8px; }
@media (min-width: 1024px) { .hx-arrows { display: flex; } }
.hx-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hx-line-2); background: rgba(255, 255, 255, .04); color: #fff; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.hx-arrow:hover { background: rgba(255, 255, 255, .1); }
.hx-arrow:disabled { opacity: .3; cursor: default; }
.hx-arrow svg { width: 18px; height: 18px; }
.hx-seller { display: flex; align-items: center; gap: 8px; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--hx-line); font-size: .78rem; color: var(--hx-muted); }
.hx-avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: linear-gradient(135deg, var(--hx-green), var(--hx-teal)); color: #04130a; flex: none; overflow: hidden; }
.hx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hx-verified { color: var(--hx-teal); width: 14px; height: 14px; }
.hx-rating { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--hx-amber); }
.hx-rating svg { width: 12px; height: 12px; fill: currentColor; }

/* =========================================================================
   VITRINA (bento por categoría)
   ========================================================================= */
.hx-spot { border-radius: 28px; padding: 22px; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 22%, #0b1120), #0b1120 60%); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); position: relative; overflow: hidden; }
.hx-spot + .hx-spot { margin-top: 20px; }
@media (min-width: 900px) { .hx-spot { padding: 32px; } }
.hx-spot::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -200px; border-radius: 50%; background: var(--c); opacity: .18; filter: blur(70px); }
.hx-spot-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hx-spot-title { display: flex; align-items: center; gap: 14px; }
.hx-spot-title .hx-cat-ic { width: 54px; height: 54px; font-size: 1.7rem; }
.hx-spot-title h3 { font-family: var(--hx-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); margin: 0; letter-spacing: -.02em; }
.hx-spot-title p { margin: 2px 0 0; color: var(--hx-muted); font-size: .88rem; }
.hx-bento { position: relative; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-bento .hx-card:first-child { grid-column: 1 / -1; }
.hx-bento .hx-card:first-child .hx-card-media { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .hx-bento { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
  .hx-bento .hx-card:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .hx-bento .hx-card:first-child .hx-card-media { aspect-ratio: auto; flex: 1; min-height: 300px; }
  .hx-bento .hx-card:first-child .hx-card-body { flex: none; }
  .hx-bento .hx-card:not(:first-child) .hx-card-media { aspect-ratio: 4 / 3; }
  .hx-bento .hx-card:first-child .hx-price { font-size: 1.5rem; }
  .hx-bento .hx-card:first-child .hx-title { font-size: 1rem; }
}

/* =========================================================================
   CÓMO FUNCIONA / VENDER
   ========================================================================= */
.hx-sell { position: relative; border-radius: 32px; overflow: hidden; padding: 32px 22px; background:
    radial-gradient(circle at 85% 15%, rgba(45, 212, 191, .35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(34, 197, 94, .35), transparent 50%),
    linear-gradient(135deg, #052e1a, #062a2a 55%, #0b1120);
  border: 1px solid rgba(74, 222, 128, .25); display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hx-sell { grid-template-columns: 1.1fr .9fr; padding: 56px; gap: 48px; } }
.hx-sell h2 { font-family: var(--hx-display); font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 14px; }
.hx-sell > div > p { color: #a7f3d0; opacity: .85; margin: 0 0 26px; font-size: 1.02rem; line-height: 1.6; max-width: 46ch; }
.hx-steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.hx-steps li { display: flex; gap: 14px; align-items: flex-start; }
.hx-steps .hx-num { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-family: var(--hx-display); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.hx-steps b { display: block; font-size: 1rem; }
.hx-steps span { color: #99f6e4; opacity: .75; font-size: .88rem; }
.hx-sell-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Mockup de teléfono */
.hx-phone { width: min(300px, 82%); margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 10px; background: #0b0f1a; border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), inset 0 0 0 2px #1e293b; position: relative; }
.hx-phone-screen { height: 100%; border-radius: 34px; background: #0f172a; overflow: hidden; padding: 38px 14px 14px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.hx-phone-screen::before { content: ""; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 80px; height: 22px; border-radius: 20px; background: #000; }
.hx-mock-photo { border-radius: 16px; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #22c55e, #0d9488); display: grid; place-items: center; color: #04130a; }
.hx-mock-photo svg { width: 38px; height: 38px; }
.hx-mock-line { height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--hx-line); display: flex; align-items: center; padding: 0 10px; font-size: .72rem; color: var(--hx-muted); }
.hx-mock-line b { color: #fff; margin-left: auto; }
.hx-mock-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.hx-mock-chips span { font-size: .66rem; padding: 4px 8px; border-radius: 999px; background: rgba(34, 197, 94, .14); color: #86efac; }
.hx-mock-btn { margin-top: auto; height: 42px; border-radius: 12px; background: var(--hx-green); color: #04130a; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.hx-sold { position: absolute; right: -8%; top: 18%; background: #fff; color: #0b1120; padding: 10px 14px; border-radius: 16px; font-size: .8rem; font-weight: 700; box-shadow: var(--hx-shadow); display: flex; align-items: center; gap: 8px; }
.hx-sold svg { width: 18px; height: 18px; color: #16a34a; }
@media (max-width: 480px) { .hx-sold { right: 0; } }

/* =========================================================================
   ZONAS
   ========================================================================= */
.hx-zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .hx-zones { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.hx-zone { position: relative; padding: 18px; border-radius: var(--hx-radius-sm); background: var(--hx-surface); border: 1px solid var(--hx-line); overflow: hidden; display: flex; flex-direction: column; gap: 22px; transition: .25s; min-height: 130px; }
.hx-zone::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(148, 163, 184, .18) 1px, transparent 1px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(135deg, transparent 40%, #000); mask-image: linear-gradient(135deg, transparent 40%, #000); pointer-events: none; }
.hx-zone:hover { border-color: rgba(74, 222, 128, .45); transform: translateY(-3px); }
.hx-zone svg { width: 22px; height: 22px; color: var(--hx-green-2); }
.hx-zone b { font-family: var(--hx-display); font-size: 1.15rem; letter-spacing: -.01em; }
.hx-zone small { display: block; color: var(--hx-dim); font-size: .82rem; margin-top: 2px; }
.hx-zone:first-child { grid-column: span 2; background: linear-gradient(135deg, rgba(34, 197, 94, .14), var(--hx-surface) 60%); }

/* =========================================================================
   CONFIANZA
   ========================================================================= */
.hx-trust { display: grid; gap: 14px; }
@media (min-width: 900px) { .hx-trust { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.hx-trust-item { padding: 24px; border-radius: var(--hx-radius); background: var(--hx-surface); border: 1px solid var(--hx-line); }
.hx-trust-item .hx-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.hx-trust-item .hx-ic svg { width: 22px; height: 22px; }
.hx-trust-item h3 { margin: 0 0 6px; font-size: 1.08rem; font-family: var(--hx-display); }
.hx-trust-item p { margin: 0; color: var(--hx-muted); font-size: .92rem; line-height: 1.55; }
.hx-ic-teal { background: rgba(45, 212, 191, .14); color: var(--hx-teal); }
.hx-ic-violet { background: rgba(167, 139, 250, .14); color: var(--hx-violet); }


/* =========================================================================
   CHAT DIRECTO
   ========================================================================= */
.hx-chat-sec { background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(45, 212, 191, .10), transparent 70%); margin-bottom: 56px; }
.hx-chat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) { .hx-chat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 64px; } }
.hx-chat-copy .hx-h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); }
.hx-chat-feats { list-style: none; margin: 28px 0 30px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .hx-chat-feats { grid-template-columns: 1fr 1fr; } }
.hx-chat-feats li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--hx-radius-sm); background: var(--hx-surface); border: 1px solid var(--hx-line); }
.hx-chat-feats .hx-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.hx-chat-feats .hx-ic svg { width: 19px; height: 19px; }
.hx-chat-feats b { display: block; font-size: .95rem; margin-bottom: 2px; }
.hx-chat-feats span { color: var(--hx-muted); font-size: .84rem; line-height: 1.4; }

.hx-chatbox { position: relative; width: 100%; max-width: 430px; margin: 0 auto; border-radius: 28px; background: #0b1324; border: 1px solid var(--hx-line-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 8px rgba(255, 255, 255, .02); overflow: hidden; display: flex; flex-direction: column; }
.hx-chatbox::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 300px; height: 300px; border-radius: 50%; background: var(--hx-teal); opacity: .12; filter: blur(60px); pointer-events: none; }
.hx-chat-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--hx-line); background: rgba(15, 23, 42, .9); position: relative; }
.hx-avatar-lg { width: 40px; height: 40px; font-size: .85rem; }
.hx-chat-who b { display: flex; align-items: center; gap: 5px; font-size: .98rem; }
.hx-chat-who small { display: flex; align-items: center; gap: 6px; color: var(--hx-green-2); font-size: .78rem; }
.hx-online { width: 7px; height: 7px; border-radius: 50%; background: var(--hx-green-2); box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
.hx-chat-top-ic { margin-left: auto; width: 18px; height: 18px; color: var(--hx-dim); }
.hx-chat-item { display: flex; align-items: center; gap: 12px; margin: 12px 14px 0; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--hx-line); position: relative; }
.hx-chat-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.hx-chat-item b { display: block; font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-chat-item small { color: var(--hx-green-2); font-weight: 700; font-size: .82rem; }
.hx-chat-item > div { min-width: 0; }
.hx-chat-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; min-height: 380px; position: relative; }
.hx-msg { max-width: 80%; padding: 9px 12px 7px; border-radius: 16px; font-size: .9rem; line-height: 1.4; position: relative; }
.hx-msg time { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: .66rem; opacity: .65; margin-top: 3px; }
.hx-msg time svg { width: 13px; height: 13px; color: #38bdf8; opacity: 1; }
.hx-msg-in { align-self: flex-start; background: #1e293b; border-bottom-left-radius: 5px; color: #e2e8f0; }
.hx-msg-out { align-self: flex-end; background: linear-gradient(135deg, #16a34a, #0d9488); border-bottom-right-radius: 5px; color: #f0fdf4; }
.hx-msg-out time svg { color: #a5f3fc; }
.hx-msg-photos { display: grid; grid-template-columns: repeat(3, 54px); gap: 4px; padding: 6px 6px 5px; }
.hx-msg-photos span { height: 54px; border-radius: 10px; background-size: 220%; background-position: center; background: linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .1)); }
.hx-msg-photos span:nth-child(2) { background: linear-gradient(135deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .05)); }
.hx-msg-photos time { grid-column: 1 / -1; padding-right: 4px; }
.hx-msg-offer { border: 1px solid rgba(251, 191, 36, .45); background: linear-gradient(135deg, rgba(251, 191, 36, .16), #1e293b 70%); }
.hx-msg-offer small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; color: var(--hx-amber); }
.hx-msg-offer b { display: block; font-family: var(--hx-display); font-size: 1.25rem; color: #fff; margin: 2px 0; }
.hx-msg-voice { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 210px; font-size: .78rem; }
.hx-msg-voice > svg { width: 16px; height: 16px; fill: currentColor; }
.hx-msg-voice time { flex-basis: 100%; }
.hx-wave { display: flex; align-items: center; gap: 2px; height: 22px; flex: 1; }
.hx-wave i { display: block; width: 3px; border-radius: 3px; background: rgba(255, 255, 255, .8); height: 40%; }
.hx-wave i:nth-child(3n) { height: 85%; } .hx-wave i:nth-child(4n) { height: 60%; } .hx-wave i:nth-child(5n) { height: 100%; } .hx-wave i:nth-child(7n) { height: 25%; }
.hx-typing { align-self: flex-start; display: none; gap: 4px; padding: 12px 14px; border-radius: 16px; border-bottom-left-radius: 5px; background: #1e293b; }
.hx-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: hx-dot 1.2s infinite; }
.hx-typing i:nth-child(2) { animation-delay: .15s; } .hx-typing i:nth-child(3) { animation-delay: .3s; }
.hx-typing.is-on { display: flex; }
@keyframes hx-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.hx-chat-input { display: flex; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 6px 6px 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--hx-line); color: var(--hx-dim); font-size: .88rem; }
.hx-chat-input span { flex: 1; }
.hx-chat-input > svg { width: 18px; height: 18px; }
.hx-chat-input b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--hx-green); color: #04130a; }
.hx-chat-input b svg { width: 17px; height: 17px; }
/* Animación de la conversación (la activa JS): los mensajes entran desde
   abajo y los viejos suben, como en un chat real. Sin JS se ven todos. */
.hx-chat-anim .hx-chat-body { height: 440px; min-height: 0; justify-content: flex-end; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); }
.hx-chat-anim [data-msg] { display: none; }
.hx-chat-anim [data-msg].is-in { display: block; animation: hx-msg-in .38s cubic-bezier(.2, .8, .2, 1); }
.hx-chat-anim .hx-msg-photos.is-in { display: grid; }
.hx-chat-anim .hx-msg-voice.is-in { display: flex; }
@keyframes hx-msg-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.hx-msg-in { transform-origin: bottom left; } .hx-msg-out { transform-origin: bottom right; }
@media (max-width: 420px) { .hx-msg { max-width: 88%; font-size: .86rem; } .hx-chat-anim .hx-chat-body { height: 400px; } }

/* Estado vacío */
.hx-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--hx-line-2); border-radius: var(--hx-radius); color: var(--hx-muted); }

/* Revelado (lo activa JS; sin JS todo se ve) */
.hx-js [data-reveal] { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition: none !important; }
  .hx-js [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================================
   DESPLEGABLES DEL BUSCADOR (sustituyen a <select>)
   El panel se mueve a <body> con JS y se posiciona con position: fixed,
   así nunca queda cortado por la pantalla ni por contenedores.
   ========================================================================= */
.hx-dd-btn { flex: 1; min-width: 0; height: 52px; padding: 0 22px 0 0; background: transparent; border: 0; color: var(--hx-text); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.hx-dd-btn span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hx-dd-btn:focus-visible { outline: 2px solid var(--hx-green-2); outline-offset: 2px; border-radius: 8px; }
.hx-field-sel.is-open { border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .45); }
.hx-field-sel.is-open::after { transform: rotate(-135deg) translateY(-2px); }
.hx-field-sel.has-value .hx-dd-btn { color: #bbf7d0; font-weight: 600; }

.hx-dd-panel { box-sizing: border-box; position: fixed; z-index: 10000; display: flex; flex-direction: column; background: #0f172a; border: 1px solid rgba(148, 163, 184, .24); border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .85); padding: 6px; font-family: "Inter", system-ui, sans-serif; color: #f1f5f9; overflow: hidden; animation: hx-dd-in .16s ease-out; }
.hx-dd-panel[hidden] { display: none; }
.hx-dd-panel *, .hx-dd-panel *::before, .hx-dd-panel *::after { box-sizing: border-box; }
@keyframes hx-dd-in { from { opacity: 0; transform: translateY(-6px); } }
.hx-dd-head { display: none; align-items: center; justify-content: space-between; padding: 8px 8px 12px 10px; }
.hx-dd-head b { font-family: "Sora", "Inter", sans-serif; font-size: 1.05rem; }
.hx-dd-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(148, 163, 184, .24); background: rgba(255, 255, 255, .05); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.hx-dd-close svg { width: 18px; height: 18px; }
.hx-dd-search { display: flex; align-items: center; gap: 8px; margin: 4px 4px 6px; padding: 0 12px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(148, 163, 184, .16); }
.hx-dd-search svg { width: 16px; height: 16px; color: #64748b; flex: none; }
.hx-dd-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 16px; }
.hx-dd-search:focus-within { border-color: rgba(74, 222, 128, .5); }
.hx-dd-list { list-style: none; margin: 0; padding: 2px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .3) transparent; }
.hx-dd-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; cursor: pointer; font-size: .95rem; color: #e2e8f0; outline: 0; }
.hx-dd-list li[hidden] { display: none; }
.hx-dd-list li:hover, .hx-dd-list li:focus { background: rgba(255, 255, 255, .07); }
.hx-dd-list li[aria-selected="true"] { background: rgba(34, 197, 94, .14); color: #bbf7d0; font-weight: 600; }
.hx-dd-list li[aria-selected="true"]::after { content: "✓"; margin-left: auto; color: #4ade80; font-weight: 800; }
.hx-dd-list li small { margin-left: auto; color: #64748b; font-size: .78rem; }
.hx-dd-list li[aria-selected="true"] small { display: none; }
.hx-dd-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); font-size: .95rem; flex: none; }
.hx-dd-ic svg { width: 14px; height: 14px; color: #4ade80; }
.hx-dd-empty { margin: 0; padding: 18px; text-align: center; color: #64748b; font-size: .9rem; }

/* Móvil: hoja inferior */
.hx-dd-panel.is-sheet { left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; width: auto !important; max-height: 78vh !important; max-height: 78dvh !important; border-radius: 24px 24px 0 0; padding: 8px 10px calc(12px + env(safe-area-inset-bottom)); animation: hx-sheet-in .25s cubic-bezier(.2, .8, .2, 1); }
.hx-dd-panel.is-sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .4); margin: 2px auto 6px; flex: none; }
.hx-dd-panel.is-sheet .hx-dd-head { display: flex; }
.hx-dd-panel.is-sheet .hx-dd-list li { padding: 13px 12px; font-size: 1rem; }
@keyframes hx-sheet-in { from { transform: translateY(100%); } }
.hx-dd-backdrop { position: fixed; inset: 0; z-index: 9999; background: rgba(2, 6, 23, .65); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: hx-fade .2s; }
@keyframes hx-fade { from { opacity: 0; } }
html.hx-dd-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .hx-dd-panel, .hx-dd-backdrop { animation: none; } }

/* Destacados / Pro (solo con el sistema de pagos activo): borde fino dorado */
.hx-card.is-promoted { border-color: rgba(212, 175, 55, .55); box-shadow: 0 0 0 1px rgba(212, 175, 55, .18), 0 14px 34px -18px rgba(212, 175, 55, .45); }
.hx-card.is-promoted:hover { border-color: rgba(212, 175, 55, .85); }
.hx-badge-urgent { background: #ef4444; color: #fff; }

/* ============ Segunda vida (compromiso sostenible) ============ */
.hx-eco { position: relative; overflow: hidden; display: grid; gap: 28px; padding: 30px 22px; border-radius: 28px;
  background: radial-gradient(70% 120% at 0% 0%, rgba(34, 197, 94, .22), transparent 60%),
              radial-gradient(60% 120% at 100% 100%, rgba(132, 204, 22, .14), transparent 60%), #0b1a12;
  border: 1px solid rgba(74, 222, 128, .25); }
@media (min-width: 900px) { .hx-eco { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 48px; gap: 40px; } }
.hx-eco-eyebrow { color: #86efac !important; }
.hx-eco h2 { margin: 8px 0 12px; font-family: var(--hx-display); font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; color: #fff; }
.hx-eco-txt > p { margin: 0 0 18px; max-width: 56ch; color: #c7d8cc; line-height: 1.6; }
.hx-eco-pills { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .hx-eco-pills { grid-template-columns: repeat(3, 1fr); } }
.hx-eco-pills li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(74, 222, 128, .15); }
.hx-eco-pills li > span { font-size: 1.3rem; }
.hx-eco-pills b { display: block; color: #fff; font-size: .92rem; }
.hx-eco-pills small { color: #a7c4b0; font-size: .8rem; line-height: 1.35; }
.hx-eco-stats { position: relative; display: grid; gap: 10px; }
.hx-eco-stat { padding: 18px 20px; border-radius: 20px; background: rgba(7, 20, 12, .7); border: 1px solid rgba(74, 222, 128, .2); backdrop-filter: blur(6px); }
.hx-eco-stat b { display: block; font-family: var(--hx-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); color: #4ade80; line-height: 1; }
.hx-eco-stat span { color: #c7d8cc; font-size: .9rem; }
.hx-eco-leaf { position: absolute; right: -10px; top: -46px; font-size: 7rem; opacity: .12; transform: rotate(-18deg); pointer-events: none; }

/* ============ Categorías: carrusel horizontal también en ordenador ============ */
.hx-cats-nav { display: flex; align-items: center; gap: 14px; }
@media (max-width: 1023px) { .hx-cats-nav .hx-arrows { display: none; } }
@media (min-width: 1200px) {
  .hx-cats { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 6 * 14px) / 7); gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; margin: 0; padding: 4px 0 12px; scroll-behavior: smooth; }
}
@media (min-width: 1600px) { .hx-cats { grid-auto-columns: calc((100% - 7 * 14px) / 8); } }
@media (hover: hover) and (pointer: fine) {
  .hx-cats { cursor: grab; }
  .hx-cats.is-dragging { cursor: grabbing; }
  .hx-cats.is-dragging a { pointer-events: none; }
}

/* Anuncio reservado: visible, con etiqueta */
.hx-reserved { position: absolute; left: 50%; bottom: 12px; z-index: 2; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px;
  background: rgba(14, 116, 144, .92); color: #fff; font-size: .8rem; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.hx-card.is-reserved .hx-card-media img { filter: saturate(.55) brightness(.8); }
.hx-card.is-reserved .hx-photos { display: none; }
