/* ===================================================
   MARATÓN URBANO — Selector de talles US/AR estilo Mercado Libre
   Archivo separado de custom.css para evitar depender del caché
   de CDN de un archivo ya existente al desplegarlo por primera vez.
=================================================== */

.mu-talle-btn .btn-variant-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  padding: 3px 0 2px;
  min-width: 34px;
}

.mu-talle-ar {
  font-size: 15px;
  font-weight: 800;
  color: #2C1A0E;
  white-space: nowrap;
}

.mu-talle-ar-tag {
  font-size: 9px;
  font-weight: 700;
  margin-left: 2px;
  vertical-align: super;
}

.mu-talle-us {
  font-size: 10px;
  font-weight: 500;
  color: rgba(44,26,14,.55);
  margin-top: 1px;
}

.mu-talle-btn.selected .mu-talle-ar,
.mu-talle-btn.selected .mu-talle-us {
  color: #fff;
}

.mu-talle-btn.btn-variant-no-stock .mu-talle-ar,
.mu-talle-btn.btn-variant-no-stock .mu-talle-us {
  opacity: .5;
}

/* Botón "Ver guía de talles" */
.mu-guia-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #D96A2A;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin: 10px 0 18px;
  font-family: 'Inter', sans-serif;
}

.mu-guia-btn:hover { opacity: .8; }

/* Modal guía de talles */
.mu-guia-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.mu-guia-modal.mu-guia-modal-open { display: block; }

.mu-guia-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44,26,14,.55);
}

.mu-guia-modal-content {
  position: relative;
  background: #FAF7F2;
  color: #2C1A0E;
  max-width: 520px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  margin: 5vh auto;
  padding: 32px 24px 24px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  font-family: 'Inter', sans-serif;
}

.mu-guia-modal-content img { max-width: 100%; height: auto; border-radius: 8px; }

.mu-guia-modal-content table { width: 100%; border-collapse: collapse; margin-top: 8px; }

.mu-guia-modal-content table th,
.mu-guia-modal-content table td {
  border: 1px solid #D9B98F;
  padding: 6px 10px;
  text-align: center;
  font-size: 14px;
}

.mu-guia-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #2C1A0E;
}

/* Barra sticky de compra (solo mobile, ficha de producto) */
.mu-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FAF7F2;
  border-top: 1px solid #D9B98F;
  box-shadow: 0 -4px 16px rgba(44,26,14,.12);
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .2s ease;
  font-family: 'Inter', sans-serif;
}

.mu-sticky-cta.mu-sticky-cta-visible { transform: translateY(0); }

.mu-sticky-cta-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mu-sticky-cta-name {
  font-size: 12px;
  color: rgba(44,26,14,.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mu-sticky-cta-price {
  font-size: 16px;
  font-weight: 800;
  color: #2C1A0E;
}

.mu-sticky-cta-btn {
  flex-shrink: 0;
  background: #D96A2A;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mu-sticky-cta { display: none; }
}
