/* Estructura base */
#main.wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 10rem auto 4rem;
  padding: 0 1rem;
}

.cart-page {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* Título y navegación */
.cart_page_title {
  font-size: 1.8rem;
  color: #1a2b3c;
  margin: 1rem 0 2rem;
  padding-top: 0;
  font-weight: 500;
  text-align: center;
}

.cart_navi {
  margin: 1rem auto 2rem;
  padding: 0;
  max-width: 800px;
}

.cart_navi ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  position: relative;
  margin: 0;
  gap: 10px;
}

.cart_navi li {
  background: #ffffff;
  padding: 0.5rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #64748b;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  text-align: center;
  min-width: 100px;
  white-space: nowrap;
}

.cart_navi li.current {
  background: #1a73e8;
  color: white;
  border: none;
}

/* Línea de progreso */
.cart_navi ul::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
  z-index: -1;
}

.cart_navi ul::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  height: 1px;
  background: #1a73e8;
  z-index: -1;
  transition: width 0.6s ease;
}

/* Estados de progreso */
.cart_navi[data-step="1"] ul::before { width: 0%; }
.cart_navi[data-step="2"] ul::before { width: 33.33%; }
.cart_navi[data-step="3"] ul::before { width: 66.66%; }
.cart_navi[data-step="4"] ul::before { width: 100%; }

/* Botones inferiores */
.send {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid #e2e8f0;
}

/* También asegúrate de que el body no tenga margen superior */
body {
  margin: 0;
  padding: 0;
}

/* Ajustamos el espacio después del header */
#masthead {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  #main.wrapper {
    padding: 0;
    margin: 6rem auto 2rem;
  }

  .cart-page {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .cart_page_title {
    margin: 0.5rem 0 1.5rem;
  }

  .cart_navi {
    margin: 1rem 0;
  }

  .send {
    padding-bottom: 1rem;
  }

  .cart_navi {
    padding: 0 1rem;
    overflow-x: auto;
  }

  .cart_navi ul {
    justify-content: flex-start;
    padding-bottom: 1rem;
  }

  .cart_navi li {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: auto;
  }
} 