/* ============================================================
   Checkout por pasos - Pulso Astral
   ============================================================ */

.checkout-wrap {
  margin-top: 8px;
}

/* ---- Barra de precio fija (siempre visible) ---- */


.price-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: #060606;
    color: #fff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.22);
    /* padding: 0px 0; */
    width: 25%;
}




.price-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 88px 0 16px; /* deja espacio para el botón de WhatsApp */
  margin-left:20px;
}

.price-bar-label {
    display: block;
    font-family: "Quicksand", Raleway, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}

.price-bar-note {
    display: block;
    font-family: "Quicksand", Raleway, sans-serif;
    font-size: 13px;
    color: #fff;
}

.price-bar-value {
  font-family: "Quicksand", Raleway, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}

/* ---- Pasos ---- */
.checkout-step .card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.paso-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.paso-label {
  font-family: "Quicksand", Raleway, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #333;
  margin: 14px 0 8px;
}

/* ---- Formato ---- */
.formato-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.formato-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin: 0;
}

.formato-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.formato-option:hover {
  border-color: #aaa;
}

.formato-option.selected {
  border-color: #000;
  background: #f6f6f6;
  box-shadow: 0 0 0 1px #000 inset;
}

.formato-icon {
  font-size: 20px;
  line-height: 1;
}

.formato-name {
  font-family: "Quicksand", Raleway, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.formato-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.formato-desc {
  font-family: "Quicksand", Raleway, sans-serif;
  font-size: 11px;
  color: #777;
}

/* ---- Tamaño ---- */
.tamano-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tamano-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin: 0;
}

.tamano-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tamano-option span {
  font-family: "Quicksand", Raleway, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #222;
}

.tamano-option:hover {
  border-color: #aaa;
}

.tamano-option.selected {
  border-color: #000;
  background: #000;
  box-shadow: 0 0 0 1px #000 inset;
}

.tamano-option.selected span {
  color: #fff;
}

/* ---- Color de marco ---- */
.marco-color-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.marco-color-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin: 0;
}

.marco-color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.marco-color-option img {
  width: 64px;
  height: auto;
  border-radius: 4px;
  display: block;
}

.marco-color-option span {
  font-family: "Quicksand", Raleway, sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #222;
}

.marco-color-option:hover {
  border-color: #aaa;
}

.marco-color-option.selected {
  border-color: #000;
  background: #f6f6f6;
  box-shadow: 0 0 0 1px #000 inset;
}

/* ---- Botones de paso ---- */
.btn-group-paso {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.btn-group-paso .btn-link {
  padding-left: 0;
  color: #000;
}

.btn-group-paso .btn-primary {
  flex: 1 1 auto;
  max-width: 260px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ajuste para que la barra fija no tape el contenido final */
body.has-price-bar {
  padding-bottom: 72px;
}

@media (max-width: 575px) {
  .price-bar-inner {
    padding: 0 80px 0 12px;
  }
  .price-bar-value {
    font-size: 22px;
  }
  .tamano-options {
    grid-template-columns: repeat(2, 1fr);
  }
}
