/* ═══════════ La Estación · herramientas (calculadora, test, comparador) ═══════════ */
.hx-note { font-size: 13px; color: var(--mute-l); margin: 14px 0 0; }
.hx-body { padding-top: 44px; }

/* ── Bloque de portada ── */
.hx-home { background: #000; color: #fff; position: relative; overflow: hidden; }
.hx-home::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--stripes); background-size: 22px 22px; }
.hx-home__hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.hx-home__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hx-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 340px; padding: 28px; border: 2px solid rgba(255,255,255,.14); border-radius: var(--r); background: linear-gradient(160deg, #161616, #080808); overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), border-color .3s, background .3s; }
.hx-tile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--stripes); background-size: 22px 22px; opacity: .9; }
.hx-tile:hover { transform: translateY(-6px); border-color: var(--y); }
.hx-tile__n { position: absolute; right: 18px; top: 6px; font-family: var(--f-d); font-weight: 900; font-style: italic; font-size: 120px; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.16); z-index: -1; }
.hx-tile__ic { width: 64px; height: 64px; color: var(--y); }
.hx-tile__ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hx-tile h3 { font-family: var(--f-d); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(34px, 3.2vw, 48px); line-height: .92; margin: 0 0 10px; }
.hx-tile p { margin: 0; color: var(--mute-d); font-size: 15px; max-width: 32ch; }
.hx-tile__go { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--y); color: #000; margin-top: 18px; transition: transform .3s var(--ease); }
.hx-tile__go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hx-tile:hover .hx-tile__go { transform: translateX(8px); }

/* ── Calculadora ── */
.hx-calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.hx-panel { background: #fff; border: 2px solid var(--line-l); border-radius: var(--r); padding: clamp(18px, 3vw, 32px); }
.hx-form { display: grid; gap: 22px; }
.hx-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.hx-q > legend, .hx-q > label.hx-lbl { font-family: var(--f-d); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 17px; padding: 0; margin-bottom: 10px; display: block; }
.hx-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hx-seg label { position: relative; }
.hx-seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.hx-seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; padding: 8px 10px; border: 2px solid rgba(0,0,0,.15); border-radius: 8px; font-weight: 700; font-size: 15px; line-height: 1.15; background: #fff; transition: background .2s, border-color .2s, color .2s; }
.hx-seg input:checked + span { background: #000; color: var(--y); border-color: #000; }
.hx-seg input:focus-visible + span { outline: 3px solid var(--y); outline-offset: 2px; }
.hx-unit { position: relative; }
.hx-unit .input { padding-right: 56px; font-size: 20px; font-weight: 700; }
.hx-unit i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--mute-l); pointer-events: none; }
.hx-help { margin-top: 8px; font-size: 14px; }
.hx-help summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hx-help ul { margin: 8px 0 0; padding-left: 18px; color: var(--mute-l); }
.hx-range { width: 100%; accent-color: #000; height: 32px; }
.hx-range-lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute-l); }

.hx-res { background: #000; color: #fff; border-radius: var(--r); padding: clamp(20px, 3vw, 36px); position: relative; overflow: hidden; }
.hx-res::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--stripes); background-size: 22px 22px; }
.hx-res__big { font-family: var(--f-d); font-weight: 900; font-style: italic; line-height: .85; font-size: clamp(64px, 9vw, 128px); color: var(--y); margin: 10px 0 4px; }
.hx-res__big small { font-size: .32em; color: #fff; margin-left: 8px; letter-spacing: .02em; }
.hx-res__sub { color: var(--mute-d); margin: 0 0 26px; }
.hx-bar { position: relative; height: 34px; background: #1b1b1b; border-radius: 6px; overflow: hidden; }
.hx-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--stripes); background-size: 22px 22px; transition: width .6s var(--ease); }
.hx-bar i.is-full { background: var(--y); }
.hx-bar-lbl { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-top: 8px; color: #d6d6d6; flex-wrap: wrap; }
.hx-gap { margin: 22px 0 6px; padding: 16px 18px; border-radius: 10px; background: rgba(255,176,0,.12); border-left: 4px solid var(--y); }
.hx-gap b { color: var(--y); }
.hx-recs { margin-top: 36px; }
.hx-recs .grid { grid-template-columns: repeat(3, 1fr); }
.hx-rec { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: var(--r); border: 2px solid var(--line-l); overflow: hidden; }
.hx-rec__img { aspect-ratio: 1/.8; background: radial-gradient(70% 60% at 50% 60%, #fff, var(--paper-2)); display: grid; place-items: center; }
.hx-rec__img .packshot, .hx-rec__img img { width: 60%; height: 86%; object-fit: contain; }
.hx-rec__img .packshot svg { width: 100%; height: 100%; }
.hx-rec__b { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hx-rec__b .btn { margin-top: auto; }
.hx-tag { align-self: flex-start; font-family: var(--f-d); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; background: var(--y); padding: 3px 8px; border-radius: 3px; }
.hx-rec b.nm { font-family: var(--f-d); font-size: 22px; text-transform: uppercase; line-height: 1; }
.hx-rec small { color: var(--mute-l); }

/* ── Test ── */
.hx-quiz { max-width: 880px; margin: 0 auto; overflow-x: clip; }
.hx-prog { height: 22px; border: 2px solid #000; border-radius: 4px; background: #000; overflow: hidden; margin-bottom: 10px; }
.hx-prog i { display: block; height: 100%; width: 0; background: var(--stripes); background-size: 22px 22px; transition: width .5s var(--ease); animation: hxslide 1s linear infinite; }
@keyframes hxslide { to { background-position: 31px 0; } }
.hx-step-n { font-family: var(--f-d); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--mute-l); }
.hx-quiz h2 { margin: 8px 0 24px; }
.hx-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hx-opt { text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 18px 20px; border: 2px solid #000; border-radius: 10px; background: #fff; transition: transform .2s var(--ease), background .2s, color .2s; }
.hx-opt b { font-family: var(--f-d); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.hx-opt span { font-size: 14px; color: var(--mute-l); }
.hx-opt:hover { background: #000; color: #fff; transform: translateY(-3px); }
.hx-opt:hover b { color: var(--y); } .hx-opt:hover span { color: #c9c9c9; }
.hx-quiz-nav { margin-top: 20px; }
.hx-quiz-nav button { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.hx-step { animation: hxin .45s var(--ease); }
@keyframes hxin { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.hx-stack { display: grid; gap: 12px; margin: 24px 0; }
.hx-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: #fff; border: 2px solid var(--line-l); border-radius: var(--r); padding: 12px 18px 12px 12px; }
.hx-item__img { background: radial-gradient(70% 60% at 50% 60%, #fff, var(--paper-2)); border-radius: 8px; aspect-ratio: 1; display: grid; place-items: center; }
.hx-item__img .packshot, .hx-item__img img { width: 78%; height: 88%; object-fit: contain; }
.hx-item__img .packshot svg { width: 100%; height: 100%; }
.hx-item h3 { margin: 0; font-family: var(--f-d); font-size: 24px; text-transform: uppercase; line-height: 1; }
.hx-item p { margin: 6px 0 0; font-size: 14px; color: var(--mute-l); }
.hx-item .hx-pr { font-family: var(--f-d); font-weight: 800; font-size: 26px; white-space: nowrap; }
.hx-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; background: #000; color: #fff; border-radius: 10px; font-family: var(--f-d); text-transform: uppercase; font-size: 20px; letter-spacing: .04em; }
.hx-total b { color: var(--y); font-size: 36px; font-style: italic; }
.hx-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ── Comparador ── */
.hx-pick { display: grid; gap: 12px; margin-bottom: 28px; }
.hx-pick__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hx-pick .chip { padding: 9px 14px; }
.hx-pick .chip button { padding: 0 4px; font-size: 18px; line-height: 1; }
.hx-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.hx-li { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 11px 14px; border: 2px solid var(--line-l); border-radius: 8px; background: #fff; font-size: 15px; }
.hx-li small { color: var(--mute-l); display: block; }
.hx-li:hover:not(:disabled) { border-color: #000; }
.hx-li:disabled { opacity: .45; cursor: not-allowed; }
.hx-li em { font-style: normal; font-family: var(--f-d); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.hx-tw { position: relative; overflow-x: auto; border-radius: var(--r); border: 2px solid #000; background: #fff; }
.hx-table { width: 100%; border-collapse: collapse; min-width: 560px; table-layout: fixed; }
.hx-table th, .hx-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-l); font-size: 15px; }
.hx-table tbody th { width: 150px; font-family: var(--f-d); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; background: var(--paper); position: sticky; left: 0; }
.hx-table thead th { background: #000; color: #fff; }
.hx-table td.is-best { background: var(--y); font-weight: 800; }
.hx-table .hx-ci { aspect-ratio: 1; max-width: 150px; margin: 0 auto 8px; background: radial-gradient(70% 60% at 50% 60%, #fff, var(--paper-2)); border-radius: 8px; display: grid; place-items: center; }
.hx-table .hx-ci .packshot, .hx-table .hx-ci img { width: 70%; height: 86%; object-fit: contain; }
.hx-table .hx-ci .packshot svg { width: 100%; height: 100%; }
.hx-table select { width: 100%; height: 40px; border: 2px solid rgba(0,0,0,.2); border-radius: 6px; padding: 0 8px; background: #fff; }
.hx-table a.nm { font-family: var(--f-d); font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1; display: block; margin-top: 4px; }
.hx-table .mk { color: var(--mute-l); font-size: 13px; }
.hx-empty { padding: 40px 20px; text-align: center; border: 2px dashed rgba(0,0,0,.25); border-radius: var(--r); }

@media (max-width: 960px) {
  .hx-home__grid { grid-template-columns: 1fr; }
  .hx-tile { min-height: 260px; }
  .hx-calc { grid-template-columns: 1fr; }
  .hx-recs .grid { grid-template-columns: 1fr; }
  .hx-rec { flex-direction: row; }
  .hx-rec__img { width: 38%; aspect-ratio: auto; flex: none; }
  .hx-rec__b { padding: 14px 14px 14px 0; }
}
@media (max-width: 600px) {
  .hx-opts { grid-template-columns: 1fr; }
  .hx-opt { min-height: 72px; }
  .hx-seg { grid-template-columns: 1fr; }
  .hx-seg.hx-seg--2 { grid-template-columns: 1fr 1fr; }
  .hx-item { grid-template-columns: 72px minmax(0, 1fr); }
  .hx-item .hx-pr { grid-column: 2; }
  .hx-list { grid-template-columns: 1fr; }
  .hx-tile__n { font-size: 90px; }
  .hx-table tbody th { width: 104px; padding: 10px; font-size: 12px; }
  .hx-table th, .hx-table td { padding: 10px; font-size: 14px; }
  .hx-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-prog i { animation: none; }
  .hx-step { animation: none; }
}
.hx-home .lead { color: var(--mute-d); }

/* Portada (nov-2026): en móvil y tableta las tres herramientas van en fila y se deslizan (ver site.css, .hx-rail) */
@media (max-width: 900px) {
  .hx-home .hx-home__grid.hx-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; }
  .hx-home .hx-rail .hx-tile { min-height: 268px; gap: 20px; padding: 22px; }
  .hx-home__hd { margin-bottom: 18px; }
}
