/* Don Baratito — un sitio, cinco cuartos. Cada .t-* redefine el mundo completo. */

/* Portada y "Todo": póster de ofertas (papel crema, negro y rojo, letra condensada). */
.t-base {
  --bg: #f2efe8; --surface: #fbfaf6; --ink: #111111; --muted: #57544e;
  --accent: #ff3b30; --accent-ink: #ffffff; --accent-2: #ff3b30; --line: #d9d4c8;
  --head: "Anton", Impact, sans-serif; --body: "Space Grotesk", system-ui, sans-serif;
  --radius: 0px; --head-weight: 400; --head-case: uppercase; --head-track: 0.01em;
}
.t-ropa {
  --bg: #f6f1e7; --surface: #fffaf2; --ink: #1f2a44; --muted: #5a6275;
  --accent: #b8322a; --accent-ink: #ffffff; --accent-2: #1f3b63; --line: #e4d9c6;
  --head: "Playfair Display", Georgia, serif; --body: "Inter", system-ui, sans-serif;
  --radius: 4px; --head-weight: 900; --head-case: none; --head-track: -0.01em;
}
.t-casa {
  --bg: #fbf7f0; --surface: #ffffff; --ink: #2a2622; --muted: #6b625a;
  --accent: #1f4e9c; --accent-ink: #ffffff; --accent-2: #c4552d; --line: #eadfd2;
  --head: "Young Serif", Georgia, serif; --body: "Nunito", system-ui, sans-serif;
  --radius: 24px; --head-weight: 400; --head-case: none; --head-track: 0;
}
.t-tech {
  --bg: #0d0d1a; --surface: #16162a; --ink: #e8e8ff; --muted: #a3a3c7;
  --accent: #39f5ff; --accent-ink: #0d0d1a; --accent-2: #ff2d95; --line: #2c2c4a;
  --head: "Press Start 2P", monospace; --body: "Space Grotesk", system-ui, sans-serif;
  --radius: 6px; --head-weight: 400; --head-case: none; --head-track: 0;
}
.t-taller {
  --bg: #ecebe6; --surface: #ffffff; --ink: #1d1d1d; --muted: #55524b;
  --accent: #ffc72c; --accent-ink: #1d1d1d; --accent-2: #ff7a1a; --line: #d6d3ca;
  --head: "Bebas Neue", Impact, sans-serif; --body: "Barlow", system-ui, sans-serif;
  --radius: 2px; --head-weight: 400; --head-case: uppercase; --head-track: 0.03em;
}

.t-panteon {
  --bg: #1b1026; --surface: #261735; --ink: #f5ead7; --muted: #c9b8d8;
  --accent: #ff9f1c; --accent-ink: #1b1026; --accent-2: #e83f6f; --line: #3a2650;
  --head: "Cinzel Decorative", Georgia, serif; --body: "Inter", system-ui, sans-serif;
  --radius: 14px; --head-weight: 900; --head-case: none; --head-track: 0;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
h1, h2 {
  font-family: var(--head); font-weight: var(--head-weight);
  text-transform: var(--head-case); letter-spacing: var(--head-track); line-height: 1.08;
}
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.saltar { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 50; }
.saltar:focus { left: 8px; }
.envoltura { max-width: 1840px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }

/* ---------- cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.franja { background: var(--ink); color: var(--bg); font-size: 0.8rem; font-family: "Inter", system-ui, sans-serif; }
.franja-fila { padding-top: 6px; padding-bottom: 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.franja strong { color: var(--accent-2); font-weight: 700; }
.t-tech .franja strong { color: var(--accent); }
.t-taller .franja strong { color: var(--accent); }

.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-marco {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none;
  background: color-mix(in srgb, var(--accent-2) 18%, var(--surface)); border: 2px solid var(--ink);
}
.logo-mascota { width: 64px; height: 77px; margin: -4px 0 0 -9px; }
.logo-texto { font-family: var(--head); font-weight: var(--head-weight); font-size: 1.3rem; line-height: 1; text-transform: var(--head-case); letter-spacing: var(--head-track); }
.t-tech .logo-texto { font-size: 0.78rem; line-height: 1.3; }
.t-taller .logo-texto { font-size: 1.6rem; }
.logo-texto small { display: block; margin-top: 3px; font-family: "Inter", system-ui, sans-serif; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }

.menu { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu-link {
  --c: var(--ink);
  flex: none; display: flex; align-items: center; gap: 7px; position: relative;
  padding: 10px 12px; text-decoration: none; color: var(--muted);
  font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 0.92rem;
  border-radius: 10px; transition: color .15s ease, background .15s ease;
}
.menu-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px;
  background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.menu-link:hover { color: var(--ink); background: color-mix(in srgb, var(--c) 8%, transparent); }
.menu-link:hover::after { transform: scaleX(0.5); }
.menu-link[aria-current="page"] { color: var(--ink); }
.menu-link[aria-current="page"]::after { transform: scaleX(1); }
.menu-link .icono { width: 19px; height: 19px; color: var(--c); flex: none; }
.m-base { --c: #2f6b55; } .m-ropa { --c: #b8322a; } .m-casa { --c: #1f4e9c; }
.m-tech { --c: #7b2cbf; } .m-taller { --c: #e0a800; }
.t-tech .m-tech, .t-tech .m-base { --c: #39f5ff; }
.t-tech .m-ropa { --c: #ff6b6b; } .t-tech .m-casa { --c: #6ea8ff; }
.t-taller .m-taller { --c: #1d1d1d; }
.m-todas { --c: #2f6b55; } .m-panteon { --c: #e83f6f; }
.t-tech .m-todas { --c: #39f5ff; }
.t-panteon .m-panteon { --c: #ff9f1c; } .t-panteon .m-todas { --c: #9be7c4; }
.t-panteon .m-ropa { --c: #ff8a80; } .t-panteon .m-casa { --c: #8ab4ff; } .t-panteon .m-tech { --c: #c39bff; }

/* ---------- héroe ---------- */
.heroe { position: relative; overflow: hidden; padding: 56px 0 48px; }
.heroe-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 32px; align-items: center; }
.antetitulo { margin: 0 0 10px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-2); }
.heroe h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
.t-tech .heroe h1 { font-size: clamp(1.15rem, 3.4vw, 2.2rem); line-height: 1.45; }
.t-taller .heroe h1 { font-size: clamp(2.8rem, 7vw, 5rem); line-height: 0.95; }
.entrada { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin: 16px 0 0; }
.heroe-acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.heroe-figura { margin: 0; display: flex; flex-direction: column; align-items: center; }
.heroe-mascota { width: min(300px, 80%); height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.12)); }
.burbuja {
  position: relative; margin: 0 0 14px; padding: 12px 16px; max-width: 280px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.35;
}
.burbuja::after {
  content: ""; position: absolute; left: 50%; bottom: -12px; width: 20px; height: 20px;
  background: var(--surface); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 700; padding: 12px 20px; border-radius: min(var(--radius), 12px);
  border: 2px solid var(--accent); transition: transform .15s ease, box-shadow .15s ease;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -1px color-mix(in srgb, var(--accent) 45%, transparent); }
.boton-fantasma { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ---------- bloques ---------- */
.bloque { padding: 40px 0; }
.bloque-titulo { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.bloque h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.t-tech .bloque h2 { font-size: clamp(0.95rem, 2.2vw, 1.3rem); line-height: 1.5; }
.bloque-sub { margin: -8px 0 20px; color: var(--muted); }

/* ---------- tarjetas ---------- */
.tarjeta {
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -16px rgba(0,0,0,.25);
}
.tarjeta-img { position: relative; display: block; aspect-ratio: 1; background: #ffffff; }
.tarjeta-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .25s ease; }
.tarjeta:hover .tarjeta-img img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-2); color: #fff; font-weight: 800; font-size: 0.85rem; font-family: "Inter", sans-serif;
}
.tarjeta-cuerpo { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.tarjeta h3 { font-size: 1rem; line-height: 1.3; font-weight: 700; }
.precio { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.precio s { color: var(--muted); font-size: 0.9rem; }
.precio strong { font-family: var(--head); font-size: 1.5rem; font-weight: var(--head-weight); }
.t-tech .precio strong { font-size: 1rem; color: var(--accent); }
.t-taller .precio strong { font-size: 2rem; }
.dice {
  margin: 0; padding: 8px 10px; font-size: 0.9rem; line-height: 1.4;
  background: color-mix(in srgb, var(--accent-2) 9%, var(--surface));
  border-left: 3px solid var(--accent-2); border-radius: 0 8px 8px 0;
}
.dice span { font-weight: 800; }
.tarjeta .boton { margin-top: auto; width: 100%; font-size: 0.95rem; }
.visto { margin: 0; font-size: 0.75rem; color: var(--muted); text-align: center; }
.chip {
  align-self: flex-start; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px; color: #fff; font-family: "Inter", sans-serif;
}
.chip-ropa { background: #b8322a; } .chip-casa { background: #1f4e9c; }
.chip-tech { background: #7b2cbf; } .chip-taller { background: #ffc72c; color: #1d1d1d; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

/* ---------- carrusel ---------- */
.carrusel {
  list-style: none; margin: 0; padding: 4px 2px 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 270px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin;
}
.slide { scroll-snap-align: start; }
.carrusel-botones { display: flex; gap: 8px; }
.flecha {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink);
}
.flecha:hover { background: var(--ink); color: var(--bg); }

/* ---------- preciazo ---------- */
.preciazo { background: var(--accent); color: var(--accent-ink); }
.preciazo-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: 32px; align-items: center; }
.preciazo .antetitulo { color: #ffd9b8; }
.preciazo-cifra { font-size: 1.2rem; margin: 12px 0 4px; }
.preciazo-cifra s { opacity: .7; }
.preciazo-cifra strong { font-family: var(--head); font-size: 3rem; font-weight: 800; }
.preciazo .boton { background: var(--accent-2); border-color: var(--accent-2); color: #fff; margin-top: 12px; }
.preciazo-img { position: relative; display: block; background: #fff; border-radius: var(--radius); aspect-ratio: 1; max-width: 380px; justify-self: center; width: 100%; }
.preciazo-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.sello {
  position: absolute; top: -14px; right: -14px; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; transform: rotate(-12deg);
  background: var(--accent-2); color: #fff; font-weight: 900; font-size: 1.5rem;
  border: 4px dashed #fff; box-shadow: 0 0 0 4px var(--accent-2);
}

/* ---------- puertas (cada una lleva su propio tema) ---------- */
.puertas { display: flex; flex-wrap: wrap; gap: 16px; }
.puerta {
  flex: 1 1 250px;
  display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center;
  padding: 16px; text-decoration: none; background: var(--bg); color: var(--ink);
  font-family: var(--body); border: 2px solid var(--line); border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease; position: relative; overflow: hidden;
}
.puerta:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: 0 14px 30px -18px rgba(0,0,0,.45); }
.puerta-mascota { width: 92px; height: 110px; }
.puerta-texto { display: flex; flex-direction: column; gap: 4px; }
.puerta strong { font-family: var(--head); font-weight: var(--head-weight); text-transform: var(--head-case); font-size: 1.2rem; line-height: 1.15; letter-spacing: var(--head-track); }
.puerta.t-tech strong { font-size: 0.72rem; line-height: 1.6; }
.puerta.t-taller strong { font-size: 1.6rem; }
.puerta em { font-style: normal; color: var(--muted); font-size: 0.88rem; line-height: 1.35; }
.puerta-cta { font-weight: 800; color: var(--accent); font-size: 0.9rem; }
.puerta.t-taller .puerta-cta { color: var(--accent-2); }

/* ---------- así caza ---------- */
.pasos { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pasos li {
  counter-increment: paso; position: relative; padding: 52px 18px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.pasos li::before {
  content: counter(paso); position: absolute; top: 14px; left: 18px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800;
}
.pasos strong { display: block; margin-bottom: 4px; }
.contador { margin: 22px 0 0; font-size: 1.05rem; }
.contador span { font-family: var(--head); font-size: 2.2rem; font-weight: 800; color: var(--accent-2); margin-right: 6px; vertical-align: -4px; }

/* ---------- pie ---------- */
.pie { background: var(--ink); color: var(--bg); padding: 40px 0; margin-top: 24px; font-size: 0.9rem; }
.pie-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; }
.pie-marca { display: flex; gap: 14px; align-items: center; }
.pie-mascota { width: 64px; height: 77px; flex: none; }
.pie p { margin: 0 0 10px; }
.pie-chico { opacity: .7; font-size: 0.8rem; }

/* ================= ambientación por cuarto ================= */

/* Inicio: el despacho del cazador */
.t-base .heroe { background: var(--bg); }

/* Ropero: tejido de suéter y nieve */
.t-ropa .heroe {
  background:
    repeating-linear-gradient(45deg, rgba(31,59,99,.05) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(-45deg, rgba(184,50,42,.05) 0 8px, transparent 8px 16px),
    var(--bg);
  border-bottom: 10px solid var(--accent);
  box-shadow: inset 0 -16px 0 -10px #f3efe6;
}
.t-ropa .heroe::before {
  content: ""; position: absolute; inset: -100px 0 0; pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 20px 30px, #9fb0cc 50%, transparent 52%),
    radial-gradient(2px 2px at 80px 90px, #9fb0cc 50%, transparent 52%),
    radial-gradient(3px 3px at 140px 40px, #9fb0cc 50%, transparent 52%),
    radial-gradient(2px 2px at 190px 120px, #9fb0cc 50%, transparent 52%);
  background-size: 220px 160px; opacity: .8;
  animation: nieve 14s linear infinite;
}
@keyframes nieve { to { transform: translateY(160px); } }
.t-ropa .tarjeta { border-top: 4px solid var(--accent); }
.t-ropa .badge { border-radius: 2px; background: var(--accent); }

/* Casa: azulejo de talavera */
.t-casa .heroe {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Crect width='56' height='56' fill='%23fbf7f0'/%3E%3Cpath d='M28 6 L34 22 L50 28 L34 34 L28 50 L22 34 L6 28 L22 22 Z' fill='none' stroke='%231f4e9c' stroke-opacity='.18' stroke-width='2'/%3E%3Ccircle cx='28' cy='28' r='5' fill='%23c4552d' fill-opacity='.18'/%3E%3Cpath d='M0 0 Q8 8 0 16 M56 0 Q48 8 56 16 M0 56 Q8 48 0 40 M56 56 Q48 48 56 40' fill='none' stroke='%231f4e9c' stroke-opacity='.15' stroke-width='2'/%3E%3C/svg%3E");
}
.t-casa .heroe::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 28px, #ffffff 28px 34px, var(--accent-2) 34px 62px, #ffffff 62px 68px);
}
.t-casa .burbuja { border-color: var(--accent); }
.t-casa .tarjeta-img { margin: 10px 10px 0; border-radius: calc(var(--radius) - 8px); overflow: hidden; }

/* Cueva tech: neón, cuadrícula y scanlines */
.t-tech .heroe {
  background:
    linear-gradient(rgba(255,45,149,.13) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(57,245,255,.10) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(50% 70% at 80% 40%, rgba(123,44,191,.45), transparent 70%),
    var(--bg);
}
.t-tech .heroe::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 2px, transparent 2px 4px);
}
.t-tech .heroe h1 { text-shadow: 0 0 12px rgba(57,245,255,.6), 3px 3px 0 var(--accent-2); }
.t-tech .burbuja { background: #0d0d1a; color: var(--accent); border-color: var(--accent); font-family: var(--body); box-shadow: 0 0 18px rgba(57,245,255,.35); }
.t-tech .burbuja::after { background: #0d0d1a; border-color: var(--accent); }
.t-tech .heroe-mascota { filter: drop-shadow(0 0 22px rgba(255,45,149,.55)); }
.t-tech .tarjeta { box-shadow: none; }
.t-tech .tarjeta:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(57,245,255,.25); }
.t-tech .dice { background: rgba(255,45,149,.10); }
.t-tech .cabecera { background: rgba(13,13,26,.85); }
.t-tech .flecha:hover, .t-tech .boton-fantasma { border-color: var(--accent); }

/* Taller: plano azul y cinta de precaución */
.t-taller .heroe {
  color: #ffffff;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 28px 28px,
    #1d3557;
  border-bottom: 16px solid transparent;
  border-image: repeating-linear-gradient(45deg, #ffc72c 0 18px, #1d1d1d 18px 36px) 16;
}
.t-taller .heroe .entrada { color: #c9d6e6; }
.t-taller .heroe .antetitulo { color: var(--accent); }
.t-taller .tarjeta { border: 2px solid var(--ink); }
.t-taller .tarjeta-cuerpo { border-top: 6px solid transparent; border-image: repeating-linear-gradient(45deg, #ffc72c 0 10px, #1d1d1d 10px 20px) 6; }
.t-taller .badge { border-radius: 0; background: var(--ink); color: var(--accent); }
.t-taller .boton { border-color: var(--ink); }

/* ---------- móvil ---------- */
@media (max-width: 800px) {
  .heroe { padding: 32px 0; }
  .heroe-grid, .preciazo-grid, .pie-grid { grid-template-columns: 1fr; }
  .heroe-figura { order: -1; }
  .heroe-mascota { width: 170px; }
  .pasos { grid-template-columns: 1fr; }
  .cabecera-fila { flex-direction: column; align-items: stretch; gap: 2px; padding-top: 10px; }
  .logo { justify-content: center; }
  .menu {
    margin: 0 -16px; padding: 0 16px;
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
  }
  .menu-link { flex-direction: column; gap: 3px; padding: 8px 10px 10px; font-size: 0.75rem; }
  .menu-link .icono { width: 22px; height: 22px; }
  .franja { font-size: 0.72rem; }
  .sello { right: 4px; top: -10px; width: 76px; height: 76px; font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ================= votos, estados y filtros ================= */

.votos { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; border-top: 1px dashed var(--line); }
.voto-fila { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.voto-pregunta { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-right: auto; }
.voto-fila button {
  font: 600 0.78rem/1 "Inter", system-ui, sans-serif; padding: 6px 9px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid var(--line); transition: background .15s ease, border-color .15s ease;
}
.voto-fila button:hover { border-color: var(--ink); }
.voto-fila button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.voto-fila b { font-weight: 800; margin-left: 2px; }
.voto-fila b:empty { display: none; }
.voto-resumen { margin: 0; font-size: 0.78rem; color: var(--muted); min-height: 0; }
.voto-resumen:empty { display: none; }

.precio-panteon, .no-recomienda { display: none; margin: 0; font-size: 0.88rem; }
.tarjeta.vencida .precio { display: none; }
.tarjeta.vencida .precio-panteon { display: block; color: var(--muted); }
.tarjeta.vencida .precio-panteon strong { color: var(--ink); }
.tarjeta.vencida [data-tipo="vigencia"] { display: none; }
.tarjeta.vencida .badge::before { content: "Fue "; font-weight: 600; }
.tarjeta.chafa .boton-compra { display: none; }
.tarjeta.chafa .no-recomienda {
  display: block; margin-top: auto; padding: 10px 12px; font-weight: 700; text-align: center;
  background: color-mix(in srgb, #e5332a 12%, var(--surface)); color: var(--ink); border: 2px dashed #e5332a; border-radius: 10px;
}

.filtros { margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: min(var(--radius), 16px); }
.filtros summary {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none;
  font-weight: 700; font-family: "Inter", system-ui, sans-serif;
}
.filtros summary::-webkit-details-marker { display: none; }
.filtros summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.filtros[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.filtros-activos { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.filtros-activos:empty { display: none; }
.filtros-cuerpo { display: grid; gap: 12px; padding: 0 16px 16px; }
.filtro-grupo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filtro-titulo { flex: 0 0 150px; font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.filtro-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-filtro {
  font: 600 0.85rem/1 "Inter", system-ui, sans-serif; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--ink); border: 1.5px solid var(--line);
}
.chip-filtro:hover { border-color: var(--ink); }
.chip-filtro[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.filtros select { font: 600 0.9rem "Inter", system-ui, sans-serif; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.limpiar { margin-left: auto; background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; font: 600 0.85rem "Inter", sans-serif; }
.conteo { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }
.vacio { display: flex; align-items: center; gap: 16px; justify-content: center; padding: 32px 16px; text-align: left; }
.vacio-mascota { width: 110px; height: 132px; flex: none; }
.vacio p { margin: 0; font-size: 1.05rem; }

.heroe-chico { padding: 36px 0 20px; }
.heroe-chico h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* Panteón: papel picado, cempasúchil y veladoras */
.t-panteon .heroe {
  background:
    radial-gradient(40% 60% at 80% 60%, rgba(255,159,28,.18), transparent 70%),
    radial-gradient(3px 3px at 30px 40px, #ff9f1c 60%, transparent 62%) 0 0 / 90px 80px,
    radial-gradient(2px 2px at 70px 10px, #e83f6f 60%, transparent 62%) 0 0 / 90px 80px,
    var(--bg);
  padding-top: 72px;
}
.t-panteon .heroe::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 40px;
  background: repeating-linear-gradient(90deg, #e83f6f 0 70px, #ff9f1c 70px 140px, #8a5bb5 140px 210px, #2ec4b6 210px 280px);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 97.5% 100%, 95% 70%, 92.5% 100%, 90% 70%, 87.5% 100%, 85% 70%, 82.5% 100%, 80% 70%, 77.5% 100%, 75% 70%, 72.5% 100%, 70% 70%, 67.5% 100%, 65% 70%, 62.5% 100%, 60% 70%, 57.5% 100%, 55% 70%, 52.5% 100%, 50% 70%, 47.5% 100%, 45% 70%, 42.5% 100%, 40% 70%, 37.5% 100%, 35% 70%, 32.5% 100%, 30% 70%, 27.5% 100%, 25% 70%, 22.5% 100%, 20% 70%, 17.5% 100%, 15% 70%, 12.5% 100%, 10% 70%, 7.5% 100%, 5% 70%, 2.5% 100%, 0 70%);
  opacity: .9;
}
.t-panteon .heroe h1 { color: #ffd8a8; }
.t-panteon .heroe-mascota { filter: drop-shadow(0 0 26px rgba(255,159,28,.45)); }
.t-panteon .burbuja { background: #261735; color: var(--ink); border-color: var(--accent); }
.t-panteon .burbuja::after { background: #261735; border-color: var(--accent); }
.t-panteon .tarjeta-img img { filter: grayscale(.55) sepia(.15); }
.t-panteon .tarjeta { box-shadow: none; }
.t-panteon .cabecera { background: rgba(27,16,38,.88); }

@media (max-width: 800px) {
  .filtro-titulo { flex-basis: 100%; }
  .filtro-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .chip-filtro { flex: none; }
  .vacio { flex-direction: column; text-align: center; }
}

/* ================= cuartos: columna lateral, datos, relleno y caritas ================= */

.heroe-seccion { padding: 32px 0 28px; }
.heroe-seccion .heroe-mascota { width: min(220px, 70%); }
.datos { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.datos li {
  padding: 6px 12px; border-radius: 999px; font-size: 0.9rem; font-family: "Inter", system-ui, sans-serif;
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1.5px solid var(--line); color: var(--ink);
}
.datos strong { color: var(--accent-2); }
.t-taller .heroe .datos li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.t-taller .heroe .datos strong, .t-tech .datos strong { color: var(--accent); }

.cuarto-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.lateral { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.lateral .filtros { margin: 0; }
.lateral .filtro-titulo { flex-basis: 100%; }
.lateral .filtro-grupo { gap: 6px; }
.lateral .limpiar { margin-left: 0; }
.consejo {
  display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; padding: 14px;
  background: color-mix(in srgb, var(--accent-2) 10%, var(--surface)); border: 1.5px dashed var(--accent-2);
  border-radius: min(var(--radius), 16px); font-size: 0.88rem; line-height: 1.4;
}
.consejo strong { display: block; font-family: var(--head); font-weight: var(--head-weight); text-transform: var(--head-case); margin-bottom: 4px; font-size: 1rem; }
.t-tech .consejo strong { font-size: 0.7rem; line-height: 1.6; }
.consejo p { margin: 0; }
.consejo-mascota { width: 64px; height: 77px; }
.cuarto-ofertas .rejilla { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.conteo { margin-top: 0; }

.tarjeta-img { aspect-ratio: 4 / 3; }

.relleno {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 24px 18px; min-height: 320px; border: 2px dashed var(--line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.relleno-mascota { width: 120px; height: 144px; animation: busca 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes busca { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.relleno-titulo { margin: 0; font-family: var(--head); font-weight: var(--head-weight); text-transform: var(--head-case); font-size: 1.15rem; }
.t-tech .relleno-titulo { font-size: 0.75rem; line-height: 1.6; }
.relleno p { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 26ch; }

.voto-fila { display: flex; flex-wrap: wrap; gap: 6px; }
.voto-pregunta { flex-basis: 100%; margin: 0; }
.voto-fila button {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 4px 8px 4px 4px; white-space: nowrap;
}
.carita { width: 26px; height: 22px; flex: none; transition: transform .2s ease; }
.voto-fila button:hover .carita { transform: scale(1.18) rotate(-6deg); }
.voto-fila button[aria-pressed="true"] .carita { transform: scale(1.12); }
.voto-fila button:active .carita { transform: scale(0.9); }
.reaccion { margin: 0; font-size: 0.82rem; font-weight: 700; color: var(--accent-2); min-height: 0; }
.reaccion:empty { display: none; }
.reaccion.viva { animation: pop .35s ease-out; }
@keyframes pop { from { transform: translateY(4px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  .cuarto-grid { grid-template-columns: 1fr; }
  .lateral { position: static; }
  .consejo { display: none; }
}

/* ================= "Todo": tianguis con puestos y tarjetas de cada cuarto ================= */

.tarjeta { color: var(--ink); font-family: var(--body); }
.tarjeta h3 { font-family: var(--body); }

/* Cada tarjeta tematizada lleva la ambientación de su cuarto, aunque esté en otra página. */
.tarjeta.t-ropa { border-top: 4px solid var(--accent); }
.tarjeta.t-ropa .badge { border-radius: 2px; background: var(--accent); }
.tarjeta.t-casa .tarjeta-img { margin: 10px 10px 0; border-radius: calc(var(--radius) - 8px); overflow: hidden; }
.tarjeta.t-tech { box-shadow: 0 0 0 1px rgba(57,245,255,.25), 0 10px 30px -18px rgba(255,45,149,.6); }
.tarjeta.t-tech .precio strong { font-size: 1rem; color: var(--accent); }
.tarjeta.t-tech .dice { background: rgba(255,45,149,.10); }
.tarjeta.t-taller { border: 2px solid var(--ink); }
.tarjeta.t-taller .tarjeta-cuerpo { border-top: 6px solid transparent; border-image: repeating-linear-gradient(45deg, #ffc72c 0 10px, #1d1d1d 10px 20px) 6; }
.tarjeta.t-taller .badge { border-radius: 0; background: var(--ink); color: var(--accent); }
.tarjeta.t-taller .precio strong { font-size: 2rem; }
.tarjeta.t-taller .boton { border-color: var(--ink); }

.heroe-mercado {
  padding-top: 64px;
  background: radial-gradient(50% 70% at 85% 30%, #f6dfc0 0%, transparent 70%), var(--bg);
}
.heroe-mercado::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 34px;
  background: repeating-linear-gradient(90deg, #e5332a 0 44px, #fffaf2 44px 88px);
  -webkit-mask: radial-gradient(22px 12px at 22px 100%, transparent 98%, #000) 0 0 / 44px 100%;
          mask: radial-gradient(22px 12px at 22px 100%, transparent 98%, #000) 0 0 / 44px 100%;
  box-shadow: 0 2px 0 rgba(0,0,0,.05);
}
.heroe-mercado .heroe-mascota { width: min(220px, 70%); }
.puestos { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.puesto {
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  text-align: left; padding: 10px 12px; cursor: pointer; font-family: var(--body);
  background: var(--bg); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.puesto:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -16px rgba(0,0,0,.5); }
.puesto[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.puesto-mascota { grid-row: 1 / 3; width: 56px; height: 67px; }
.puesto strong { font-family: var(--head); font-weight: var(--head-weight); text-transform: var(--head-case); font-size: 1.05rem; line-height: 1.1; align-self: end; }
.puesto.t-tech strong { font-size: 0.62rem; line-height: 1.5; }
.puesto.t-taller strong { font-size: 1.35rem; }
.puesto span { font-size: 0.8rem; color: var(--muted); align-self: start; }
.puesto-todos { background: var(--surface); }

@media (max-width: 900px) {
  .puestos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 168px; overflow-x: auto; scrollbar-width: none; margin: 20px -16px 0; padding: 4px 16px; }
}

/* Etiqueta de cuarto en las tarjetas: mismo lenguaje que el menú (ícono de color + nombre). */
.cuarto-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 0 4px;
  text-decoration: none; color: var(--muted); font: 600 0.8rem/1.2 "Inter", system-ui, sans-serif;
  border-bottom: 2px solid color-mix(in srgb, var(--c) 45%, transparent); transition: color .15s ease, border-color .15s ease;
}
.cuarto-tag:hover { color: var(--ink); border-bottom-color: var(--c); }
.cuarto-tag .icono { width: 16px; height: 16px; color: var(--c); }

/* Más aire y más columnas en pantallas grandes. */
@media (min-width: 1500px) {
  .cuarto-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; }
  .heroe h1 { font-size: clamp(3rem, 3.6vw, 4.2rem); }
}

/* El relleno se estira por todo lo que sobre del renglón y, si cabe, muestra sugerencias. */
.relleno { container-type: inline-size; min-height: 0; }
.relleno-principal { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.relleno-sugerencias { display: none; }
.relleno-sub { margin: 0 0 10px; font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.sugerencias { display: grid; gap: 10px; }
.sugerencia {
  display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; padding: 8px;
  text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .15s ease, border-color .15s ease;
}
.sugerencia:hover { transform: translateY(-2px); border-color: var(--ink); }
.sugerencia img { width: 84px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; }
.sugerencia-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.sugerencia-cuarto { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sugerencia-titulo { font-size: 0.85rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sugerencia-precio { font-weight: 800; }
.sugerencia-precio em { font-style: normal; color: var(--accent-2); margin-left: 4px; }
.relleno-in { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
@container (min-width: 560px) {
  .relleno-in { flex-direction: row; align-items: center; gap: 28px; text-align: left; padding: 4px 10px; }
  .relleno-principal { flex: 0 0 220px; }
  .relleno-sugerencias { display: block; flex: 1; }
}
@container (min-width: 900px) {
  .sugerencias { grid-template-columns: repeat(3, 1fr); }
}


/* ================= Póster de ofertas (portada y "Todo") ================= */
.t-base .cabecera { background: var(--bg); border-bottom: 2px solid var(--ink); }
.t-base .logo-texto { font-size: 1.55rem; }
.t-base .logo-marco { border-radius: 0; }
.t-base .m-todas { --c: #ff3b30; }
.t-base .menu-link { font-family: var(--body); }

.t-base .heroe h1 { font-size: clamp(3rem, 6.6vw, 6.4rem); line-height: 1.12; }
.t-base .antetitulo { color: var(--ink); background: #ffd60a; display: inline-block; padding: 3px 8px; letter-spacing: .1em; }
.t-base .entrada { color: var(--ink); max-width: 34em; }
.t-base .heroe:not(.heroe-mercado)::before {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 45%; pointer-events: none;
  background: radial-gradient(#111 1.2px, transparent 1.6px) 0 0 / 14px 14px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 70%); mask: linear-gradient(90deg, transparent, #000 70%);
  opacity: .12;
}
.t-base .heroe-mercado { background: var(--bg); border-bottom: 2px solid var(--ink); }
.t-base .heroe-mercado::before { background: repeating-linear-gradient(90deg, #ff3b30 0 44px, #f2efe8 44px 88px); }
.t-base .burbuja { border-radius: 0; border-width: 2px; box-shadow: 5px 5px 0 var(--ink); font-family: var(--body); }
.t-base .burbuja::after { border-width: 2px; }

.t-base .boton { border-radius: 0; text-transform: uppercase; letter-spacing: .06em; font-family: var(--body); }
.t-base .boton:hover { box-shadow: 4px 4px 0 var(--ink); }
.t-base .boton-fantasma { border-width: 2px; }
.t-base .flecha { border-radius: 0; }

.t-base .datos li, .t-base .filtros, .t-base .consejo, .t-base .chip-filtro, .t-base .filtros select,
.t-base .relleno, .t-base .pasos li, .t-base .puesto-todos { border-radius: 0; }
.t-base .datos li { border: 2px solid var(--ink); background: var(--surface); }
.t-base .datos strong { color: var(--accent); }
.t-base .filtros, .t-base .pasos li { border: 2px solid var(--ink); }
.t-base .consejo { border: 2px dashed var(--ink); background: #fff7cc; }
.t-base .pasos li::before { border-radius: 0; background: var(--accent); }
.t-base .contador span { color: var(--accent); }

.t-base .preciazo { background: var(--ink); color: #f2efe8; border-top: 6px solid var(--accent); border-bottom: 6px solid var(--accent); }
.t-base .preciazo .antetitulo { background: var(--accent); color: #fff; }
.t-base .preciazo h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
.t-base .preciazo-cifra strong { font-family: var(--head); font-size: 4.5rem; font-weight: 400; color: #ffd60a; }
.t-base .preciazo-img { border-radius: 0; border: 4px solid #f2efe8; }
.t-base .sello { border-radius: 0; transform: rotate(-8deg); font-family: var(--head); font-size: 1.9rem; font-weight: 400; }

.t-base .puesto { border-radius: 0; }
.t-base .bloque h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.t-base .pie { border-top: 6px solid var(--accent); }

/* Póster: tarjetas, puestos y encabezado de "Todo" con un solo estilo (sin franjas ni toldo). */
.t-base .heroe-mercado::before { display: none; }
.t-base .heroe-mercado { padding-top: 40px; }

.t-base .tarjeta { border: 2px solid var(--ink); border-radius: 0; box-shadow: none; background: var(--surface); }
.t-base .tarjeta:hover { box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
.t-base .tarjeta { transition: transform .15s ease, box-shadow .15s ease; }
.t-base .tarjeta-img { border-bottom: 2px solid var(--ink); }
.t-base .badge { border-radius: 0; background: var(--accent); font-family: var(--head); font-weight: 400; font-size: 1.05rem; letter-spacing: .02em; padding: 2px 8px; }
.t-base .tarjeta h3 { font-weight: 700; }
.t-base .precio strong { font-family: var(--head); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.t-base .precio s { font-family: var(--body); }
.t-base .dice { border-radius: 0; border-left: 4px solid var(--accent); background: #fff7cc; }
.t-base .voto-fila button { border-radius: 0; border-color: var(--ink); }
.t-base .voto-fila button[aria-pressed="true"] { background: var(--ink); }
.t-base .cuarto-tag { border-bottom-width: 0; padding-bottom: 0; }

.t-base .puesto { background: var(--surface); border: 2px solid var(--ink); }
.t-base .puesto strong { font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: 1.4rem; }
.t-base .puesto[aria-pressed="true"] { background: var(--ink); color: #f2efe8; border-color: var(--ink); box-shadow: 5px 5px 0 var(--accent); }
.t-base .puesto[aria-pressed="true"] span { color: #ffd60a; }
.t-base .puesto-mascota { background: #fff; border: 2px solid var(--ink); }

.t-base .relleno { border: 2px dashed var(--ink); background: transparent; }
.t-base .relleno-titulo { font-size: 1.6rem; }
.t-base .sugerencia { border-radius: 0; border: 2px solid var(--ink); }


/* ================= Menos ruido (diseño general) ================= */
/* Bordes delgados, sin sombras duras, sin marcatextos ni tramas: el contenido manda. */
.t-base .heroe:not(.heroe-mercado)::before { display: none; }
.t-base .antetitulo, .t-base .preciazo .antetitulo { background: none; padding: 0; color: var(--accent); }
.t-base .burbuja { box-shadow: none; border-width: 1.5px; }
.t-base .boton:hover { box-shadow: none; }
.t-base .cabecera { border-bottom-width: 1px; }
.t-base .heroe-mercado { border-bottom: 1px solid var(--line); }

.filtros { background: transparent; border: none; }
.t-base .filtros { border: none; }
.filtros summary { padding: 0 0 12px; }
.filtros-cuerpo { padding: 0; }
.chip-filtro { padding: 6px 10px; font-size: 0.82rem; border-width: 1px; }
.t-base .chip-filtro { border-color: var(--line); }

.tarjeta { box-shadow: none; }
.t-base .tarjeta { border: 1px solid var(--line); }
.t-base .tarjeta:hover { box-shadow: none; transform: none; border-color: var(--ink); }
.t-base .tarjeta-img { border-bottom: 1px solid var(--line); }
.dice, .t-base .dice, .t-tech .dice, .tarjeta.t-tech .dice {
  background: none; border: none; padding: 0; border-radius: 0; color: var(--muted); font-size: 0.86rem;
}
.dice span { color: var(--ink); }
.votos { border-top: 1px solid var(--line); }
.voto-fila button, .t-base .voto-fila button { border-width: 1px; border-color: var(--line); }

.t-base .datos li, .t-base .pasos li, .t-base .puesto, .t-base .sugerencia { border-width: 1px; }
.t-base .datos li { border-color: var(--line); }
.t-base .puesto { border-color: var(--line); }
.t-base .puesto[aria-pressed="true"] { box-shadow: none; }
.relleno, .t-base .relleno { border: 1px dashed var(--line); }

/* "Don Baratito dice" con contraste y botón de compra compacto. */
.dice, .t-base .dice, .t-tech .dice, .tarjeta.t-tech .dice { color: var(--ink); font-size: 0.88rem; line-height: 1.45; }
.dice span { color: var(--accent-2); font-weight: 800; }
.t-tech .dice span { color: var(--accent-2); }
.t-taller .dice span { color: #d35400; }
.tarjeta .boton {
  width: auto; align-self: stretch; padding: 8px 12px; font-size: 0.82rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ================= Navegación con tarjetas de cuarto (reemplaza al menú) ================= */
.navegacion { padding: 18px 0 4px; }
.navegacion .puestos { margin-top: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
a.puesto { text-decoration: none; }
.puesto { background: var(--surface); border: 1px solid var(--line); }
.puesto[aria-current="page"] { border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--accent); }
.t-base .puesto[aria-current="page"] { background: var(--ink); color: #f2efe8; }
.t-base .puesto[aria-current="page"] span { color: #ffd60a; }
.t-base .puesto strong { font-size: 1.25rem; }
.puesto strong { font-size: 1rem; }
.t-tech .puesto strong { font-size: 0.6rem; line-height: 1.5; }
.t-taller .puesto strong { font-size: 1.3rem; }
.t-panteon .puesto strong { font-size: 0.85rem; }

@media (max-width: 1100px) {
  .navegacion .puestos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 170px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
}

/* ================= Don Baratito animado (solo el del encabezado de cada página) ================= */
.heroe-mascota { transform-origin: 50% 100%; }
.heroe-mascota [class^="mb-"] { transform-box: fill-box; }

/* Portada / Todo: busca ofertas con la lupa. */
.t-base .heroe-mascota { animation: balanceo 4s ease-in-out infinite; }
.heroe-mascota .mb-lupa { transform-origin: 20% 20%; animation: lupa 2.6s ease-in-out infinite; }
.heroe-mascota .mb-brillo { animation: brillo 2.6s ease-in-out infinite; }
@keyframes balanceo { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes lupa { 0%, 100% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(-10px, -6px) rotate(-8deg); } 60% { transform: translate(4px, -10px) rotate(6deg); } }
@keyframes brillo { 0%, 70%, 100% { opacity: 1; } 80% { opacity: .2; } }

/* El Ropero: tiembla de frío y le sale vapor al chocolate. */
.t-ropa .heroe-mascota { animation: frio 3.5s ease-in-out infinite; }
.heroe-mascota .mb-vapor { animation: vapor 2.2s ease-out infinite; }
@keyframes frio { 0%, 70%, 100% { transform: translateX(0); } 72%, 76%, 80%, 84% { transform: translateX(-3px); } 74%, 78%, 82% { transform: translateX(3px); } }
@keyframes vapor { from { transform: translateY(4px); opacity: 0; } 40% { opacity: 1; } to { transform: translateY(-10px); opacity: 0; } }

/* La Casa: menea la cuchara. */
.t-casa .heroe-mascota { animation: respira 3s ease-in-out infinite; }
.heroe-mascota .mb-taza { transform-origin: 30% 100%; animation: sorbo 4s ease-in-out infinite; }
@keyframes sorbo { 0%, 60%, 100% { transform: translate(0, 0) rotate(0); } 70%, 85% { transform: translate(-18px, -36px) rotate(-18deg); } }
@keyframes respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02, .985); } }
@keyframes cuchara { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(12deg); } }

/* La Cueva Tech: juega, se le prenden los botones y brilla el neón. */
.t-tech .heroe-mascota { animation: juega .5s ease-in-out infinite alternate, neon 2.4s ease-in-out infinite; }
.heroe-mascota .mb-botones { animation: botones .7s steps(2) infinite; }
@keyframes juega { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes neon { 0%, 100% { filter: drop-shadow(0 0 14px rgba(255,45,149,.5)); } 50% { filter: drop-shadow(0 0 26px rgba(57,245,255,.65)); } }
@keyframes botones { from { opacity: 1; } to { opacity: .35; } }

/* El Taller: martillea con la llave. */
.heroe-mascota .mb-llave { transform-origin: 10% 90%; animation: martillo 1.1s cubic-bezier(.5,0,.2,1) infinite; }
@keyframes martillo { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-28deg); } 55% { transform: rotate(6deg); } 65% { transform: rotate(0); } }

/* El Panteón: flota y la veladora parpadea. */
.t-panteon .heroe-mascota { animation: flota 4s ease-in-out infinite; }
.heroe-mascota .mb-flama { transform-origin: 50% 100%; animation: flama .35s ease-in-out infinite alternate; }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes flama { from { transform: scale(1, 1) rotate(-3deg); opacity: .9; } to { transform: scale(.85, 1.12) rotate(3deg); opacity: 1; } }

/* Las tarjetas de cuarto saludan al pasar el mouse. */
.puesto:hover .puesto-mascota { animation: saludo .6s ease-in-out; }
@keyframes saludo { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }

/* ================= Celular: encabezado compacto para que las ofertas aparezcan pronto ================= */
@media (max-width: 800px) {
  .heroe, .heroe-seccion, .heroe-mercado { padding: 22px 0 20px; }
  .t-panteon .heroe { padding-top: 54px; }
  .heroe-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
  .heroe-figura { order: 0; }
  .heroe-figura .burbuja { display: none; }
  .heroe-mascota, .heroe-seccion .heroe-mascota, .heroe-mercado .heroe-mascota { width: 104px; height: auto; }
  .heroe h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.08; }
  .t-base .heroe h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.18; }
  .t-tech .heroe h1 { font-size: 1.05rem; line-height: 1.5; }
  .t-taller .heroe h1 { font-size: 2.4rem; line-height: 1; }
  .entrada { font-size: 0.98rem; margin-top: 8px; }
  .datos { grid-column: 1 / -1; margin-top: 12px; }
  .heroe-acciones { margin-top: 14px; }
  .heroe-acciones .boton { flex: 1 1 auto; }
  .antetitulo { font-size: 0.72rem; margin-bottom: 6px; }
  .navegacion { padding-top: 12px; }
  .puesto { grid-template-columns: 44px 1fr; padding: 8px 10px; }
  .puesto-mascota { width: 44px; height: 53px; }
  .navegacion .puestos { grid-auto-columns: 150px; }
  .bloque { padding: 24px 0; }
  .preciazo-cifra strong, .t-base .preciazo-cifra strong { font-size: 3rem; }
}

/* ================= Transición suave al cambiar de cuarto (View Transitions entre páginas) ================= */
@view-transition { navigation: auto; }
.cabecera { view-transition-name: cabecera; }
.navegacion { view-transition-name: navegacion; }
.heroe-mascota { view-transition-name: mascota; }

::view-transition-old(root) { animation: salir-cuarto .22s ease-in both; }
::view-transition-new(root) { animation: entrar-cuarto .38s cubic-bezier(.2,.7,.2,1) both; }
::view-transition-group(mascota) { animation-duration: .5s; animation-timing-function: cubic-bezier(.3,1.3,.5,1); }
::view-transition-group(cabecera), ::view-transition-group(navegacion) { animation-duration: .3s; }
@keyframes salir-cuarto { to { opacity: 0; transform: translateY(-10px); } }
@keyframes entrar-cuarto { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ================= Temporada (cambia de mundo según la fecha) ================= */
.t-temporada {
  --bg: #1a0f24; --surface: #24163a; --ink: #f6eee3; --muted: #c7b8d6;
  --accent: #ff7a1a; --accent-ink: #1a0f24; --accent-2: #b46cff; --line: #3b2a52;
  --head: "Creepster", "Inter", sans-serif; --body: "Inter", system-ui, sans-serif;
  --radius: 14px; --head-weight: 400; --head-case: none; --head-track: 0.02em;
}
.t-temporada.s-navidad {
  --bg: #0f2a1d; --surface: #153826; --ink: #fbf6ea; --muted: #c7d8cb;
  --accent: #e3263a; --accent-ink: #ffffff; --accent-2: #ffd23f; --line: #24503a;
  --head: "Mountains of Christmas", Georgia, serif; --head-weight: 700;
}
.t-temporada.s-muertos {
  --bg: #2a0f2b; --surface: #3a1640; --ink: #fff3e3; --muted: #e2c4dc;
  --accent: #ff9f1c; --accent-ink: #2a0f2b; --accent-2: #e4007c; --line: #55245c;
  --head: "Cinzel Decorative", Georgia, serif; --head-weight: 900;
}
.t-temporada.s-buenfin {
  --bg: #fff8e6; --surface: #ffffff; --ink: #1a1a1a; --muted: #5c5a55;
  --accent: #e3263a; --accent-ink: #ffffff; --accent-2: #0a7c3c; --line: #eadfc4;
  --head: "Anton", Impact, sans-serif; --head-case: uppercase;
}

/* Halloween: luna, murciélagos y telaraña. */
.t-temporada.s-halloween .heroe {
  background:
    radial-gradient(circle at 78% 26%, #fff6d6 0 46px, rgba(255,246,214,.25) 47px 70px, transparent 71px),
    radial-gradient(60% 80% at 80% 40%, rgba(180,108,255,.28), transparent 70%),
    var(--bg);
}
.t-temporada.s-halloween .heroe::before {
  content: ""; position: absolute; left: 0; top: 0; width: 220px; height: 220px; pointer-events: none; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23f6eee3' stroke-width='1.5'%3E%3Cpath d='M0 0 L200 60 M0 0 L160 160 M0 0 L60 200'/%3E%3Cpath d='M40 12 Q30 30 12 40 M80 24 Q60 60 24 80 M120 36 Q90 90 36 120 M160 48 Q120 120 48 160'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
}
.t-temporada.s-halloween .heroe::after {
  content: "🦇"; position: absolute; right: 12%; top: 18%; font-size: 28px; pointer-events: none;
  animation: murcielago 6s ease-in-out infinite;
}
@keyframes murcielago { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(-60px, 24px) rotate(10deg); } }
.t-temporada .heroe h1 { color: var(--accent); text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.t-temporada .burbuja { background: var(--surface); color: var(--ink); border-color: var(--accent); }
.t-temporada .burbuja::after { background: var(--surface); border-color: var(--accent); }
.t-temporada .cabecera { background: color-mix(in srgb, var(--bg) 90%, transparent); }

/* Navidad: copos de nieve. */
.t-temporada.s-navidad .heroe {
  background:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 52%) 0 0 / 120px 90px,
    radial-gradient(3px 3px at 70px 60px, #fff 50%, transparent 52%) 0 0 / 120px 90px,
    var(--bg);
}

.chips-temporada { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip-temporada {
  font: 700 0.9rem "Inter", system-ui, sans-serif; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line);
}
.chip-temporada b { color: var(--muted); font-weight: 700; margin-left: 2px; }
.chip-temporada[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-temporada[aria-pressed="true"] b { color: var(--accent-ink); }
.proximas { margin: 12px 0 0; font-size: 0.85rem; color: var(--muted); }

.temporada-tag {
  align-self: flex-start; font: 700 0.75rem "Inter", system-ui, sans-serif; padding: 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, #ff7a1a 16%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, #ff7a1a 45%, transparent);
}

/* Don Baratito de temporada animado. */
.t-temporada .heroe-mascota { animation: balanceo 3.2s ease-in-out infinite; }
.heroe-mascota .mb-calabaza { transform-origin: 50% 0%; animation: cubeta 1.6s ease-in-out infinite, brilla-calabaza 1.2s ease-in-out infinite alternate; }
.heroe-mascota .mb-pompon { transform-origin: 50% 50%; animation: pompon .9s ease-in-out infinite alternate; }
@keyframes cubeta { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes brilla-calabaza { from { filter: drop-shadow(0 0 0 rgba(255,122,26,0)); } to { filter: drop-shadow(0 0 10px rgba(255,170,60,.9)); } }
@keyframes pompon { from { transform: translateY(0); } to { transform: translateY(4px); } }
.t-temporada .puesto strong { font-size: 1.05rem; }

@media (max-width: 800px) {
  .t-temporada.s-halloween .heroe::after { display: none; }
  .chips-temporada { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .chip-temporada { flex: none; }
}

/* Navegación suave entre cuartos (respaldo cuando el navegador no tiene View Transitions). */
main, .navegacion, footer { transition: opacity .16s ease, transform .2s ease; }
body.saliendo main, body.saliendo footer { opacity: 0; transform: translateY(-8px); }
body.entrando main, body.entrando footer { opacity: 0; transform: translateY(12px); }
body { transition: background-color .3s ease; }
::view-transition-old(root) { animation: salir-cuarto .2s ease-in both; }
::view-transition-new(root) { animation: entrar-cuarto .34s cubic-bezier(.2,.7,.2,1) both; }

/* ================= Buscador ================= */
.cabecera-fila { gap: 20px; }
.buscador { position: relative; flex: 1; max-width: 560px; margin-left: auto; display: flex; }
.buscador input {
  flex: 1; min-width: 0; font: 500 0.95rem var(--body); color: var(--ink);
  padding: 10px 44px 10px 14px; border-radius: min(var(--radius), 12px);
  background: var(--surface); border: 1.5px solid var(--line); outline: none;
}
.buscador input::placeholder { color: var(--muted); }
.buscador input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.buscador button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; background: none; border: none; color: var(--ink); cursor: pointer; }
.buscador button .icono { width: 20px; height: 20px; }
.resultados {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: 70vh; overflow-y: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: min(var(--radius), 12px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); padding: 6px;
}
.resultado { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; text-decoration: none; color: inherit; }
.resultado:hover, .resultado:focus-visible { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.resultado img { width: 56px; height: 42px; object-fit: contain; background: #fff; border-radius: 6px; }
.resultado span { min-width: 0; display: flex; flex-direction: column; }
.resultado small { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.resultado strong { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resultado b { font-weight: 800; white-space: nowrap; }
.resultado em { font-style: normal; color: var(--accent-2); font-size: 0.8rem; }
.resultado-todos { display: block; padding: 10px 8px 6px; font-weight: 700; color: var(--accent); text-decoration: none; border-top: 1px solid var(--line); margin-top: 4px; }
.resultado-nada { margin: 0; padding: 12px; color: var(--muted); }
.t-base .buscador input { border-radius: 0; border-color: var(--ink); }
.t-tech .buscador input:focus { box-shadow: 0 0 0 3px rgba(57,245,255,.3); }

@media (max-width: 800px) {
  .buscador { max-width: none; width: 100%; margin: 0; }
  .cabecera-fila { padding-bottom: 10px; }
}

/* ================= Escenografía de los cuartos ================= */
.escenario { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.heroe-grid { position: relative; z-index: 1; }
.esc-luz { animation: lampara 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.esc-vela { animation: flama .4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes lampara { 0%, 100% { opacity: .3; } 50% { opacity: .45; } }

/* La Casa: papel tapiz cálido en lugar del azulejo. */
.t-casa .heroe { background: repeating-linear-gradient(90deg, #f7ecdb 0 34px, #f1e1c8 34px 68px); padding-bottom: 96px; }
.t-casa .heroe::after { display: none; }
.t-casa .heroe .entrada, .t-casa .heroe .antetitulo { text-shadow: 0 1px 0 rgba(255,255,255,.6); }
/* El Ropero: clóset de madera en lugar del tejido y la nieve. */
.t-ropa .heroe { background: #efe6d8; border-bottom-color: #8a5a3c; box-shadow: none; padding-bottom: 80px; }
.t-ropa .heroe::before { display: none; }
.t-ropa .heroe h1, .t-ropa .heroe .entrada { text-shadow: none; }
.t-ropa .heroe .datos li { background: rgba(255,250,242,.9); }
/* El Taller y el Panteón: escenografía sobre su fondo de siempre. */
.t-taller .heroe, .t-panteon .heroe { padding-bottom: 72px; }

@media (max-width: 800px) {
  .escenario { opacity: .45; }
  .t-casa .heroe, .t-ropa .heroe, .t-taller .heroe, .t-panteon .heroe { padding-bottom: 40px; }
}
/* La escenografía se desvanece hacia el texto: nunca compite con el título. */
.escenario {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 38%, #000 58%);
          mask-image: linear-gradient(90deg, transparent 0, transparent 38%, #000 58%);
}
@media (max-width: 800px) {
  .escenario { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 70%); mask-image: linear-gradient(90deg, transparent 0, #000 70%); }
}

/* Oferta con más de una semana sin verse: sigue visible, pero avisa y se ve apagada. */
.tarjeta.vieja .badge { background: var(--muted); }
.tarjeta.vieja .precio strong, .tarjeta.vieja .precio s { opacity: .6; }
.tarjeta.vieja .tarjeta-img img { filter: saturate(.55); }
.tarjeta.vieja [data-visto] {
  text-align: left; color: var(--ink); font-weight: 600; line-height: 1.35; padding: 8px 10px; border-radius: 8px;
  background: color-mix(in srgb, #ffb627 22%, var(--surface)); border: 1px solid color-mix(in srgb, #ffb627 55%, transparent);
}

/* ================= La Vitrina (recomendados permanentes) ================= */
.t-vitrina {
  --bg: #f4efe6; --surface: #fffdf8; --ink: #1f2a24; --muted: #5f6660;
  --accent: #2f4a3a; --accent-ink: #ffffff; --accent-2: #b8862b; --line: #e4dccb;
  --head: "DM Serif Display", Georgia, serif; --body: "Inter", system-ui, sans-serif;
  --radius: 12px; --head-weight: 400; --head-case: none; --head-track: 0;
}
.t-vitrina .heroe { background: #23382c; color: #f4efe6; padding-bottom: 80px; }
.t-vitrina .heroe .entrada { color: #d9d2c3; }
.t-vitrina .heroe .antetitulo { color: #e8c15a; }
.t-vitrina .heroe h1 { color: #fffaf0; }
.heroe-mascota .mb-sello { transform-origin: 50% 0%; animation: sellar 2.4s ease-in-out infinite; }
@keyframes sellar { 0%, 55%, 100% { transform: translateY(0); } 65% { transform: translateY(-18px) rotate(-6deg); } 75% { transform: translateY(8px); } 82% { transform: translateY(0); } }

.vitrina-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.vitrina-item {
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: transform .18s ease, box-shadow .18s ease;
}
.vitrina-item:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(0,0,0,.45); }
.vitrina-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); }
.vitrina-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.sello-aprobado {
  position: absolute; top: 12px; right: 12px; padding: 5px 10px; transform: rotate(6deg);
  font: 800 0.72rem "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: #c0392b; border: 2.5px solid #c0392b; border-radius: 6px; background: rgba(255,255,255,.85);
}
.vitrina-cuerpo { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.vitrina-cuerpo h3 { font-size: 1.02rem; line-height: 1.3; }
.vitrina-categoria { align-self: flex-start; font: 700 0.72rem "Inter", sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); }
.vitrina-porque { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--muted); }
.vitrina-cuerpo .boton { margin-top: auto; padding: 9px 12px; font-size: 0.85rem; }
@media (min-width: 1101px) { .navegacion .puestos { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* Texto solo para lectores de pantalla (invisible en cualquier tamaño de pantalla). */
.solo-lector {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ================= Compartir ================= */
.acciones-tarjeta { display: flex; gap: 8px; margin-top: auto; }
.acciones-tarjeta .boton { flex: 1; margin-top: 0; min-width: 0; }
.compartir {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font: 700 0.85rem "Inter", system-ui, sans-serif; padding: 8px 12px; border-radius: min(var(--radius), 12px);
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line);
}
.compartir:hover { border-color: var(--ink); }
.compartir .icono { width: 18px; height: 18px; flex: none; }
.compartir-icono { flex: none; width: 42px; padding: 0; }
.compartir-icono span:empty { display: none; }
.compartir-pagina { flex: none; }
.pie-compartir { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.pie .compartir { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
.menu-compartir {
  position: absolute; z-index: 60; display: flex; flex-direction: column; min-width: 180px; padding: 6px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); font-family: "Inter", system-ui, sans-serif;
}
.menu-compartir a, .menu-compartir button {
  text-align: left; padding: 9px 12px; border-radius: 8px; font: 600 0.9rem "Inter", sans-serif;
  color: inherit; text-decoration: none; background: none; border: none; cursor: pointer;
}
.menu-compartir a:hover, .menu-compartir button:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
@media (max-width: 800px) {
  .cabecera-fila { position: relative; }
  .compartir-pagina { position: absolute; top: 12px; right: 16px; width: 40px; height: 40px; padding: 0; }
  .compartir-pagina span { display: none; }
}

/* El botón de compra nunca se corta: si no cabe en una línea, usa dos. */
.acciones-tarjeta .boton { white-space: normal; overflow: visible; text-overflow: clip; text-align: center; line-height: 1.2; }
.t-base .acciones-tarjeta .boton { letter-spacing: .02em; font-size: 0.8rem; padding: 8px 10px; }
.acciones-tarjeta .compartir-icono { align-self: stretch; height: auto; min-height: 38px; }

/* ================= Paginación y volver arriba ================= */
.paginacion { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.paginacion button {
  min-width: 42px; height: 42px; padding: 0 12px; cursor: pointer; font: 700 0.92rem var(--body);
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: min(var(--radius), 12px);
}
.paginacion button:hover:not(:disabled) { border-color: var(--ink); }
.paginacion button[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.paginacion button:disabled { opacity: .4; cursor: default; }
.paginacion .puntos { color: var(--muted); padding: 0 4px; }

.arriba {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; cursor: pointer; font: 700 0.88rem "Inter", system-ui, sans-serif;
  color: var(--accent-ink); background: var(--accent); border: none; border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.55); transition: transform .15s ease;
}
.arriba:hover { transform: translateY(-2px); }
.arriba .icono { width: 18px; height: 18px; }
@media (max-width: 800px) {
  .arriba span { display: none; }
  .arriba { padding: 12px; }
  .paginacion button { min-width: 38px; height: 38px; padding: 0 10px; }
}
