:root {
  --primary-dark: #192823;
  --secondary-gold: #b08d57;
  --whatsapp-green: #25d366;
  --whatsapp-dark: #128c7e;
  --text-primary: #2c3e50;
  --text-secondary: #546e7a;
  --light-bg: #ffffff;
  --body-bg: #f5f5f5;
  --border-light: #e0e0e0;
  --border-radius: 8px;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
  --transition: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--text-primary);
  background-color: var(--body-bg);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
}



/* ===== HEADER COMPACTO ===== */
.checkout-header {
  background-color: white;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.checkout-title {
  text-align: center;
  margin-bottom: 0.6rem;
}

.checkout-title h1 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  letter-spacing: -0.2px;
}

.checkout-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.7rem;
  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: #f0f0f0;
  color: var(--text-secondary);
}

.step-label.active {
  color: var(--primary-dark);
  font-weight: 600;
}

.step-label.completed {
  color: var(--secondary-gold);
}

.step-connector {
  width: 40px;
  height: 2px;
  background-color: #f0f0f0;
  margin-top: 13px;
}

.step-connector.completed {
  background-color: var(--secondary-gold);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 1.5rem 0;
}

/* ===== CARD PRINCIPAL ===== */
.main-card {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.card-header-fin {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
  background-color: #f9f9f9;
}

.card-header-fin h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.card-body {
  padding: 1.2rem;
}

/* ===== TABLA DE INFORMACIÓN COMPACTA ===== */
.info-table {
  width: 100%;
  margin-bottom: 1rem;
}

.table-row {
  display: flex;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f5f5f5;
  align-items: flex-start;
  min-height: 36px;
}

.table-row:last-child {
  border-bottom: none;
}

.table-label {
  width: 140px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.8rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.table-value {
  flex: 1;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.2;
}

/* Reserva details compacto */
.reservation-details {
  display: flex;
  gap: 1rem;
  margin-top: 0.2rem;
}

.reservation-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.reservation-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.reservation-value {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
}

.table-producto {
  width: 300px;
  margin-bottom: 5px;
  display: flex;
}

.table-producto-nombre {
  display: flex;
  flex: 1;
  padding: 0px;
  margin: 0px;
}

.table-producto-precio {
  width: 80px;
  text-align: end;
  padding: 0px;
  margin: 0px;
}
/* ===== TARJETAS DE NOTAS Y FACTURACIÓN ===== */
.cards-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  .cards-container {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

.notes-card {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  padding: 0.7rem 0.9rem;
}

.invoice-card {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  padding: 0.7rem 0.9rem;
}

.card-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--secondary-gold);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-label i {
  font-size: 0.7rem;
}

.card-value {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ===== TOTAL DESTACADO ===== */
.total-section {
  background: #f9f9f9;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.total-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.total-label i {
  color: var(--secondary-gold);
  font-size: 0.8rem;
}

.total-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ===== BOTONES COMPACTOS ===== */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.6rem;
}

@media (max-width: 576px) {
  .action-buttons {
    grid-template-columns: 1fr;
  }
}

.btn-back-fin {
  background-color: white;
  color: var(--primary-dark);
  border: 1px solid var(--border-light);
  padding: 0.6rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.btn-back-fin:hover {
  background-color: #f8f9fa;
  border-color: var(--primary-dark);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-light);
}

.btn-whatsapp:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== FOOTER COMPACTO ===== */
.footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.8rem 0 0.6rem;
  text-align: center;
  margin-top: 2rem;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.2rem;
}

.footer p {
  margin-bottom: 0.1rem;
  line-height: 1.2;
  font-size: 0.65rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body {
    font-size: 12px;
  }

  .checkout-title h1 {
    font-size: 1rem;
  }

  .checkout-steps {
    gap: 0.8rem;
  }

  .step-connector {
    width: 30px;
  }

  .main-content {
    padding: 1rem 0;
  }

  .card-header-fin {
    padding: 0.9rem 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .table-row {
    padding: 0.5rem 0;
    min-height: 32px;
  }

  .table-label {
    width: 120px;
    font-size: 0.75rem;
  }

  .table-value {
    font-size: 0.8rem;
  }

  .reservation-details {
    flex-direction: column;
    gap: 0.2rem;
  }

  .notes-card,
  .invoice-card {
    padding: 0.6rem 0.8rem;
  }

  .total-section {
    padding: 0.7rem 0.9rem;
  }

  .table-producto {
    width: 100%;
  }

  .table-producto-precio {
    width: 30%;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== UTILITY ===== */
.text-muted {
  color: var(--text-secondary) !important;
  font-size: 0.75rem;
}
.mt-05 {
  margin-top: 0.2rem;
}
