.checkout-steps {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.checkout-step {
  flex: 1 1 0;
  min-width: 90px;
  text-align: center;
  position: relative;
}

/* Círculo base (pendiente) */
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  margin: 0 auto .25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #dddddd;
  background: #ffffff;
  color: #888888;
}

/* Línea entre pasos */
.checkout-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px; /* centro vertical del círculo */
  right: -50%;
  width: 100%;
  max-width: 120px;
  height: 2px;
  background: #e0e0e0; /* gris por defecto */
  z-index: -1;
}

/* Paso completado: círculo verde relleno */
.checkout-step.completed .step-circle {
  background: var(--cdr-orange-soft);
  border-color: var(--cdr-orange-soft);
  color: #ffffff;
}

/* Paso actual: círculo naranja relleno + “halo” suave */
.checkout-step.active .step-circle {
  border-color: var(--cdr-orange-soft);
  color: var(--cdr-orange-hard);
  box-shadow: 0 0 0 3px rgba(255,129,45,0.25);
}

/* Línea coloreada hasta el paso actual */
.checkout-step.completed::after,
.checkout-step.active::after {
  background: var(--cdr-orange-soft);
}

/* Etiquetas inferiores */
.step-label {
  font-size: .9rem;
  color: #555555;
}

/* Paso actual: texto en negrita */
.checkout-step.active .step-label {
  font-weight: 700;
  color: #000000;
}

/* Móvil: ajustamos la línea para no pasarnos de ancho */
@media (max-width: 576px) {
  .checkout-step:not(:last-child)::after {
    right: -40%;
    width: 80%;
  }
}

/* --- CARD VISUAL PARA CADA PRODUCTO --- */
.cart-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef !important;
}

.cart-item:hover {
    background: #fafafa;
    transition: background .2s ease-in-out;
}

/* --- IMAGEN --- */
.cart-item img {
    border-radius: 8px;
    object-fit: cover;
}

/* --- ENLACES --- */
.cart-item a {
    text-decoration: none;
}

.cart-item a:hover {
    text-decoration: underline;
}

/* --- PRECIO --- */
.cart-item .price {
    font-size: 1.1rem;
    color: #000;
    margin-top: .25rem;
}

/* --- INPUT DE CANTIDAD UX --- */
.input-group-sm .btn-number {
    width: 32px;
    font-weight: bold;
}

.input-group-sm input.form-control {
    max-width: 52px;
    padding: 0.25rem;
}

/* Para que el + y - tengan misma altura exacta */
.input-group-sm .btn-number,
.input-group-sm .form-control {
    height: 34px;
}

/* --- TEXTO EXTRA (entregas, links, etc.) --- */
.cart-item p.small,
.cart-item .small {
    color: #6c757d !important;
}

/* --- ENLACE VER PERSONALIZACIÓN --- */
.cart-item .text-naranja {
    font-weight: 600;
}

/* --- CARD INTERIORES --- */
.cart-item .card {
    border-radius: 6px;
}

/* Bloque de resumen (envío, luego subtotal, total, etc.) */
.checkout-summary-block {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    background: #fff;
}

/* Nota de envío informativa */
.shipping-note {
    background: #f5f8ff;
    border-radius: 6px;
    padding: .5rem .75rem;
}

/* Advertencia (Canarias, etc.) */
.shipping-warning {
    background: #fff7e6;
    border-radius: 6px;
    padding: .5rem .75rem;
}

/* Ajuste de iconos en notas */
.shipping-note i,
.shipping-warning i {
    min-width: 16px;
}

.summary-line {
    font-size: .95rem;
}

/* Texto de la izquierda */
.summary-line .text-muted {
    color: #6c757d !important;
}

/* Valor numérico */
.summary-line span:last-child {
    font-size: 1rem;
    color: #000;
}

/* Línea estándar del resumen */
.summary-line {
    font-size: .95rem;
}

/* Línea de descuento */
.discount-line span:last-child {
    color: #28a745 !important; /* Verde suave estilo ecommerce */
    font-weight: 600;
}

/* Ajuste de etiqueta */
.discount-line .text-muted strong {
    color: #555;
}
/* Línea estándar */
.summary-line {
    font-size: .95rem;
}

/* Línea PayPal */
.paypal-line span:last-child {
    color: #000;
    font-weight: 600;
}

/* Botón tipo enlace más elegante */
.btn-link.text-naranja {
    font-size: 1.05rem;
    text-decoration: none;
}
.btn-link.text-naranja:hover {
    text-decoration: underline;
}

/* Input group moderno */
.promo-input-group .input-group-text {
    border-radius: .5rem 0 0 .5rem;
    border: 1px solid #ced4da;
}

.promo-input-group .form-control {
    border-radius: 0 .5rem .5rem 0;
}

/* Pequeña mejora en el layout */
.promo-form {
    gap: .75rem;
}

/* --- Línea TOTAL --- */
.summary-total {
    font-size: 1.15rem;
}

/* Etiqueta del total */
.summary-total .total-label {
    color: #333;
}

/* Precio total destacado */
.summary-total .total-amount {
    font-size: 1.25rem;
    color: #000;
}

/* Si quieres darle un toque premium ligero */
.summary-total {
    background: #fff;
}

/* Si quieres que resalte un pelín más, activa esta línea:
.summary-total {
    background: #f8f9fa;
    border-radius: 6px;
}
*/


/* --- CTA principal --- */
/* Botón naranja de tu web */
.btn-orange {
    background-color: #e55a2f;   /* tu naranja real */
    border-color: #e55a2f;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;          /* como usas en otros botones */
    padding: .65rem 1rem;
}

.btn-orange:hover {
    background-color: #d44f29;
    border-color: #d44f29;
    color: #fff;
}

/* Botón secundario */
.btn-outline-dark {
    font-weight: 500;
    padding: .65rem 1rem;
    border-radius: 4px;
}

/* Logos de pago */
.payment-logos {
    max-height: 32px;
    object-fit: contain;
}

.pay-error-top{
  font-size: .85rem;
  color: #dc3545;
  font-weight: 600;
  white-space: nowrap;
}


/* Contenedor de campo del checkout */
.checkout-field {
    border-color: #e5e5e5 !important;
}

/* Label más moderno */
.checkout-field .form-label {
    font-size: .9rem;
    color: #333;
}

/* Input más limpio */
.checkout-field .form-control {
    border-radius: 4px;
    border-color: #ccc;
}

/* Hover / focus elegante */
.checkout-field .form-control:focus {
    border-color: #e55a2f;
    box-shadow: 0 0 0 0.1rem rgba(229, 90, 47, 0.25);
}

.checkout-section-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .9rem;
    background: #f1f1f1;      /* similar a alert-secondary pero más limpio */
    border-radius: 6px;
    border: 1px solid #ddd;
}

.checkout-section-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Badge del paso (1., 2., 3...) */
.checkout-section-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ccc;
    font-size: .85rem;
    font-weight: 600;
    color: #333;
}

/* Grid de opciones */
.payment-options{
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

/* En desktop: 2 columnas (ajusta si quieres 3) */
@media (min-width: 1068px){
  .payment-options{ grid-template-columns: 1fr 1fr; }
}

/* Radio real pero invisible */
.pay-radio{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Card clickable */
.pay-card{
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

/* Icono */
.pay-ico{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  flex: 0 0 auto;
}

/* Textos */
.pay-title{
  display:block;
  font-weight: 600;
  color: #222;
  line-height: 1.2;
}
.pay-sub{
  display:block;
  font-size: .85rem;
  color: #6c757d;
  margin-top: .1rem;
}
.pay-fee{
  font-weight: 600;
  color: #6c757d;
}

/* Hover suave */
.pay-card:hover{
  border-color: #cfcfcf;
  background: #fafafa;
}

/* Estado seleccionado: usa tu naranja corporativo */
.pay-radio:checked + .pay-card{
  border-color: #e55a2f;
  background: rgba(229, 90, 47, .06);
  box-shadow: 0 0 0 2px rgba(229, 90, 47, .15);
}
.pay-radio:checked + .pay-card .pay-ico{
  background: rgba(229, 90, 47, .12);
  color: #e55a2f;
}
.pay-radio:checked + .pay-card .pay-ico svg {
  filter: drop-shadow(0 0 0.35rem rgba(229,90,47,.25));
}

/* Accesibilidad teclado */
.pay-radio:focus + .pay-card{
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}


.benefits {
  border: 1px solid #e9ecef; /* suave */
}

.benefit-ico {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 90, 47, .08);
  border-radius: 10px;
  flex: 0 0 auto;
}

.benefit-body h6 {
  font-size: .95rem;
}

.benefit-body p {
  color: #6c757d;
  line-height: 1.25rem;
}

.benefit-body.border-bottom {
  border-color: #e6e6e6 !important;
}

.checkout-summary{
  border: 1px solid #e9ecef;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

/* Producto */
.summary-item{
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: .75rem;
  padding: .85rem .9rem;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.summary-thumb{
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.summary-title{
  font-weight: 600;
  color: #222;
  line-height: 1.2;
}

.summary-meta{
  font-size: .85rem;
  color: #6c757d;
  margin-top: .15rem;
}

.summary-price{
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

/* Líneas (envío/subtotal/descuento/paypal) */
.summary-line{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem .9rem;
  border-bottom: 1px solid #eee;
}

.discount-line strong{ color:#555; }
.discount-line span:last-child{ color:#28a745; }

/* Total */
.summary-total{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem .9rem;
  background: #f8f9fa;
}

.summary-total .total-amount{
  font-size: 1.15rem;
  color: #000;
  white-space: nowrap;
}


.privacy-box{
  border: 1px solid #e9ecef;
}

.privacy-list{
  padding-left: 1.1rem;
  margin: 0;
}

.privacy-list li{
  margin-bottom: .45rem;
  color: #444;
  line-height: 1.35rem;
}

.email-highlight{
  background: #f4f6f8;          /* gris suave */
  border-radius: 8px;
  padding: .75rem;
}





.floating-label{ position:relative; }

.floating-label .form-control{
  padding: 1.15rem .75rem .35rem;
  height:auto;
}

/* Label dentro del input (vacío) */
.floating-label label{
  position:absolute;
  left:.75rem;
  top: 1.05rem;                    /* antes estaba demasiado bajo */
  font-size:.9rem;
  color:#6c757d;
  pointer-events:none;
  transition:all .15s ease;
  background:#fff;
  padding:0 .35rem;                /* más padding lateral para que no “corte” */
  line-height: 1;
}

/* Label flotante (focus / con valor / error) */
.floating-label.is-focused label,
.floating-label.has-value label,
.floating-label .form-control.is-invalid + label{
  top: .30rem;                     /* más arriba: fuera del área del texto */
  font-size:.75rem;
}

/* Si es error, rojo solo en error */
.floating-label .form-control.is-invalid + label{ color:#dc3545; }
.floating-label.has-value label{ opacity:.95; }





.checkout-review{
  border-color:#e9ecef !important;
  border-radius:12px;
}

.review-row{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  padding:.55rem 0;
  border-bottom:1px solid #f0f0f0;
}

.review-row:last-child{ border-bottom:0; }

.review-label{
  color:#6c757d;
  font-size:.9rem;
  flex: 0 0 40%;
}

.review-value{
  font-weight:600;
  color:#212529;
  text-align:right;
  flex: 1 1 auto;
}

.review-row--top .review-value{
  text-align:right;
}

@media (max-width: 576px){
  .review-row{
    flex-direction:column;
    align-items:flex-start;
  }
  .review-value{
    text-align:left;
    width:100%;
  }
}

.btn-pay{
  background:#198754;          /* verde confianza */
  color:#fff;
  font-size:1.1rem;
  font-weight:600;
  border-radius:.6rem;
}
.btn-pay:hover{
  background:#157347;
  color:#fff;
}


.review-highlight{
  background:#f8f9fa;
  border-radius:8px;
  padding:.65rem .75rem;
  margin:.25rem 0;
  border:1px solid #eef0f2;
}

