:root {
  --color-primary: #e50914;
  --dark-red: #d32f2f;
  --color-secondary: #000000;
  --color-light: #f8f9fa;
  --color-gray: #6c757d;
  --border-radius: 12px;
  --coca-cola-red: #e61c23;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: #f8f9fa;
  padding-top: 20px;
  padding-bottom: 50px;
}

.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.checkout-header {
  text-align: center;
  margin-bottom: 30px;
}

.checkout-title {
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.checkout-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0 30px;
}

.step a {
  text-decoration: none;
  cursor: pointer;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #dee2e6;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background-color: var(--coca-cola-red);
  color: white;
}

.step.completed .step-number {
  background-color: #28a745;
  color: white;
}

.step-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
  text-align: center;
}

.step.active .step-label {
  color: var(--color-secondary);
  font-weight: 600;
}

.steps-connector {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #dee2e6;
  z-index: 1;
}

.checkout-content {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
}

.section-title {
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--coca-cola-red);
}

/* Estilos para el paso 1 - Carrito */
.cart-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-right: 15px;
  flex-shrink: 0;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 5px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.cart-item-code {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 5px;
}

.cart-item-price {
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
}

.quantity-control {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-secondary);
}

.quantity-btn:first-child {
  border-radius: 4px 0 0 4px;
}

.quantity-btn:last-child {
  border-radius: 0 4px 4px 0;
}

.quantity-input {
  width: 40px;
  height: 30px;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
  text-align: center;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-summary {
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 30px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-total {
  font-weight: 700;
  font-size: 1.2rem;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  margin-top: 10px;
}

.payment-methods {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border-width: 0;
  background-color: transparent;
}

.payment-icon {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.payment-method.payment-active .payment-icon {
  background-color: var(--color-primary);
}

.payment-method.payment-active .payment-icon i {
  color: white;
}

.payment-method.payment-active .payment-name {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--color-primary);
}

.payment-icon i {
  font-size: 1.5rem;
  color: #6c757d;
}

.payment-name {
  font-size: 0.8rem;
  color: #6c757d;
}

.btn-checkout {
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--dark-red) 100%
  );
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s;
}

.btn-checkout:hover {
  background-color: #c40811;
  transform: translateY(-2px);
}

/* Estilos para el paso 2 - Detalles del Pedido */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.form-control {
  border-radius: 8px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--coca-cola-red);
  box-shadow: 0 0 0 0.2rem rgba(230, 28, 35, 0.25);
}

.form-check {
  margin-bottom: 15px;
}

.map-container {
            height: 400px;
            width: 100%;
          margin-bottom: 15px;
}

.order-summary {
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 20px;
}

.order-product {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.order-product-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-right: 15px;
  background-color: white;
  border-radius: 8px;
  padding: 5px;
}

.order-product-details {
  flex: 1;
  flex-direction: row;
  justify-content: space-between;
}

.order-product-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.order-product-price {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Estilos para el paso 3 - Confirmación */
.confirmation-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.confirmation-img {
  width: 80px;
  height: 80px;
  background-color: #a5a5a5;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
}

.confirmation-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-secondary);
}

.confirmation-message {
  color: #6c757d;
  margin-bottom: 30px;
}

.order-details {
  text-align: left;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
}

.detail-item {
  display: flex;
  margin-bottom: 10px;
}

.detail-label {
  font-weight: 600;
  width: 250px;
  color: #6c757d;
}

.detail-value {
  flex: 1;
}

.btn-continue {
  background-color: var(--coca-cola-red);
  color: white;
  border: none;
  text-decoration: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-continue:hover {
  background-color: #c40811;
  transform: translateY(-2px);
}

/* Navegación entre pasos */
.checkout-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn-prev {
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-prev:hover {
  background-color: #5a6268;
}

.btn-next {
  background-color: var(--coca-cola-red);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-next:hover {
  background-color: #c40811;
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .steps-connector {
    display: none;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item-image {
    width: 100%;
    height: auto;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .payment-methods {
    flex-wrap: wrap;
    gap: 15px;
  }

  .checkout-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .btn-prev,
  .btn-next {
    width: 100%;
  }
}

/* Ocultar pasos no activos */
.checkout-step {
  display: none;
}

.checkout-step.active {
  display: block;
}


.map-container {
    height: 400px;
    width: 100%;
    margin-bottom: 15px;
}

#btnUbicacion {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#btnUbicacion:hover {
    background: #0056b3;
}