/* Portada y hub «tools-first»: herramientas calientes en la vista primaria, filtro por perfil, insignias y UI tipo SaaS.
   Solo CSS local (sin librerías). Tres temas del ecosistema vía [data-eco-theme]; movimiento solo si el usuario no pide reducirlo. */
.tf { --tf-bg:#0b1220; --tf-card:#101a2e; --tf-card2:#0d1626; --tf-ink:#f1f5fb; --tf-ink2:#b4c2d6; --tf-line:rgba(255,255,255,.14); --tf-line2:rgba(255,255,255,.26);
  --tf-accent:#e3c15a; --tf-accent-ink:#1a1405; --tf-cyan:#4fd8e6; --tf-glow:rgba(227,193,90,.22);
  --tf-sh1:0 1px 1px rgba(0,0,0,.35); --tf-sh2:0 6px 14px -6px rgba(0,0,0,.55); --tf-sh3:0 24px 48px -24px rgba(0,0,0,.65);
  --tf-focus:#ffffff; color:var(--tf-ink); font-family:var(--pw-sans); }
[data-eco-theme="neon"] .tf { --tf-bg:#02030a; --tf-card:#050a18; --tf-card2:#07102a; --tf-ink:#f4fbff; --tf-ink2:#a8dcea; --tf-line:rgba(34,230,255,.28); --tf-line2:rgba(34,230,255,.55);
  --tf-accent:#22e6ff; --tf-accent-ink:#00131a; --tf-cyan:#22e6ff; --tf-glow:rgba(34,230,255,.3); }
[data-eco-theme="light"] .tf { --tf-bg:#f7f8f5; --tf-card:#ffffff; --tf-card2:#fafbf8; --tf-ink:#17211d; --tf-ink2:#4a5550; --tf-line:rgba(23,33,29,.14); --tf-line2:rgba(23,33,29,.3);
  --tf-accent:#0e5a4e; --tf-accent-ink:#ffffff; --tf-cyan:#2d5a7b; --tf-glow:rgba(14,90,78,.14); --tf-focus:#17211d;
  --tf-sh1:0 1px 1px rgba(23,33,29,.06); --tf-sh2:0 8px 18px -10px rgba(23,33,29,.28); --tf-sh3:0 26px 50px -28px rgba(23,33,29,.35); }

/* ---------- bloque de la portada ---------- */
.tf-home { padding:34px 0 22px; background:radial-gradient(900px 340px at 50% -60px, var(--tf-glow), transparent 70%); }
.tf-in { max-width:1180px; margin:0 auto; padding:0 20px; }
.tf-eyebrow { display:inline-flex; align-items:center; gap:8px; font:700 12px/1 var(--pw-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--tf-accent); }
.tf-h1 { margin:10px 0 8px; font-size:clamp(28px,4.6vw,46px); line-height:1.08; font-weight:800; letter-spacing:-.02em; color:var(--tf-ink); }
.tf-h1 em { font-style:normal; background:linear-gradient(120deg,var(--tf-accent),var(--tf-cyan)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.tf-lead { max-width:680px; margin:0 0 18px; color:var(--tf-ink2); font-size:clamp(15px,1.7vw,17.5px); line-height:1.6; }
.tf-top { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:14px; }

/* filtro rápido por perfil */
.tf-filter { display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
.tf-chip { min-height:44px; padding:0 16px; border-radius:999px; border:1px solid var(--tf-line2); background:var(--tf-card2); color:var(--tf-ink); font:650 14px var(--pw-sans); cursor:pointer; box-shadow:var(--tf-sh1); transition:background-color .18s, border-color .18s, transform .18s, box-shadow .18s; }
.tf-chip:hover { border-color:var(--tf-accent); transform:translateY(-1px); box-shadow:var(--tf-sh2); }
.tf-chip[aria-pressed="true"] { background:var(--tf-accent); color:var(--tf-accent-ink); border-color:var(--tf-accent); }
.tf a:focus-visible, .tf button:focus-visible { outline:3px solid var(--tf-focus); outline-offset:3px; border-radius:12px; }

/* tarjetas: rejilla equilibrada 3x2 en escritorio (elimina fila huérfana 5+1) */
.tf-grid { display:grid; gap:18px; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; padding:0; list-style:none; perspective:1000px; }
@media (max-width:960px) { .tf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.tf-grid > li { display:flex; }
.tf [hidden], .tf-grid > li[hidden] { display:none !important; }
.tf-card { position:relative; display:flex; flex-direction:column; gap:10px; width:100%; padding:22px 20px 20px; border-radius:20px; text-decoration:none; color:var(--tf-ink) !important;
  background:linear-gradient(180deg,var(--tf-card),var(--tf-card2)); border:1px solid var(--tf-line); box-shadow:var(--tf-sh1), var(--tf-sh2), var(--tf-sh3);
  transform:translate3d(0,0,0) rotateX(var(--tf-rx,0deg)) rotateY(var(--tf-ry,0deg)); transform-style:preserve-3d;
  transition:transform .24s cubic-bezier(.2,.7,.2,1), border-color .22s, box-shadow .24s; overflow:hidden; }
.tf-card-pro { border-color:rgba(227,193,90,.55); background:linear-gradient(165deg,rgba(227,193,90,.12),var(--tf-card) 42%,var(--tf-card2)); box-shadow:0 0 0 1px rgba(227,193,90,.18), var(--tf-sh2), var(--tf-sh3); }
[data-eco-theme="light"] .tf-card-pro { border-color:rgba(14,90,78,.55); background:linear-gradient(165deg,#f3f8f6,#ffffff 55%); }
.tf-card::before { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity .25s;
  background:radial-gradient(280px 180px at var(--tf-mx,50%) var(--tf-my,0%), var(--tf-glow), transparent 72%); }
.tf-card:hover { border-color:var(--tf-accent); transform:translate3d(0,-5px,0) rotateX(var(--tf-rx,0deg)) rotateY(var(--tf-ry,0deg)); box-shadow:0 18px 38px -18px var(--tf-glow), var(--tf-sh3); }
.tf-card:hover::before, .tf-card:focus-visible::before { opacity:1; }
.tf-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.tf-ic { width:46px; height:46px; flex:none; display:grid; place-items:center; font-size:22px; color:var(--tf-accent); border-radius:14px; background:linear-gradient(135deg,var(--tf-glow),rgba(79,216,230,.08)); border:1px solid var(--tf-line2); transition:transform .22s cubic-bezier(.2,.7,.2,1), border-color .2s; }
.tf-ic svg { width:22px; height:22px; }
.tf-card:hover .tf-ic { transform:scale(1.06); border-color:var(--tf-accent); }
.tf-card h2 { margin:2px 0 0; font-size:17.5px; line-height:1.25; font-weight:750; letter-spacing:-.01em; color:var(--tf-ink); }
.tf-card p { margin:0; color:var(--tf-ink2); font-size:14.2px; line-height:1.52; }
.tf-go { margin-top:auto; padding-top:4px; display:inline-flex; align-items:center; gap:6px; font:700 14px var(--pw-sans); color:var(--tf-accent); }
.tf-go::after { content:"→"; transition:transform .2s; } .tf-card:hover .tf-go::after { transform:translateX(5px); }
.tf-badges { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px; min-height:24px; }
.tf-b { display:inline-flex; align-items:center; height:24px; padding:0 8px; border-radius:999px; font:750 10.5px/1 var(--pw-sans); letter-spacing:.04em; text-transform:uppercase; border:1px solid transparent; }
.tf-b-popular { background:#4a3a05; color:#ffe9a3; border-color:#b8952e; }
.tf-b-nuevo { background:#06323a; color:#9ff3ff; border-color:#1f9fb3; }
.tf-b-local { background:#0a3a22; color:#a8f5c8; border-color:#1f9a62; }
.tf-b-pro { background:linear-gradient(135deg,#f3d87c,#c99a24); color:#1a1405; border-color:#ffe9a3; }
[data-eco-theme="light"] .tf-b-popular { background:#e3efea; color:#0a4339; border-color:#0e5a4e; }
[data-eco-theme="light"] .tf-b-nuevo { background:#e8eff5; color:#1d3d55; border-color:#2d5a7b; }
[data-eco-theme="light"] .tf-b-local { background:#e9f2e6; color:#1f4a24; border-color:#2e6b34; }
[data-eco-theme="light"] .tf-b-pro { background:#0e5a4e; color:#ffffff; border-color:#0a4339; }
.tf-more { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:22px; }
.tf-btn { position:relative; overflow:hidden; display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 24px; border-radius:14px; font:750 15px var(--pw-sans); text-decoration:none;
  background:linear-gradient(135deg,#f3d87c 0%,#e3c15a 55%,#4fd8e6 135%); color:#141004 !important; box-shadow:0 10px 26px -10px var(--tf-glow), var(--tf-sh2); transition:transform .18s, box-shadow .18s, filter .18s; }
.tf-btn::after { content:""; position:absolute; top:0; left:-75%; width:50%; height:100%; background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent); transform:skewX(-20deg); transition:left .55s ease; pointer-events:none; }
.tf-btn:hover { transform:translateY(-2px); filter:brightness(1.04); box-shadow:0 16px 32px -12px var(--tf-glow), var(--tf-sh3); }
.tf-btn:hover::after { left:135%; }
.tf-btn:active { transform:translateY(0) scale(.985); }
.tf-ghost { display:inline-flex; align-items:center; min-height:48px; padding:0 20px; border-radius:14px; border:1px solid var(--tf-line2); color:var(--tf-ink) !important; text-decoration:none; font:650 15px var(--pw-sans); background:var(--tf-card2); transition:border-color .18s, transform .18s, background-color .18s; }
.tf-ghost:hover { border-color:var(--tf-accent); transform:translateY(-1px); }
.tf-trustbar { display:flex; flex-wrap:wrap; gap:10px 22px; margin:16px 0 0; padding:12px 16px; list-style:none; border-radius:14px; border:1px solid var(--tf-line); background:rgba(255,255,255,.025); font-size:13px; color:var(--tf-ink2); }
[data-eco-theme="light"] .tf-trustbar { background:rgba(23,33,29,.03); }
.tf-trustbar li { display:inline-flex; align-items:center; gap:7px; font-weight:500; }
.tf-trustbar svg { width:16px; height:16px; color:var(--tf-cyan); flex:none; }
.tf-empty { color:var(--tf-ink2); font-size:15px; margin:14px 0 0; }
.tf-note { margin:14px 0 0; color:var(--tf-ink2); font-size:13.5px; }

/* separador de la oferta secundaria (servicios) */
.tf-second { border-top:1px solid var(--tf-line); }

/* hub: tarjetas de la lista completa con insignias */
.tl-tool .tf-badges { margin-bottom:2px; justify-content:flex-start; }

/* animación de entrada escalonada (solo si no se pide reducir movimiento) */
@media (prefers-reduced-motion:no-preference) {
  .tf-grid > li { animation:tf-rise .52s cubic-bezier(.2,.7,.2,1) both; }
  .tf-grid > li:nth-child(2) { animation-delay:.05s; } .tf-grid > li:nth-child(3) { animation-delay:.1s; }
  .tf-grid > li:nth-child(4) { animation-delay:.15s; } .tf-grid > li:nth-child(5) { animation-delay:.2s; }
  .tf-grid > li:nth-child(6) { animation-delay:.25s; }
  @keyframes tf-rise { from { opacity:0; transform:translate3d(0,14px,0); } to { opacity:1; transform:none; } }
}
@media (prefers-reduced-motion:reduce) {
  .tf-card, .tf-card:hover, .tf-btn, .tf-btn:hover, .tf-chip, .tf-chip:hover { transform:none !important; transition:none !important; }
  .tf-card::before { transition:none; } .tf-go::after, .tf-card:hover .tf-go::after { transition:none; transform:none; }
}
@media (max-width:640px) {
  .tf-home { padding:22px 0 14px; } .tf-in { padding:0 14px; }
  .tf-grid { grid-template-columns:1fr; } .tf-btn, .tf-ghost { width:100%; justify-content:center; }
  .tf-filter { gap:6px; } .tf-chip { padding:0 13px; }
}
