/* ===== Layout general ===== */
.catering-body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
}
.catering-container {
  min-height: 100vh;
  display: flex;
  align-items: center;    /* ← CAMBIAR POR → */ align-items: flex-start;
  justify-content: center;
  padding: 20px;          /* ← CAMBIAR POR → */ padding: 0;
}
/* Caja central tipo NPS */
.catering-box {
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  padding: 28px 26px 32px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}

/* Título y subtítulo */
.catering-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 10px 0 6px;
}

.catering-subtitle {
  font-size: 0.98rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 20px;
}
/* Badge de paso actual (Step 1/4, Step 2/4, etc.) */
.catering-step-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.step-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fb7185;
}


/* ===== Progress bar ===== */
.catering-progress {
  width: 100%;
  background: #e5e7eb;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

#catering-progress-bar {
  height: 100%;
  width: 25%; /* se sobrescribe por JS según el paso */
  background: linear-gradient(90deg, #EB0029, #FF5252);
  transition: width 0.3s ease;
}

/* 🔹 FORM: más angosto dentro del card */
.catering-form {
  margin-top: 8px;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Título de sección suave */
.section-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin: 4px 0 10px;
}

/* Subtítulo de sección en step 2 */
.section-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 12px;
}

/* ===== Inputs ===== */
.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 0.98rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  margin: 10px 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  box-shadow: none;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input:focus {
  border-color: #EB0029;
  box-shadow: 0 0 0 1px rgba(235, 0, 41, 0.15);
  outline: none;
}

/* Textarea */
.form-textarea {
  min-height: 90px;
  resize: vertical;
}

/* ===== Botón principal (por defecto 100% para forms simples) ===== */
.catering-primary-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.02rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, #EB0029, #FF5252);
  color: #ffffff;
  font-weight: 700;
  margin-top: 18px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.catering-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(235, 0, 41, 0.35);
}

.catering-primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(235, 0, 41, 0.4);
}

.catering-primary-btn:disabled {
  background: #d1d5db !important;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== Layout para date + time ===== */
.form-row {
  margin: 10px 0;
}

.form-row.two-cols {
  display: flex;
  gap: 12px;
}

.form-row.two-cols > div {
  flex: 1;
}

/* Labels pequeños */
.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  margin: 10px 0 4px;
}

/* Grid de opciones interactivas (event type, guests, service mode) */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 6px 0 14px;
}

.option-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 10px 12px;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
              transform 0.1s ease;
}

.option-card:hover {
  border-color: #fb7185;
  box-shadow: 0 8px 18px rgba(248, 113, 113, 0.25);
  transform: translateY(-1px);
}

.option-card.selected {
  border-color: #EB0029;
  background: linear-gradient(145deg, #EB0029, #FF5252);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(235, 0, 41, 0.45);
}

/* ===== Navegación entre pasos (Back + Submit) ===== */
.step-nav {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
  justify-content: flex-end;
}

/* Botón Back: pill pequeño */
.secondary-btn {
  flex: 0 0 auto;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.secondary-btn:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.25);
  transform: translateY(-1px);
}

/* Botón rojo dentro del step-nav: pill auto-width, no 100% */
.step-nav .catering-primary-btn {
  flex: 0 0 auto;
  width: auto;
  padding: 12px 26px;
  margin-top: 0; /* ya no necesitamos margen superior dentro del row */
}

/* ===== Footer ===== */
.catering-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  padding-bottom: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .catering-container {
    align-items: flex-start;  /* ← DEJAR ASÍ */
    padding: 18px 14px 24px;  /* ← CAMBIAR POR → */ padding: 0;
  }

  .catering-box {
    padding: 20px 16px 22px;  /* ← CAMBIAR POR → */ padding: 16px 14px 20px;
    border-radius: 20px;       /* ← CAMBIAR POR → */ border-radius: 0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16); /* ← CAMBIAR POR → */ box-shadow: none;
  }

  .catering-title {
    font-size: 1.5rem;
  }

  .catering-subtitle {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .catering-form {
    margin-top: 14px;
  }

  .section-title {
    font-size: 1rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .form-input {
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .catering-primary-btn {
    font-size: 0.98rem;
    padding: 14px;
  }

  /* Date + Time uno abajo del otro (más legible en dedo) */
  .form-row.two-cols {
    flex-direction: column;
    gap: 8px;
  }

  /* Todas las grids a una columna en mobile */
  .option-grid {
    grid-template-columns: 1fr;
  }

  .option-card {
    font-size: 0.9rem;
    padding: 11px 12px;
    min-height: 52px; /* tap-friendly */
  }

  /* Navegación Back / Continue tipo barra pegada abajo dentro del card */
  .step-nav {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column-reverse;
    gap: 8px;
    background: linear-gradient(to top, #f3f4f6 55%, transparent);
    padding-top: 10px;
    padding-bottom: 4px;
    margin-top: 16px;
  }

  .secondary-btn,
  .step-nav .catering-primary-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Utilidad genérica */
.hidden {
  display: none !important;
}
/* ===== Paso 3: selección de menú ===== */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.menu-tab {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  background: #f3f4f6;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.menu-tab.active {
  background: linear-gradient(145deg, #EB0029, #FF5252);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(235, 0, 41, 0.35);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.menu-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  min-height: 190px;
}

.menu-card.no-desc {
  min-height: 130px;
}

.menu-card.no-desc .menu-card-footer {
  margin-top: 2px;
}

.menu-card-main {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: flex-start;
}

.menu-card-info {
  flex: 1;
}

.menu-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.menu-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.menu-card-desc {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.45;
  min-height: calc(1.45em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-card-price {
  font-weight: 700;
  color: #EF4444;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Footer de la card: cantidad + carnes apilados */
.menu-card-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.menu-info-btn {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #EF4444;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.menu-info-btn:hover {
  background: #fef2f2;
}

.menu-info-label {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.menu-card-tooltip {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 44px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #4b5563;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  z-index: 2;
  display: none;
}

.menu-card.info-open .menu-card-tooltip {
  display: block;
}

/* ===== Pill de cantidad ===== */
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.qty-btn {
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EF4444;
}

.qty-btn:hover {
  color: #b91c1c;
}

/* Input dentro del pill */
.qty-input {
  width: 44px;
  text-align: center;
  font-size: 0.9rem;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  color: #111827;
}

/* Por compatibilidad, si en algún lado se sigue usando el span */
.qty-value {
  min-width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== Selector de carnes ===== */
.meat-section {
  border-radius: 12px;
  background: #f3f4f6;
  padding: 4px 8px;
  font-size: 0.8rem;
}

.meat-toggle {
  width: 100%;
  border-radius: 999px;
  border: 1px dashed #fecaca;
  background: #ffffff;
  color: #b91c1c;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.meat-toggle:hover {
  background: #fef2f2;
}

/* Panel desplegable */
.meat-panel {
  margin-top: 6px;
  padding: 8px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.meat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.meat-row span {
  font-size: 0.78rem;
  color: #374151;
}

.meat-input {
  width: 56px;
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 0.78rem;
  text-align: right;
  font-family: inherit;
}

.meat-input:focus {
  border-color: #EB0029;
  outline: none;
  box-shadow: 0 0 0 1px rgba(235, 0, 41, 0.15);
}

.meat-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: #9ca3af;
}

/* Resumen de selección */
.menu-summary {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary-label {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
}

.summary-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}
/* Error específico bajo el campo de fecha */
.field-error {
  min-height: 0.9rem;        /* ocupa poco espacio cuando está vacío */
  font-size: 0.8rem;
  color: #b91c1c;
  margin: 2px 0 0;
}

.field-error.hidden {
  display: none;
}

/* Ajustes responsive para cards */
@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}
/* Mensajes de estado en el paso 3 */
.form-status {
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-status.hidden {
  display: none;
}

.form-status.error {
  display: block;
  color: #b91c1c;
  background: #fef2f2;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
}

.form-status.ok {
  display: block;
  color: #166534;
  background: #f0fdf4;
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid #bbf7d0;
}
/* ===== Paso 4: resumen & checkout ===== */

.checkout-summary-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #374151;
}

.summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.summary-list li:last-child {
  border-bottom: none;
}

.summary-term {
  font-weight: 500;
  color: #6b7280;
}

.summary-value-text {
  font-weight: 600;
  color: #111827;
}

/* tabla mini para los platillos */
.menu-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.menu-items-table th,
.menu-items-table td {
  padding: 4px 2px;
  font-size: 0.8rem;
  text-align: left;
}

.menu-items-table th {
  font-weight: 600;
  color: #6b7280;
}

.menu-items-table td {
  color: #111827;
}

/* caja de depósito */
.deposit-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.deposit-text {
  font-size: 0.8rem;
  color: #7f1d1d;
  margin: 0 0 6px;
}

.deposit-amount-label {
  font-size: 0.78rem;
  color: #991b1b;
  margin: 4px 0 0;
}

.deposit-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: #b91c1c;
  margin: 2px 0 0;
}

/* texto legal pequeño */
.checkout-legal {
  margin-top: 10px;
  font-size: 0.72rem;
  color: #9ca3af;
}
/* ===== Modal de pago (solo front) ===== */

.payment-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  z-index: 40;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none; /* el click solo cuenta dentro de la card */
}

/* Ocultar modal / backdrop */
.payment-modal.hidden,
.payment-backdrop.hidden {
  display: none !important;
}

/* Tarjeta blanca centrada */
.payment-modal-card {
  max-width: 420px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  padding: 20px 20px 18px;
  pointer-events: auto; /* aquí sí hay interacción */
}

/* Header del modal */
.payment-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.payment-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #16a34a;
  font-weight: 600;
}

.payment-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: #9ca3af;
}

.payment-close:hover {
  color: #4b5563;
}

/* Títulos y textos */
.payment-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 4px 0 4px;
}

.payment-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 12px;
}

/* Fila de monto */
.payment-amount-row {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #7f1d1d;
}

.payment-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: #b91c1c;
}

/* Lista "What happens next" */
.payment-summary {
  margin-top: 10px;
  padding: 8px 2px;
  font-size: 0.8rem;
  color: #4b5563;
}

.payment-summary ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.payment-summary li {
  margin-bottom: 2px;
}

/* Tarjeta fake de tarjeta de crédito */
.payment-card-preview {
  margin-top: 10px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #fee2e2, #f9fafb);
  border: 1px solid #fee2e2;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.payment-card-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
  color: #374151;
}

.payment-card-row span:first-child {
  color: #6b7280;
}

/* Botón confirmar */
.payment-confirm-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(145deg, #eb0029, #ff5252);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.payment-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(235, 0, 41, 0.35);
}

/* Pie de nota */
.payment-footnote {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #9ca3af;
  text-align: center;
}

/* Mobile */
@media (max-width: 480px) {
  .payment-modal-card {
    width: 100%;
  }
}
/* =========================
   Success page
   ========================= */

.catering-success-body {
  background: #f3f4f6;
}

.success-card {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.03);
  text-align: center;
}

/* Badge */
.success-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.success-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.75rem;
}

/* Titles */
.success-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.success-subtitle {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 0.98rem;
}

/* Event summary */
.success-event-summary {
  margin: 16px auto 24px;
  max-width: 520px;
  text-align: left;
}

.success-event-summary h2 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}

.success-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.success-summary-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.success-summary-list li:not(:last-child) {
  border-bottom: 1px dashed #e5e7eb;
}

/* Reusar estilos de resumen */
.success-summary-list .summary-term {
  font-weight: 500;
  color: #6b7280;
}

.success-summary-list .summary-value-text {
  font-weight: 500;
  color: #111827;
}

/* Next steps */
.success-next-steps {
  margin: 12px auto 20px;
  max-width: 540px;
  text-align: left;
}

.success-next-steps h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.success-next-steps ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.success-next-steps li + li {
  margin-top: 4px;
}

/* Buttons */
.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 8px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(248, 113, 113, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(248, 113, 113, 0.45);
}

.btn-ghost {
  background: transparent;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.btn-ghost:hover {
  background: #f9fafb;
}

/* Legal */
.success-legal {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #9ca3af;
}

.meat-hint.error { color:#b91c1c; font-weight:600; }
.meat-section.invalid { outline: 1px solid #b91c1c; border-radius: 8px; }
.summary-chip{
  display:inline-block;
  margin-left:.5rem;
  padding:.125rem .5rem;
  font-size:.75rem;
  line-height:1;
  border-radius:9999px;
  background:#EEF0FE;        /* primary-50 */
  color:#6273FF;              /* primary-500 */
  font-weight:600;
  vertical-align:middle;
}
/* ===========================
   Mobile spacing & layout
   =========================== */
@media (max-width: 640px) {
  .catering-container {
    align-items: flex-start; /* ← CAMBIAR de 'center' a 'flex-start' */
    padding: 16px 12px 24px; /* ← REDUCIR padding inferior de 72px a 24px */
    min-height: auto; /* ← CAMBIAR de '100vh' a 'auto' */
    /* ↑↑↑ CAMBIOS CRÍTICOS ↑↑↑ */
  }

  .catering-box {
    padding: 20px 16px 22px;
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
    /* ↓↓ AGREGAR ESTAS 2 LÍNEAS ↓↓ */
    width: 100%;
    max-width: none;
  }

 .catering-title {
    font-size: 1.5rem;
    /* ↓↓ REDUCIR MÁRGENES ↓↓ */
    margin: 8px 0 6px; /* ← ANTES: margin: 10px 0 6px */
  }
  .catering-subtitle {
    font-size: 0.9rem;
    margin-bottom: 16px; /* ← REDUCIR de 18px a 16px */
    line-height: 1.4;
  }

  .catering-step-badge {
    margin: 8px 0 12px; /* ← COMPACTAR MÁRGENES */
  }
  .catering-progress {
    margin-bottom: 16px; /* ← REDUCIR de 20px a 16px */
  }
  /* Formulario: menos espacio arriba y entre campos */
  .catering-form {
    margin-top: 0; /* ← CAMBIAR de 14px a 0 */
  }


  .section-title {
    display: block;
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 0.95rem;
  }
  #catering-form .section-title {
    margin-top: 4px;
    margin-bottom: 8px; /* ← REDUCIR ESPACIADO */
  }


  .section-subtitle {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .field-label {
    display: block;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 4px;
  }

  .form-input {
    padding: 12px 14px;
    margin: 8px 0; /* ← REDUCIR ESPACIO ENTRE INPUTS */
    font-size: 0.95rem;
  }
  /* Grid de opciones (service, guests, etc.) */
  .option-grid {
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 12px;
  }

  .option-card {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  /* Event date / time: de dos columnas a una */
  .form-row.two-cols {
    flex-direction: column;
    gap: 8px;
  }

  /* Botones Next / Back: pegados al contenido y full width */
  .step-nav {
    margin-top: 18px;
    gap: 8px;
    flex-direction: column-reverse; /* Back abajo del botón rojo */
  }
  .catering-primary-btn {
    margin-top: 16px; /* ← REDUCIR de 18px a 16px */
    padding: 14px;
  }
  /* Tarjetas de resumen en checkout */
  .checkout-summary-card {
    padding: 14px 14px 16px;
    margin-top: 8px;
  }

  .summary-list li {
    padding: 8px 0;
  }

  .menu-items-table th,
  .menu-items-table td {
    padding: 6px 4px;
    font-size: 0.85rem;
  }

  .deposit-box {
    margin-top: 16px;
    padding: 14px 14px 16px;
  }

  .deposit-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .success-event-summary {
    margin-top: 12px;
  }
}

/* ===========================
   MOBILE FIX - ELIMINAR ESPACIOS BLANCOS  
   =========================== */
@media (max-width: 480px) {
  .catering-body {
    background: #ffffff; /* ← FONDO BLANCO EN MÓVIL */
  }
  
  .catering-container {
    padding: 0 !important;
    min-height: 100vh;
    align-items: flex-start;
  }
  
  .catering-box {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 16px 14px 20px;
    margin: 0;
  }
  
  .catering-title {
    margin: 4px 0 4px;
    font-size: 1.4rem;
  }
  
  .catering-subtitle {
    margin-bottom: 12px;
    font-size: 0.85rem;
  }
  
  .catering-step-badge {
    margin: 6px 0 8px;
  }
  
  .catering-progress {
    margin-bottom: 12px;
  }
  
  .catering-form {
    margin-top: 0;
  }
  
  .form-input {
    margin: 6px 0;
    padding: 12px 14px;
  }
  
  .catering-primary-btn {
    margin-top: 14px;
  }
  
  .catering-footer {
    padding: 12px 0;
  }
}
/* ==== FIX ESPACIO RARO EN MOBILE (Y ESCRITORIO) ==== */
.catering-form .section-title {
  padding: 0;          /* Mata el padding 110px 0 global */
  margin-top: 4px;
  margin-bottom: 8px;
  display: block;      /* Aseguramos que sea bloque (label o span) */
}
