/* Carta QR — Bar Restaurante Industrial. Móvil primero, alto contraste. */

:root {
  --carbon: #1C1C1C;
  --brasa: #E8551A;
  --crema: #F5EFE4;
  --hormigon: #8A8A85;
  --pizarra-fondo: #20241F;
  --pizarra-marco: #6B4A2E;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--carbon);
  color: var(--crema);
  font-family: Archivo, system-ui, sans-serif;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 88px; /* hueco inferior para la barra fija */
}

/* 1. Cabecera */
.cabecera {
  text-align: center;
  margin-bottom: 24px;
}

.cabecera h1 {
  font-family: "Archivo Black", Archivo, sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cabecera p {
  color: var(--hormigon);
  font-size: 0.85rem;
}

/* 2. La pizarra */
.pizarra {
  position: relative;
  background: var(--pizarra-fondo);
  border: 10px solid var(--pizarra-marco);
  border-radius: 8px;
  padding: 18px 18px 14px;
  margin: 30px 0 36px;
  font-family: Caveat, cursive;
}

.pizarra h2 {
  font-size: 2.3rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 10px;
}

/* Solo si hay precio general: hueco para que el título no se meta bajo el círculo */
.pizarra--con-precio h2 {
  padding-right: 56px;
}

.pizarra__precio {
  position: absolute;
  top: -26px;
  right: -16px;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--brasa);
  border-radius: 50%;
  background: var(--pizarra-fondo);
  transform: rotate(6deg);
  font-size: 1.6rem;
  font-weight: 700;
}

.pizarra__grupo {
  margin-bottom: 8px;
}

.pizarra__grupo h3 {
  color: var(--brasa);
  font-size: 1.6rem;
  font-weight: 700;
}

.pizarra__grupo ul {
  list-style: none;
  font-size: 1.45rem;
  padding-left: 14px;
}

.pizarra__grupo li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pizarra__importe {
  white-space: nowrap;
}

.pizarra__incluye {
  text-align: center;
  font-size: 1.3rem;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 2px dashed var(--pizarra-marco);
}

.sin-menu {
  background: var(--pizarra-fondo);
  border: 2px solid var(--pizarra-marco);
  border-radius: 8px;
  padding: 18px 16px;
  margin: 24px 0 32px;
  text-align: center;
  font-size: 1.05rem;
}

/* 3. La carta */
.categoria {
  margin-bottom: 30px;
}

.categoria h2 {
  font-family: "Archivo Black", Archivo, sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brasa);
  border-bottom: 2px solid var(--brasa);
  padding-bottom: 5px;
  margin-bottom: 14px;
}

.categoria ul {
  list-style: none;
}

.plato {
  margin-bottom: 16px;
}

.plato__linea {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plato__nombre {
  font-weight: 600;
}

.plato__puntos {
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted var(--hormigon);
  transform: translateY(-4px);
}

.plato__precio {
  font-weight: 600;
  white-space: nowrap;
}

.plato__desc {
  color: var(--hormigon);
  font-size: 0.875rem;
  max-width: 46ch;
}

.plato__alergenos {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.alergeno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  border: 1px solid var(--hormigon);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Leyenda de alérgenos */
.leyenda {
  margin: 4px 0 28px;
}

.leyenda summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}

.leyenda ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.85rem;
}

.leyenda li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 4. Pie */
.pie {
  text-align: center;
  color: var(--hormigon);
  font-size: 0.85rem;
  padding-bottom: 8px;
}

/* 5. Barra fija de acciones */
.acciones {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--carbon);
  border-top: 2px solid var(--brasa);
}

.acciones a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  color: var(--crema);
  text-decoration: none;
  font-weight: 600;
}

.acciones a + a {
  border-left: 1px solid var(--pizarra-marco);
}

.acciones svg {
  width: 20px;
  height: 20px;
  fill: var(--brasa);
}
