/* Ficha nueva de producto. TPS Jeans, einAR, noviembre 2026.
   Va junto con ficha-nueva.js. Todo cuelga de body.template-product o de clases .tps-*,
   así que no toca otras páginas. La clienta que más compra tiene de 45 a 55 años:
   nada de textos menores a 13 px y botones fáciles de tocar. */

/* ---------- Talles ---------- */

/* Botones de talle más fáciles de tocar (antes 41 x 33 px) */
.template-product .tps-grupo-talle .btn-variant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  margin: 0 6px 8px 0;
  border-radius: 22px;
}
.template-product .tps-grupo-talle .btn-variant .btn-variant-content {
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

/* El talle sin stock, además de tachado, aparece escrito abajo */
.tps-sin-stock {
  margin: 2px 0 8px;
  font-size: 14px;
  color: #555;
}

/* Mientras no eligió talle: el rótulo pide elegir y no se muestra el stock de un talle que no eligió */
.template-product .variant-label .tps-pide-talle {
  color: #1f6391;
  font-weight: 700;
  text-transform: none;
  text-decoration: none;
}
.template-product #product_form.tps-sin-talle .js-product-stock,
.template-product #product_form.tps-sin-talle .tps-linea-stock,
.template-product #product_form.tps-sin-talle .js-last-product {
  display: none !important;
}
.tps-falta-talle {
  border-radius: 6px;
  box-shadow: 0 0 0 2px #1f6391;
  animation: tps-pulso 0.9s ease 2;
}
.tps-aviso-talle {
  margin: 2px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #1f6391;
}
@keyframes tps-pulso {
  50% { box-shadow: 0 0 0 5px rgba(31, 99, 145, 0.35); }
}

#product_form.tps-sin-talle .tps-rotulo-talle,
#product_form:not(.tps-sin-talle) .tps-pide-talle {
  display: none;
}

/* "Ver medidas", al lado del rótulo del talle */
.template-product .tps-con-medidas {
  position: relative;
}
.tps-ver-medidas {
  position: absolute;
  top: -3px;
  right: 0;
  padding: 2px 0;
  border: 0;
  background: none;
  color: #1f6391;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Precio más corto ---------- */

/* "15% de descuento pagando con Transferencia" repetía la línea verde. Queda la aclaración */
.template-product .js-product-detail .js-product-discount-container > .d-flex > svg,
.template-product .js-product-detail .js-product-discount-container .text-accent > span:first-child {
  display: none;
}
.template-product .js-product-detail .js-product-discount-container {
  margin-bottom: 4px;
}
.template-product .js-product-detail .js-product-discount-disclaimer {
  font-size: 13px;
  color: #666;
}
/* Un solo destacado en rojo en la ficha: "¡Es el último!". El envío gratis pasa a azul oscuro */
.template-product .js-free-shipping-minimum-message .text-accent {
  color: #2c3e50;
}
.template-product .js-free-shipping-minimum-message svg {
  fill: #2c3e50;
}
.template-product .js-free-shipping-minimum-message {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.template-product .js-product-detail .js-product-payments-container {
  padding-top: 6px !important;
}
/* "No acumulable" va pegado al precio con transferencia, que es a lo que se refiere */
.template-product .tps-aclaracion-transferencia {
  margin: -2px 0 6px;
}
/* Envío gratis al agregar: es una buena noticia, en verde */
.template-product .js-shipping-add-product-label .text-accent {
  color: #1e7e34;
}

/* Estrellas vacías "(0)": comunican "nadie lo compró" */
.tps-sin-resenas {
  display: none !important;
}

/* Bloques genéricos del tema que reemplazan los sellos */
.template-product .tps-oculto {
  display: none !important;
}

/* Reseñas: el botón "Agregar una opinión" ensanchaba la ficha a 406 px en el celu */
.template-product .nube-button {
  max-width: 100%;
  white-space: normal;
}
.template-product .nube-box:has(> .nube-button) {
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sellos de confianza, pegados al botón ---------- */

.tps-sellos {
  clear: both;
  margin: 4px 0 20px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.tps-sellos-grilla {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.tps-sello {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 9px 10px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: #2c3e50;
}
.tps-sello {
  border-bottom: 1px solid #eee;
}
.tps-sello:nth-child(odd) {
  border-right: 1px solid #eee;
}
.tps-sello:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}
.tps-sello small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #555;
}
.tps-sello svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #1f6391;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* "Talle tal cual las medidas" abre la tabla */
.tps-sello-boton {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #eee;
  border-radius: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #2c3e50;
  text-align: left;
  cursor: pointer;
}
.tps-sello-boton small {
  color: #1f6391;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tps-sello-boton:focus-visible {
  outline: 2px solid #1f6391;
  outline-offset: -2px;
}
.tps-sello-wa {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #f2f9f4;
  color: #1b5e2c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.tps-sello-wa:hover,
.tps-sello-wa:focus {
  color: #144a22;
  text-decoration: none;
}
.tps-sello-wa small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #2f5a3b;
}
.tps-sello-wa svg {
  flex: none;
  width: 28px;
  height: 28px;
  fill: #1f9d48;
}
.tps-sello-wa .tps-flecha {
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
}

/* ---------- Descripción en acordeones ---------- */

.template-product .description.tps-con-acordeones {
  margin-top: 8px;
}
.tps-acordeon {
  border-top: 1px solid #e1e1e1;
}
.tps-acordeon:last-child {
  border-bottom: 1px solid #e1e1e1;
}
.tps-acordeon > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 8px 2px;
  list-style: none;
  cursor: pointer;
  font-family: Oswald, sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #222;
}
.tps-acordeon > summary::-webkit-details-marker {
  display: none;
}
.tps-acordeon > summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin: 0 6px 4px 12px;
  border-right: 2px solid #2c3e50;
  border-bottom: 2px solid #2c3e50;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.tps-acordeon[open] > summary::after {
  margin-bottom: -4px;
  transform: rotate(-135deg);
}
.tps-acordeon > summary:focus-visible {
  outline: 2px solid #1f6391;
  outline-offset: 2px;
}
.tps-acordeon-cuerpo {
  padding: 2px 2px 18px;
  font-size: 15px;
  line-height: 1.55;
}
.tps-acordeon-cuerpo .tps-medidas {
  margin-top: 0;
}
.tps-acordeon-cuerpo .tps-medidas h3 {
  display: none;
}
.tps-pregunta {
  margin: 0 0 14px;
}
.tps-pregunta strong {
  display: block;
  margin-bottom: 2px;
  color: #222;
}
.tps-acordeon-cuerpo a {
  color: #1f6391;
  text-decoration: underline;
}

/* ---------- Botón de compra fijo abajo (solo celu) ---------- */

.tps-barra {
  display: none;
}
@media (max-width: 767px) {
  .tps-barra {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e1e1e1;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(120%);
    transition: transform 0.25s ease;
  }
  .tps-barra.tps-visible {
    transform: none;
  }
  .tps-barra-precio {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
  }
  .tps-barra-monto {
    font-size: 19px;
    font-weight: 700;
    color: #1e7e34;
    white-space: nowrap;
  }
  .tps-barra-detalle {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
  }
  .tps-barra-btn {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: #1f6391;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
  }
  body.tps-ficha-nueva {
    padding-bottom: 76px;
  }
  .tps-barra-btn[disabled] {
    background: #9aa5ae;
  }

  /* WhatsApp flotante: sube cuando está la barra y se corre cuando el botón de compra está a la vista */
  body.tps-con-barra .js-btn-fixed-bottom.btn-whatsapp {
    bottom: calc(var(--tps-barra-alto, 72px) + 12px) !important;
    transition: bottom 0.25s ease, opacity 0.2s ease;
  }
  body.tps-compra-a-la-vista .js-btn-fixed-bottom.btn-whatsapp {
    opacity: 0;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tps-barra,
  .tps-acordeon > summary::after,
  .tps-falta-talle {
    transition: none;
    animation: none;
  }
}

/* ---------- Carrito: cuánto falta para el envío gratis y "Completá tu look" ---------- */

/* El envío gratis es una buena noticia: camión, barra y textos en verde. El tema los pinta con el
   color de acento (rojo). En la ficha esa línea ya va en azul oscuro desde el CSS avanzado. */
.js-ship-free-rest svg,
.js-ship-free-rest svg path {
  fill: #1e7e34;
}
.js-ship-free-rest .ship-free-rest-message {
  color: #1e7e34;
}
.js-ship-free-rest .bar-progress-active {
  background-image: linear-gradient(-90deg, #1e7e34, rgba(30, 126, 52, 0.2));
}
.js-ship-free-rest .bar-progress-check {
  background-color: #1e7e34;
}

.tps-con-falta .js-ship-free-rest-message .ship-free-rest-text {
  display: none !important;
}
.tps-falta-envio {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #2c3e50;
}
.tps-falta-envio strong {
  font-weight: 800;
  color: #1e7e34;
}
.tps-look {
  margin: 4px 0 16px;
}
.tps-look-titulo {
  margin: 0 0 8px;
  font-family: Oswald, sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #222;
}
.tps-look-fila {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.tps-look-item {
  flex: 0 0 112px;
  scroll-snap-align: start;
  color: #222;
  text-decoration: none;
}
.tps-look-item:hover,
.tps-look-item:focus {
  color: #1f6391;
  text-decoration: none;
}
.tps-look-item img {
  display: block;
  width: 112px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  background: #f3f3f3;
}
.tps-look-nombre {
  display: block;
  max-height: 2.5em;
  margin-top: 6px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
}
.tps-look-precio {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
}

/* ---------- Encabezado de la compu, compra rápida y combo (versión 5) ---------- */

/* El encabezado fijo de la compu venía con opacidad 0,95 y se veía el contenido detrás del menú */
.nav-head-fixed {
  opacity: 1 !important;
}

/* Al abrir el carrito el tema bloquea el scroll y la página saltaba 7 px al sacar la barra: se le reserva el lugar */
html {
  scrollbar-gutter: stable;
}

/* Ícono de cuenta al lado del carrito, en lugar de la franja "Crear cuenta / Iniciar sesión" */
.tps-cuenta {
  display: flex;
  align-items: center;
  margin: 0 4px 0 12px;
}
.tps-cuenta-link {
  display: flex;
  padding: 6px;
  color: inherit;
}
.tps-cuenta-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Combo en el celu: la ventana medía 400 px fijos y se cortaba a la derecha */
@media (max-width: 767px) {
  #js-cross-selling-modal .modal-dialog-400px {
    width: auto;
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* ---------- Encabezado de la compu en una fila (versión 6) ---------- */
/* Logo, menú en una línea (Inicio, Productos, Jeans, Bombachas de campo y "+ Info"), buscador chico, cuenta y carrito.
   Cambios, preguntas frecuentes, quiénes somos y contacto los agrupa ficha-nueva.js en el desplegable "+ Info"; mientras carga, se esconden para que
   el menú no se vea en dos filas. El celu no cambia: este menú está oculto ahí. */
@media (min-width: 768px) {
  .breadcrumb {
    display: none !important;
  }
  .nav-head-main {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
  }
  .nav-head-main .logo-container {
    flex: 0 0 auto;
  }
  .js-nav-head-main .logo-container img {
    max-height: 72px;
    width: auto;
  }
  .desktop-nav {
    flex: 1 1 auto;
    display: flex !important;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }
  .desktop-nav > .desktop-nav-item {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }
  .desktop-nav > .desktop-nav-item > .desktop-nav-link {
    display: block;
    padding: 14px 15px !important;
    font-size: 13px !important;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .desktop-nav > .desktop-nav-item:not(.tps-ayuda):has(> a[href$="/contacto/"]),
  .desktop-nav > .desktop-nav-item:not(.tps-ayuda):has(> a[href$="/segui-tu-pedido/"]),
  .desktop-nav > .desktop-nav-item:not(.tps-ayuda):has(> a[href$="/politica-de-devolucion/"]),
  .desktop-nav > .desktop-nav-item:not(.tps-ayuda):has(> a[href$="/quienes-somos/"]),
  .desktop-nav > .desktop-nav-item:not(.tps-ayuda):has(> a[href$="/preguntas-frecuentes/"]) {
    display: none !important;
  }
  /* Desplegables: se abren al pasar por el ítem, pegados abajo (sin hueco donde se cierren)
     y tardan un instante en cerrarse, por si el mouse baja en diagonal */
  .desktop-nav > .desktop-nav-item > .desktop-nav-list {
    display: block;
    top: 100%;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.12s linear, visibility 0s linear 0.2s;
  }
  .desktop-nav > .desktop-nav-item:hover > .desktop-nav-list,
  .desktop-nav > .desktop-nav-item:focus-within > .desktop-nav-list {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }
  .desktop-nav > .desktop-nav-item > .desktop-nav-link .desktop-nav-arrow {
    display: inline-block;
    float: none;
    width: 9px;
    margin-left: 5px;
    vertical-align: 1px;
    transform: rotate(90deg);
  }
  .desktop-nav > .desktop-nav-item > .desktop-nav-link .desktop-nav-arrow svg {
    width: 9px;
    height: 9px;
  }
  .desktop-search {
    flex: 0 0 auto;
    width: 210px !important;
    margin: 0 4px 0 0 !important;
  }
  .desktop-search-input {
    width: 100% !important;
  }
  /* Carrito: el ícono con la cantidad; el total se ve al abrirlo */
  .cart-summary-total {
    display: none !important;
  }
  /* Buscador, cuenta y carrito centrados a la misma altura */
  .nav-head-main > .d-flex {
    align-items: center;
  }
  .nav-head-main > .d-flex > * {
    display: flex;
    align-items: center;
  }
  .desktop-search .form-group {
    margin: 0;
  }
  /* Desplegables más anchos: cada opción en un renglón */
  .desktop-nav > .desktop-nav-item > .desktop-nav-list {
    min-width: 230px;
    max-width: none;
    width: auto;
  }
  .desktop-nav-list .desktop-nav-link {
    white-space: nowrap;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .desktop-nav > .desktop-nav-item > .desktop-nav-link {
    padding: 14px 8px !important;
  }
  .desktop-search {
    width: 150px !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .desktop-nav > .desktop-nav-item > .desktop-nav-link {
    padding: 14px 5px !important;
    font-size: 12px !important;
    letter-spacing: 0;
  }
  .desktop-search {
    width: 130px !important;
  }
  .js-nav-head-main .logo-container img {
    max-height: 56px;
  }
  /* En tablet no entra todo: "Inicio" se esconde porque el logo ya lleva al inicio */
  .desktop-nav > .desktop-nav-item.first {
    display: none !important;
  }
  .desktop-search {
    width: 100px !important;
  }
}


/* ---------- Quiénes somos (versión 7) ---------- */
/* Foto de Rosana: el editor de páginas borra el estilo y la plantilla la mostraba a 640 px en la compu */
img[src*="rosana-quienes-somos"] {
  width: 320px;
  max-width: 100%;
  height: auto;
}


/* ---------- Letra más grande y botones más cómodos (versión 8) ---------- */
/* Pedido de Rosana (10/11): su clienta tiene de 45 a 65 años. En los listados el nombre estaba
   a 10 px, las cuotas a 10 px y el botón de compra rápida a 35 px de alto */
.js-item-product .item-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: .02em !important;
  color: #222 !important;
}
.js-item-product .payment-discount-price-product-container {
  font-size: 13px !important;
  opacity: 1 !important;
}
.js-item-product .item-installments {
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  color: #444 !important;
}
.js-item-product .item-actions .btn {
  min-height: 44px;
  padding: 11px 8px !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}
@media (min-width: 768px) {
  .js-item-product .item-name {
    font-size: 15px !important;
  }
}
/* Texto de la categoría, abajo del título */
.title-container p {
  max-width: 560px;
  margin: 6px auto 20px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: #333 !important;
}
/* Ficha: los textos chicos de los sellos y de "Completá tu look" */
.tps-sello small,
.tps-look-nombre,
.tps-look-precio {
  font-size: 14px;
}


/* ---------- Páginas de texto (versión 9) ---------- */
/* Los links del contenido (WhatsApp, Correo Argentino, Andreani, Cambios y devoluciones) se veían
   igual que el texto, sin color ni subrayado */
.page.user-content > .row a {
  color: #1F6391;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ---------- "Cómo medirte" (versión 10) ---------- */
/* Botón adentro de "Medidas y calce" y ventana con el dibujo de la prenda. En el celu sale desde abajo */
.tps-medite-abrir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #1F6391;
  border-radius: 6px;
  background: #fff;
  color: #1F6391;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.tps-medite-abrir svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.tps-medite {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
}
.tps-medite.abierta {
  display: flex;
}
body.tps-medite-abierto {
  overflow: hidden;
}
.tps-medite-caja {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px 18px 18px;
  border-radius: 14px 14px 0 0;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}
.tps-medite-caja h2 {
  margin: 0 44px 8px 0;
  font-size: 22px;
  color: #0E284A;
}
.tps-medite-cerrar {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 32px;
  line-height: 1;
  color: #333;
  cursor: pointer;
}
.tps-medite-intro,
.tps-medite-tip {
  margin: 0 0 12px;
  color: #444;
}
.tps-medite-tipos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tps-medite-tipos button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.tps-medite-tipos button[aria-selected="true"] {
  border-color: #1F6391;
  background: #1F6391;
  color: #fff;
}
.tps-medite-img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: #F7F3EB;
}
.tps-medite-pasos {
  margin: 0 0 12px;
  padding-left: 20px;
}
.tps-medite-pasos li {
  margin-bottom: 8px;
}
.tps-medite-pasos strong {
  color: #0E284A;
}
.tps-medite-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px;
  border-radius: 8px;
  background: #1e7e34;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
}
@media (min-width: 768px) {
  .tps-medite {
    align-items: center;
  }
  /* En dos columnas (dibujo y pasos) para que entre entera, con el botón de WhatsApp, sin bajar */
  .tps-medite-caja {
    display: grid;
    grid-template-columns: 260px 1fr;
    column-gap: 24px;
    align-items: start;
    max-width: 780px;
    padding: 28px;
    border-radius: 12px;
  }
  .tps-medite-caja > h2,
  .tps-medite-intro,
  .tps-medite-tipos,
  .tps-medite-tip,
  .tps-medite-wa {
    grid-column: 1 / -1;
  }
  .tps-medite-img {
    grid-column: 1;
    max-width: 260px;
    margin: 0 0 12px;
  }
  .tps-medite-pasos {
    grid-column: 2;
  }
}

/* ---------- Aviso abajo a todo el ancho (reemplaza la barra de anuncio de arriba) ---------- */

/* Escondida desde el principio: así el tema calcula el encabezado del celu sin ella y no queda hueco arriba.
   Su texto lo muestra la franja de abajo (ficha-nueva.js), bien visible, como pidió Tomás el 11/11 */
.js-adbar {
  display: none !important;
}
.tps-aviso {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 997;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 52px calc(10px + env(safe-area-inset-bottom)) 16px;
  background: #f4b942;
  color: #0e284a;
  box-shadow: 0 -4px 16px rgba(14, 40, 74, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 0.35s ease, opacity 0.35s ease, bottom 0.25s ease, visibility 0s linear 0.35s;
}
.tps-aviso.tps-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform 0.35s ease, opacity 0.35s ease, bottom 0.25s ease;
}
.tps-aviso-texto {
  margin: 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.25;
}
.tps-aviso-texto span {
  display: block;
}
.tps-aviso-texto .tps-aviso-fuerte {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.tps-aviso-cerrar {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0e284a;
  transform: translateY(-50%);
  cursor: pointer;
}
.tps-aviso-cerrar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.tps-aviso-cerrar:focus-visible {
  outline: 2px solid #0e284a;
  outline-offset: -4px;
}
/* El WhatsApp sube arriba de la franja (y del botón de compra, si está) */
body.tps-con-aviso .js-btn-fixed-bottom.btn-whatsapp {
  bottom: calc(var(--tps-aviso-tope, 64px) + 12px) !important;
  transition: bottom 0.25s ease, opacity 0.2s ease;
}
@media (min-width: 768px) {
  .tps-aviso {
    min-height: 62px;
    padding: 10px 56px;
  }
  .tps-aviso-texto {
    font-size: 18px;
  }
  .tps-aviso-texto span {
    display: inline;
  }
  .tps-aviso-texto span + span::before {
    content: "·";
    margin: 0 14px;
    font-weight: 700;
  }
  .tps-aviso-texto .tps-aviso-fuerte {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tps-aviso,
  .tps-aviso.tps-visible {
    transform: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }
}

/* ---------- Botón de compra fijo en la compu ---------- */

.tps-barra-nombre {
  display: none;
}
@media (min-width: 768px) {
  .tps-barra {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    align-items: center;
    gap: 24px;
    padding: 12px max(24px, calc((100vw - 1140px) / 2));
    background: #fff;
    border-top: 1px solid #e1e1e1;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(120%);
    transition: transform 0.25s ease;
  }
  .tps-barra.tps-visible {
    transform: none;
  }
  .tps-barra-nombre {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #222;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .tps-barra-precio {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }
  .tps-barra-monto {
    color: #1e7e34;
    font-size: 21px;
    font-weight: 700;
    white-space: nowrap;
  }
  .tps-barra-detalle {
    color: #555;
    font-size: 13px;
    white-space: nowrap;
  }
  .tps-barra-btn {
    flex: none;
    width: 300px;
    height: 50px;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: #1f6391;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
  }
  .tps-barra-btn[disabled] {
    background: #9aa5ae;
  }
  body.tps-con-barra .js-btn-fixed-bottom.btn-whatsapp {
    bottom: calc(var(--tps-barra-alto, 76px) + 12px) !important;
    transition: bottom 0.25s ease;
  }
  body.tps-con-aviso .js-btn-fixed-bottom.btn-whatsapp {
    bottom: calc(var(--tps-aviso-tope, 64px) + 12px) !important;
  }
}

/* ---------- Una reseña real debajo de las estrellas ---------- */

.tps-resena {
  margin: 8px 0 14px;
  padding: 12px 14px;
  border-left: 3px solid #f4b942;
  border-radius: 6px;
  background: #fbf7ee;
  color: #333;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tps-resena.tps-visible {
  opacity: 1;
  transform: none;
}
.tps-resena-texto {
  margin: 0 0 6px;
  font-style: italic;
}
.tps-resena-pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
  color: #666;
  font-size: 13px;
}
.tps-resena-ver {
  color: #1f6391;
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .tps-resena {
    transform: none;
    transition: none;
  }
}
