/* ==========================================================================
   /css/tienda.css — Catálogo digital (/tienda/) y su panel (/admin/tienda/).
   Todo cuelga de .tp (público), .tv-3d (visor) o .ta (admin): no afecta a
   ninguna otra página. Usa los tokens del encabezado (--tm-*).
   ========================================================================== */

.tp, .ta {
  --tp-fondo: #f4f8fb;
  --tp-tarjeta: #ffffff;
  --tp-texto: var(--tm-navy, #112d55);
  --tp-suave: #50637a;
  --tp-linea: var(--tm-linea, #e3eaf1);
  --tp-azul: var(--tm-azul, #1d4fae);
  --tp-naranja: var(--tm-naranja, #ff664c);
  --tp-verde: #1d7a4b;
  --tp-ambar: #9a5b00;
  --tp-rojo: #b3261e;
  --tp-radio: 16px;
  --tp-sombra: 0 6px 18px rgba(4, 28, 52, .16);
  box-sizing: border-box;
  width: 100%;
  max-width: 1144px;
  margin: 0 auto;
  font-family: var(--tm-sans, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  color: var(--tp-texto);
}
.tp *, .tp *::before, .tp *::after,
.ta *, .ta *::before, .ta *::after { box-sizing: border-box; }
.tp img, .ta img { max-width: 100%; display: block; }
.tp [hidden], .ta [hidden], .tv-3d [hidden] { display: none !important; }

/* ------------------------------------------------------------- Cabecera */
.tp-cabeza {
  background: #eaf1f5;
  border-radius: var(--tp-radio);
  box-shadow: var(--tp-sombra);
  padding: 18px 16px 16px;
  margin-bottom: 16px;
}
.tp-cabeza__barra { display: block; width: 26px; height: 4px; border-radius: 1px; background: var(--tp-naranja); }
.tp-cabeza__titulo {
  margin: 6px 0 0;
  font-family: var(--tm-titulo, "Barlow Condensed", "Arial Narrow", sans-serif);
  font-weight: 800;
  font-size: clamp(26px, 6.6vw, 40px);
  line-height: 1.08;
  color: var(--tp-texto);
}
.tp-cabeza__lead { margin: 6px 0 0; color: var(--tp-suave); font-size: 15px; }

.tp-pedido {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff3e0;
  border: 1px solid #ffd2a6;
  color: #6b3a00;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.4;
}
.tp-pedido::before { content: "🏊 "; }

.tp-vacio {
  background: var(--tp-tarjeta);
  border-radius: var(--tp-radio);
  padding: 22px 16px;
  text-align: center;
  color: var(--tp-suave);
  box-shadow: var(--tp-sombra);
}
.tp-vacio a { color: var(--tp-azul); }

/* ------------------------------------------------------------- Filtros */
.tp-filtros {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 0 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tp-filtros::-webkit-scrollbar { display: none; }
.tp-filtro {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 14px/1 var(--tm-sans, system-ui);
  min-height: 38px;
  cursor: pointer;
}
.tp-filtro.is-activo { background: #fff; color: var(--tp-texto); border-color: #fff; }

/* ------------------------------------------------------------- Tarjetas */
.tp-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 700px) { .tp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .tp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tp-card { min-width: 0; }
.tp-card__enlace {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--tp-tarjeta);
  border-radius: var(--tp-radio);
  overflow: hidden;
  box-shadow: var(--tp-sombra);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tp-card__enlace:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(4, 28, 52, .22); }
.tp-card__enlace:focus-visible { outline: 3px solid var(--tp-naranja); outline-offset: 2px; }
.tp-card__foto {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--tp-fondo);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-card__foto img { width: 100%; height: 100%; object-fit: contain; }
.tp-card__sinfoto, .tp-sinfoto span {
  font-family: var(--tm-titulo, sans-serif);
  font-weight: 800;
  font-size: 42px;
  color: #c4d3e0;
}
.tp-card__cuerpo { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
.tp-card__cat { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tp-suave); }
.tp-card__nombre { font-weight: 700; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.tp-card__precio { font-weight: 700; color: var(--tp-azul); font-size: 15px; }

.tp-sello {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--tp-texto);
  color: #fff;
  font: 800 12px/1 var(--tm-sans, system-ui);
  padding: 5px 7px;
  border-radius: 8px;
  letter-spacing: .03em;
}
.tp-sello--chico { position: static; font-size: 10.5px; padding: 3px 5px; border-radius: 6px; }

.tp-disp {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: #e7f5ee;
  color: var(--tp-verde);
}
.tp-disp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tp-disp--pocas { background: #fff4e0; color: var(--tp-ambar); }
.tp-disp--agotado { background: #fde8e6; color: var(--tp-rojo); }
.tp-disp--sobre_pedido { background: #e8eefb; color: var(--tp-azul); }
.tp-disp--proximamente { background: #eef0f3; color: var(--tp-suave); }

/* ------------------------------------------------------------- Ficha */
.tp-migas { margin: 0 0 10px; }
.tp-migas a, .ta-migas a { color: #fff; font-weight: 600; text-decoration: none; }
.tp-migas a:hover { text-decoration: underline; }
.tp-previa {
  background: #fff8c5; color: #4d3b00; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px;
}
.tp-previa a { color: var(--tp-azul); }

.tp-producto {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 900px) {
  .tp-producto { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
  .tp-medios { position: sticky; top: 76px; }
}
.tp-medios, .tp-info {
  background: var(--tp-tarjeta);
  border-radius: var(--tp-radio);
  box-shadow: var(--tp-sombra);
  min-width: 0;
}
.tp-medios { padding: 10px; }
.tp-info { padding: 16px; }

.tp-vistas {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 10px;
  background: var(--tp-fondo);
  border-radius: 12px;
}
.tp-vista {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--tp-suave);
  font: 700 15px/1 var(--tm-sans, system-ui);
  cursor: pointer;
}
.tp-vista.is-activa { background: #fff; color: var(--tp-texto); box-shadow: 0 1px 4px rgba(4, 28, 52, .14); }
.tp-vista:focus-visible { outline: 3px solid var(--tp-naranja); outline-offset: 1px; }

.tp-galeria { margin: 0; }
.tp-galeria__pista {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 12px;
  background: var(--tp-fondo);
  aspect-ratio: 1 / 1;
  -webkit-overflow-scrolling: touch;
}
.tp-galeria__pista::-webkit-scrollbar { display: none; }
.tp-galeria__pista:focus-visible { outline: 3px solid var(--tp-naranja); }
.tp-galeria__img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  scroll-snap-align: center;
}
.tp-galeria__minis { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.tp-mini {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--tp-fondo);
  overflow: hidden;
  cursor: pointer;
}
.tp-mini img { width: 100%; height: 100%; object-fit: cover; }
.tp-mini.is-activa { border-color: var(--tp-azul); }

.tp-sinfoto {
  aspect-ratio: 1 / 1; border-radius: 12px; background: var(--tp-fondo);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--tp-suave);
}
.tp-sinfoto p { margin: 4px 0 0; }

.tp-info__cat { margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--tp-suave); }
.tp-info__nombre {
  margin: 4px 0 0;
  font-family: var(--tm-titulo, sans-serif);
  font-weight: 800;
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.05;
  color: var(--tp-texto);
}
.tp-info__precio { margin: 8px 0 0; font-size: 24px; font-weight: 800; color: var(--tp-azul); }
.tp-nota { margin: 6px 0 0; color: var(--tp-suave); font-size: 14px; }
.tp-info__resumen { margin: 10px 0 0; font-size: 15.5px; line-height: 1.45; }

.tp-opcion { margin-top: 16px; }
.tp-opcion__titulo { margin: 14px 0 8px; font-weight: 700; font-size: 14px; }
.tp-opcion__botones { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-chip {
  min-height: 42px;
  padding: 8px 14px;
  border: 1.5px solid var(--tp-linea);
  border-radius: 12px;
  background: #fff;
  color: var(--tp-texto);
  font: 600 14.5px/1.2 var(--tm-sans, system-ui);
  cursor: pointer;
}
.tp-chip.is-activo { border-color: var(--tp-azul); background: #eef3fd; box-shadow: inset 0 0 0 1px var(--tp-azul); }
.tp-tallas__de { margin: 14px 0 0; font-weight: 700; color: var(--tp-suave); font-size: 13px; }
.tp-tallas__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tp-talla {
  min-width: 46px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--tp-fondo);
  border: 1px solid var(--tp-linea);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tp-talla small { font-weight: 500; color: var(--tp-suave); font-size: 12px; }

.tp-condiciones {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef3fd;
  border: 1px solid #d5e1f8;
}
.tp-condiciones__titulo { margin: 0 0 6px; font-weight: 800; color: var(--tp-azul); }
.tp-condiciones ul { margin: 0; padding-left: 18px; line-height: 1.45; font-size: 14.5px; }
.tp-condiciones li + li { margin-top: 3px; }
.tp-condiciones__extra { font-size: 14px; margin-top: 8px; }
.tp-condiciones__extra p { margin: 6px 0 0; }
.tp-pedido--ficha { margin-top: 12px; }
.tp-descripcion { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--tp-linea); line-height: 1.55; font-size: 15.5px; }
.tp-descripcion p { margin: 0 0 10px; }
.tp-boton-sec {
  margin-top: 10px; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--tp-linea);
  background: #fff; color: var(--tp-texto); font: 600 14px var(--tm-sans, system-ui); cursor: pointer;
}

/* ------------------------------------------------------------- Visor 3D */
.tv-3d {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #e9f0f6 70%);
}
.tv-3d__lienzo, .tv-3d__mv { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv-3d__mv { --poster-color: transparent; background: transparent; }
.tv-3d__estado {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .92);
  color: var(--tp-texto, #112d55); font-weight: 600; font-size: 14px; text-align: center; z-index: 2;
}
.tv-3d__barra { display: block; width: 140px; height: 5px; margin: 8px auto 0; background: #dbe6f0; border-radius: 3px; overflow: hidden; }
.tv-3d__barra > span { display: block; height: 100%; width: 0; background: var(--tm-azul, #1d4fae); transition: width .2s; }
.tv-3d__reset {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(17, 45, 85, .2);
  background: rgba(255, 255, 255, .95); color: var(--tm-navy, #112d55); font: 700 13.5px var(--tm-sans, system-ui); cursor: pointer;
}
.tv-3d__falla {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center; color: var(--tp-suave, #50637a); background: #f4f8fb;
}
.tv-3d__abrir { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.tp-3d__ayuda { margin: 8px 2px 0; font-size: 13px; color: var(--tp-suave); text-align: center; }
.tp-vista--falla { opacity: .7; }

/* ------------------------------------------------------------- Panel admin */
.ta { padding-bottom: 20px; }
.ta-migas { margin: 0 0 8px; }
.ta-cabeza {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: #eaf1f5; border-radius: var(--tp-radio); box-shadow: var(--tp-sombra); padding: 16px; margin-bottom: 14px;
}
.ta-titulo { margin: 0; font-family: var(--tm-titulo, sans-serif); font-weight: 800; font-size: 28px; color: var(--tp-texto); }
.ta-sub { margin: 4px 0 0; color: var(--tp-suave); font-size: 14.5px; line-height: 1.4; }
.ta-sub a, .ta-ayuda a { color: var(--tp-azul); }
.ta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative;
  min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--tp-linea);
  background: #fff; color: var(--tp-texto); font: 700 15px var(--tm-sans, system-ui); text-decoration: none; cursor: pointer;
}
.ta-btn--primario { background: var(--tp-azul); border-color: var(--tp-azul); color: #fff; }
.ta-aviso { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; }
.ta-aviso--ok { background: #e7f5ee; color: #0f5132; }
.ta-aviso--error { background: #fde8e6; color: #7a1712; }
.ta-vacio { background: #fff; border-radius: 12px; padding: 14px; color: var(--tp-suave); margin: 8px 0; }

.ta-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ta-item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  background: #fff; border-radius: 14px; box-shadow: var(--tp-sombra); padding: 10px;
}
.ta-item__foto { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--tp-fondo); display: flex; align-items: center; justify-content: center; }
.ta-item__foto img { width: 100%; height: 100%; object-fit: cover; }
.ta-item__sinfoto { font-size: 11px; color: var(--tp-suave); }
.ta-item__nombre { font-weight: 700; color: var(--tp-texto); text-decoration: none; }
.ta-item__meta { display: block; font-size: 13px; color: var(--tp-suave); margin-top: 2px; }
.ta-estado { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.ta-estado--si { background: #e7f5ee; color: #0f5132; }
.ta-estado--no { background: #eef0f3; color: #4a5563; }

.ta-bloque {
  background: #fff; border-radius: var(--tp-radio); box-shadow: var(--tp-sombra); padding: 16px; margin: 0 0 14px;
}
.ta-bloque__titulo { margin: 0 0 6px; font-size: 19px; color: var(--tp-texto); }
.ta-bloque__titulo small { font-weight: 500; color: var(--tp-suave); font-size: 13px; }
.ta-ayuda { margin: 0 0 10px; color: var(--tp-suave); font-size: 13.5px; line-height: 1.45; }
.ta-subir { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0; }
.ta-subir__btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ta-progreso { flex: 1 1 160px; height: 8px; background: #e3eaf1; border-radius: 4px; overflow: hidden; }
.ta-progreso > span { display: block; height: 100%; width: 0; background: var(--tp-azul); transition: width .15s; }
.ta-resultados { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13.5px; }
.ta-res--ok { color: #0f5132; }
.ta-res--error { color: #7a1712; }

.ta-fotos { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ta-foto { border: 1px solid var(--tp-linea); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ta-foto--oculta .ta-foto__img { opacity: .45; }
.ta-foto__img { display: block; aspect-ratio: 1 / 1; background: var(--tp-fondo); }
.ta-foto__img img { width: 100%; height: 100%; object-fit: contain; }
.ta-foto__info { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px 8px 0; }
.ta-foto__meta { font-size: 12px; color: var(--tp-suave); }
.ta-foto__acciones { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
.ta-foto__alt { display: flex; gap: 4px; padding: 0 8px 8px; }
.ta-foto__alt input { flex: 1; min-width: 0; font-size: 13px; padding: 6px 8px; border: 1px solid var(--tp-linea); border-radius: 8px; }
.ta-mini {
  display: inline-flex; align-items: center; min-height: 34px; padding: 5px 9px; border-radius: 8px;
  border: 1px solid var(--tp-linea); background: #fff; color: var(--tp-texto); font: 600 13px var(--tm-sans, system-ui); cursor: pointer;
}
.ta-mini:disabled { opacity: .4; cursor: default; }
.ta-mini--peligro { color: var(--tp-rojo); }
.ta-mini--primario { background: var(--tp-azul); color: #fff; border-color: var(--tp-azul); }
.ta-chip { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: #eef0f3; color: #4a5563; }
.ta-chip--azul { background: #e8eefb; color: var(--tp-azul); }
.ta-chip--alerta { background: #fff4e0; color: var(--tp-ambar); }

.ta-modelo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 8px 0 12px; }
@media (min-width: 760px) { .ta-modelo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ta-modelo__datos p { margin: 0 0 6px; }
.ta-modelo__visor { max-width: 520px; width: 100%; }

.ta-form .ta-campos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 760px) { .ta-form .ta-campos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ta-campo--ancho { grid-column: 1 / -1; } }
.ta-campo { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.ta-campo small { font-weight: 400; color: var(--tp-suave); font-size: 12.5px; }
.ta-campo input, .ta-campo select, .ta-campo textarea, .ta-inline, .ta-prod__extra input {
  font: 400 16px var(--tm-sans, system-ui); /* 16 px: iOS no hace zoom al enfocar */
  padding: 9px 10px; border: 1px solid #cdd8e3; border-radius: 10px; background: #fff; color: var(--tp-texto); width: 100%;
}
.ta-inline { width: auto; max-width: 140px; padding: 4px 8px; }
.ta-grupo { border: 1px solid var(--tp-linea); border-radius: 12px; padding: 12px; margin: 14px 0 0; }
.ta-grupo legend { font-weight: 800; padding: 0 6px; }
.ta-radio { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 14.5px; line-height: 1.4; }
.ta-radio input { margin-top: 3px; width: 18px; height: 18px; }
.ta-solo-pedido { margin: 8px 0; }
.ta-productos { display: grid; gap: 6px; }
.ta-productos__cat { margin: 10px 0 0; font-weight: 800; font-size: 13px; color: var(--tp-suave); text-transform: uppercase; letter-spacing: .04em; }
.ta-prod { border: 1px solid var(--tp-linea); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; }
.ta-prod--elegido { border-color: var(--tp-azul); background: #f6f9ff; }
.ta-prod--inactivo .ta-prod__nombre { color: var(--tp-suave); }
.ta-prod__check { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.ta-prod__check input { width: 20px; height: 20px; }
.ta-prod__meta { font-size: 12.5px; color: var(--tp-suave); }
.ta-prod__extra { display: flex; gap: 6px; }
.ta-prod__extra input { font-size: 15px; padding: 6px 8px; }
.ta-prod__extra .ta-orden { width: 76px; flex: 0 0 76px; }
.ta-acciones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }

/* Entrenadores por producto (panel) */
.ta-entrenadores { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin: 6px 0 8px 26px; }
.ta-entrenador { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--tp-linea); border-radius: 10px; padding: 8px 10px; font-size: 14px; cursor: pointer; }
.ta-entrenador input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; }
.ta-entrenador small { display: block; color: var(--tp-suave); font-size: 12px; }
.ta-entrenadores .ta-aviso { grid-column: 1 / -1; margin: 0; }
.ta-foto__producto { display: flex; gap: 6px; align-items: center; padding: 0 8px 8px; font-size: 12.5px; color: var(--tp-suave); }
.ta-foto__producto select { flex: 1; min-width: 0; font-size: 14px; padding: 5px 6px; border: 1px solid var(--tp-linea); border-radius: 8px; }

/* Tarjeta con una imagen por diseño (p. ej. Legado 18 y El Cuarto Sol): mismo
   tamaño y espacio para cada una, una debajo de otra, sin alternarse. Cada
   imagen abre la ficha con su diseño elegido; el texto abre la ficha normal. */
.tp-card__foto--disenos {
  display: grid;
  grid-template-rows: repeat(var(--tp-n, 2), minmax(0, 1fr));
  gap: 2px;
  padding: 0;
  background: var(--tp-linea);
  align-items: stretch;
  justify-content: stretch;
}
.tp-card__diseno {
  display: block;
  min-height: 0;
  background: var(--tp-fondo);
  overflow: hidden;
}
.tp-card__diseno img { width: 100%; height: 100%; object-fit: contain; transition: transform .15s ease; }
.tp-card__diseno:hover img { transform: scale(1.03); }
.tp-card__diseno:focus-visible, .tp-card__cuerpo:focus-visible { outline: 3px solid var(--tp-naranja); outline-offset: -3px; }
a.tp-card__cuerpo { color: inherit; text-decoration: none; }
