.stepper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  position: relative;
  gap: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
  padding: 0 1rem;
}

.circle {
  width: 60px;  /* Aumento de tamaño */
  height: 60px;  /* Aumento de tamaño */
  border-radius: 50%;
  background: #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;  /* Aumento del tamaño del icono */
  color: #6c757d;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.step.active .circle {
  background-color: #198754;
  color: #fff;
  transform: scale(1);
  box-shadow: 0 0 0 8px rgba(25, 135, 84, 0.2);
}

.label {
  margin-top: 1.5rem;
  font-size: 16px;  /* Aumento de tamaño */
  font-weight: 600;
  color: #343a40;
}

/* Línea horizontal continua y destacada */
.step::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 50%;
  width: 100%;
  height: 3px;  /* Grosor de la línea */
  background-color: #dee2e6;
  z-index: 0;
  transform: translateX(-50%);
}

.step.active::after {
  background-color: #198754;
}

/* Ocultar la línea para el último paso */
.step:last-child::after {
  display: none;
}

/* Mejoras de responsividad */
@media (max-width: 768px) {
  .stepper {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .step {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
  }

  .circle {
    width: 50px;  /* Ajuste en pantallas pequeñas */
    height: 50px;  /* Ajuste en pantallas pequeñas */
    font-size: 1.7rem;  /* Ajuste en pantallas pequeñas */
  }

  .label {
    margin-top: 0.5rem;
    font-size: 14px;
  }

  /* Sin línea para pantallas pequeñas */
  .step::after {
    display: none;
  }
}


/* ===== TICKET GRID ===== */
.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

/* ===== TARJETAS ===== */
.ticket-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
    border: 1px solid #e5e7eb;
}

.ticket-card h5 {
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #198754;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 6px;
}

/* ===== INFO ===== */
.ticket-card.info p {
    margin: 0.35rem 0;
    font-size: 14px;
    color: #374151;
}

/* ===== IMPORTES ===== */
.ticket-card.money .money-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px dashed #e5e7eb;
}

.ticket-card.money .money-row:last-child {
    border-bottom: none;
}

.ticket-card.money .money-row.total {
    font-weight: 700;
    color: #198754;
}

.ticket-card.money .money-row.saldo {
    font-weight: 700;
    color: #dc3545;
}

/* ===== DESCRIPCIÓN ===== */
.ticket-card.description {
    margin-top: 1.5rem;
}

.ticket-card.description p {
    margin: 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ticket-grid {
        grid-template-columns: 1fr;
    }
}
