/* ¿Cuál me conviene? — capa compartida: filtro de precio doble, navegación con resaltado,
   movimiento, ticker de ahorros y botón de opiniones. Se carga en las tres páginas. */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --hdr: 0px;
}

/* ---------- Etiquetas del menú: sin mayúsculas forzadas ---------- */
.menu small.nw, .menu .mlink small, .menu .soon small { text-transform: none; letter-spacing: 0; font-size: 11px; }

/* ---------- 1. Filtro de precio con dos puntos en la misma línea ---------- */
.dualHead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.dualHead > div { display: flex; flex-direction: column; min-width: 0; }
.dualHead > .r { align-items: flex-end; text-align: right; }
.dualHead output, .dualHead #budgetOut, .dualHead #budgetMinOut { font-family: var(--f-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dual { position: relative; height: 44px; margin: 2px 0 4px; touch-action: none; }
.dualTrack { position: absolute; left: 11px; right: 11px; top: 50%; height: 8px; margin-top: -4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.dualTrack i { position: absolute; top: 0; bottom: 0; left: var(--a, 0%); right: calc(100% - var(--b, 100%)); border-radius: inherit; background: var(--accent); }
.dual input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; accent-color: var(--accent); }
.dual input[type=range]::-webkit-slider-runnable-track { background: none; border: 0; height: 100%; }
.dual input[type=range]::-moz-range-track { background: none; border: 0; }
.dual input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 26px; height: 26px; margin-top: 9px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 1px 4px rgba(13, 19, 48, .08); cursor: grab; transition: transform 150ms var(--ease-out); }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 1px 4px rgba(13, 19, 48, .08); cursor: grab; }
.dual input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
.dual input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--sale); outline-offset: 2px; }
.dual input[type=range]:focus-visible::-moz-range-thumb { outline: 3px solid var(--sale); outline-offset: 2px; }
.dual input[type=range]:focus { outline: none; }
.dual input.up { z-index: 2; }

/* ---------- 2. Ir a una sección: que no la tape la cabecera, y resaltarla ---------- */
section[id], main[id], [id="tienda"] { scroll-margin-top: calc(var(--hdr) + 16px); }
.flash { position: relative; }
.flash::after { content: ""; position: absolute; inset: -10px -12px; border-radius: 20px; pointer-events: none; box-shadow: 0 0 0 3px var(--sale), 0 0 0 9px rgba(255, 216, 77, .28); background: rgba(255, 216, 77, .08); animation: cmcFlash 300ms var(--ease-out) both; transition: opacity 300ms var(--ease-out); }
.flash.out::after { opacity: 0; }
@keyframes cmcFlash { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.nav button[aria-current="true"] { color: var(--sale); }

/* ---------- 8. Movimiento ---------- */
/* Botones: responden al toque */
.cta, .secBtn, .ghost, .bItem, .chip span, .lvl, .fb-open, .fb-vote button, .fb-send { transition: transform 150ms var(--ease-out); }
.cta:active, .secBtn:active, .ghost:active, .lvl:active, .fb-open:active, .fb-vote button:active, .fb-send:active { transform: scale(.97); }
.bItem:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .secBtn, .bItem, article.p { transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
  .secBtn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
  .bItem:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(13, 19, 48, .07); }
  article.p:hover { transform: translateY(-3px); box-shadow: 0 4px 18px rgba(13, 19, 48, .07); }
}

/* Puma: sin bucles infinitos (regla de movimiento). Entra una vez y la lupa reacciona al pasar el mouse. */
@media (prefers-reduced-motion: no-preference) {
  .heroIntro > * { animation: cmcRise 300ms var(--ease-out) both; }
  .heroIntro > *:nth-child(2) { animation-delay: 30ms; }
  .heroIntro > *:nth-child(3) { animation-delay: 60ms; }
  .heroIntro > *:nth-child(4) { animation-delay: 90ms; }
  .mascot.big { animation: cmcPop 300ms var(--ease-out) both; }
  .stag > * { animation: cmcRise 300ms var(--ease-out) both; }
  .stag > *:nth-child(2) { animation-delay: 30ms; }
  .stag > *:nth-child(3) { animation-delay: 60ms; }
  .stag > *:nth-child(4) { animation-delay: 90ms; }
  .mascot .glass { transform-box: view-box; transform-origin: 150px 210px; transition: transform 200ms var(--ease-out); }
  .mascot:hover .glass { transform: rotate(-6deg); }
}
@keyframes cmcRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cmcPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.mascot .shine { display: none; }

/* Ticker de ahorros del día (inicio) */
.ticker { --gap: 34px; overflow: hidden; background: var(--nav-bg); color: var(--nav-fg); border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.ticker[hidden] { display: none; }
.tickerIn { display: flex; align-items: center; gap: 14px; padding-block: 9px; }
.ticker .tlab { flex: none; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--sale); }
.ticker .tlab i { width: 8px; height: 8px; border-radius: 50%; background: #3BE08F; }
.tview { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.trail { display: flex; gap: var(--gap); width: max-content; }
.trail a { display: inline-flex; gap: 7px; align-items: baseline; white-space: nowrap; text-decoration: none; color: var(--nav-fg); }
.trail a b { color: #3BE08F; font-variant-numeric: tabular-nums; }
.trail a:hover span { text-decoration: underline; }
.trail a:focus-visible { outline: 2px solid var(--sale); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .trail { animation: cmcMarquee var(--dur, 40s) linear infinite; }
  .ticker:hover .trail, .ticker:focus-within .trail { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .tview { overflow-x: auto; } }
@keyframes cmcMarquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ---------- 9. Opiniones ---------- */
.fb-open { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 16px 10px 10px; background: var(--nav-bg); color: var(--nav-fg); font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 16px rgba(8, 12, 40, .08); }
.fb-open img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.fb-open:focus-visible { outline: 3px solid var(--sale); outline-offset: 3px; }
@media (max-width: 959px) { body:has(.jump[data-show="true"]) .fb-open { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 480px) { .fb-open .t { display: none; } .fb-open { padding: 8px; } }
.fb { position: fixed; z-index: 41; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 4px 24px rgba(8, 12, 40, .08); transform-origin: calc(100% - 40px) calc(100% - 20px); }
.fb[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .fb { animation: cmcPanel 200ms var(--ease-out); } }
@keyframes cmcPanel { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.fb h2 { font-size: 1.15rem; margin: 0 28px 4px 0; }
.fb p.sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.fb-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.fb-x:focus-visible, .fb textarea:focus-visible, .fb-send:focus-visible, .fb-vote button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-vote { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.fb-vote button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.fb-vote button svg { width: 26px; height: 26px; }
.fb-vote button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.fb label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.fb textarea { width: 100%; min-height: 92px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); }
.fb .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.fb .cnt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fb-send { border: 0; border-radius: 12px; padding: 11px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; cursor: pointer; }
.fb-send:disabled { opacity: .5; cursor: not-allowed; }
.fb .msg { margin-top: 10px; font-size: 14px; }
.fb .msg.err { color: #C62828; }
.fb .ok { text-align: center; padding: 10px 0 4px; }
.fb .ok svg { width: 72px; height: 72px; }
.fb .ok p { margin-top: 8px; }

/* ---------- Auditoría UX (15-10-2026): reglas de tipografía, toque y sombras ---------- */
/* Ningún texto bajo 12px */
.sugg .sgP small, .sugg .sgH, .bd, .oname small, .badge, .diff, .seen, .lbl.small, .figcap,
.menu small.nw, .menu .mlink small, .menu .soon small, .bItem .tag, .chan, .bm small, .br .val small { font-size: 12px; }
/* Peso máximo 700: la jerarquía la da el tamaño, no el grosor */
.logo, .sugg .sgP, .hero h1, .t4head h2, .medal, .t4s .t4price, .pickBar, .pumaTag, .award, #budgetOut, #budgetMinOut,
.price, .badge, .best .oprice, .ast, h2.sec, .legalBody h3, .menu small.nw, .menu .mlink small, .rowHead h2, .mini .mp,
.steps3 li::before, .colHead h3, .bItem .tag, .bItem .pr, .pickCard .t4price, .cmp td.win, .br .rk,
.dualHead output, .dualHead #budgetOut, .dualHead #budgetMinOut { font-weight: 700; }
/* Áreas de toque de al menos 44px */
.nav button, .menu .mlink, .menu button, .menu .soon { min-height: 44px; display: inline-flex; align-items: center; }
.ghost, .lvl, .cta { min-height: 44px; }
.chip { padding-block: 4px; }
.t4nav button, .fb-x { min-width: 44px; min-height: 44px; }
.faq details { padding-block: 0; }
.faq summary { padding-block: 12px; }
.faq details[open] { padding-bottom: 12px; }
.jump { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 16px rgba(8, 12, 40, .08); }
/* Botones de solo ícono: etiqueta visible al pasar el mouse o con el teclado */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; background: var(--nav-bg); color: var(--nav-fg); font-size: 12px; font-weight: 600; line-height: 1.4; padding: 4px 8px; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity 150ms var(--ease-out); z-index: 50; }
[data-tip]:focus-visible::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) { [data-tip]:hover::after { opacity: 1; } }
.mascot .glass { animation: none; }
.logo { min-height: 44px; }
.seg button, .sortBox select, select { min-height: 44px; }
summary { padding-block: 12px; }
.tickerIn { padding-block: 0; }
.trail a { min-height: 44px; align-items: center; }

/* ---------- Rediseño 15-10-2026: menos acento, sin píldoras en datos fijos, portada móvil más corta ---------- */
/* 1. El amarillo queda solo para la acción principal y el logo */
.promo { background: #070B22; color: var(--nav-muted); font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .08); }
/* 2. Datos fijos como texto simple, no como píldoras */
.menu small.nw, .menu .mlink small, .menu .soon small { background: none; color: var(--nav-muted); padding: 0; margin-left: 6px; font-weight: 500; }
.bItem .tag { background: none; color: var(--muted); padding: 0; border-radius: 0; font-weight: 600; font-size: 12px; }
.bd { background: none; color: var(--muted); padding: 0; border-radius: 0; font-weight: 600; }
.bd.cat { background: none; color: var(--ink); }
.bd.fit { background: var(--accent); color: var(--accent-ink); padding: 3px 8px; border-radius: 6px; }
/* 4. En el celular, la primera oferta aparece sin bajar */
@media (max-width: 559px) {
  .hero h1 { font-size: 1.75rem; line-height: 1.15; }
  .hero .lead { display: none; }
  .talk p + p + p { display: none; }
  .talk { font-size: 14px; padding: 12px 16px; }
  .heroBtns .cta + .cta { display: none; }
}
/* 5. Siluetas mientras cargan los precios */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skel { display: grid; gap: 8px; }
.skel i { display: block; height: 76px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) { .skel i { animation: cmcSkel 1s ease-in-out infinite alternate; } }
@keyframes cmcSkel { from { opacity: 1; } to { opacity: .55; } }
.chip small, .chips small { font-size: 12px; }

/* ---------- Puma nuevo (imágenes) ---------- */
img.mascot { height: auto; object-fit: contain; }
img.logoMark { border-radius: 50%; }
.pickBar img { width: 30px; height: 30px; flex: none; border-radius: 50%; }
.pumaTag img { width: 24px; height: 24px; flex: none; border-radius: 50%; }
.fb .ok img { display: block; margin: 0 auto; border-radius: 50%; }
@media (max-width: 559px) { img.mascot { max-height: 96px; width: auto; justify-self: center; } }

/* ---------- Rediseño 18-10-2026: fuentes propias, sin borde blanco y fotos reales de los equipos ---------- */
@font-face { font-family: 'Bricolage Grotesque'; src: url(/assets/fonts/bricolage.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url(/assets/fonts/dmsans.woff2) format('woff2'); font-weight: 100 1000; font-display: swap; }
html, body { margin: 0; }
/* La foto va siempre sobre fondo blanco (así vienen de las tiendas), también en modo oscuro */
img.foto { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.pv { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 14px 10px; }
.pv img.foto { max-width: 230px; margin-inline: auto; }
.pv .badges { position: relative; z-index: 1; }
.mini img.foto { border-radius: 10px; border: 1px solid var(--line); padding: 8px; }
.t4art img.foto { max-width: 190px; margin-inline: auto; border-radius: 12px; border: 1px solid var(--line); padding: 8px; }
.pickCard .pa img.foto { max-width: 120px !important; margin-inline: auto; border-radius: 12px; border: 1px solid var(--line); padding: 6px; }
.p .pv img.foto[style] { max-width: 230px !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pv { border-bottom-color: transparent; } }
.mini img.foto { max-width: none !important; }
footer.note { max-width: 1240px; margin-inline: auto; }
footer.note > * { max-width: 90ch; }
/* Título y foto de cada tarjeta llevan a la ficha del equipo */
.pvA { display: block; }
h3 .aFicha { text-decoration: none; color: inherit; }
h3 .aFicha:hover { text-decoration: underline; text-underline-offset: 3px; }

/* En teléfonos el botón de opiniones aparece recién al bajar, para no tapar precios de la primera pantalla */
@media (max-width: 719px) {
  .fb-open { opacity: 0; pointer-events: none; transform: translateY(12px); }
  html.cmc-baja .fb-open { opacity: 1; pointer-events: auto; transform: none; }
}
@media (max-width: 719px) and (prefers-reduced-motion: no-preference) { .fb-open { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); } }
@media (max-width: 640px) { .menu .soon { display: none; } }

/* =====================================================================================
   Rediseño 19-10-2026: un solo encabezado, portada corta, filtros en panel, tarjeta compacta,
   sello del puma y asistente "Ayúdame a elegir". Va al final para mandar sobre lo anterior.
   ===================================================================================== */
:root { --puma-y: #FFD84D; --puma-y-ink: #2A2100; }
.promo, .jump, .banner .mascot, .bubble { display: none !important; }

/* ---------- Encabezado único ---------- */
.hd { background: var(--nav-bg); color: var(--nav-fg); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hd-in { max-width: 1240px; margin-inline: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-block: 10px; }
.hd-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: #fff; font: 800 1.25rem/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.hd-logo img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.hd-logo span { color: var(--puma-y); }
.hd-logo em { font-style: normal; }
.hd .search { flex: 1 1 300px; max-width: 560px; position: relative; min-width: 0; }
.hd form.search { margin: 0; }
.hd .search input { width: 100%; font: inherit; font-size: 16px; border: 0; border-radius: 10px; padding: 11px 14px 11px 40px; background: #fff; color: #10152B; }
.hd .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: #566082; fill: none; stroke-width: 2; }
.hd .search input:focus-visible { outline: 3px solid var(--puma-y); outline-offset: 1px; }
/* 9 categorías (26-10-2026): fila propia bajo el logo y el buscador, se desliza de lado si no cabe */
.hd-cats { display: flex; gap: 2px; flex-basis: 100%; order: 3; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: -4px; }
.hd-cats::-webkit-scrollbar { display: none; }
.hd-cats a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--nav-muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.hd-cats a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hd-cats a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--puma-y); border-radius: 10px 10px 0 0; }
.hd-cats a:focus-visible, .hd-logo:focus-visible { outline: 3px solid var(--puma-y); outline-offset: 2px; }
.hd-cats .sm { display: none; }
@media (min-width: 720px) {  /* 14 categorías: en pantalla grande se ven todas, sin deslizar */
  .hd-cats { flex-wrap: wrap; overflow: visible; }
  .hd-cats a { padding: 0 9px; }
}
@media (max-width: 719px) {
  .hd-in { padding-block: 6px 0; gap: 6px 12px; }
  .hd .search { flex-basis: 100%; order: 2; max-width: none; }
  .hd-cats { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 24px; }  /* el borde difuminado avisa que hay más para deslizar */
  .hd-cats a { flex: none; padding: 0 10px; font-size: 14px; }
  .hd-cats .lg { display: none; }
  .hd-cats .sm { display: inline; }
}

/* ---------- Portada corta de cada categoría ---------- */
.hero3 { background: linear-gradient(120deg, #0D1330 0%, #1B2A78 100%); color: var(--nav-fg); padding-block: 22px 18px; }
.hero3 h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.45rem, 3.6vw, 2.3rem); line-height: 1.1; letter-spacing: -.025em; color: #fff; max-width: 26ch; margin: 0; }
.hero3-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.hero3-sub { color: var(--nav-muted); font-size: 15px; margin: 0; }
.guiaBtn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 18px 4px 4px; border: 0; border-radius: 999px; background: var(--puma-y); color: var(--puma-y-ink); font: 700 16px/1.2 var(--f-body); cursor: pointer; text-decoration: none; }
.guiaBtn img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.guiaBtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.atajos3 { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 14px; padding-bottom: 2px; overscroll-behavior-x: contain; }
.atajos3::-webkit-scrollbar { display: none; }
.atajos3 > * { flex: none; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 48px; padding: 6px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font: 600 14px/1.25 var(--f-body); cursor: pointer; text-decoration: none; text-align: left; }
.atajos3 > *:hover { background: rgba(255, 255, 255, .12); }
.atajos3 > *.on, .atajos3 > *[aria-current] { background: var(--puma-y); color: var(--puma-y-ink); border-color: var(--puma-y); }
.atajos3 > *.on small, .atajos3 > *[aria-current] small { color: var(--puma-y-ink); }
.atajos3 small { font-weight: 500; font-size: 12px; color: var(--nav-muted); }
@media (max-width: 559px) { .hero3 { padding-block: 16px 14px; } .hero3-sub { font-size: 14px; } }

/* ---------- Barra fija de filtros y orden ---------- */
.results > .bar, .astnote, .filt .modeHint:not(.keep), .sortBox { display: none !important; }
.fbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 8px; padding: 8px 0; margin-top: -8px; background: var(--bg); }
.fbar-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 15px/1 var(--f-body); cursor: pointer; flex: none; }
.fbar-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fbar-btn b { min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.fbar-btn b:empty { display: none; }
.fbar-n { flex: 1; min-width: 0; margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbar-n b { color: var(--ink); font: 700 1.05rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.fbar-orden select { min-height: 44px; max-width: 168px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 14px/1 var(--f-body); padding: 0 10px; }
.activos { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: -6px; }
.activos:empty { display: none; }
.activos::-webkit-scrollbar { display: none; }
.activos button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--ink); font: 600 13px/1 var(--f-body); cursor: pointer; }
.activos button::after { content: "✕"; font-size: 12px; opacity: .7; }
@media (min-width: 960px) {
  .fbar-btn { display: none; }
  .filt { top: 16px !important; max-height: calc(100dvh - 32px) !important; }
}

/* Panel de filtros: columna en el computador, pantalla completa en el celular */
.sheet-hd, .sheet-ft { display: none; }
.filt fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rangos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rangos button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--f-body); cursor: pointer; }
.rangos button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
details.otro { margin-top: 10px; }
details.otro > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); min-height: 40px; display: inline-flex; align-items: center; list-style: none; }
details.otro > summary::-webkit-details-marker { display: none; }
details.otro > summary::after { content: "▾"; margin-left: 6px; font-size: 12px; }
details.otro[open] > summary::after { content: "▴"; }
.masF { display: flex; align-items: center; gap: 6px; min-height: 44px; border: 0; background: none; color: var(--accent); font: 700 15px/1 var(--f-body); padding: 0; cursor: pointer; }
.masF::after { content: "▾"; font-size: 12px; }
.masF[aria-expanded="true"]::after { content: "▴"; }
@media (max-width: 959px) {
  .filt.sheet { position: fixed; inset: 0; z-index: 60; border-radius: 0; border: 0; padding: 0; gap: 0; display: none; overflow: hidden; max-height: none; background: var(--surface); }
  .filt.sheet.open { display: flex; }
  .filt.sheet > *:not(.sheet-hd):not(.sheet-ft) { padding-inline: 16px; }
  .filt.sheet .sheet-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; padding-block: 16px 24px; overscroll-behavior: contain; }
  .sheet-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
  .sheet-hd p { margin: 0; font: 700 1.15rem/1 var(--f-display); }
  .sheet-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 18px; cursor: pointer; }
  .sheet-ft { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
  .sheet-ft button { min-height: 48px; border-radius: 12px; font: 700 16px/1 var(--f-body); cursor: pointer; }
  .sheet-limpiar { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 18px; }
  .sheet-ver { border: 0; background: var(--puma-y); color: var(--puma-y-ink); }
  .filt.sheet #resetAll { display: none; }
  html.sheet-on, html.sheet-on body { overflow: hidden; }
}

/* ---------- Tarjeta compacta ---------- */
.grid.c3grid, #list.grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
article.c3 { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; color: var(--ink); }
article.c3.elegido { border: 2px solid var(--puma-y); }
.c3-foto { display: block; background: #fff; padding: 12px; border-bottom: 1px solid var(--line); }
.c3-foto img, .c3-foto svg { display: block; width: 100%; max-width: 200px !important; height: auto; aspect-ratio: 1 / 1; object-fit: contain; margin-inline: auto; }
.c3-info { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; min-width: 0; flex: 1; }
.c3-info h3 { font: 700 15px/1.3 var(--f-body); letter-spacing: 0; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c3-info h3 a { color: inherit; text-decoration: none; }
.c3-info h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.c3-spec { font-size: 13px; line-height: 1.4; color: var(--muted); margin: 0; }
.c3-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.c3-tags span { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.c3-tags span.ref { background: var(--puma-y); color: var(--puma-y-ink); }
.c3-tags span.g4 { background: none; border: 1px solid var(--line); color: var(--muted); }
.c3-precio { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 4px 0 0; }
.c3-precio .price { font: 700 1.5rem/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.pago { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); font: 600 12px/1 var(--f-body); color: var(--muted); white-space: nowrap; }
.c3-donde { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
.c3-donde .dot, .c3-tiendas .dot { width: 9px; height: 9px; border-radius: 3px; flex: none; display: inline-block; }
.pago.cup { border-color: var(--puma-y-ink); background: var(--puma-y); color: var(--puma-y-ink); }
.c3-cupon { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 13px; line-height: 1.3; color: var(--muted); }
.cupon { min-height: 32px; padding: 0 10px; border: 1.5px dashed var(--puma-y-ink); border-radius: 6px; background: var(--puma-y); color: var(--puma-y-ink); font: 700 13px/1 var(--f-body); letter-spacing: .02em; cursor: pointer; }
.cupon:focus-visible { outline: 3px solid var(--nav-bg, #0D1330); outline-offset: 2px; }
.c3-ahorro { margin: 0; font-weight: 700; font-size: 14px; color: var(--deal, var(--verde, #0B7F57)); }
.c3-acc { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.c3-ir { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--puma-y); color: var(--puma-y-ink) !important; font: 700 14px/1 var(--f-body); text-decoration: none; text-align: center; }
.c3-ir::after { content: "↗"; font-size: 13px; }
.c3-ver { flex: none; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--f-body); cursor: pointer; }
.c3-ver::after { content: " ▾"; font-size: 11px; }
.c3-ver[aria-expanded="true"]::after { content: " ▴"; }
.c3-tiendas { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.c3-tiendas li { border-bottom: 1px solid var(--line); }
.c3-tiendas a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; min-height: 44px; padding: 6px 2px; text-decoration: none; color: var(--ink); }
.c3-tiendas .oname { font-weight: 600; font-size: 14px; display: flex; flex-direction: column; min-width: 0; }
.c3-tiendas .oname small { font-weight: 500; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c3-tiendas .oprice { font: 700 15px/1.2 var(--f-display); font-variant-numeric: tabular-nums; text-align: right; }
.c3-tiendas .oprice small { display: block; font: 600 12px/1.2 var(--f-body); color: var(--mas, #C2410C); }
.c3-tiendas a.best .oprice { color: var(--deal, var(--verde, #0B7F57)); }
.c3-tiendas a:hover .oname { text-decoration: underline; }
.c3 .cmpBox { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.c3-aviso { margin: 0; font-size: 12px; color: var(--muted); }
/* Nota de potencia de 1 a 10 */
.nota { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.nota b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.nota-b { position: relative; width: 64px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.nota-b i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); }
/* En el celular: foto chica a la izquierda, tres equipos por pantalla */
@media (max-width: 559px) {
  #list.grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  article.c3 { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; }
  .c3-foto { border-bottom: 0; border-right: 1px solid var(--line); padding: 8px; height: 100%; display: flex; align-items: center; }
  .c3-foto img, .c3-foto svg { max-width: 88px !important; }
  .c3-info { padding: 10px 12px 12px; gap: 4px; }
  .c3-precio .price { font-size: 1.35rem; }
  .c3-tiendas { grid-column: 1 / -1; }
}

/* ---------- Sello del puma ---------- */
.sello { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: 100%; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--puma-y); color: var(--puma-y-ink); font: 700 13px/1.15 var(--f-body); }
.sello img { width: 26px; height: 26px; border-radius: 50%; flex: none; background: #fff; }
.sello small { display: block; font-weight: 600; font-size: 11.5px; opacity: .8; }
/* Sello "Mínimo histórico" (23-10-2026): mismo formato que el del puma, con los colores de la cabecera */
.minimo { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: 100%; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--nav-bg, #0D1330); color: var(--puma-y, #FFD84D); box-shadow: inset 0 0 0 1px rgba(255, 216, 77, .5); font: 700 13px/1.15 var(--f-body); }
.minimo img { width: 26px; height: 26px; border-radius: 50%; flex: none; background: #fff; }
.minimo small { display: block; font-weight: 600; font-size: 11.5px; color: var(--nav-fg, #F2F5FF); opacity: .85; }
.mejor > .minimo { margin-bottom: 10px; }

/* ---------- Estado vacío con el puma ---------- */
.empty { position: relative; padding-left: 96px !important; min-height: 120px; }
.empty::before { content: ""; position: absolute; left: 18px; top: 22px; width: 64px; height: 64px; border-radius: 50%; background: #fff url(/assets/puma-sello.webp) center / cover no-repeat; }

/* ---------- Fotos: cuadro gris mientras cargan ---------- */
img.foto { background: var(--surface-2); }
img.foto.ok { background: #fff; }
@media (prefers-reduced-motion: no-preference) { img.foto:not(.ok) { animation: cmcSkel 1s ease-in-out infinite alternate; } }

/* ---------- Asistente "Ayúdame a elegir" ---------- */
.guia { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; background: rgba(5, 8, 26, .55); padding: 0; }
.guia[hidden] { display: none; }
@media (min-width: 600px) { .guia { place-items: center; padding: 24px; } }
.guia-box { width: min(520px, 100%); max-height: 100dvh; overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 20px 20px 0 0; padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 24px rgba(5, 8, 26, .2); }
@media (min-width: 600px) { .guia-box { border-radius: 20px; padding: 18px 22px 22px; } }
@media (prefers-reduced-motion: no-preference) { .guia-box { animation: cmcPanel 220ms var(--ease-out); } }
.guia-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guia-paso { display: flex; gap: 6px; }
.guia-paso i { width: 22px; height: 6px; border-radius: 3px; background: var(--surface-2); }
.guia-paso i.on { background: var(--puma-y); }
.guia-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 18px; cursor: pointer; }
.guia-q { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; }
.guia-q img { width: 56px; height: 56px; border-radius: 50%; flex: none; background: #fff; }
.guia-q h2 { margin: 0; font: 700 1.25rem/1.2 var(--f-display); letter-spacing: -.01em; }
.guia-ops { display: grid; gap: 8px; }
.guia-ops button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 56px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 700 16px/1.25 var(--f-body); text-align: left; cursor: pointer; }
.guia-ops button small { font: 500 13px/1.3 var(--f-body); color: var(--muted); }
.guia-ops button:hover { border-color: var(--accent); }
.guia-ops button:focus-visible, .guia-x:focus-visible, .guia-pie button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.guia-pie { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.guia-pie button { min-height: 44px; border: 0; background: none; color: var(--accent); font: 700 15px/1 var(--f-body); cursor: pointer; padding: 0 4px; }

/* ---------- Opiniones: ícono de conversación en vez del puma ---------- */
.fb-open svg.ico { width: 22px; height: 22px; flex: none; margin-left: 4px; }
.filt .sheet-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 400px) { .fbar-n span { display: none; } }
.c3-ir:hover { filter: brightness(.96); }
.c3-ir:focus-visible, .c3-ver:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#hint:empty { display: none; }
/* Puntaje de benchmark en la tarjeta (19-10-2026, a pedido: el número real, no una nota de 1 a 10) */
.bmk { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.bmk-t { white-space: nowrap; }
.bmk .nota-b { width: auto; }
.bmk b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bmk + .bmk { margin-top: -2px; }

/* ---------- Guías del puma y lista completa escritas en el HTML (las arma herramientas/fichas.py) ---------- */
.indice { max-width: 1240px; margin: 36px auto 0; }
.idxT { font: 800 clamp(1.25rem, 2.2vw, 1.5rem)/1.2 var(--f-display); letter-spacing: -.02em; margin: 0 0 12px; }
.idxGuias { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.idxGuias a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color 150ms var(--ease-out); }
.idxGuias a:hover { border-color: var(--accent); }
.idxGuias img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.idxGuias span { display: flex; flex-direction: column; min-width: 0; }
.idxGuias strong { font-weight: 700; }
.idxGuias small { font-size: 13px; color: var(--muted); }
.idxTodos { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.idxTodos summary { cursor: pointer; padding: 14px 16px; font-weight: 600; }
.idxLista { list-style: none; margin: 0; padding: 0 16px 16px; column-gap: 32px; font-size: 14px; }
@media (min-width: 720px) { .idxLista { columns: 2; } }
@media (min-width: 1080px) { .idxLista { columns: 3; } }
.idxLista li { break-inside: avoid; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.idxLista a { color: var(--ink); text-decoration: none; min-width: 0; }
.idxLista a:hover { text-decoration: underline; }
.idxLista span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.guiasH { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.guiaC { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; color: var(--ink); transition: border-color 150ms var(--ease-out), transform 150ms var(--ease-out); }
@media (min-width: 720px) { .guiaC { grid-template-columns: 148px minmax(0, 1fr); gap: 22px; padding: 20px; } }
.guiaC:hover { border-color: var(--accent); }
.guiaC:active { transform: scale(.99); }
.guiaF { aspect-ratio: 1 / 1; background: #fff; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.guiaF img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.guiaT { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.guiaT small { font-size: 13px; font-weight: 600; color: var(--muted); }
.guiaT strong { font: 800 clamp(1.15rem, 2vw, 1.4rem)/1.2 var(--f-display); letter-spacing: -.02em; }
.guiaT > span { font-size: 15px; color: var(--muted); }
.guiaT b { margin-top: 4px; color: var(--accent); font-weight: 700; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .guiaC, .idxGuias a { transition: none; } .guiaC:active { transform: none; } }
