/* ==========================================================================
   FUEGO & CARBÓN — SUCURSAL VIRTUAL HONESTA (sucursal.css)
   Simulador Interactivo de Pedidos • Constructor de Hamburguesas • Chef Bot
   WCAG 2.1 AA • Visualización en Tiempo Real • aria-live="polite"
   ========================================================================== */

/* --------------------------------------------------------------------------
   BANNER DE TRANSPARENCIA & HONESTIDAD COMERCIAL
   -------------------------------------------------------------------------- */
.honesty-banner {
  background: linear-gradient(135deg, hsla(40, 80%, 55%, 0.15), hsla(15, 85%, 50%, 0.1));
  border: 1px solid var(--border-medium);
  border-left: 5px solid var(--color-mustard);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0 3rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.honesty-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: hsla(40, 80%, 55%, 0.2);
  color: var(--color-mustard);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.honesty-icon-wrapper svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.honesty-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.honesty-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   LAYOUT PRINCIPAL DE LA SUCURSAL: BUILDER + CHATBOT
   -------------------------------------------------------------------------- */
.sucursal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .sucursal-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

/* --------------------------------------------------------------------------
   CONSTRUCTOR INTERACTIVO: "CREA TU HAMBURGUESA ARTESANAL"
   -------------------------------------------------------------------------- */
.builder-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.builder-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.builder-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--text-primary);
}

.builder-price-pill {
  background: hsla(15, 85%, 50%, 0.15);
  border: 1px solid var(--color-fire);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.builder-price-pill span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.builder-price-pill strong {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--color-fire);
}

/* Pasos del Constructor */
.builder-step-group {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.step-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-fire);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Grilla de Opciones Interactivas */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.option-card {
  position: relative;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
}

.option-card:hover {
  border-color: var(--color-mustard);
  transform: translateY(-2px);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card.is-selected {
  border-color: var(--color-fire);
  background: hsla(15, 85%, 50%, 0.08);
  box-shadow: var(--shadow-glow-fire);
}

.option-title {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

.option-price-extra {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-mustard);
  margin-top: 0.25rem;
}

/* Visualizador de la Hamburguesa en Tiempo Real */
.live-visualizer-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

.visualizer-title {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.visualizer-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 48px;
  align-items: center;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  animation: popIn 0.25s var(--ease-spring);
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.stack-pill span {
  color: var(--color-fire);
}

.builder-cta-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   ASISTENTE VIRTUAL NATIVO: "CHEF DE PARRILLA"
   -------------------------------------------------------------------------- */
.chef-bot-wrapper {
  display: flex;
  flex-direction: column;
}

.bot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  height: 720px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.bot-header {
  background: var(--bg-surface-elevated);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bot-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-fire), var(--color-ember));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow-fire);
}

.bot-avatar svg {
  width: 26px;
  height: 26px;
  stroke: #ffffff;
}

.bot-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-primary);
}

.bot-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: 600;
}

/* Ventana de Mensajes */
.bot-messages-window {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bot-msg {
  display: flex;
  gap: 0.75rem;
  max-width: 85%;
  animation: fadeInMsg 0.3s ease;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bot-msg.from-bot {
  align-self: flex-start;
}

.bot-msg.from-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-bubble {
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.bot-msg.from-bot .msg-bubble {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-top-left-radius: 2px;
}

.bot-msg.from-user .msg-bubble {
  background: var(--color-fire);
  color: #ffffff;
  border-top-right-radius: 2px;
}

/* Sugerencias Rápidas (Quick Chips) */
.bot-quick-chips {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-surface);
}

.bot-quick-chips::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  padding: 0.45rem 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-mustard);
  white-space: nowrap;
  transition: all var(--duration-fast) ease;
}

.chip-btn:hover {
  background: var(--color-mustard);
  color: #111111;
  border-color: var(--color-mustard);
}

/* Input Form del Chat */
.bot-input-form {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.bot-input-field {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.bot-input-field:focus {
  outline: none;
  border-color: var(--color-fire);
}

.bot-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-fire);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.bot-send-btn:hover {
  transform: scale(1.08);
}

.bot-send-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
