:root {
  --primary-dark: #192823;
  --secondary-gold: #b08d57;
  --whatsapp-green: #128c7e; /* Color más oscuro de WhatsApp */
  --whatsapp-green-dark: #075e54; /* Color aún más oscuro para hover */
  --casa-goytia-green: #25d366; /* Verde de Casa Goytia */
  --light-bg: #ffffff;
  --text-dark: #333333;
  --border-light: #dddddd;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

.header-main {
  background-color: var(--primary-dark);
}

.container-custom {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== HEADER COMPACTO ===== */
.checkout-header {
  background-color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.checkout-title {
  text-align: center;
  margin-bottom: 1rem;
}

.checkout-title h1 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.checkout-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 65px;
  cursor: pointer;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.step-circle.completed {
  background-color: var(--secondary-gold);
  color: white;
}

.step-circle.active {
  background-color: var(--primary-dark);
  color: white;
}

.step-circle.inactive {
  background-color: #e9ecef;
  color: #6c757d;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
  text-align: center;
  line-height: 1.2;
}

.step-label.active {
  color: var(--primary-dark);
  font-weight: 600;
}

.step-connector {
  width: 35px;
  height: 2px;
  background-color: #e9ecef;
  margin-top: 15px;
  flex-shrink: 0;
}

.step-connector.completed {
  background-color: var(--secondary-gold);
}

/* ===== BOTÓN VOLVER ===== */
.btn-back {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.8rem 0.8rem;
  border-radius: var(--border-radius-sm);
}

.btn-back:hover {
  background-color: #f5f5f5;
  color: var(--secondary-gold);
}

/* ===== MAIN CONTENT COMPACTO ===== */
.main-content {
  padding: 1.2rem 0;
  min-height: calc(100vh - 150px);
}

/* ===== FORM CONTROLS COMPACTOS ===== */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.form-control-custom {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  color: var(--text-dark);
  background-color: white;
  transition: var(--transition);
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--secondary-gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.1);
}

.form-control-custom::placeholder {
  color: #999;
  font-size: 0.85rem;
}

.help-text {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.3rem;
  display: block;
  line-height: 1.3;
}

/* Phone input compacto */
.phone-input-group {
  display: flex;
  align-items: center;
}

.phone-prefix {
  background-color: #f8f9fa;
  padding: 0.75rem 0.6rem;
  border: 1px solid var(--border-light);
  border-right: none;
  color: #666;
  font-weight: 500;
  font-size: 0.85rem;
}

.phone-input {
  flex: 1;
}

/* Textarea compacta */
textarea.form-control-custom {
  min-height: 90px;
  resize: vertical;
  font-size: 0.85rem;
}

/* ===== TIPO DE PEDIDO COMPACTO ===== */
.order-type-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.order-type-btn {
  flex: 1;
  background-color: white;
  border: 2px solid var(--border-light);
  color: #666;
  padding: 0.7rem 0.4rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  min-height: 48px;
}

.order-type-btn:hover {
  border-color: var(--secondary-gold);
  color: var(--primary-dark);
}

.order-type-btn.active {
  
  border-color: var(--secondary-gold);
  background-color: #f9f9f9;
}

.order-type-btn i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .order-type-btn {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0.3rem;
    min-height: 52px;
    font-size: 0.75rem;
  }

  .order-type-btn i {
    font-size: 0.95rem;
  }
}

/* ===== RESERVATION SECTION COMPACTA ===== */
.reservation-section {
  background-color: #f9f9f9;
  border-radius: var(--border-radius-md);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-light);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.4s ease;
}

.reservation-section.active {
  max-height: 450px;
  opacity: 1;
  margin-top: 0.5rem;
}

.reservation-title {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reservation-title i {
  color: var(--secondary-gold);
  font-size: 0.9rem;
}

/* Personas y Salón en la misma fila */
.reservation-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .reservation-row {
    flex-direction: column;
    gap: 1rem;
  }
}

.reservation-col {
  flex: 1;
}

/* People stepper ultra compacto */
.stepper-control {
  display: inline-flex;
  align-items: center;
  background-color: white;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  max-width: 160px;
  width: 100%;
}

.stepper-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-dark);
  transition: var(--transition);
  font-size: 0.9rem;
}

.stepper-btn:hover {
  background-color: #f5f5f5;
}

.stepper-btn:active {
  background-color: var(--primary-dark);
  color: white;
}

.stepper-value {
  width: 45px;
  text-align: center;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1rem;
}

/* Select dropdown compacto */
select.form-control-custom {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23192823' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 12px;
  padding-right: 2.2rem;
  font-size: 0.85rem;
  height: 42px;
}

/* ===== OPTIONAL FIELDS ===== */
.optional-label {
  color: #666;
  font-weight: 500;
  font-size: 0.85rem;
}

/* ===== ORDER SUMMARY COMPACTO ===== */
.order-summary-card {
  background-color: white;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  margin-bottom: 1.2rem;
  flex-direction: column;
  position: fixed;
  
}

.columna-modal{
  padding: 0;
  display: flex;
  justify-content:flex-end;
}

.summary-header {
  background-color: var(--secondary-gold);
  color: white;
  padding: 0.9rem 1rem;
}

.summary-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.summary-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Order items ultra compacto */
.order-items {
  margin-bottom: 1rem;
  flex: 1;
  max-height: 400px;
  overflow-x: auto;
  padding-left: 5px;
  padding-right: 5px;
}

.order-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

.order-item:last-child {
  border-bottom: none;
}

.item-image {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-details {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-quantity {
  font-size: 0.8rem;
  color: #666;
}

.item-price {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.9rem;
  white-space: nowrap;
  margin-left: 0.5rem;
}

/* Totales ultra compactos */
.order-totals {
  border-top: 1px solid var(--border-light);
  margin-top: 10px;
  margin-bottom: 10px;
}

.total-row.final {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== BOTÓN CONFIRMAR PEDIDO (ESTILO MEJORADO) ===== */
.btn-confirm-order {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--whatsapp-green) 0%,
    var(--casa-goytia-green) 100%
  );
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-confirm-order:hover {
  background: linear-gradient(
    135deg,
    var(--whatsapp-green-dark) 0%,
    var(--whatsapp-green) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 140, 126, 0.4);
}

.btn-confirm-order:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(18, 140, 126, 0.3);
}

.info-text {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  margin-top: 0.7rem;
  line-height: 1.3;
}

/* ===== CARD STYLES COMPACTAS ===== */
.card-custom {
  background: white;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 1rem;
}

.card-header-custom {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-light);
  background-color: #f9f9f9;
}

.card-header-custom h4 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header-custom h4 i {
  color: var(--secondary-gold);
  font-size: 0.9rem;
}

.card-body-custom {
  padding: 1rem;
}

@media (max-width: 1400px) {
  .order-summary-card {
    max-width: 400px;
  }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .checkout-header {
    padding: 0.8rem 0;
  }

  .checkout-title h1 {
    font-size: 1.3rem;
    margin-left: 40px;
    margin-right: 40px;
  }

  .order-summary-card {
    position: relative;
  }

  .btn-back {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 0.5rem;
    justify-content: center;
    width: 100%;
  }

  .checkout-steps {
    gap: 0.6rem;
  }

  .step-connector {
    width: 25px;
  }

  .step-item {
    min-width: 55px;
  }

  .main-content {
    padding: 1rem 0;
  }

  .order-type-btn {
    font-size: 0.75rem;
  }

  .btn-confirm-order {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .card-body-custom {
    padding: 0.9rem;
  }

  .form-control-custom {
    padding: 0.7rem;
    font-size: 0.85rem;
  }

  .phone-prefix {
    padding: 0.7rem 0.5rem;
  }
}

@media (max-width: 576px) {
  .checkout-title h1 {
    font-size: 1.2rem;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .main-content {
    padding: 0.8rem 0;
  }

  .reservation-section {
    padding: 1rem;
  }

  .summary-body {
    padding: 0.9rem;
  }

  .item-image {
    width: 45px;
    height: 45px;
  }

  .item-name {
    font-size: 0.85rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-down {
  animation: fadeInDown 0.3s ease forwards;
}

/* ===== NOTIFICATION COMPACTA ===== */
.notification {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #2f443d;
  color: white;
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-medium);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 250px;
  font-size: 0.85rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification i {
  color: var(--secondary-gold);
  font-size: 0.85rem;
}
