/* Tarjeta de resultados. TODO va bajo .mp-card / .mp-sheet: se inyecta dentro de apps Angular. */
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: local('Poppins Medium'), url('fonts/Poppins-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: local('Poppins SemiBold'), url('fonts/Poppins-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: local('Poppins Bold'), url('fonts/Poppins-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: local('Inter Regular'), url('fonts/Inter-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: local('Inter Medium'), url('fonts/Inter-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: local('Inter SemiBold'), url('fonts/Inter-SemiBold.ttf') format('truetype'); }

.mp-card {
  --mp-crema: #FFF6EF; --mp-tinta: #5A4650; --mp-durazno: #F2A07E; --mp-terracota: #C2703F;
  --mp-verde: #7FB08A; --mp-amarillo: #E8C36A; --mp-rojo: #D9826B;
  box-sizing: border-box; width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 14px 24px;
  background: var(--mp-crema); color: var(--mp-tinta);
  font: 400 18px/1.4 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  text-align: left; -webkit-text-size-adjust: 100%; overflow-wrap: anywhere;
}
.mp-card *, .mp-card *::before, .mp-card *::after { box-sizing: border-box; }
.mp-card p, .mp-card h2 { margin: 0; }
.mp-card .mp-head { margin-bottom: 12px; }
.mp-card .mp-hola { font: 700 26px/1.2 'Poppins', system-ui, sans-serif; color: var(--mp-terracota); }
.mp-card .mp-sub { font-size: 18px; margin-top: 2px; }
.mp-card .mp-sec { background: #fff; border-radius: 18px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(90, 70, 80, .12); }
.mp-card h2 { font: 600 17px/1.25 'Poppins', system-ui, sans-serif; color: var(--mp-terracota); margin-bottom: 4px; }
.mp-card .mp-big { font: 700 44px/1.1 'Poppins', system-ui, sans-serif; color: var(--mp-tinta); }
.mp-card .mp-big small { font: 600 20px 'Poppins', system-ui, sans-serif; color: var(--mp-terracota); }
.mp-card .mp-clase { font: 600 19px/1.3 'Inter', system-ui, sans-serif; margin: 2px 0 10px; }
.mp-card .mp-line { font-size: 18px; margin-top: 6px; }
.mp-card .mp-line b { font-weight: 600; }
.mp-card .mp-msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #FDE7DB; font: 600 19px/1.3 'Inter', system-ui, sans-serif; }
.mp-card .mp-msg.mp-ok { background: #E2F0E5; }

/* barra de peso */
.mp-card .mp-track { position: relative; height: 18px; margin: 18px 0 8px; background: #EFE3DA; border-radius: 9px; }
.mp-card .mp-zone { position: absolute; top: 0; bottom: 0; background: var(--mp-verde); border-radius: 9px; }
.mp-card .mp-ideal { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; background: var(--mp-tinta); border-radius: 2px; }
.mp-card .mp-you { position: absolute; top: -5px; width: 28px; height: 28px; margin-left: -14px; background: var(--mp-terracota); border: 4px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.mp-card .mp-track-labs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; margin-bottom: 4px; }
.mp-card .mp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.mp-card .mp-dot-you { background: var(--mp-terracota); }
.mp-card .mp-dot-zone { background: var(--mp-verde); }
.mp-card .mp-dot-ideal { background: var(--mp-tinta); border-radius: 2px; width: 4px; height: 12px; margin-right: 8px; }

/* escalas de color */
.mp-card .mp-scale { margin-top: 6px; }
.mp-card .mp-scale-bar { position: relative; display: flex; gap: 3px; height: 18px; margin-top: 14px; }
.mp-card .mp-seg { flex: 1; border-radius: 4px; opacity: .45; }
.mp-card .mp-seg.mp-on { opacity: 1; }
.mp-card .mp-seg-0 { background: var(--mp-amarillo); }
.mp-card .mp-seg-1 { background: var(--mp-verde); }
.mp-card .mp-seg-2 { background: var(--mp-durazno); }
.mp-card .mp-seg-3 { background: var(--mp-rojo); }
.mp-card .mp-marker { position: absolute; top: -9px; width: 0; height: 0; margin-left: -8px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid var(--mp-tinta); }
.mp-card .mp-scale-labs { display: flex; gap: 3px; margin-top: 6px; }
.mp-card .mp-seg-lab { flex: 1; min-width: 0; text-align: center; font-size: 12.5px; line-height: 1.2; }
.mp-card .mp-seg-lab.mp-on { font-weight: 600; }

/* calorías */
.mp-card .mp-kcals { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mp-card .mp-kcal { flex: 1 1 130px; }
.mp-card .mp-kcal .mp-big { font-size: 32px; white-space: nowrap; }
.mp-card .mp-kcal .mp-big small { font-size: 16px; }

/* hoja imprimible (carta) */
.mp-sheet { box-sizing: border-box; width: 8.5in; min-height: 11in; margin: 0 auto; padding: .5in .55in .45in; background: #fff; color: #5A4650; font-family: 'Inter', system-ui, sans-serif; position: relative; }
.mp-sheet .mp-sheet-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid #F2A07E; padding-bottom: 8px; margin-bottom: 8px; }
.mp-sheet .mp-sheet-head img { height: 64px; width: auto; }
.mp-sheet .mp-sheet-date { font-size: 13px; }
.mp-sheet .mp-card { max-width: none; padding: 0; background: #fff; font-size: 16px; line-height: 1.35; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.mp-sheet .mp-card .mp-head { grid-column: 1 / -1; margin: 0; }
.mp-sheet .mp-card .mp-hola { font-size: 28px; }
.mp-sheet .mp-card .mp-sub { font-size: 16px; }
.mp-sheet .mp-card .mp-sec { margin: 0; padding: 14px 16px; border: 1px solid #F2D9CB; box-shadow: none; border-radius: 12px; break-inside: avoid; }
.mp-sheet .mp-card h2 { font-size: 16px; }
.mp-sheet .mp-card .mp-big { font-size: 40px; }
.mp-sheet .mp-card .mp-big small { font-size: 18px; }
.mp-sheet .mp-card .mp-kcal .mp-big { font-size: 32px; }
.mp-sheet .mp-card .mp-clase { font-size: 17px; margin-bottom: 6px; }
.mp-sheet .mp-card .mp-line { font-size: 15px; margin-top: 3px; }
.mp-sheet .mp-card .mp-msg { font-size: 16px; padding: 8px 10px; margin-top: 8px; }
.mp-sheet .mp-card .mp-track-labs { font-size: 13px; }
.mp-sheet .mp-card .mp-seg-lab { font-size: 11.5px; }
.mp-sheet .mp-card .mp-track, .mp-sheet .mp-card .mp-seg, .mp-sheet .mp-card .mp-zone, .mp-sheet .mp-card .mp-msg, .mp-sheet .mp-card .mp-marker { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.mp-sheet .mp-sheet-foot { position: absolute; left: .55in; right: .55in; bottom: .4in; border-top: 1px solid #F2D9CB; padding-top: 6px; font-size: 13px; text-align: center; }
.mp-sheet .mp-sheet-foot b { color: #C2703F; font-weight: 600; }
.mp-sheet .mp-sheet-aviso { margin-top: 16px; font-size: 13px; opacity: .85; }
