/* Merka — La tienda del vendedor (rediseño de JC, 4 oct 2026,
   design_handoff_merka/TIENDA-DEL-VENDEDOR.md y su prototipo). Solo la baja
   /t/{slug}. El color de la tienda llega en --ac, --acg, --acd, --acs, --acl
   y --acl2 (sale de su logo); los botones de Merka siguen amarillos. */

main.tv-main-merka { max-width: none; margin: 0; padding: 0; }
.tv { --ac: #a855f7; --acd: #140a2e; --acs: #f3e8ff; --acl: rgba(255,79,163,.28); --acl2: rgba(34,211,238,.22); display: flex; flex-direction: column; min-height: 100vh; }
.tv * { box-sizing: border-box; }
.tv-rail { scrollbar-width: none; }
.tv-rail::-webkit-scrollbar { display: none; }
.tv a:focus-visible, .tv button:focus-visible { outline: 2px solid #252B60; outline-offset: 2px; }
.tv-cabeza a:focus-visible, .tv-cabeza button:focus-visible, .tv-fija a:focus-visible, .tv-pie a:focus-visible, .tv-promo a:focus-visible { outline-color: #ffea41; }

/* La cabecera de Merka no se dibuja en la tienda (JC, 4 oct 2026): la reemplaza el ☰ del menú. */
/* ---------- Menú propio y su copia fija (§5.2, §5.3) ---------- */
.tv-fija { position: fixed; left: 0; right: 0; top: 0; z-index: 40; background: var(--acd); box-shadow: rgba(0,0,0,.25) 0 6px 18px; transform: translateY(-100%); visibility: hidden; transition: transform 220ms ease, visibility 0s linear 220ms; }
.tv-cuerpo.tv-fijo .tv-fija { transform: none; visibility: visible; transition: transform 220ms ease; }
.tv-barra-izq { display: flex; align-items: center; min-width: 0; }
.tv-merka { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; transition: background 140ms ease; }
.tv-merka:hover { background: rgba(255,255,255,.12); }
.tv-merka[hidden] { display: none; }
/* La marca de la tienda en el menú, siempre (JC, 5 oct 2026): como un logo normal, sin
   cuadros ni fondos, a la altura de la barra y con su proporción. */
.tv-menu-marca { flex: none; display: flex; align-items: center; height: 44px; min-width: 0; color: #fff; text-decoration: none; transition: opacity 140ms ease; }
.tv-menu-marca:hover { color: #fff; opacity: .85; }
.tv-menu-logo-h { display: block; height: 36px; width: auto; max-width: 180px; object-fit: contain; }
.tv-menu-logo-c { display: block; width: 36px; height: 36px; object-fit: contain; }
.tv-menu-nombre { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.tv-barra-izq { gap: 10px; }
.tv-merka .punto { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ffea41; color: #1a1a1a; font-size: 11px; font-weight: 800; line-height: 18px; }
/* El panel de Merka en la tienda: también lleva su buscador. */
.menu-movil-busca { display: flex; align-items: center; gap: 10px; margin: 14px 20px 2px; padding: 0 14px; min-height: 48px; border-radius: 14px; background: var(--suave); color: var(--gris); }
.menu-movil-busca input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; color: var(--tinta); }
.menu-movil-busca input:focus { outline: none; }
.menu-movil-busca:focus-within { box-shadow: 0 0 0 2px var(--azul); }
.tv-barra { max-width: 1440px; margin: 0 auto; padding: 8px clamp(14px,1.8vw,28px); display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px; }
.tv-pestanas { min-width: 0; max-width: 100%; display: flex; justify-content: center; gap: clamp(18px,2.4vw,32px); overflow-x: auto; }
.tv-pestanas a { flex: none; display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 500; color: #a9acc9; text-decoration: none; transition: color 140ms ease; }
.tv-pestanas a:hover { color: #fff; }
.tv-pestanas a[aria-current] { color: #fff; font-weight: 700; }
.tv-buscar { justify-self: end; display: flex; align-items: center; gap: 8px; width: clamp(220px,24vw,320px); height: 44px; margin: 0; padding: 0 14px; border-radius: 14px; background: rgba(255,255,255,.12); color: #d9dcef; }
.tv-buscar input { flex: 1; min-width: 0; height: auto; padding: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: #fff; outline: none; box-shadow: none; }
.tv-input-oscuro::placeholder { color: #c9cbe4; opacity: 1; }
.tv-buscar:focus-within { box-shadow: 0 0 0 2px #ffea41; }

/* ---------- Portada e identidad (§6) ---------- */
.tv-cabeza { position: relative; isolation: isolate; overflow: clip; background: linear-gradient(to bottom, var(--acd) 0, var(--acd) calc(100% - 96px), #F6F6F6 calc(100% - 96px)); }
.tv-brillo { position: absolute; z-index: -1; pointer-events: none; }
.tv-brillo-1 { left: -10%; top: -30%; width: 60%; height: 120%; background: radial-gradient(closest-side, var(--acl), transparent); }
.tv-brillo-2 { right: -10%; top: -20%; width: 55%; height: 110%; background: radial-gradient(closest-side, var(--acl2), transparent); }
.tv-barra-sitio { position: relative; z-index: 1; }
.tv-cabeza-in { max-width: 1440px; margin: 0 auto; padding: 0 clamp(4px,.8vw,12px); }
.tv-propio { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 4px clamp(8px,2.4vw,32px) 12px; padding: 10px 16px; border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.12); color: #fff; font-size: 15px; }
.tv-propio a { color: #ffea41; font-weight: 700; }
.tv-portada { position: relative; overflow: hidden; aspect-ratio: 1320 / 400; max-height: 440px; border-radius: 0 0 28px 10px; background: #0d0620; box-shadow: rgba(0,0,0,.35) 0 24px 60px; }
.tv-portada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-portada.sin-imagen { background: var(--acd); background-image: radial-gradient(ellipse 60% 120% at 10% 0%, var(--acl), transparent 70%), radial-gradient(ellipse 60% 120% at 100% 100%, var(--acl2), transparent 70%); }
.tv-portada-velo { position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(13,6,32,.55), rgba(13,6,32,0)); }
.tv-ident { position: relative; isolation: isolate; overflow: hidden; margin: -64px clamp(8px,2.4vw,32px) 0; padding: clamp(14px,1.6vw,20px) clamp(16px,2.2vw,26px); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: clamp(14px,2vw,26px);
  background: var(--acd); background-image: radial-gradient(ellipse 45% 120% at 100% 0%, var(--acl) 0%, transparent 60%), radial-gradient(ellipse 40% 90% at 0% 100%, rgba(255,255,255,.06) 0%, transparent 65%);
  border: 1px solid rgba(255,255,255,.28); border-radius: 24px 24px 24px 8px; box-shadow: rgba(0,0,0,.10) 0 2px 6px, rgba(0,0,0,.30) 0 20px 44px; }
.tv-puntos { position: absolute; z-index: -1; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%); mask-image: linear-gradient(100deg, transparent 35%, #000 85%); }
.tv-aro { position: absolute; z-index: -1; border-radius: 999px; pointer-events: none; }
.tv-aro-1 { right: -90px; top: -110px; width: 320px; height: 320px; border: 34px solid rgba(255,255,255,.05); }
.tv-aro-2 { right: 110px; bottom: -150px; width: 220px; height: 220px; border: 2px solid rgba(255,234,65,.22); }
.tv-rayas { position: absolute; z-index: -1; left: -40px; bottom: -30px; width: 260px; height: 90px; border-radius: 20px; transform: rotate(-8deg); pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 10px, transparent 10px 22px); }
@property --tv-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.tv-luz { position: absolute; inset: -1px; z-index: 3; padding: 2px; border-radius: inherit; pointer-events: none; animation: tvLuz 6s linear infinite; filter: drop-shadow(0 0 4px rgba(255,234,65,.55));
  background: conic-gradient(from var(--tv-ang), transparent 0deg, transparent 250deg, rgba(255,255,255,0) 270deg, rgba(255,255,255,.75) 315deg, #ffea41 338deg, rgba(255,255,255,.85) 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@keyframes tvLuz { to { --tv-ang: 360deg; } }
.tv-ident-texto { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tv-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.tv-meta h1 { margin: 0; font-size: clamp(28px,3.2vw,40px); font-weight: 800; line-height: 1.05; letter-spacing: -.8px; color: #fff; overflow-wrap: anywhere; }
.tv-lugar { display: flex; align-items: center; gap: 5px; font-size: 14px; color: #d9dcef; }
.tv-nota { display: flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #d9dcef; text-decoration: none; transition: background 140ms ease; }
.tv-nota:hover { background: rgba(255,255,255,.22); color: #d9dcef; }
.tv-nota strong { font-weight: 800; color: #ffea41; }
.tv-desc { margin: 0; max-width: 620px; font-size: 15px; line-height: 1.55; color: #eceef7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Escríbenos · WhatsApp · Copiar: siempre en una fila, del mismo alto (JC, 4 oct 2026). */
.tv-acciones { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 8px; }
.tv-acciones .tv-icono-btn { flex: none; }
.tv-escribir-form { margin: 0; display: contents; }
.tv-escribir { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px 14px 14px 4px; background: #ffea41; color: #1a1a1a; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: rgba(0,0,0,.10) 0 6px 14px; transition: filter 140ms ease, transform 140ms ease; }
.tv-escribir:hover { filter: brightness(.97); transform: translateY(-1px); color: #1a1a1a; }
.tv-escribir.apagado { opacity: .5; pointer-events: none; }
.tv-icono-btn { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background 140ms ease; }
.tv-icono-btn[hidden] { display: none; }
.tv-icono-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.tv-wa, .tv-wa:hover { color: #7ee2a0; }

/* ---------- Contenido ---------- */
.tv-main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(12px,2vw,20px) clamp(12px,2vw,32px) 56px; display: flex; flex-direction: column; gap: clamp(32px,4vw,52px); }
.tv-buscar-movil { display: none; align-items: center; gap: 8px; height: 48px; margin: 0; padding: 0 14px; border-radius: 14px; background: #fff; color: #6b6b6b; box-shadow: rgba(26,26,26,.04) 0 1px 2px, rgba(26,26,26,.05) 0 4px 10px; }
.tv-buscar-movil input { flex: 1; min-width: 0; height: auto; padding: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: #1a1a1a; outline: none; box-shadow: none; }
.tv-seccion { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 140px; }
.tv-seccion-cabeza { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tv-titulo { margin: 0; font-size: clamp(22px,2.2vw,28px); font-weight: 800; letter-spacing: -.5px; color: #1a1a1a; }
.tv-titulo-pagina { font-size: clamp(24px,2.4vw,32px); letter-spacing: -.6px; }
.tv-sub { font-size: 14px; color: #6b6b6b; }
.tv-ver { flex: none; padding: 6px 0; font-size: 15px; font-weight: 600; color: #252B60; text-decoration: none; }
.tv-ver:hover { text-decoration: underline; color: #252B60; }
.tv-btn-amarillo, .tv-btn-azul, .tv-btn-gris { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px 14px 14px 4px; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.tv-btn-amarillo { background: #ffea41; color: #1a1a1a; }
.tv-btn-amarillo:hover { filter: brightness(.97); color: #1a1a1a; }
.tv-btn-azul { align-self: center; margin-top: 6px; background: #252B60; color: #fff; box-shadow: rgba(37,43,96,.24) 0 8px 18px; }
.tv-btn-azul:hover { background: #2e3572; color: #fff; }
.tv-btn-gris { min-height: 44px; background: #f5f5f4; color: #1a1a1a; font-size: 15px; font-weight: 600; }
.tv-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.tv-card:hover .tv-img, .tv-cat:hover .tv-img { transform: scale(1.04); }

/* Tarjeta de producto (§8) */
.tv-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tv-card-foto { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 18px 18px 18px 6px; background: #ededeb; box-shadow: rgba(26,26,26,.04) 0 1px 2px, rgba(26,26,26,.05) 0 4px 10px; transition: box-shadow 180ms ease; }
.tv-card:hover .tv-card-foto { box-shadow: rgba(26,26,26,.05) 0 2px 4px, rgba(37,43,96,.14) 0 16px 32px; }
.tv-chip { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 10px 10px 10px 3px; background: #e0251b; color: #fff; font-size: 14px; font-weight: 800; }
.tv-cuando { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.94); color: #1a1a1a; font-size: 12px; font-weight: 700; }
.tv-card form[data-guardar] { position: absolute; top: 10px; right: 10px; margin: 0; }
.tv-corazon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: #1a1a1a; cursor: pointer; box-shadow: rgba(26,26,26,.14) 0 4px 10px; transition: transform 140ms ease; }
.tv-card > a.tv-corazon { position: absolute; top: 10px; right: 10px; }
.tv-corazon:hover { transform: scale(1.08); color: #1a1a1a; }
.tv-corazon:active { transform: scale(.92); }
.tv-corazon[aria-pressed="true"] { color: #b3261e; }
.tv-corazon[aria-pressed="true"] svg { fill: currentColor; }
.tv-card-datos { display: flex; flex-direction: column; gap: 3px; padding: 0 4px; color: #1a1a1a; text-decoration: none; }
.tv-card-datos:hover { color: #1a1a1a; }
.tv-card-nombre { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-card-sub { font-size: 13px; color: #6b6b6b; }
.tv-card-precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.tv-card-precio del { font-size: 13px; font-weight: 400; color: #9a9a9a; }
.tv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,210px),1fr)); gap: 18px; }

/* 1. Destacados (bento) */
.tv-bento { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2,minmax(0,1fr)); grid-template-rows: auto auto; gap: 16px; }
/* Con menos de cinco, la rejilla se ajusta a los que hay (en escritorio). */
@media (min-width: 1101px) {
  .tv-bento-1 { grid-template-columns: minmax(0,1fr); }
  .tv-bento-1 .tv-bento-media { flex: none; aspect-ratio: 21 / 9; min-height: 0; }
  .tv-bento-1 .tv-bento-grande, .tv-bento-2 .tv-bento-grande, .tv-bento-3 .tv-bento-grande { grid-row: auto; }
  /* Con dos o tres, columnas iguales y la foto del grande cuadrada: si la fila la mandaban las chicas, la suya quedaba más chica que las de ellas. */
  .tv-bento-2, .tv-bento-3 { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
  .tv-bento-2 .tv-bento-grande, .tv-bento-3 .tv-bento-grande { min-height: 0; }
  .tv-bento-2 .tv-bento-media, .tv-bento-3 .tv-bento-media { flex: none; aspect-ratio: 1; min-height: 0; }
  .tv-bento-2 .tv-bento-pie, .tv-bento-3 .tv-bento-pie { padding: 14px 18px 16px; gap: 10px; }
  .tv-bento-2 .tv-bento-nombre, .tv-bento-3 .tv-bento-nombre { font-size: 21px; letter-spacing: -.3px; }
  .tv-bento-2 .tv-bento-precio, .tv-bento-3 .tv-bento-precio { font-size: 20px; }
  .tv-bento-2 .tv-bento-ver, .tv-bento-3 .tv-bento-ver { padding: 9px 14px; font-size: 14px; }
}
.tv-bento-grande { grid-row: 1 / span 2; overflow: hidden; min-height: 460px; border-radius: 24px 24px 24px 8px; background: #140a2e; box-shadow: rgba(20,10,46,.24) 0 18px 40px; color: #fff; text-decoration: none; }
.tv-bento-grande { gap: 0; }
.tv-bento-media { position: relative; flex: 1 1 auto; min-height: 260px; overflow: hidden; }
.tv-bento-grande .tv-img { position: absolute; inset: 0; }
.tv-bento-foto { object-fit: contain; }
.tv-bento-fondo { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(30px) saturate(1.2); opacity: .6; }
.tv-bento-etiqueta { position: absolute; top: 18px; left: 18px; padding: 6px 12px; border-radius: 999px; background: var(--acg); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; box-shadow: rgba(0,0,0,.25) 0 6px 14px; }
.tv-bento-pie { position: relative; flex: none; padding: 18px clamp(18px,2.4vw,28px) clamp(18px,2.4vw,24px); background: #140a2e; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tv-bento-texto { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tv-bento-sub { font-size: 13px; font-weight: 600; color: #d9d3ee; }
.tv-bento-nombre { font-size: clamp(24px,2.6vw,34px); font-weight: 800; line-height: 1.05; letter-spacing: -.6px; overflow-wrap: anywhere; }
.tv-bento-precio { font-size: clamp(22px,2.2vw,28px); font-weight: 800; color: #ffea41; }
.tv-bento-ver { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px 14px 14px 4px; background: #fff; color: #1a1a1a; font-size: 15px; font-weight: 700; }
.tv-bento .tv-card-nombre { -webkit-line-clamp: 1; }

/* 2. Categorías */
.tv-cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px,1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; }
.tv-cat { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 12px; border-radius: 18px 18px 18px 6px; background: #fff; color: #1a1a1a; text-decoration: none; box-shadow: rgba(26,26,26,.04) 0 1px 2px, rgba(26,26,26,.05) 0 4px 10px; transition: box-shadow 180ms ease, transform 180ms ease; }
.tv-cat:hover { transform: translateY(-3px); box-shadow: rgba(26,26,26,.05) 0 2px 4px, rgba(37,43,96,.14) 0 16px 32px; color: #1a1a1a; }
.tv-cat-foto { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px 12px 12px 4px; background: #ededeb; }
.tv-cat-pie { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px; }
.tv-cat-pie strong { font-size: 15px; font-weight: 700; }

/* 4. Más vendidos / Lo más visto (§7.4) */
.tv-top-fila { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px,calc((100% - 64px) / 5)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; }
.tv-top-card { scroll-snap-align: start; }
.tv-top-foto { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 18px 18px 18px 6px; background: #ededeb; box-shadow: rgba(26,26,26,.04) 0 1px 2px, rgba(26,26,26,.05) 0 4px 10px; }
.tv-top-n { position: absolute; left: 10px; bottom: 2px; font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -3px; color: #fff; -webkit-text-stroke: 2px #140a2e; text-shadow: rgba(20,10,46,.35) 0 6px 14px; transform-origin: left bottom; }
.tv-top-1 .tv-top-n { font-size: 78px; color: #ffea41; }
.tv-top-1 .tv-top-foto { box-shadow: 0 0 0 3px #ffea41, rgba(0,0,0,.20) 0 14px 32px; }
.tv-top-badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; background: #ffea41; color: #1a1a1a; font-size: 12px; font-weight: 800; letter-spacing: .3px; box-shadow: rgba(0,0,0,.18) 0 4px 10px; }
.tv-top-precio { justify-content: space-between; }
.tv-top-precio .tv-sub { font-size: 13px; font-weight: 400; }
.tv-top .tv-card-nombre { -webkit-line-clamp: 1; }
.js .tv-top-armado .tv-top-card { opacity: 0; transform: translateY(18px) scale(.96); }
.tv-top-on .tv-top-card { animation: tvTopIn 560ms cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d,0ms); }
.tv-top-on .tv-top-n { animation: tvTopNum 640ms cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--d,0ms) + 120ms); }
.tv-top-on .tv-top-1 .tv-top-foto { animation: tvTopGlow 1100ms ease both; animation-delay: calc(var(--d,0ms) + 360ms); }
.tv-top-on .tv-top-1 .tv-top-badge { animation: tvTopBadge 480ms cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--d,0ms) + 520ms); }
@keyframes tvTopIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tvTopNum { from { opacity: 0; transform: scale(1.9); } to { opacity: 1; transform: scale(1); } }
@keyframes tvTopGlow { 0% { box-shadow: 0 0 0 0 rgba(255,234,65,0), rgba(0,0,0,.05) 0 4px 10px; } 45% { box-shadow: 0 0 0 8px rgba(255,234,65,.85), rgba(0,0,0,.25) 0 18px 40px; } 100% { box-shadow: 0 0 0 3px #ffea41, rgba(0,0,0,.20) 0 14px 32px; } }
@keyframes tvTopBadge { from { opacity: 0; transform: translateY(-6px) scale(.8); } to { opacity: 1; transform: none; } }

/* 6. Sobre la tienda + Cómo comprar (§7.6) */
.tv-sobre { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 20px; align-items: stretch; scroll-margin-top: 140px; }
.tv-sobre-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px,2.4vw,28px); border-radius: 22px 22px 22px 8px; background: #fff; box-shadow: rgba(26,26,26,.04) 0 1px 2px, rgba(26,26,26,.06) 0 10px 28px; }
.tv-sobre-card > p { margin: 0; font-size: 16px; line-height: 1.6; color: #2a2a2a; }
.tv-sobre-cabeza { display: flex; align-items: center; gap: 14px; }
.tv-sobre-cabeza strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.tv-sobre-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 5px; border-radius: 16px 16px 16px 5px; background: var(--acd); color: #fff; font-size: 24px; font-weight: 800; }
.tv-sobre-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tv-rotulo { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #6b6b6b; }
.tv-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,180px),1fr)); gap: 10px; margin: 0; }
.tv-datos div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: #f7f7f5; }
.tv-datos dt { font-size: 13px; color: #6b6b6b; }
.tv-datos dd { margin: 0; font-size: 15px; font-weight: 700; }
.tv-comprar { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 16px; padding: clamp(20px,2.4vw,28px); border-radius: 22px 22px 22px 8px; background: #252B60; box-shadow: rgba(37,43,96,.24) 0 16px 36px; }
.tv-comprar .tv-rotulo { color: #ffea41; }
.tv-comprar-marca { position: absolute; z-index: -1; right: -50px; bottom: -14px; width: 300px; height: auto; filter: brightness(0) invert(1); opacity: .07; transform: rotate(-6deg); pointer-events: none; }
.tv-comprar ol { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tv-comprar li { display: flex; align-items: flex-start; gap: 12px; }
.tv-comprar li > span:first-child { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px 10px 10px 3px; background: #ffea41; color: #252B60; font-size: 15px; font-weight: 800; }
.tv-comprar li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; color: #c9cbe4; }
.tv-comprar li strong { font-size: 16px; color: #fff; }
.tv-comprar .tv-escribir-form + *, .tv-comprar .tv-btn-amarillo { align-self: flex-start; margin-top: auto; }

/* 7. Opiniones (§7.7) */
.tv-opiniones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,280px),1fr)); gap: 16px; }
.tv-resumen { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px 22px 22px 8px; background: #252B60; background-image: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(255,234,65,.16) 0%, rgba(255,234,65,0) 60%), linear-gradient(135deg,#2e3572 0%,#252B60 55%,#1b2050 100%); box-shadow: rgba(37,43,96,.26) 0 14px 32px; color: #fff; }
.tv-resumen-nota { display: flex; align-items: baseline; gap: 10px; }
.tv-resumen-nota > span:first-child { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.tv-resumen-sub { font-size: 14px; color: #d9dcef; }
.tv-barras { display: flex; flex-direction: column; gap: 6px; }
.tv-barra-e { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #d9dcef; }
.tv-barra-e > span:first-child { width: 12px; }
.tv-barra-e > span:last-child { width: 20px; text-align: right; }
.tv-barra-pista { flex: 1; height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.14); }
.tv-barra-pista span { display: block; height: 100%; border-radius: 999px; background: #ffea41; }
.tv-estrellas { font-size: 18px; letter-spacing: 2px; }
.tv-apagada { color: #d9d9d9; }
.tv-opinion { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px 22px 22px 8px; background: #fff; box-shadow: rgba(26,26,26,.04) 0 1px 2px, rgba(26,26,26,.05) 0 4px 10px; }
.tv-opinion p { margin: 0; font-size: 16px; line-height: 1.55; color: #2a2a2a; overflow-wrap: anywhere; }
.tv-opinion-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.tv-opinion-pie > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13px; color: #6b6b6b; }
.tv-opinion-pie strong { font-size: 14px; color: #1a1a1a; }
.tv-inicial { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: #eceef7; color: #252B60; font-size: 14px; font-weight: 800; }
.tv-reportar-op { font-size: 13px; color: #6b6b6b; }
.tv-sin-opiniones { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; border-radius: 22px 22px 22px 8px; background: #fff; text-align: center; box-shadow: rgba(26,26,26,.04) 0 1px 2px, rgba(26,26,26,.05) 0 4px 10px; }
.tv-sin-opiniones strong { font-size: 17px; }
.tv-sin-opiniones p { margin: 0; max-width: 420px; font-size: 15px; line-height: 1.5; color: #6b6b6b; }
.tv-estrella-grande { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 18px 18px 18px 6px; background: #fff8c4; color: #9a6b00; font-size: 26px; }

/* Catálogo (§9) */
.tv-ordenar { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: #6b6b6b; }
.tv-ordenar label { margin: 0; font-weight: 400; }
.tv-campo { height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: #1a1a1a; box-shadow: rgba(26,26,26,.04) 0 1px 2px, rgba(26,26,26,.05) 0 4px 10px; }
.tv-campo:focus { outline: none; box-shadow: 0 0 0 2px #252B60; }
.tv-btn-chico { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: #252B60; color: #fff; font: inherit; }
.tv-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; }
.tv-chips a { flex: none; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; color: #1a1a1a; font-size: 14px; font-weight: 500; text-decoration: none; box-shadow: rgba(26,26,26,.05) 0 1px 3px; transition: background 140ms ease; }
.tv-chips a[aria-current] { background: var(--acs); color: var(--ac); font-weight: 700; box-shadow: inset 0 0 0 1px var(--ac); }
.tv-vacio { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; border-radius: 22px 22px 22px 8px; background: #fff; text-align: center; box-shadow: rgba(26,26,26,.04) 0 1px 2px, rgba(26,26,26,.05) 0 4px 10px; }
.tv-vacio h2 { margin: 0; font-size: 17px; font-weight: 700; }
.tv-vacio p { margin: 0; font-size: 15px; color: #6b6b6b; }
.tv-vacio-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.tv-paginas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; font-size: 15px; color: #6b6b6b; }
.tv-abrir-solo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 18px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: rgba(26,26,26,.05) 0 4px 10px; }
.tv-abrir-solo p { margin: 0; font-weight: 600; }
.tv-contactar { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tv-contactar li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: rgba(26,26,26,.04) 0 1px 2px; }
.tv-contactar li form { margin: 0; }
.tv-contactar-producto { display: flex; align-items: center; gap: 12px; min-width: 0; color: #1a1a1a; text-decoration: none; }
.tv-contactar-producto > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tv-contactar-foto { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 12px; background: #ededeb; }
.tv-contactar-foto img { width: 100%; height: 100%; object-fit: cover; }
.tv-escribir-chico { min-height: 44px; padding: 0 16px; font-size: 15px; }
.tv-reportar { align-self: flex-start; padding: 4px 0; font-size: 13px; color: #6b6b6b; text-decoration: underline; }

/* ---------- Pie propio de la tienda (§10) ---------- */
.tv-pie { background: var(--acd); color: #fff; }
.tv-pie-in { max-width: 1440px; margin: 0 auto; padding: 24px clamp(16px,2vw,32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.tv-pie-marca { min-width: 0; display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.tv-pie-marca img { flex: none; width: 44px; height: 44px; object-fit: contain; }
.tv-pie-marca > span { display: flex; flex-direction: column; min-width: 0; }
.tv-pie-marca strong { font-size: 18px; font-weight: 800; letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-pie-marca > span > span { font-size: 13px; color: #c9cbe4; }
.tv-pie-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.tv-pie-nav a { font-size: 14px; font-weight: 500; color: #c9cbe4; text-decoration: none; transition: color 140ms ease; }
.tv-pie-nav a:hover, .tv-pie-marca:hover { color: #fff; }
.tv-patrocinio { flex: none; display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #c9cbe4; text-decoration: none; transition: color 140ms ease; }
.tv-patrocinio:hover { color: #fff; }
.tv-patrocinio img { display: block; width: 72px; height: auto; margin-left: 4px; }

/* ---------- Barra «Escribir» del celular (§13) ---------- */
.tv-barra-movil { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: rgba(26,26,26,.12) 0 -4px 16px; }
.tv-barra-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 4px; border-radius: 12px 12px 12px 4px; background: var(--acd); color: #fff; font-weight: 800; }
.tv-barra-logo img { width: 100%; height: 100%; object-fit: contain; }
.tv-barra-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tv-barra-texto strong { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-barra-texto span { font-size: 12px; color: #6b6b6b; }
.tv-escribir-barra { flex: none; padding: 0 20px; box-shadow: none; }

/* ---------- Toast ---------- */
.tv-toast { position: fixed; left: 50%; bottom: clamp(24px,4vh,40px); z-index: 60; max-width: calc(100vw - 32px); margin: 0; padding: 12px 18px; transform: translateX(-50%); border-radius: 14px 14px 14px 4px; background: #1a1a1a; color: #fff; font-size: 15px; box-shadow: rgba(0,0,0,.25) 0 10px 26px; }

/* ---------- La ficha dentro de la tienda (JC, 4 oct 2026) ---------- */
.tv-cabeza-compacta { background: var(--acd); }
.tv .fi { padding-top: 8px; }
.tv .fi-boton-azul { background: var(--acd); }
.tv .fi-boton-azul:hover { background: var(--ac); }
.fi-rep-tienda { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid #ececea; font-size: 14px; }
.fi-rep-titulo { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #6b6b6b; }
.fi-rep-tienda a { align-self: flex-start; color: var(--ac); font-weight: 700; }
@media (max-width: 760px) {
  .tv .fi-barra { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* ---------- Adaptación (§14) ---------- */
@media (max-width: 1100px) {
  .tv-bento { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tv-bento-grande { grid-column: 1 / -1; grid-row: auto; min-height: 0; }
  .tv-bento-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .tv-sobre { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 900px) {
  .tv-barra { grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; }
  .tv-pestanas { justify-content: flex-start; }
}
@media (max-width: 860px) {
  /* En el celular y la tableta la tarjeta va debajo de la portada, sin taparla (5 oct 2026). */
  .tv-ident { grid-template-columns: minmax(0,1fr); margin-top: 12px; }
  .tv-menu-logo-h { height: 30px; max-width: 120px; }
  .tv-menu-logo-c { width: 30px; height: 30px; }
  .tv-menu-nombre { max-width: 110px; font-size: 15px; }
  .tv-acciones { grid-column: 1 / -1; justify-content: stretch; }
  .tv-acciones .tv-escribir { flex: 1 1 auto; }
  .tv-buscar { display: none; }
  .tv-barra { grid-template-columns: auto minmax(0,1fr); }
  .tv-buscar-movil { display: flex; }
}
@media (max-width: 760px) {
  .tv-pie-nav { order: 3; width: 100%; }
}
@media (max-width: 620px) {
  .tv-ident { justify-items: center; text-align: center; }
  .tv-bento-media { aspect-ratio: 1; }
  .tv-meta { justify-content: center; }
  .tv-desc { margin: 0 auto; }
  .tv-acciones { width: 100%; }
  .tv-barra-movil { display: flex; }
  .tv-cuerpo { padding-bottom: 84px; }
  .tv-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  @keyframes tvTopNum { from { opacity: 0; transform: scale(1.35); } to { opacity: 1; transform: scale(1); } }
}
@media (max-width: 560px) {
  .tv-pie-in { flex-direction: column; align-items: flex-start; }
  .tv-pie-nav { order: 0; }
}
@media (hover: none), (max-width: 760px) {
  .tv-corazon { width: 44px; height: 44px; }
  .tv-tactil { display: inline-flex; align-items: center; min-height: 44px; }
  .tv-pie a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Movimiento reducido (§14.3) ---------- */
@media (prefers-reduced-motion: reduce) {
  .tv-luz { animation: none; background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,234,65,.35)); }
  .js .tv-top-armado .tv-top-card { opacity: 1; transform: none; }
  .tv-top-on .tv-top-card, .tv-top-on .tv-top-n, .tv-top-on .tv-top-1 .tv-top-foto, .tv-top-on .tv-top-1 .tv-top-badge { animation: none; }
  .tv-img, .tv-fija { transition: none; }
}
