/* ==========================================================================
   Antojos IVK · estilos (mismos colores y tipografías que alexivankovski.com)
   ========================================================================== */
@font-face { font-family: "Barlow Condensed"; font-weight: 900; font-style: normal; font-display: swap; src: url(fuentes/barlow-condensed-900.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(fuentes/barlow-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400 700; font-style: normal; font-display: swap; src: url(fuentes/dm-sans.woff2) format("woff2"); }

:root {
  --dark: #11110f;
  --ink: #181915;
  --cream: #f0f0e8;
  --suave: #c9cac3;
  --muted: #9fa19a;
  --apagado: #8f9088;
  --red: #842030;
  --rosa: #d9556d;
  --line: rgba(255, 255, 255, .16);
  --linea: rgba(240, 240, 232, .12);
  --panel: rgba(17, 17, 15, .78);
  --campo: rgba(255, 255, 255, .06);
  --titulo: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texto: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rapido: 180ms;
  --medio: 280ms;
  --suavizado: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--dark);
  color: var(--cream);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--rosa); }
b, strong { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Fondo: la foto del gimnasio con el mismo velo que la landing ---- */
.fondo {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(10, 9, 9, .62) 0%, rgba(10, 9, 9, .74) 40%, rgba(10, 9, 9, .93) 100%),
    radial-gradient(70% 40% at 90% 5%, rgba(150, 36, 56, .34), transparent 70%),
    url(img/fondo-m.webp) center top / cover no-repeat,
    #0d0d0c;
}
.fondo::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='1' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .72 0 0 0 0 .72 0 0 0 0 .69 0 0 0 18 -11.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.2'/%3E%3C/svg%3E");
}
@media (min-width: 741px) {
  .fondo {
    background:
      linear-gradient(rgba(10, 9, 9, .7) 0%, rgba(10, 9, 9, .74) 45%, rgba(10, 9, 9, .93) 100%),
      radial-gradient(60% 55% at 88% 8%, rgba(150, 36, 56, .34), transparent 70%),
      url(img/fondo-d.webp) center 40% / cover no-repeat,
      #0d0d0c;
  }
}

/* ---- Cabecera ---- */
.cabecera {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(14, 14, 12, .8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.marca { display: inline-flex; align-items: baseline; font-family: var(--titulo); font-weight: 900; line-height: 1; }
.marca-ivk { font-size: 30px; letter-spacing: -1px; }
.marca-punto { font-size: 30px; color: var(--rosa); margin-right: 8px; }
.marca-texto { font-family: var(--texto); font-size: 10px; font-weight: 700; letter-spacing: 1.7px; color: var(--muted); }
.cabecera-acciones { display: flex; align-items: center; gap: 6px; }
.btn-icono {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid transparent; border-radius: 2px; cursor: pointer; color: var(--cream);
  font-size: 18px;
}
.btn-icono:hover { border-color: var(--line); }
.contador {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
}
.contador-texto { font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.puntos { display: inline-flex; gap: 4px; }
.puntos i {
  width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--cream); display: block;
  transition: background var(--medio) var(--suavizado), transform var(--medio) var(--suavizado);
}
.puntos i.lleno { background: var(--rosa); border-color: var(--rosa); }
.puntos i.nuevo { animation: latido 520ms var(--suavizado); }
.puntos-grandes i { width: 16px; height: 16px; border-width: 2px; }
@keyframes latido { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---- Pantallas ---- */
main { width: 100%; max-width: 520px; margin: 0 auto; padding: 18px 16px 24px; }
.pantalla { animation: entrar var(--medio) var(--suavizado) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cargando { color: var(--muted); text-align: center; padding: 40px 0; }

.titulo {
  font-family: var(--titulo); font-weight: 900; text-transform: uppercase;
  font-size: 44px; line-height: .92; letter-spacing: -.5px; margin: 4px 0 10px;
}
.titulo em { font-style: normal; color: var(--rosa); }
.titulo-saludo { font-size: 40px; margin-bottom: 14px; overflow-wrap: anywhere; }
.intro { color: var(--suave); margin: 0 0 18px; font-size: 15px; }
.ayuda { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.opcional { color: var(--apagado); font-weight: 400; }

/* ---- Campos ---- */
.campo { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
legend, label, .etiqueta-grande { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.etiqueta-grande { font-family: var(--titulo); font-weight: 900; text-transform: uppercase; font-size: 24px; letter-spacing: -.2px; }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], select {
  width: 100%; height: 50px; padding: 0 14px; font-size: 16px;
  background: var(--campo); border: 1px solid var(--line); border-radius: 2px; outline: none;
  transition: border-color var(--rapido), background var(--rapido);
}
input[type="search"] { -webkit-appearance: none; appearance: none; }
input::placeholder { color: var(--apagado); }
input:focus, select:focus { border-color: var(--rosa); background: rgba(255, 255, 255, .09); }
input[aria-invalid="true"] { border-color: var(--rosa); box-shadow: inset 0 0 0 1px var(--rosa); }
select { -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%);
  background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
select option, select optgroup { background: var(--ink); color: var(--cream); }
:focus-visible { outline: 2px solid var(--rosa); outline-offset: 2px; }

.opcion, .dia, .unidades label, .chip, .check {
  position: relative; display: flex; align-items: center; cursor: pointer; margin: 0;
}
.opcion input, .dia input, .unidades input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.opcion input:focus-visible + span, .dia input:focus-visible + span, .chip input:focus-visible + span, .unidades input:focus-visible + span { outline: 2px solid var(--rosa); outline-offset: 2px; }

.bloque-numeros { border: 1px solid var(--linea); background: var(--panel); padding: 14px 14px 4px; margin: 0 0 16px; border-radius: 2px; }
.bloque-numeros h3 { font-family: var(--titulo); font-weight: 900; text-transform: uppercase; font-size: 20px; margin: 0 0 10px; letter-spacing: .2px; }
.rejilla-macros { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.rejilla-macros .campo { margin-bottom: 12px; }
.rejilla-macros label { font-size: 13px; color: var(--suave); }
.cuadre { font-size: 13px; color: var(--muted); margin: -2px 0 12px; min-height: 19px; }
.cuadre.ok { color: var(--suave); }
.cuadre.mal { color: var(--rosa); }

.grupo-base { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span, .chips-rapidos button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--campo); cursor: pointer;
  transition: border-color var(--rapido), background var(--rapido), transform var(--rapido);
}
.chip input:checked + span { border-color: var(--rosa); background: rgba(217, 85, 109, .18); }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; color: var(--rosa); font-weight: 700; }
.chips-rapidos { margin-top: 10px; }
.chips-rapidos button:active { transform: scale(.96); }

.check { gap: 10px; font-weight: 500; font-size: 14px; margin: 4px 0 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--rosa); flex: none; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; font-size: 14px; text-decoration: none;
  transition: background var(--rapido), border-color var(--rapido), transform var(--rapido), opacity var(--rapido);
}
.btn:active { transform: scale(.98); }
.btn-ancho { width: 100%; }
.btn-principal { background: var(--red); color: var(--cream); }
.btn-principal:hover { background: #9a2638; }
.btn-secundario { background: transparent; border-color: var(--line); color: var(--cream); }
.btn-secundario:hover { border-color: var(--cream); }
.btn-texto { background: transparent; color: var(--rosa); text-transform: none; letter-spacing: 0; font-weight: 700; padding: 10px 4px; }
.btn-peligro { background: transparent; border-color: rgba(217, 85, 109, .5); color: var(--rosa); }
.btn-cabe { min-height: 56px; font-size: 17px; margin-top: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
/* Esperando al servidor: el botón se queda quieto con un circulito girando */
.btn.esperando { opacity: .75; cursor: progress; }
.btn.esperando::after {
  content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
.fila-botones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fila-botones .btn { flex: 1 1 140px; }

/* ---- Avisos y errores ---- */
.errores { color: var(--rosa); font-size: 14px; font-weight: 500; }
.errores:not(:empty) { margin: -4px 0 14px; }
.errores p { margin: 0 0 4px; }
.aviso {
  border: 1px solid rgba(217, 85, 109, .45); background: rgba(132, 32, 48, .28); border-radius: 2px;
  padding: 12px 14px; margin: 0 0 16px; font-size: 14px; color: var(--cream);
}
.aviso p { margin: 0 0 6px; }
.aviso-titulo { font-family: var(--titulo); font-weight: 900; text-transform: uppercase; font-size: 22px; margin: 0 0 6px; }
.aviso-enlace { border-color: var(--line); background: var(--panel); }
.pista { font-size: 13px; color: var(--rosa); margin: 8px 0 0; min-height: 0; }
.pista:empty { display: none; }
.privacidad { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.zona-datos { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--linea); }

/* ---- Tu comida ---- */
.bloque-comida { scroll-margin-top: 76px; }
.bloque-comida .ayuda { margin-top: -4px; }
.comidas-guardadas { margin: 0 0 12px; }
.comidas-guardadas:empty { display: none; }
.comidas-guardadas button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; font-size: 14px; max-width: 100%;
  border: 1px solid var(--line); border-radius: 999px; background: var(--campo); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.comidas-guardadas button:hover { border-color: var(--cream); }
.bloque-comida.falta { border-color: var(--rosa); animation: llamar 600ms var(--suavizado); }
@keyframes llamar { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.nota-intentos { margin: 10px 0 0; }

/* ---- ¿Con qué la cuadras? (alimentos y cantidades) ---- */
.cuadrador { margin-bottom: 8px; }
/* Entrar / crear cuenta */
.modo-acceso { margin: 0 0 18px; }
.modo-acceso label { flex: 1; }
.modo-acceso label span { width: 100%; height: 48px; }
.ayuda-acceso { margin-top: 12px; }
.cuenta-de { font-size: 14px; color: var(--suave); margin: 0 0 8px; overflow-wrap: anywhere; }
#btn-reintentar { margin-top: 4px; }
.modo-cuadre { margin: 4px 0 6px; }
.modo-cuadre label { flex: 1; }
.modo-cuadre label span { width: 100%; height: 44px; font-size: 13px; }
.lista-alimentos { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 8px; }
.lista-alimentos:empty { display: none; }
.alimento { border: 1px solid var(--linea); background: var(--panel); padding: 6px 6px 10px 12px; border-radius: 2px; animation: aparecer var(--rapido) ease both; }
.al-cab { display: flex; align-items: flex-start; gap: 6px; }
.al-nombre { flex: 1; font-weight: 700; font-size: 15px; line-height: 1.25; padding-top: 8px; overflow-wrap: anywhere; }
.al-quitar { width: 40px; height: 40px; font-size: 14px; color: var(--muted); flex: none; }
.al-meta { display: block; font-size: 12px; color: var(--muted); margin: 2px 6px 8px 0; }
.al-cantidad { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.al-cantidad input[type="text"] { width: 92px; height: 44px; padding: 0 8px; font-size: 18px; font-weight: 700; text-align: center; }
.al-cantidad input::placeholder { font-weight: 500; font-size: 15px; }
.al-unidad { font-weight: 700; color: var(--suave); min-width: 20px; }
.al-paso { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--campo); border-radius: 2px; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.al-paso:active { transform: scale(.95); }
.al-aporta { flex-basis: 100%; font-size: 12px; color: var(--suave); }
.al-aporta:empty { display: none; }
.marcador {
  position: sticky; bottom: 0; z-index: 4; margin: 10px -16px 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 12, .97); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.marcador-estado { font-family: var(--titulo); font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1; margin: 0 0 6px; }
.marcador-estado.si::after { content: "."; color: var(--rosa); }
.marcador-estado.no { color: var(--rosa); }
.marcador-consejo { font-size: 12px; color: var(--suave); margin: 6px 0 0; }
.marcador-consejo:empty { display: none; }
.tabla-macros { display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 3px 10px; align-items: baseline; margin: 0 0 8px; }
.tm-cab { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); text-align: right; }
.tm-fila { font-size: 12px; color: var(--muted); }
.tm-num { text-align: right; font-weight: 700; font-size: 15px; }
.tm-obj { text-align: right; font-size: 13px; color: var(--muted); }
.tm-num.fuera { color: var(--rosa); }
.res-lista { list-style: none; padding: 0; margin: 0 0 10px; border-top: 1px solid var(--linea); }
.res-lista li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--linea); font-size: 14px; }
.rl-g { font-family: var(--titulo); font-weight: 900; font-size: 22px; min-width: 74px; white-space: nowrap; }
.rl-g small { font-size: 14px; }
.rl-n { flex: 1; line-height: 1.25; overflow-wrap: anywhere; }
.rl-tu { display: block; font-size: 11px; color: var(--muted); }
#res-consejos li { font-size: 14px; }

/* ---- Bloqueada hasta el lunes ---- */
.bloqueo { border: 1px solid rgba(217, 85, 109, .45); background: var(--panel); padding: 18px 16px 14px; border-radius: 2px; margin-bottom: 16px; animation: entrar var(--medio) var(--suavizado) both; }
.bloqueo-titulo { font-family: var(--titulo); font-weight: 900; text-transform: uppercase; font-size: 46px; line-height: .9; margin: 0 0 12px; }
.bloqueo-titulo em { font-style: normal; color: var(--rosa); }
.bloqueo-texto { color: var(--suave); margin: 0 0 12px; font-size: 15px; }

/* ---- Buscador ---- */
.buscador { margin-bottom: 8px; }
.fila-super { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.select-chip { margin: 0; font-weight: 700; }
.select-chip select { height: 36px; width: auto; max-width: 62vw; padding: 0 30px 0 12px; font-size: 14px; font-weight: 700; border-radius: 999px; background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; }
.estado-busqueda { font-size: 13px; color: var(--muted); margin: 8px 0 0; min-height: 0; }
.estado-busqueda:empty { display: none; }
.resultados { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--linea); }
.resultados:empty { display: none; }
.resultados li { border-bottom: 1px solid var(--linea); animation: aparecer var(--rapido) ease both; }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
.resultados button {
  width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; text-align: left;
  padding: 11px 4px; min-height: 56px; background: transparent; border: 0; cursor: pointer;
}
.resultados button:hover, .resultados button:focus-visible { background: rgba(255, 255, 255, .05); }
.r-nombre { font-weight: 700; font-size: 15px; line-height: 1.25; }
.r-meta { grid-column: 1; font-size: 12px; color: var(--muted); }
.r-kcal { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-family: var(--titulo); font-weight: 900; font-size: 20px; line-height: 1; }
.r-kcal small { display: block; font-family: var(--texto); font-weight: 500; font-size: 11px; color: var(--muted); }
.sello { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); margin-left: 4px; vertical-align: 1px; }
.sello-ivk { border-color: var(--rosa); color: var(--rosa); }
.sin-resultados { padding: 14px 0 4px; color: var(--suave); font-size: 14px; }
.sin-resultados p { margin: 0 0 10px; }
.btn-etiqueta { margin-top: 6px; }

/* ---- Producto elegido ---- */
.producto { border: 1px solid var(--linea); background: var(--panel); padding: 12px 14px 16px; border-radius: 2px; animation: entrar var(--medio) var(--suavizado) both; scroll-margin-top: 76px; }
.btn-volver { padding-left: 0; min-height: 40px; }
.producto-nombre { font-family: var(--titulo); font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: .98; margin: 4px 0 6px; overflow-wrap: anywhere; }
.producto-meta { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.producto-macros { font-size: 14px; color: var(--suave); margin: 0 0 14px; }
.fila-cantidad { display: flex; gap: 8px; }
.fila-cantidad input { flex: 1; min-width: 0; font-size: 22px; font-weight: 700; height: 56px; }
.unidades { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; flex: none; }
.unidades:empty { display: none; }
.unidades label span {
  display: grid; place-items: center; min-width: 56px; height: 54px; padding: 0 12px; font-weight: 700; font-size: 14px;
  background: var(--campo); transition: background var(--rapido), color var(--rapido);
}
.unidades input:checked + span { background: var(--cream); color: var(--dark); }
.unidades-etiqueta { margin: 0 0 14px; }
.unidades-etiqueta label { flex: 1; }
.unidades-etiqueta label span { width: 100%; height: 44px; }

/* ---- Hojas (resultado, semana, etiqueta) ---- */
.hoja {
  position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(5, 5, 4, .6);
  animation: velo var(--medio) ease both;
}
@keyframes velo { from { background: rgba(5, 5, 4, 0); } }
.hoja-caja {
  width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(70% 40% at 90% 0%, rgba(150, 36, 56, .3), transparent 70%), linear-gradient(#141412, #0d0d0c);
  border-top: 1px solid var(--line);
  padding: calc(8px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  animation: subir var(--medio) var(--suavizado) both;
}
@keyframes subir { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.hoja-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.titulo-hoja { font-family: var(--titulo); font-weight: 900; text-transform: uppercase; font-size: 30px; margin: 0; }
.hoja-dia { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }

.hoja-resultado { min-height: 100%; display: flex; flex-direction: column; }
.veredicto {
  font-family: var(--titulo); font-weight: 900; text-transform: uppercase; font-size: 64px; line-height: .86;
  letter-spacing: -1px; margin: 2px 0 6px; outline: none; animation: golpe 420ms var(--suavizado) both;
}
.veredicto.si::after { content: "."; color: var(--rosa); }
.veredicto.no { color: var(--rosa); font-size: 54px; }
@keyframes golpe { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.res-frase { margin: 0 0 12px; color: var(--suave); font-size: 15px; }
.res-antojo { border: 1px solid var(--linea); background: rgba(255, 255, 255, .04); padding: 10px 12px; border-radius: 2px; margin-bottom: 12px; }
.res-antojo-nombre { font-weight: 700; margin: 0; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.res-antojo-macros { margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.barra { height: 6px; background: rgba(255, 255, 255, .1); border-radius: 999px; overflow: hidden; }
.barra span { display: block; height: 100%; width: 0; background: var(--cream); border-radius: 999px; transition: width 600ms var(--suavizado); }
.barra.pasa span { background: var(--rosa); }
.res-tope { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.res-subtitulo { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.quitar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quitar.uno { grid-template-columns: 1fr; }
.quitar-caja { position: relative; border: 1px solid var(--line); background: var(--campo); border-radius: 2px; padding: 10px 12px; min-height: 96px; }
.quitar-gramos { display: block; font-family: var(--titulo); font-weight: 900; font-size: 40px; line-height: .95; }
.quitar-gramos small { font-size: 20px; }
.quitar-que { display: block; font-weight: 700; font-size: 14px; line-height: 1.2; margin-top: 2px; padding-right: 14px; }
.quitar-como { display: block; font-size: 12px; color: var(--muted); }
.quitar-tipo { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--rosa); margin-bottom: 2px; }
.quitar-caja select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.quitar-caja:focus-within { border-color: var(--rosa); }
.res-nota { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.res-nota.alerta { color: var(--rosa); font-weight: 700; }
.motivos { list-style: none; padding: 0; margin: 0 0 6px; }
.motivos li { padding: 0 0 8px 18px; position: relative; font-size: 15px; color: var(--suave); }
.motivos li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--rosa); }
.res-otro-dia { font-size: 14px; color: var(--cream); margin: 0 0 8px; }
.res-acciones { margin-top: auto; padding-top: 14px; }
.aviso-lleno { margin: 0; padding: 12px; border: 1px solid rgba(217, 85, 109, .45); background: rgba(132, 32, 48, .28); font-size: 14px; font-weight: 500; border-radius: 2px; }
.res-pie { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.res-contador { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }

.semana-grande { display: flex; align-items: center; gap: 12px; font-size: 16px; margin: 6px 0 12px; }
.lista-semana { list-style: none; padding: 0; margin: 0 0 6px; border-top: 1px solid var(--linea); }
.lista-semana li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--linea); font-size: 14px; }
.lista-semana li span:last-child { color: var(--muted); white-space: nowrap; }
.lista-semana .vacia { color: var(--muted); }

#revisar-texto { font-size: 14px; color: var(--suave); }
#revisar-texto li { margin-bottom: 6px; }

/* ---- Aviso flotante ---- */
.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); max-width: 488px;
  padding: 8px 8px 8px 16px; background: var(--cream); color: var(--dark); border-radius: 2px; font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: subir-toast var(--medio) var(--suavizado) both;
}
@keyframes subir-toast { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.toast span { flex: 1; }
.toast .btn-texto { color: var(--red); min-height: 40px; padding: 6px 10px; }

/* ---- Pie ---- */
.pie { max-width: 520px; margin: 0 auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); font-size: 11px; color: var(--apagado); }
.pie a { color: var(--muted); }

/* ---- Pantallas bajitas: el resultado tiene que caber sin scroll ---- */
@media (max-height: 700px) {
  .veredicto { font-size: 54px; }
  .veredicto.no { font-size: 46px; }
  .res-frase { margin-bottom: 8px; font-size: 14px; }
  .res-antojo { padding: 8px 10px; margin-bottom: 10px; }
  .quitar-caja { min-height: 86px; padding: 8px 10px; }
  .quitar-gramos { font-size: 34px; }
  .res-acciones { padding-top: 10px; }
}
@media (max-height: 600px) {
  .veredicto { font-size: 44px; }
  .veredicto.no { font-size: 38px; }
  .res-tope { display: none; }
  .res-nota:not(.alerta) { display: none; }
}

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