/* FITMIND — Blog, categorías, etiquetas, búsqueda y 404 (se carga después de blog.css) */

.fx .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Cabecera ---------- */
.fx-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--fb-navy); color: #fff; padding: clamp(116px, 13vw, 160px) 0 clamp(56px, 7vw, 88px); }
.fx-hero::before { content: ""; position: absolute; z-index: -1; inset: -35% -15% auto auto; width: 75vw; max-width: 980px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,70,0,.24), rgba(255,70,0,0) 62%); filter: blur(10px); }
.fx-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 70%); }
.fx-title { margin: 0; max-width: 18ch; font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.03; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.fx-title small { display: block; margin-top: .4em; font-size: .38em; letter-spacing: -.01em; font-weight: 500; color: var(--fb-mute-2); }
.fx-lead { margin: 1.2rem 0 0; max-width: 60ch; font-size: clamp(1.04rem, 1.35vw, 1.2rem); line-height: 1.65; color: #B9BFCD; }

/* Buscador */
.fx-search { position: relative; display: flex; align-items: center; max-width: 560px; margin-top: 2rem; padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--fb-navy-line); transition: border-color .3s, box-shadow .3s, background-color .3s; }
.fx-search:focus-within { border-color: var(--fb-orange); box-shadow: 0 0 0 5px rgba(255,70,0,.16); background: rgba(255,255,255,.09); }
.fx-search-ico { display: grid; place-items: center; width: 44px; flex: none; color: var(--fb-mute-2); }
.fx-search-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fx-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; outline: none; }
.fx-search input::placeholder { color: #7D8496; }
.fx-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.fx-search button { height: 46px; padding: 0 1.4rem; border-radius: 999px; background: var(--fb-orange); color: #fff; font-weight: 600; font-size: 15px; transition: background-color .3s; }
.fx-search button:hover { background: var(--fb-orange-2); }

/* Categorías */
.fx-chips { display: flex; gap: 8px; margin-top: 1.6rem; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.fx-chips::-webkit-scrollbar { display: none; }
.fx-chips a { flex: none; display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1rem; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: #C9CEDA; background: rgba(255,255,255,.04); border: 1px solid var(--fb-navy-line); transition: color .25s, background-color .25s, border-color .25s, transform .3s var(--fb-ease); }
.fx-chips a span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; font-size: 12px; background: rgba(255,255,255,.08); color: var(--fb-mute-2); }
.fx-chips a:hover { color: #fff; border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.fx-chips a.is-active { background: #fff; color: var(--fb-ink); border-color: #fff; }
.fx-chips a.is-active span { background: var(--fb-orange); color: #fff; }

/* ---------- Destacado ---------- */
.fx-featured-wrap { margin-top: clamp(-40px, -4vw, -24px); position: relative; z-index: 2; }
.fx-featured { display: grid; overflow: hidden; border-radius: 26px; background: #fff; border: 1px solid #E9EBF0;
  box-shadow: 0 1px 2px rgba(11,18,34,.04), 0 34px 70px -40px rgba(11,18,34,.45); transition: transform .5s var(--fb-ease), box-shadow .5s; }
.fx-featured:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(11,18,34,.04), 0 44px 80px -40px rgba(11,18,34,.5); }
.fx-featured figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fb-navy-2); }
.fx-featured figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--fb-ease); }
.fx-featured:hover figure img { transform: scale(1.04); }
.fx-featured-body { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding: clamp(24px, 4vw, 48px); }
.fx-badge { display: inline-flex; padding: .35rem .8rem; border-radius: 999px; background: var(--fb-orange-soft); color: var(--fb-orange); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.fx-featured h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 600; color: var(--fb-ink); text-wrap: balance; }
.fx-featured p { margin: 0; color: var(--fb-ink-2); line-height: 1.65; }
.fx-featured .fb-btn { margin-top: .6rem; }

/* ---------- Lista ---------- */
.fx-list { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.fx-list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 28px; }
.fx-list-head h2 { margin: .5rem 0 0; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.04em; line-height: 1.1; font-weight: 600; color: var(--fb-ink); }
.fx-count { font-size: 14px; color: var(--fb-mute); }
.fx-grid { display: grid; gap: 20px; }
.fx .fb-card-body .fx-excerpt { margin: 0 0 .6rem; font-size: 14.5px; line-height: 1.6; color: var(--fb-mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fx-empty { text-align: center; }
.fx-empty h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.fx-empty > p { margin: .8rem 0 2rem; color: var(--fb-ink-2); }
.fx-empty .fx-grid { text-align: left; }

/* Paginación */
.fx-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.fx-pages a, .fx-pages span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--fb-line); color: var(--fb-ink); background: #fff; transition: border-color .25s, background-color .25s, color .25s; }
.fx-pages a:hover { border-color: var(--fb-ink); }
.fx-pages .current { background: var(--fb-ink); border-color: var(--fb-ink); color: #fff; }
.fx-pages .dots { border: 0; background: none; min-width: 20px; padding: 0; }

/* ---------- Calculadoras ---------- */
.fx-tools { padding: clamp(56px, 7vw, 96px) 0; background: var(--fb-light); }
.fx-tools-grid { display: grid; gap: 12px; }
.fx-tool { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid #E9EBF0;
  transition: transform .4s var(--fb-ease), box-shadow .4s, border-color .3s; }
.fx-tool:hover { transform: translateY(-3px); border-color: rgba(255,70,0,.35); box-shadow: 0 20px 40px -26px rgba(11,18,34,.35); }
.fx-tool-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--fb-orange-soft); color: var(--fb-orange); transition: background-color .3s, color .3s; }
.fx-tool:hover .fx-tool-ico { background: var(--fb-orange); color: #fff; }
.fx-tool-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fx-tool b { display: block; font-size: 16px; color: var(--fb-ink); letter-spacing: -.01em; }
.fx-tool small { display: block; margin-top: .15rem; font-size: 13.5px; color: var(--fb-mute); }
.fx-tool i { margin-left: auto; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fb-light); color: var(--fb-ink); font-style: normal; transition: transform .4s var(--fb-ease); }
.fx-tool i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fx-tool:hover i { transform: translateX(3px); }

/* ---------- Cierre ---------- */
.fx-cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 7vw, 88px) 0; background: var(--fb-navy); color: #fff; }
.fx-cta::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,70,0,.26), rgba(255,70,0,0) 62%); }
.fx-cta-inner { display: grid; gap: 24px; align-items: center; }
.fx-cta h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.fx-cta p { margin: .8rem 0 0; max-width: 56ch; color: #B9BFCD; line-height: 1.65; }

/* ---------- 404 ---------- */
.fx-hero-404 { padding-bottom: clamp(64px, 8vw, 110px); }
.fx-404-grid { display: grid; gap: 40px; align-items: center; }
.fx-404-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.fx-404-art { display: grid; place-items: center; }
.fx-404-num { display: inline-flex; align-items: center; gap: .05em; font-size: clamp(7rem, 20vw, 15rem); line-height: 1; font-weight: 700; letter-spacing: -.06em;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.25)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.fx-404-num b { display: inline-grid; place-items: center; width: .82em; height: .82em; margin: 0 .04em; border-radius: 50%; background: var(--fb-orange); box-shadow: 0 0 0 .08em rgba(255,70,0,.2), 0 30px 60px -20px rgba(255,70,0,.6);
  animation: fxSpin 6s var(--fb-ease) infinite; }
.fx-404-num b svg { width: 70%; height: 70%; fill: #fff; }
@keyframes fxSpin { 0%, 70% { transform: rotate(0); } 85% { transform: rotate(-20deg); } 100% { transform: rotate(0); } }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .fx-grid, .fx-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .fx-featured { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .fx-featured figure { aspect-ratio: auto; min-height: 100%; }
  .fx-featured-body { justify-content: center; }
  .fx-grid, .fx-tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-cta-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
  .fx-404-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
}
@media (max-width: 639px) {
  .fx-search button { padding: 0 1rem; }
  .fx-404-actions .fb-btn { width: 100%; }
  .fx-cta .fb-btn { width: 100%; justify-content: space-between; }
  .fx-404-art { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .fx-404-num b { animation: none; } }
