/* Fit Snack · app mínima. Colores y tipografía en un solo lugar (:root). Mobile-first a 390 px, probada en 360. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format("woff2");
}

:root {
  /* paleta (pedido del 04/12): verde principal, naranja de acento, fondo crema, texto */
  --verde: #2F7D4F;
  --naranja: #F2994A;
  --crema: #FBF7F0;
  --tinta: #1F2A24;
  /* derivados */
  --verde-osc: #23603C;
  --verde-tinte: #E3F0E6;
  --verde-linea: #C9E0D0;
  --naranja-tinte: #FDE9D7;
  --naranja-tinta: #A8561A;
  --crema-osc: #F1E9DC;
  --papel: #FFFFFF;
  --gris: #63706A;
  --linea: #E8E0D3;
  /* tipografía: Bricolage Grotesque (alojada acá, sin pedidos a Google) para títulos y números; la del sistema para leer */
  --f-titulo: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-texto: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --col: 480px;
  --tab-alto: 64px;
  --abajo: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--crema-osc);
  color: var(--tinta);
  font: 400 16px/1.45 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.bloqueado, html.bloqueado body { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
.ico { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* columna de la app: en el celular ocupa todo; en escritorio, centrada a 480 px */
.app {
  max-width: var(--col);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--crema);
}
@media (min-width: 520px) {
  .app { box-shadow: 0 0 0 1px var(--linea), 0 10px 40px rgba(31, 42, 36, .08); }
}

/* cabecera */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: rgba(251, 247, 240, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.marca { display: flex; align-items: center; gap: 9px; font: 800 19px/1 var(--f-titulo); color: var(--verde); letter-spacing: -.01em; }
.marca img { width: 28px; height: 28px; border-radius: 8px; }
.instalar {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px;
  border: 1.5px solid var(--verde-linea); border-radius: 999px;
  background: var(--papel); color: var(--verde-osc); font-weight: 650; font-size: 14px;
}
.instalar .ico { width: 18px; height: 18px; }

main { padding: 0 16px calc(var(--tab-alto) + var(--abajo) + 28px); }

/* vistas */
.vista.entra { animation: aparecer .22s ease both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1 {
  font: 800 32px/1.05 var(--f-titulo);
  letter-spacing: -.025em;
  margin: 4px 0 12px;
}
.bajada { margin: -6px 0 16px; color: var(--gris); font-size: 15.5px; }

/* ===== Recetas ===== */
.buscador {
  position: relative; display: flex; align-items: center;
  background: var(--papel); border: 1.5px solid var(--linea); border-radius: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.buscador:focus-within { border-color: var(--verde); box-shadow: 0 0 0 4px var(--verde-tinte); }
.buscador > .ico { position: absolute; left: 14px; color: var(--gris); pointer-events: none; }
.buscador input {
  flex: 1; min-width: 0; height: 54px; padding: 0 8px 0 46px;
  border: 0; background: none; outline: none;
  font: 500 17px var(--f-texto); color: var(--tinta);
  -webkit-appearance: none; appearance: none;
}
.buscador input::placeholder { color: #8A938D; }
.buscador input::-webkit-search-cancel-button { display: none; }
.borrar { width: 44px; height: 44px; margin-right: 5px; border: 0; background: none; color: var(--gris); display: grid; place-items: center; border-radius: 12px; }
.ayuda { margin: 7px 2px 0; font-size: 13.5px; color: var(--gris); }
.ayuda i { font-style: normal; font-weight: 650; color: var(--tinta); }

.tiempo { margin-top: 16px; }
.tiempo-tit { display: block; font: 700 16px/1.2 var(--f-titulo); margin: 0 0 9px 2px; }
.tiempo-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.t-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 6px 8px;
  border: 1.5px solid var(--linea); border-radius: 16px; background: var(--papel);
  font: 700 16px/1 var(--f-titulo); color: var(--tinta);
  transition: border-color .15s, background-color .15s, transform .1s;
}
.t-btn .dial { --d: 30px; }
.t-btn[aria-pressed="true"] { border-color: var(--verde); background: var(--verde-tinte); color: var(--verde-osc); }
.t-btn:active { transform: scale(.97); }

/* el reloj de 15 minutos: el arco naranja es la parte de los 15 que lleva la receta */
.dial { --d: 44px; position: relative; width: var(--d); height: var(--d); flex: 0 0 var(--d); display: inline-grid; place-items: center; }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .pista { fill: none; stroke: var(--crema-osc); stroke-width: 3.4; }
.dial .arco { fill: none; stroke: var(--naranja); stroke-width: 3.4; stroke-linecap: round; }
.dial b { position: relative; font: 800 calc(var(--d) * .36)/1 var(--f-titulo); letter-spacing: -.02em; }
.dial small { display: none; }
.dial.con-min { place-content: center; gap: 1px; }
.dial.con-min b { margin-top: 2px; }
.dial.con-min small { display: block; position: relative; font: 650 9.5px/1 var(--f-texto); color: var(--gris); text-align: center; }
.t-btn .dial b { display: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 40px; padding: 0 15px;
  border: 1.5px solid var(--linea); border-radius: 999px; background: var(--papel);
  font-weight: 650; font-size: 14.5px; color: var(--tinta); white-space: nowrap;
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: #fff; }
.chip-sep { flex: 0 0 1px; background: var(--linea); margin: 8px 2px; }

.resumen { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin: 10px 2px 4px; font-size: 14px; color: var(--gris); font-weight: 600; }
.link { border: 0; background: none; padding: 8px 0 8px 12px; color: var(--verde-osc); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.lista { display: flex; flex-direction: column; gap: 10px; }
.card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 14px 12px 12px; text-align: left;
  background: var(--papel); border: 1px solid var(--linea); border-radius: 20px;
  transition: transform .1s, border-color .15s;
}
.card:active { transform: scale(.985); border-color: var(--verde-linea); }
.tile { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 15px; display: grid; place-items: center; font-size: 31px; line-height: 1; }
.tile.dulce { background: var(--naranja-tinte); }
.tile.salado { background: var(--verde-tinte); }
.card-cuerpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.card-nombre { font: 650 16.5px/1.22 var(--f-titulo); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-nombre .fav { display: inline-block; width: 15px; height: 15px; margin-left: 5px; vertical-align: -1px; fill: var(--naranja); stroke: var(--naranja); }
.card-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13.5px; color: var(--gris); }
.card-usa { font-size: 13px; font-weight: 650; color: var(--verde-osc); }
#lista-favoritos .fav { display: none; }
.tipo { font-weight: 700; font-size: 12.5px; line-height: 1; padding: 4px 8px; border-radius: 999px; }
.tipo.dulce { background: var(--naranja-tinte); color: var(--naranja-tinta); }
.tipo.salado { background: var(--verde-tinte); color: var(--verde-osc); }

/* estados vacíos */
.vacio { text-align: center; padding: 34px 18px 20px; color: var(--gris); }
.vacio .vacio-ico { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; background: var(--verde-tinte); color: var(--verde); }
.vacio .vacio-ico .ico { width: 34px; height: 34px; }
.vacio h2 { font: 750 21px/1.2 var(--f-titulo); color: var(--tinta); margin: 0 0 6px; }
.vacio p { margin: 0 auto 18px; max-width: 30ch; font-size: 15px; }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 18px; border-radius: 16px;
  font: 700 16px/1.1 var(--f-texto); text-decoration: none; text-align: center;
  transition: transform .1s, background-color .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn-pri { background: var(--verde); color: #fff; border: 1.5px solid var(--verde); }
.btn-pri:active { background: var(--verde-osc); }
.btn-sec { background: var(--papel); color: var(--verde-osc); border: 1.5px solid var(--verde-linea); }
.btn-ancho { width: 100%; }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.acciones .btn { padding: 0 10px; font-size: 15.5px; }
.acciones-1 { grid-template-columns: 1fr; }
.ir-compras { margin-top: 6px; }

/* ===== Menú ===== */
.dia { background: var(--papel); border: 1px solid var(--linea); border-radius: 22px; padding: 4px 14px 4px; margin-bottom: 12px; }
.dia.hoy { border-color: var(--verde-linea); box-shadow: inset 4px 0 0 var(--verde); }
.dia-cab { display: flex; align-items: center; gap: 8px; padding: 12px 0 6px; }
.dia-cab h2 { font: 800 20px/1 var(--f-titulo); letter-spacing: -.015em; margin: 0; }
.pill-hoy { background: var(--naranja); color: var(--tinta); font-weight: 750; font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 999px; }
.slot { display: flex; align-items: center; gap: 10px; padding: 10px 0 12px; border-top: 1px solid var(--linea); }
.dia-cab + .slot { border-top: 0; }
.slot-abrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; text-align: left; }
.slot .tile { width: 48px; height: 48px; flex-basis: 48px; border-radius: 13px; font-size: 25px; }
.slot-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.slot-momento { font-size: 12.5px; font-weight: 700; color: var(--gris); }
.slot-nombre { font: 650 15.5px/1.22 var(--f-titulo); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slot-min { font-weight: 600; color: var(--naranja-tinta); }
.cambiar {
  flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 64px; min-height: 52px; border: 1.5px solid var(--linea); border-radius: 14px; background: var(--crema);
  color: var(--verde-osc); font-weight: 700; font-size: 12.5px;
}
.cambiar .ico { width: 19px; height: 19px; }
.cambiar:active { background: var(--verde-tinte); }
.cambiar.gira .ico { animation: girar .45s ease; }
@keyframes girar { to { transform: rotate(-360deg); } }
.slot.nuevo .slot-abrir { animation: nuevo .5s ease; }
@keyframes nuevo { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

/* ===== Compras ===== */
.progreso { background: var(--papel); border: 1px solid var(--linea); border-radius: 20px; padding: 14px 16px; margin-bottom: 12px; }
.progreso-txt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; color: var(--gris); font-weight: 600; }
.progreso-txt b { font: 800 22px/1 var(--f-titulo); color: var(--tinta); letter-spacing: -.02em; }
.barra { height: 8px; border-radius: 99px; background: var(--crema-osc); overflow: hidden; margin-top: 10px; }
.barra i { display: block; height: 100%; background: var(--verde); border-radius: 99px; transition: width .3s ease; }
.nota { font-size: 13px; color: var(--gris); margin: -8px 2px 6px; }
.gondola { margin-top: 18px; }
.gondola-cab { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 8px; }
.gondola-cab h2 { font: 800 18px/1.1 var(--f-titulo); letter-spacing: -.015em; margin: 0; }
.gondola-cab span { font-size: 13px; color: var(--gris); font-weight: 600; }
.items { list-style: none; margin: 0; padding: 0 4px; background: var(--papel); border: 1px solid var(--linea); border-radius: 20px; }
.item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 10px;
  border: 0; border-top: 1px solid var(--linea); background: none; text-align: left; font-size: 16px;
}
.items li:first-child .item { border-top: 0; }
.check { width: 26px; height: 26px; flex: 0 0 26px; border: 2px solid #CFC6B7; border-radius: 8px; display: grid; place-items: center; color: #fff; transition: background-color .15s, border-color .15s; }
.check .ico { width: 18px; height: 18px; stroke-width: 3; opacity: 0; transform: scale(.5); transition: opacity .15s, transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.item-nombre { flex: 1; min-width: 0; font-weight: 500; }
.item-cant { flex: 0 0 auto; color: var(--gris); font-weight: 600; font-size: 15px; text-align: right; }
.item[aria-checked="true"] .check { background: var(--verde); border-color: var(--verde); }
.item[aria-checked="true"] .check .ico { opacity: 1; transform: none; }
.item[aria-checked="true"] .item-nombre, .item[aria-checked="true"] .item-cant { color: #9AA29D; text-decoration: line-through; text-decoration-color: #B9BFBA; }
.destildar { display: block; margin: 18px auto 0; }

/* ===== Detalle ===== */
.hoja {
  position: fixed; inset: 0; z-index: 50;
  max-width: var(--col); margin: 0 auto;
  background: var(--crema); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.hoja.abre { animation: subir .32s cubic-bezier(.2, .85, .25, 1) both; }
.hoja.cierra { animation: bajar .2s ease-in both; }
@keyframes subir { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bajar { to { transform: translateY(28px); opacity: 0; } }
.hoja-barra { position: sticky; top: 0; height: 0; z-index: 3; }
.hoja-barra .redondo { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); }
.hoja-barra .atras { left: 14px; }
.hoja-barra .corazon { right: 14px; }
.redondo { width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(31, 42, 36, .14); display: grid; place-items: center; color: var(--tinta); }
.redondo .ico { width: 24px; height: 24px; }
.corazon[aria-pressed="true"] .ico { fill: var(--naranja); stroke: var(--naranja); }
.corazon.late .ico { animation: latir .35s ease; }
@keyframes latir { 50% { transform: scale(1.25); } }
.heroe { height: 210px; display: grid; place-items: center; font-size: 92px; line-height: 1; border-radius: 0 0 32px 32px; padding-top: env(safe-area-inset-top, 0px); }
.heroe.dulce { background: var(--naranja-tinte); }
.heroe.salado { background: var(--verde-tinte); }
.hoja-cuerpo { padding: 20px 18px 24px; }
.hoja-cuerpo h1 { font-size: 29px; line-height: 1.08; margin: 0 0 12px; }
.etis { display: flex; flex-wrap: wrap; gap: 6px; }
.etis .tipo { padding: 6px 10px; border: 1px solid transparent; }
.eti { font-size: 12.5px; font-weight: 650; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--papel); border: 1px solid var(--linea); color: var(--tinta); }
.ideal { margin: 12px 0 0; font-size: 14.5px; color: var(--gris); }
.datos { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 6px; background: var(--papel); border: 1px solid var(--linea); border-radius: 20px; }
.dato { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px 12px; text-align: center; }
.dato + .dato { border-left: 1px solid var(--linea); }
.dato .dial { --d: 46px; }
.dato > b { font: 800 21px/1 var(--f-titulo); letter-spacing: -.02em; min-height: 46px; display: grid; place-items: center; }
.dato > .dato-coc { font-size: 16px; line-height: 1.1; letter-spacing: -.01em; }
.dato > span:not(.dial) { font-size: 12.5px; color: var(--gris); font-weight: 600; }
.seccion { margin-top: 26px; }
.seccion-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.seccion h2 { font: 800 21px/1.1 var(--f-titulo); letter-spacing: -.015em; margin: 0; }
.stepper { display: flex; align-items: center; gap: 2px; background: var(--papel); border: 1px solid var(--linea); border-radius: 999px; padding: 3px; }
.stepper button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--verde-tinte); color: var(--verde-osc); display: grid; place-items: center; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper button .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.stepper output { min-width: 88px; text-align: center; font-weight: 700; font-size: 14.5px; }
.ings { list-style: none; margin: 0; padding: 0 16px; background: var(--papel); border: 1px solid var(--linea); border-radius: 20px; }
.ings li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--linea); font-size: 16px; }
.ings li:first-child { border-top: 0; }
.ings .ing-cant { font-weight: 700; color: var(--verde-osc); text-align: right; white-space: nowrap; }
.ings .ing-cant.gusto { font-weight: 600; color: var(--gris); }
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.pasos li { counter-increment: paso; position: relative; padding: 2px 0 16px 46px; font-size: 16.5px; line-height: 1.5; }
.pasos li::before {
  content: counter(paso); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--verde); color: #fff;
  display: grid; place-items: center; font: 800 16px/1 var(--f-titulo);
}
.pasos li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--verde-linea); border-radius: 2px; }
.guarda { display: flex; gap: 12px; align-items: flex-start; background: var(--verde-tinte); border-radius: 20px; padding: 16px; }
.guarda .ico { color: var(--verde); width: 26px; height: 26px; margin-top: 1px; }
.guarda b { display: block; font: 750 16px/1.2 var(--f-titulo); margin-bottom: 3px; }
.guarda p { margin: 0; font-size: 15px; }
.hoja-pie { position: sticky; bottom: 0; padding: 14px 18px calc(14px + var(--abajo)); background: linear-gradient(rgba(251, 247, 240, 0), var(--crema) 26%); }
.btn-fav[aria-pressed="true"] { background: var(--papel); color: var(--naranja-tinta); border-color: #F5C9A2; }
.btn-fav .ico { width: 22px; height: 22px; }
.btn-fav[aria-pressed="true"] .ico { fill: var(--naranja); stroke: var(--naranja); }

/* ===== Barra de pestañas ===== */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-width: var(--col); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: var(--abajo);
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--linea);
}
.tab {
  height: var(--tab-alto); border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 650; color: var(--gris);
}
.tab-ico { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 999px; transition: background-color .2s; }
.tab-ico .ico { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--verde-osc); }
.tab[aria-current="page"] .tab-ico { background: var(--verde-tinte); }
.tab[aria-current="page"][data-tab="favoritos"] .ico { fill: currentColor; }

/* ===== Bienvenida ===== */
.bienvenida {
  position: fixed; inset: 0; z-index: 60; max-width: var(--col); margin: 0 auto;
  background: var(--crema); overflow-y: auto; overscroll-behavior: contain;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 22px calc(24px + var(--abajo));
  display: flex; flex-direction: column;
}
.bienvenida.abre { animation: aparecer .3s ease both; }
.b-logo { width: 84px; height: 84px; border-radius: 24px; box-shadow: 0 8px 24px rgba(47, 125, 79, .25); }
.b-marca { font: 800 38px/1 var(--f-titulo); letter-spacing: -.03em; color: var(--verde); margin: 20px 0 8px; }
.b-lead { font: 650 20px/1.25 var(--f-titulo); letter-spacing: -.01em; margin: 0 0 20px; }
.b-lista { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.b-lista li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.b-lista .b-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: var(--verde-tinte); color: var(--verde); display: grid; place-items: center; }
.b-lista b { display: block; font: 750 16px/1.2 var(--f-titulo); margin-bottom: 1px; }
.b-instalar { background: var(--papel); border: 1px solid var(--linea); border-radius: 22px; padding: 16px; }
.b-instalar h2 { font: 800 18px/1.2 var(--f-titulo); margin: 0 0 10px; }
.b-paso { display: flex; gap: 10px; align-items: center; font-size: 15px; margin-top: 10px; }
.b-paso:first-of-type { margin-top: 0; }
.b-so { flex: 0 0 auto; font-weight: 750; font-size: 12.5px; padding: 5px 9px; border-radius: 999px; background: var(--crema-osc); }
.b-paso .ico { width: 20px; height: 20px; vertical-align: -4px; color: var(--verde-osc); }
.b-nota { font-size: 13.5px; color: var(--gris); margin: 16px 2px 0; }
.b-pie { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }

/* ===== Aviso ===== */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-alto) + var(--abajo) + 14px); z-index: 70;
  transform: translateX(-50%); width: max-content; max-width: min(440px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 16px; background: var(--tinta); color: #fff;
  font-size: 15px; font-weight: 600; box-shadow: 0 8px 28px rgba(31, 42, 36, .25);
  animation: toast .25s ease both;
}
.toast.sobre-hoja { bottom: calc(90px + var(--abajo)); }
.toast button { border: 0; background: none; color: var(--naranja); font-weight: 800; padding: 4px 2px; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.cargando, .error { padding: 80px 24px; text-align: center; color: var(--gris); }
.sinjs { padding: 40px 24px; text-align: center; }

@media (max-width: 370px) {
  h1 { font-size: 29px; }
  .t-btn { gap: 6px; font-size: 15px; }
  .t-btn .dial { --d: 26px; }
  .card { gap: 12px; padding: 11px 12px 11px 10px; }
  .tile { width: 54px; height: 54px; flex-basis: 54px; font-size: 28px; }
  .stepper output { min-width: 78px; font-size: 14px; }
  .acciones .btn { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
