/* Portal de Mi Cocina y Pedidos, sobre el estilo de lumbre.lat. */

.marca__app {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  display: block;
}

.hero--app {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(255, 182, 72, .22), transparent 60%),
    linear-gradient(120deg, var(--navy-lo), var(--navy) 60%, var(--navy-hi));
}

.hero--app h1 { max-width: 16ch; }

.sello {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #d9e8f5;
  font-size: 12.5px;
  letter-spacing: .3px;
}

.hero__nota {
  margin: 14px 0 0;
  font-size: 13px;
  color: #a9c4dd;
}

.hero__tarjeta--app {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
}

.app-icono {
  width: 104px;
  height: 104px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(10, 25, 42, .22);
}

.hero__tarjeta--app h2 { font-size: 22px; }

.hero__tarjeta--app .hero__meta span {
  background: var(--bg-alt3);
  border-radius: 999px;
  padding: 2px 9px;
}

.rejilla--cinco { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.ficha--pregunta h3 {
  font-size: 16px;
  margin: 4px 0 4px;
  line-height: 1.3;
}

.ficha--pregunta p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}

.ficha--pregunta .icono { width: 42px; height: 42px; border-radius: 11px; }
.ficha--pregunta .icono svg { width: 24px; height: 24px; }

.icono--comida { background: linear-gradient(150deg, #d9743a, #a4501f); }
.icono--pedido { background: linear-gradient(150deg, #1f6fb2, #123a5e); }
.icono--cocina { background: linear-gradient(150deg, #0f8a4f, #0a5c36); }
.icono--entrega { background: linear-gradient(150deg, #12a0a8, #0a6c72); }
.icono--cobro { background: linear-gradient(150deg, #7a4fb2, #4a2c73); }

/* Vistas ilustrativas de la interfaz */
.vistas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.vistas figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px 4px;
}

.vistas figcaption {
  padding: 12px 4px 10px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.movil {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 9 / 18.6;
  overflow: hidden;
  background: #FFF9F3;
  color: #2D211B;
  border: 7px solid #2D211B;
  border-radius: 30px;
  font-size: 10px;
  line-height: 1.25;
  box-shadow: 0 18px 40px rgba(10, 25, 42, .16);
}

.movil__estado {
  flex: none;
  display: flex;
  justify-content: space-between;
  padding: 5px 12px 2px;
  font-size: 8px;
  font-weight: 700;
  color: #7A6656;
}

.movil__cuerpo {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 2px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.m-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 12px;
  padding: 2px 2px 0;
}
.m-cab small { font-weight: 600; font-size: 9px; color: #7A6656; }

.m-fechas {
  display: flex;
  gap: 4px;
  font-size: 7.5px;
  font-weight: 700;
  color: #7A6656;
}
.m-fechas span {
  flex: 1;
  text-align: center;
  padding: 4px 0;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #F0E2D7;
}
.m-fechas span.act { background: #B4552D; border-color: #B4552D; color: #fff; }

.m-dia {
  background: #B4552D;
  color: #fff;
  border-radius: 14px;
  padding: 8px 9px 5px;
}
.m-dia__cab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.m-dia__cab b { font-size: 11px; font-weight: 800; }
.m-dia__cab em {
  font-style: normal;
  font-size: 7.5px;
  font-weight: 700;
  background: rgba(0,0,0,.22);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}
.m-fila {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3.5px 0;
}
.m-fila + .m-fila { border-top: 1px solid rgba(255,255,255,.14); }
.m-fila svg { width: 11px; height: 11px; flex: none; opacity: .9; }
.m-fila div { flex: 1; min-width: 0; }
.m-fila small { display: block; font-size: 7px; opacity: .82; font-weight: 600; }
.m-fila b {
  display: block;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-fila i { font-style: normal; opacity: .7; font-size: 10px; }

.m-titulo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1px 2px -2px;
  font-size: 10px;
  font-weight: 800;
}
.m-titulo span { font-size: 8px; font-weight: 700; color: #B4552D; }

.m-tarjeta {
  background: #fff;
  border: 1px solid #F0E2D7;
  border-radius: 11px;
  padding: 7px 8px;
  display: grid;
  gap: 4px;
}
.m-tarjeta__cab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
}
.m-tarjeta__cab em {
  font-style: normal;
  font-size: 7px;
  font-weight: 700;
  background: #F2E9E1;
  color: #6B5B4E;
  border-radius: 999px;
  padding: 2px 5px;
}
.m-item {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 8px;
}
.m-item span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-item b { font-weight: 700; color: #356047; white-space: nowrap; }
.m-item b.agotado { color: #8A2F2F; }
.m-pie { font-size: 7.5px; color: #7A6656; margin: 0; padding: 0 1px; }

.m-pedido {
  background: #fff;
  border: 1px solid #F0E2D7;
  border-radius: 11px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.m-pedido__folio {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #F7DDD2;
  color: #8B3B1B;
  font-size: 7px;
  font-weight: 800;
}
.m-pedido div { flex: 1; min-width: 0; }
.m-pedido b { display: block; font-size: 8.5px; font-weight: 700; }
.m-pedido small { display: block; font-size: 7px; color: #7A6656; }
.m-pedido__total { font-size: 9px; font-weight: 800; color: #2D211B; white-space: nowrap; }

.m-chip {
  align-self: flex-start;
  font-size: 7.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  background: #E4F0E7;
  color: #356047;
}
.m-chip--azul { background: #E3EDF6; color: #355C8A; }
.m-chip--ambar { background: #F7EBD7; color: #8A5A12; }

.m-nav {
  flex: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top: 1px solid #F0E2D7;
  padding: 5px 4px 7px;
  font-size: 6.8px;
  font-weight: 600;
  color: #7A6656;
  text-align: center;
}
.m-nav span { display: grid; gap: 2px; }
.m-nav span::before {
  content: "";
  width: 12px;
  height: 12px;
  margin: 0 auto;
  border-radius: 4px;
  border: 1.4px solid currentColor;
}
.m-nav span.act { color: #B4552D; font-weight: 800; }
.m-nav span.act::before { background: #F7DDD2; border-color: #B4552D; }

.m-fab {
  position: absolute;
  right: 10px;
  bottom: 44px;
  background: #B4552D;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 10px;
  box-shadow: 0 6px 14px rgba(180, 85, 45, .32);
}

.m-resumen {
  background: #fff;
  border: 1px solid #F0E2D7;
  border-radius: 11px;
  padding: 7px 8px;
  display: grid;
  gap: 4px;
  font-size: 8px;
}
.m-resumen div { display: flex; justify-content: space-between; }
.m-resumen div.total {
  border-top: 1px solid #F0E2D7;
  padding-top: 4px;
  font-size: 9px;
  font-weight: 800;
}
.m-resumen div.total b { color: #8A2F2F; }

.m-botones { display: flex; gap: 5px; margin-top: auto; }
.m-botones--flujo { margin-top: 1px; }
.m-botones span {
  flex: 1;
  text-align: center;
  font-size: 8px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 2px;
  border: 1px solid #B4552D;
  color: #B4552D;
}
.m-botones span.solido { background: #B4552D; color: #fff; }

.vistas__nota { margin-top: 14px; }

/* Pasos */
.pasos {
  list-style: none;
  counter-reset: paso;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.pasos li {
  counter-increment: paso;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 18px 64px;
  box-shadow: var(--shadow);
}

.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.pasos strong { display: block; margin-bottom: 4px; }
.pasos span { color: var(--muted); font-size: 14px; }

/* Privacidad */
.privacidad {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: 24px;
  align-items: start;
}

.privacidad p { margin-top: 0; }

.lista-check {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 9px;
}

.lista-check li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.lista-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0c7543;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.recuadro--aviso h3 { margin-top: 0; }

/* Descarga */
.descarga {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--navy-lo), var(--navy));
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.descarga__icono {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  flex: none;
}

.descarga__texto { flex: 1 1 320px; }
.descarga h2 { margin: 0 0 6px; font-size: 24px; }
.descarga p { margin: 0 0 6px; color: #d6e6f4; font-size: 14.5px; }
.descarga .nota { color: #a9c4dd; }
.descarga .nota--hash code {
  overflow-wrap: anywhere;
  word-break: break-all;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
  color: #e8f1f9;
}

/* Tema oscuro: las franjas azules se quedan oscuras para que el texto
   blanco conserve contraste (el azul de tema oscuro es demasiado claro). */
html.tema-oscuro .hero,
html.tema-oscuro .hero--app {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(255, 182, 72, .16), transparent 60%),
    linear-gradient(120deg, #0d2942, #123a5e 60%, #1c5182);
}
html.tema-oscuro .hero p { color: #d6e6f4; }
html.tema-oscuro .hero__nota { color: #a9c4dd; }
html.tema-oscuro .descarga {
  background: linear-gradient(120deg, #0d2942, #123a5e);
}
html.tema-oscuro .baner {
  background: #0d2942;
  color: #cfe1f2;
}
html.tema-oscuro .baner span { color: #94b6d3; }
html.tema-oscuro .pasos li::before { background: #123a5e; }
html.tema-oscuro .cabera,
html.tema-oscuro .pie { background: #0d2942; }
html.tema-oscuro .nav a:hover,
html.tema-oscuro .nav button:hover,
html.tema-oscuro .nav__tema:hover,
html.tema-oscuro .nav__carrito:hover {
  background: #1c5182;
  border-color: #1c5182;
}
html.tema-oscuro .btn--mar { background: #123a5e; }
html.tema-oscuro .btn--mar:hover { background: #1c5182; }
html.tema-oscuro .recuadro--aviso { background: var(--bg-alt2); }

@media (max-width: 940px) {
  .privacidad { grid-template-columns: 1fr; }
  .hero__tarjeta--app { grid-template-columns: 84px minmax(0, 1fr); }
  .app-icono { width: 84px; height: 84px; border-radius: 18px; }
}

@media (max-width: 560px) {
  .descarga { padding: 22px; }
  .descarga__icono { width: 62px; height: 62px; }
  .movil { max-width: 260px; }
}
