/* ============================================================
   ficha.css · LA FICHA DEL PRODUCTO Y EL AGREGAR RÁPIDO
   ------------------------------------------------------------
   Se carga al final de todo.

   La ficha es donde se arma el pedido, así que es la pantalla que
   más plata mueve. Estaba armada como un formulario: etiquetas en
   gris, casillas cuadradas y todo del mismo peso visual. Nada
   guiaba la mirada.

   Se rehace con una idea: cada bloque se ve según lo que hace.
     · Los ingredientes informan  → fichas quietas.
     · Quitar cosas es una acción → fichas que se apagan y tachan.
     · Sumar extras cuesta plata  → precio y contador grandes.
   ============================================================ */

/* ============================================================
   1 · EL SIGNO PESO, EN BLANCO
   ------------------------------------------------------------
   El número es el dato; el signo es la unidad. Separarlos hace
   que la cifra se lea antes, y de paso baja la carga de amarillo.
   ============================================================ */

.peso {
  color: #fff;
  font-size: .74em;
  margin-right: 1px;
}

.extra-price .peso { color: #8A8A8A; font-size: .82em; }


/* ============================================================
   2 · AGREGAR RÁPIDO DESDE LA TARJETA
   ------------------------------------------------------------
   Un botón redondo arriba a la derecha de la foto. Va ahí y no
   abajo para que no se confunda con "Ver detalle": son dos cosas
   distintas y tienen que verse distintas.

   Suma la hamburguesa tal como viene, sin extras. Quien quiera
   personalizarla abre la ficha; quien ya sabe lo que quiere, la
   pide en un toque.
   ============================================================ */

.btn-rapido {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 8, .72);
  border: 1px solid rgba(245, 197, 24, .45);
  border-radius: 50%;
  color: var(--y, #F5C518);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s ease, color .2s ease,
              transform .18s cubic-bezier(.3, 1.4, .5, 1), border-color .2s ease;
}

.btn-rapido:hover,
.btn-rapido:focus-visible {
  background: var(--y, #F5C518);
  border-color: var(--y, #F5C518);
  color: #080808;
  transform: scale(1.1);
}

.btn-rapido:active { transform: scale(.92); }

/* Confirmación: el botón se pone verde un segundo y muestra un
   visto. Sin esto la persona no sabe si el toque registró. */
.btn-rapido.sumado {
  background: var(--whatsapp, #25D366);
  border-color: var(--whatsapp, #25D366);
  color: #052e16;
  transform: scale(1.12);
}

/* Un producto agotado no muestra el botón: no hay nada que sumar. */
.producto--agotado .btn-rapido { display: none; }


/* ============================================================
   3 · LA CABECERA DE LA FICHA
   ============================================================ */

.modal-name {
  font-family: var(--f-display, 'Anton', Impact, sans-serif) !important;
  font-size: clamp(34px, 9vw, 52px) !important;
  line-height: .95 !important;
  letter-spacing: .5px !important;
  text-transform: uppercase;
  color: #fff !important;
  margin-bottom: 6px !important;
}

.modal-price-base {
  font-family: var(--f-display, 'Anton', Impact, sans-serif) !important;
  font-size: clamp(26px, 6.5vw, 34px) !important;
  line-height: 1 !important;
  color: var(--y, #F5C518) !important;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px !important;
}

.modal-includes {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 13px !important;
  background: rgba(245, 197, 24, .09) !important;
  border: 1px solid rgba(245, 197, 24, .26) !important;
  border-radius: 999px !important;
  font-family: var(--f-cond, 'Barlow Condensed', sans-serif);
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase;
  color: var(--y, #F5C518) !important;
}


/* ============================================================
   4 · LOS INGREDIENTES, EN FICHAS
   ------------------------------------------------------------
   Eran un párrafo corrido separado por puntos medios: había que
   leerlo entero para saber qué trae. En fichas se escanea de un
   vistazo, que es lo que uno hace de verdad al elegir comida.
   ============================================================ */

.modal-ingredients-label {
  font-family: var(--f-cond, 'Barlow Condensed', sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  color: #6f6f6f !important;
  margin-bottom: 11px !important;
}

.modal-ingredients {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px !important;
  font-size: 0 !important;
}

.modal-ingredients .ing {
  padding: 9px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 11px;
  font-family: var(--f-body, 'Barlow', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #cfcfcf;
}


/* ============================================================
   5 · QUITAR INGREDIENTES
   ------------------------------------------------------------
   La casilla cuadrada sobra: la ficha entera es el control. Al
   tocarla se apaga y se tacha, que es justo lo que va a pasar
   con ese ingrediente en la plancha.
   ============================================================ */

#removables-section {
  padding: 16px !important;
  margin-bottom: 14px !important;
  background: rgba(255, 255, 255, .02) !important;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  border-radius: 16px !important;
}

/* El título original repetía "(sin costo)" y cada fila lo repetía
   otra vez. Se reemplaza por una instrucción que sí sirve. */
#removables-section .extras-title { font-size: 0 !important; }

#removables-section .extras-title::before {
  content: 'Sácale lo que no te guste';
  font-family: var(--f-cond, 'Barlow Condensed', sans-serif);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: #8A8A8A;
}

#removables-section .extras-title::after {
  content: ' · sin costo';
  font-family: var(--f-cond, 'Barlow Condensed', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #5a5a5a;
}

#removables-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

#removables-list label {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  margin: 0 !important;
  padding: 10px 15px !important;
  background: rgba(245, 197, 24, .08) !important;
  border: 1px solid rgba(245, 197, 24, .3) !important;
  border-bottom: 1px solid rgba(245, 197, 24, .3) !important;
  border-radius: 999px !important;
  font-family: var(--f-body, 'Barlow', sans-serif);
  font-size: 13.5px !important;
  font-weight: 600;
  color: #ededed !important;
  cursor: pointer;
  user-select: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

#removables-list label:hover { border-color: rgba(245, 197, 24, .6) !important; }
#removables-list label:active { transform: scale(.96); }

/* La casilla se esconde: la ficha completa es el control. */
#removables-list input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

#removables-list label:has(input:checked) {
  background: rgba(255, 255, 255, .025) !important;
  border-color: rgba(255, 255, 255, .1) !important;
  color: #666 !important;
  text-decoration: line-through;
  text-decoration-color: rgba(230, 57, 70, .8);
  text-decoration-thickness: 2px;
}

#removables-list label:has(input:checked)::after {
  content: '\2715';
  margin-left: 8px;
  font-size: 11px;
  color: rgba(230, 57, 70, .9);
  text-decoration: none;
}

/* El "Sin costo" repetido en cada fila sobra. */
#removables-list label > span:last-child:not(:first-of-type) { display: none !important; }


/* ============================================================
   6 · LOS EXTRAS
   ------------------------------------------------------------
   Lo que se suma acá va directo al ticket, así que el precio y
   el contador tienen que leerse sin esfuerzo.
   ============================================================ */

.extras-section {
  padding: 16px !important;
  background: rgba(255, 255, 255, .02) !important;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  border-radius: 16px !important;
}

.extras-section > .extras-title {
  font-size: 11.5px !important;
  letter-spacing: 1.9px !important;
  color: #8A8A8A !important;
  margin-bottom: 8px !important;
}

.extra-row {
  display: grid !important;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px !important;
  margin-top: 4px;
  border: 1px solid transparent;
  border-radius: 13px;
  border-bottom: none !important;
  transition: background .2s ease, border-color .2s ease;
}

.extra-row:hover { background: rgba(255, 255, 255, .028); }

.extra-name {
  font-size: 14.5px !important;
  font-weight: 600;
  color: #e8e8e8 !important;
}

.extra-price {
  font-family: var(--f-cond, 'Barlow Condensed', sans-serif) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--y, #F5C518) !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- El contador --- */

.qty-control {
  display: flex !important;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
}

.qty-control .qty-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  background: transparent !important;
  border: none !important;
  border-radius: 50% !important;
  color: #c4c4c4 !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.qty-control .qty-btn:hover {
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}
.qty-control .qty-btn:active { transform: scale(.9); }

.qty-display {
  min-width: 26px;
  text-align: center;
  font-family: var(--f-cond, 'Barlow Condensed', sans-serif);
  font-size: 16px !important;
  font-weight: 900;
  color: #6f6f6f !important;
  font-variant-numeric: tabular-nums;
  transition: color .18s ease;
}

/* Con al menos una unidad, la fila entera se enciende: se ve de
   un vistazo qué le sumaste sin tener que leer los números. */
.extra-row.tiene-cantidad {
  background: rgba(245, 197, 24, .07);
  border-color: rgba(245, 197, 24, .28);
}
.extra-row.tiene-cantidad .qty-display { color: var(--y, #F5C518) !important; }
.extra-row.tiene-cantidad .extra-name { color: #fff !important; }

/* --- Los destacados --- */

.extra-destacado {
  position: relative;
  margin-top: 16px !important;
  background: rgba(245, 197, 24, .05) !important;
  border-color: rgba(245, 197, 24, .3) !important;
}

.extra-destacado::after {
  top: -9px !important;
  right: 14px !important;
  padding: 3px 10px !important;
  font-size: 9px !important;
  letter-spacing: 1.2px !important;
}


/* ============================================================
   7 · SUBTOTAL Y CANTIDAD
   ============================================================ */

.modal-extras-subtotal {
  margin: 14px 0 0 !important;
  padding: 11px 14px !important;
  background: rgba(255, 255, 255, .03);
  border-radius: 12px;
  font-family: var(--f-cond, 'Barlow Condensed', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase;
  color: #8A8A8A !important;
  text-align: right;
}

.quantity-selector {
  margin-top: 16px !important;
  padding: 14px 16px !important;
  background: rgba(255, 255, 255, .02) !important;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  border-radius: 16px !important;
}

.quantity-label {
  font-size: 11.5px !important;
  letter-spacing: 1.9px !important;
  color: #8A8A8A !important;
}

.quantity-controls .qty-btn {
  width: 40px !important;
  height: 40px !important;
  background: rgba(255, 255, 255, .07) !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 21px !important;
}

#modal-qty {
  min-width: 34px;
  text-align: center;
  font-family: var(--f-display, 'Anton', Impact, sans-serif);
  font-size: 24px !important;
  color: #fff !important;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .btn-rapido, .extra-row, .qty-btn { transition: none !important; }
}
