/* =========================================================================
   IGUALO · Explorar — usa tarjetas y variables de home-v2.css
   ========================================================================= */
.page-explore { background: #070b14; }
.ex { padding-bottom: 80px; }
.ex-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buscador ---------- */
.ex-hero { position: relative; z-index: 30; padding: 26px 0 20px;
  background: radial-gradient(60% 140% at 0% 0%, rgba(34, 197, 94, .16), transparent 60%),
              radial-gradient(40% 120% at 100% 0%, rgba(45, 212, 191, .1), transparent 60%), linear-gradient(180deg, #0b1120, #070b14); }
@media (min-width: 900px) { .ex-hero { padding: 40px 0 28px; } }
.ex-hero h1 { margin: 0 0 16px; font-family: var(--hx-display); font-size: clamp(1.6rem, 1.15rem + 2vw, 2.6rem); letter-spacing: -.035em; color: #fff; line-height: 1.1; overflow-wrap: anywhere; }
.ex-hero h1 span { background: linear-gradient(90deg, #4ade80, #2dd4bf); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ex-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 820px; padding: 6px 6px 6px 18px; border-radius: 999px;
  background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.ex-search.is-open { border-radius: 26px 26px 0 0; }
.ex-search-ic { width: 20px; height: 20px; color: #64748b; flex: none; }
.ex-search input[type=search] { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: none; color: #0b1120; font: inherit; font-size: 1.05rem; }
.ex-search input::placeholder { color: #94a3b8; }
.ex-search input::-webkit-search-cancel-button { cursor: pointer; }
.ex-scope { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; border: 0; background: #e2e8f0; color: #334155; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ex-scope svg { width: 14px; height: 14px; }
.ex-search-btn { flex: none; height: 48px; padding: 0 22px; }
.ex-search-btn svg { display: none; }
@media (max-width: 560px) {
  .ex-search { padding-left: 14px; }
  .ex-search input[type=search] { height: 44px; font-size: 1rem; }
  .ex-search-btn { width: 44px; height: 44px; padding: 0; }
  .ex-search-btn span { display: none; }
  .ex-search-btn svg { display: block; }
  .ex-scope { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}

/* Sugerencias */
.ex-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; max-height: min(70vh, 520px); overflow-y: auto; padding: 6px 6px 10px;
  background: #fff; border-radius: 0 0 26px 26px; border-top: 1px solid #e2e8f0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.ex-sug-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 4px; color: #64748b; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.ex-sug-h button { border: 0; background: none; color: #16a34a; font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; text-transform: none; letter-spacing: 0; }
.ex-sug-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; color: #0f172a; text-decoration: none; font-size: .95rem; }
.ex-sug-row:hover, .ex-sug-row.is-on { background: #f1f5f9; }
.ex-sug-row > svg { width: 18px; height: 18px; color: #94a3b8; flex: none; }
.ex-sug-row small { color: #64748b; }
.ex-sug-q b { color: #0b1120; }
.ex-sug-enter { margin-left: auto; }
.ex-sug-emoji { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #f1f5f9; font-size: 1.1rem; }
.ex-sug-item img, .ex-sug-ph { width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: cover; background: #f1f5f9; display: grid; place-items: center; }
.ex-sug-txt { min-width: 0; display: flex; flex-direction: column; }
.ex-sug-txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-sug-txt small { color: #16a34a; font-weight: 700; }

.ex-trending { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; }
.ex-trending > span { display: inline-flex; align-items: center; gap: 6px; color: var(--hx-dim); font-size: .85rem; }
.ex-trending > span svg { width: 15px; height: 15px; color: var(--hx-green-2); }
.ex-trending a { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--hx-line); color: #cbd5e1; font-size: .84rem; text-decoration: none; text-transform: capitalize; transition: .2s; }
.ex-trending a:hover { border-color: rgba(74, 222, 128, .5); color: #fff; }
@media (max-width: 560px) { .ex-trending { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px -18px 0; padding: 0 18px; } .ex-trending::-webkit-scrollbar { display: none; } .ex-trending > * { flex: none; } }

/* ---------- Categorías (pegadas arriba) ---------- */
.ex-cats { position: sticky; top: 64px; z-index: 20; background: rgba(7, 11, 20, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hx-line); }
@media (min-width: 1024px) { .ex-cats { top: 70px; } }
.ex-cats-row, .ex-subs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 12px 18px; }
.ex-cats-row::-webkit-scrollbar, .ex-subs::-webkit-scrollbar { display: none; }
.ex-cat { --c: #22c55e; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; border: 1px solid var(--hx-line); color: #cbd5e1; font-size: .9rem; font-weight: 600; text-decoration: none; transition: .2s; white-space: nowrap; }
.ex-cat span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, transparent); font-size: 1rem; }
.ex-cat:hover { color: #fff; border-color: var(--hx-line-2); }
.ex-cat.is-on { background: #f1f5f9; border-color: #f1f5f9; color: #0b1120; }
.ex-subs { padding-top: 0; }
.ex-subs a { flex: none; padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--hx-muted); font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: .2s; }
.ex-subs a:hover { color: #fff; }
.ex-subs a.is-on { background: rgba(34, 197, 94, .14); color: #86efac; }

/* ---------- Distribución ---------- */
.ex-layout { display: grid; gap: 28px; padding-top: 22px; }
@media (min-width: 1024px) { .ex-layout { grid-template-columns: 260px minmax(0, 1fr); padding-top: 28px; align-items: start; } }
.ex-main { min-width: 0; }
@media (min-width: 1024px) { .ex-main .hx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .ex-main .hx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Filtros ---------- */
.ex-filters { min-width: 0; }
@media (min-width: 1024px) { .ex-filters { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; } }
.ex-sheet-head { display: none; }
.ex-group { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.ex-group legend { margin-bottom: 10px; padding: 0; color: #fff; font-weight: 800; font-size: .92rem; }
.ex-price { display: flex; align-items: center; gap: 6px; }
.ex-price label { flex: 1; min-width: 0; }
.ex-price input { width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--hx-line-2); background: #0b1120; color: #fff; font: inherit; font-size: .92rem; outline: 0; -moz-appearance: textfield; }
.ex-price input::-webkit-outer-spin-button, .ex-price input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ex-price input:focus { border-color: rgba(74, 222, 128, .6); }
.ex-dash { color: var(--hx-dim); }
.ex-go { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 0; background: var(--hx-green); color: #04130a; cursor: pointer; }
.ex-go svg { width: 18px; height: 18px; }
.ex-seg { display: flex; padding: 4px; border-radius: 14px; background: #0b1120; border: 1px solid var(--hx-line); }
.ex-seg label { flex: 1; }
.ex-seg input, .ex-radios input { position: absolute; opacity: 0; pointer-events: none; }
.ex-seg span { display: block; padding: 8px 6px; border-radius: 10px; color: var(--hx-muted); font-size: .86rem; font-weight: 700; text-align: center; cursor: pointer; transition: .2s; }
.ex-seg input:checked + span { background: #f1f5f9; color: #0b1120; }
.ex-seg input:focus-visible + span, .ex-radios input:focus-visible + span { outline: 2px solid var(--hx-green-2); }

.ex-select { position: relative; display: flex; align-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--hx-line-2); background: #0b1120; }
.ex-select > svg:first-child { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--hx-dim); pointer-events: none; }
.ex-select select { width: 100%; height: 100%; padding: 0 34px 0 36px; border: 0; background: none; color: #fff; font: inherit; font-size: .92rem; outline: 0; appearance: none; cursor: pointer; }
.ex-select option { background: #0f172a; }
.ex-chev { position: absolute; right: 12px; width: 16px; height: 16px; color: var(--hx-dim); pointer-events: none; }

.ex-radios { display: grid; gap: 4px; }
.ex-radios span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #cbd5e1; font-size: .9rem; cursor: pointer; transition: .15s; }
.ex-radios span::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--hx-line-2); transition: .15s; }
.ex-radios span:hover { background: rgba(255, 255, 255, .03); }
.ex-radios input:checked + span { color: #fff; font-weight: 600; }
.ex-radios input:checked + span::before { border: 5px solid var(--hx-green); }

.ex-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; color: #cbd5e1; font-size: .9rem; cursor: pointer; }
.ex-switch > span { display: inline-flex; align-items: center; gap: 8px; }
.ex-switch > span svg { width: 16px; height: 16px; color: var(--hx-dim); }
.ex-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ex-switch-ui { position: relative; width: 40px; height: 24px; flex: none; border-radius: 999px; background: rgba(148, 163, 184, .25); transition: .2s; }
.ex-switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.ex-switch input:checked + .ex-switch-ui { background: var(--hx-green); }
.ex-switch input:checked + .ex-switch-ui::after { transform: translateX(16px); }
.ex-switch input:focus-visible + .ex-switch-ui { outline: 2px solid var(--hx-green-2); outline-offset: 2px; }

.ex-sheet-foot { display: none; }
.ex-backdrop { display: none; }

/* Panel inferior en móvil y tablet */
@media (max-width: 1023px) {
  .ex-filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10002; max-height: 88vh; display: flex; flex-direction: column;
    background: #0b1120; border-radius: 24px 24px 0 0; border-top: 1px solid var(--hx-line-2); box-shadow: 0 -30px 60px rgba(0, 0, 0, .6);
    transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); visibility: hidden; }
  .ex-filters.is-open { transform: none; visibility: visible; }
  .ex-filters form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
  .ex-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; position: relative; }
  .ex-sheet-head::before { content: ""; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(148, 163, 184, .35); }
  .ex-sheet-head b { color: #fff; font-size: 1.1rem; }
  .ex-x { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: #e2e8f0; cursor: pointer; }
  .ex-x svg { width: 18px; height: 18px; }
  .ex-sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 18px 10px; overscroll-behavior: contain; }
  .ex-sheet-foot { display: flex; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hx-line); }
  .ex-sheet-foot .hx-btn { flex: 1; padding: 13px 16px; }
  .ex-sheet-foot .hx-btn-primary { flex: 2; }
  .ex-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 10001; background: rgba(2, 6, 15, .6); backdrop-filter: blur(3px); }
}

/* ---------- Barra de resultados ---------- */
.ex-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ex-count { margin: 0; color: var(--hx-muted); }
.ex-count b { color: #fff; font-family: var(--hx-display); font-size: 1.15rem; }
.ex-tools { display: flex; gap: 8px; }
.ex-filter-btn, .ex-sort { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hx-line-2); background: var(--hx-surface); color: #e2e8f0; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.ex-filter-btn svg, .ex-sort svg { width: 16px; height: 16px; flex: none; }
.ex-filter-btn em { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--hx-green); color: #04130a; font-style: normal; font-size: .72rem; }
@media (min-width: 1024px) { .ex-filter-btn { display: none; } }
.ex-sort select { border: 0; outline: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ex-sort option { background: #0f172a; }
@media (max-width: 560px) {
  .ex-toolbar { flex-wrap: nowrap; }
  .ex-count { font-size: .85rem; white-space: nowrap; }
  .ex-sort { position: relative; width: 42px; padding: 0; justify-content: center; }
  .ex-sort select { position: absolute; inset: 0; opacity: 0; width: 100%; }
}

.ex-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
.ex-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: rgba(34, 197, 94, .12); border: 1px solid rgba(74, 222, 128, .3); color: #bbf7d0; font-size: .82rem; font-weight: 600; text-decoration: none; transition: .2s; }
.ex-pill svg { width: 14px; height: 14px; opacity: .8; }
.ex-pill:hover { background: rgba(239, 68, 68, .12); border-color: rgba(248, 113, 113, .4); color: #fecaca; }
.ex-clear { padding: 6px 10px; color: var(--hx-muted); font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ex-clear:hover { color: #fff; }

/* ---------- Populares ---------- */
.ex-popular { margin-bottom: 8px; }
.ex-popular .hx-head { margin-bottom: 14px; }
.ex-h2 { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); }
.ex-all-title { margin: 30px 0 14px; }

/* ---------- Cargar más ---------- */
.ex-grid .ex-in { animation: ex-in .4s ease-out both; }
@keyframes ex-in { from { opacity: 0; transform: translateY(12px); } }
.ex-more { display: grid; justify-items: center; gap: 10px; margin-top: 30px; text-align: center; }
.ex-more p { margin: 0; color: var(--hx-muted); font-size: .88rem; }
.ex-more p b { color: #fff; }
.ex-bar { width: min(260px, 70%); height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .2); overflow: hidden; }
.ex-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #22c55e, #2dd4bf); transition: width .4s; }
.ex-more.is-loading .hx-btn { opacity: .6; pointer-events: none; }
.ex-more.is-loading .hx-btn svg { animation: ex-bounce .8s infinite; }
@keyframes ex-bounce { 50% { transform: translateY(3px); } }
.ex-end { margin: 30px 0 0; text-align: center; color: var(--hx-muted); }

/* ---------- Sin resultados ---------- */
.ex-empty { text-align: center; padding: 46px 20px; border: 1px dashed var(--hx-line-2); border-radius: 26px; }
.ex-empty-ic { width: 64px; height: 64px; border-radius: 20px; display: inline-grid; place-items: center; background: rgba(34, 197, 94, .12); color: var(--hx-green-2); }
.ex-empty-ic svg { width: 30px; height: 30px; }
.ex-empty h2 { margin: 16px 0 6px; font-family: var(--hx-display); color: #fff; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); overflow-wrap: anywhere; }
.ex-empty > p { max-width: 46ch; margin: 0 auto 18px; color: var(--hx-muted); line-height: 1.5; }
.ex-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.ex-empty-tip { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0 !important; font-size: .88rem; }
.ex-empty-tip svg { width: 16px; height: 16px; color: #fbbf24; }
.ex-empty-tip a { color: var(--hx-green-2); font-weight: 700; }
.ex-reco { margin-top: 36px; }
.ex-reco .ex-h2 { margin: 0 0 14px; }

/* Ajustes */
.ex-sug-row, .ex-sug-row span, .ex-sug-txt b, .ex-sug-q b { color: #0f172a; }
.ex-sug-q span { color: #475569; }
.ex-sug-txt small { color: #16a34a; }
.ex-sug-row small { font-weight: 600; }
@media (min-width: 1024px) { .ex:has(.ex-subs) .ex-filters { top: 200px; max-height: calc(100vh - 220px); } }

/* ---------- Deslizador de precio ---------- */
.ex-range legend { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 8px; }
.ex-range output { color: var(--hx-green-2); font-size: .82rem; font-weight: 700; text-align: right; }
.ex-hist { display: flex; align-items: flex-end; gap: 2px; height: 44px; padding: 0 11px; }
.ex-hist i { flex: 1; min-height: 3px; height: calc(var(--h) * 1%); border-radius: 3px 3px 0 0; background: rgba(148, 163, 184, .22); transition: background .15s; }
.ex-hist i.is-in { background: rgba(74, 222, 128, .55); }
.ex-slider { position: relative; height: 30px; margin: 0 0 12px; }
.ex-track { position: absolute; left: 11px; right: 11px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(148, 163, 184, .25); }
.ex-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--hx-green); }
.ex-slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 30px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 2; }
.ex-slider input[type=range]:focus { outline: 0; }
.ex-slider input[type=range]::-webkit-slider-runnable-track { background: none; height: 30px; }
.ex-slider input[type=range]::-moz-range-track { background: none; }
.ex-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%;
  background: #fff; border: 3px solid var(--hx-green); box-shadow: 0 3px 10px rgba(0, 0, 0, .45); cursor: grab; transition: transform .15s; }
.ex-slider input[type=range]::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--hx-green); box-shadow: 0 3px 10px rgba(0, 0, 0, .45); cursor: grab; }
.ex-slider input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); cursor: grabbing; }
.ex-slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(74, 222, 128, .35); }
@media (pointer: coarse) {
  .ex-slider { height: 38px; }
  .ex-slider input[type=range], .ex-slider input[type=range]::-webkit-slider-runnable-track { height: 38px; }
  .ex-slider input[type=range]::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: 5px; }
  .ex-hist, .ex-track { padding: 0 14px; } .ex-track { left: 14px; right: 14px; }
}

/* ---------- Filas horizontales (móvil y tablet) ---------- */
.ex-rails { display: none; }
@media (max-width: 1023px) {
  .ex-rails { display: grid; gap: 26px; margin-top: 6px; }
  .ex-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
  .ex-rail-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; font-family: var(--hx-display); font-size: 1.12rem; color: #fff; letter-spacing: -.01em; }
  .ex-rail-head h2 span { font-size: .95rem; }
  .ex-rail-head a { flex: none; display: inline-flex; align-items: center; gap: 2px; color: var(--hx-green-2); font-size: .85rem; font-weight: 700; text-decoration: none; }
  .ex-rail-head a svg { width: 16px; height: 16px; }
  .ex-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 18px; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ex-rail::-webkit-scrollbar { display: none; }
  .ex-rail > * { scroll-snap-align: start; }
  .ex-rail .hx-card-media { aspect-ratio: 1; }
  .ex-rail .hx-share { display: none; }
  .ex-rail-more { display: grid; place-content: center; justify-items: center; gap: 10px; padding: 12px; border-radius: var(--hx-radius); border: 1px dashed var(--hx-line-2);
    color: var(--hx-muted); font-size: .85rem; font-weight: 600; text-align: center; text-decoration: none; }
  .ex-rail-more span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c, #22c55e) 22%, transparent); color: #fff; }
  .ex-rail-more svg { width: 20px; height: 20px; }
  .ex-all-title { margin-top: 34px; }
}
@media (min-width: 640px) and (max-width: 1023px) { .ex-rail { grid-auto-columns: 30%; margin: 0 -28px; padding: 2px 28px 6px; scroll-padding-inline: 28px; } }
@media (max-width: 1023px) { .ex-rail .hx-badge-feat { font-size: 0; padding: 4px 7px; } .ex-rail .hx-badge-feat::first-letter { font-size: .72rem; } }
/* Tarjetas de las filas un poco más grandes (se sigue asomando la siguiente) */
@media (max-width: 1023px) { .ex-rail { grid-auto-columns: 54%; gap: 12px; } }
@media (min-width: 640px) and (max-width: 1023px) { .ex-rail { grid-auto-columns: 36%; } }

/* Chip seleccionado: se quita tocándolo otra vez */
.ex-x-mini { margin-left: 4px; width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%;
  background: rgba(11, 17, 32, .12); font-style: normal; font-size: .62rem; font-weight: 800; transition: background .2s; }
.ex-cat.is-on:hover .ex-x-mini { background: rgba(239, 68, 68, .2); color: #b91c1c; }
.ex-subs a.is-on { display: inline-flex; align-items: center; }
.ex-subs a.is-on .ex-x-mini { background: rgba(134, 239, 172, .18); }
.ex-subs a.is-on:hover .ex-x-mini { background: rgba(239, 68, 68, .25); color: #fecaca; }

/* ---------- Filas deslizables con flechas (ordenador) ---------- */
.ex-scroller { position: relative; }
.ex-scroll-btn { position: absolute; top: 50%; z-index: 3; width: 36px; height: 36px; margin-top: -18px; display: none; place-items: center;
  border-radius: 50%; border: 1px solid rgba(148, 163, 184, .3); background: #0f172a; color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55); transition: background .2s, transform .2s; }
.ex-scroll-btn svg { width: 18px; height: 18px; }
.ex-scroll-btn:hover { background: #1e293b; transform: scale(1.08); }
.ex-scroll-btn.is-prev { left: 0; }
.ex-scroll-btn.is-next { right: 0; }
.ex-scroller::before, .ex-scroller::after { content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .2s; }
.ex-scroller::before { left: 0; background: linear-gradient(90deg, #070b14 25%, transparent); }
.ex-scroller::after { right: 0; background: linear-gradient(270deg, #070b14 25%, transparent); }
.ex-scroller.can-prev::before, .ex-scroller.can-next::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .ex-scroller.can-prev .is-prev, .ex-scroller.can-next .is-next { display: grid; }
  .ex-cats-row, .ex-subs { cursor: grab; }
  .ex-cats-row.is-dragging, .ex-subs.is-dragging { cursor: grabbing; }
  .ex-cats-row.is-dragging a, .ex-subs.is-dragging a { pointer-events: none; }
}
/* En ordenador, sin márgenes negativos: los chips no se cortan contra el borde */
@media (min-width: 1024px) {
  .ex-cats-row, .ex-subs { margin: 0; padding-left: 0; padding-right: 0; scroll-behavior: smooth; }
  .ex-scroller::before { background: linear-gradient(90deg, rgba(7, 11, 20, .98) 30%, transparent); }
}

/* ---------- Ordenador: más ancho y 5 anuncios por fila ---------- */
@media (min-width: 1024px) {
  .ex .hx-wrap { max-width: 1680px; padding-left: 28px; padding-right: 28px; }
  .ex-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
  .ex-main .hx-grid { gap: 18px; }
}
@media (min-width: 1200px) { .ex-main .hx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .ex-main .hx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1800px) { .ex .hx-wrap { padding-left: 40px; padding-right: 40px; } .ex-main .hx-grid { gap: 22px; } }

/* Carrusel «Lo más guardado» (destacados): 5 tarjetas en ordenador grande */
@media (min-width: 1440px) { .ex-popular .hx-rail { grid-auto-columns: calc((100% - 4 * 18px) / 5); } }

/* Línea sutil que separa los destacados del resto de anuncios */
.ex-popular { position: relative; padding-bottom: 28px; margin-bottom: 26px; }
.ex-popular::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .28) 15%, rgba(148, 163, 184, .28) 85%, transparent); }
.ex-popular + .ex-all-title, .ex-popular ~ .ex-all-title { margin-top: 4px; }

/* Botón «Avisarme» (alertas) */
.ex-alert-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(251, 191, 36, .45);
  background: rgba(251, 191, 36, .08); color: #fcd34d; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: .2s; }
.ex-alert-btn:hover { background: rgba(251, 191, 36, .16); }
.ex-alert-btn.is-on { border-color: rgba(74, 222, 128, .5); background: rgba(34, 197, 94, .12); color: #86efac; }
.ex-alert-btn svg { width: 17px; height: 17px; }
@media (max-width: 560px) { .ex-alert-btn span { display: none; } .ex-alert-btn { width: 42px; padding: 0; justify-content: center; } }
.ex-toast { position: fixed; left: 50%; bottom: 24px; z-index: 20001; transform: translate(-50%, 16px); max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 999px;
  background: #f1f5f9; color: #0b1120; font-weight: 700; font-size: .9rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: .25s; }
.ex-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ex-toast a { color: #15803d; font-weight: 800; margin-left: 4px; }
