* { box-sizing: border-box; }
html, body { width: 100%; min-width: 0; overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-bottom: 100px; }
body { margin: 0; background: var(--crema); color: var(--tinta); font: 400 16px/1.55 var(--body); padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
svg { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon { width: 25px; height: 25px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; letter-spacing: -.035em; }
h1, h2 { font-weight: 800; }
h3 { font-weight: 700; }
h2 { font-size: 27px; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--aceituna); outline-offset: 5px; }
.masthead a:focus-visible, .chapter-header a:focus-visible { outline-color: var(--yema); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 20; padding: 12px 20px; background: var(--papel); border: 2px solid var(--aceituna); border-radius: 12px; }
.skip-link:focus { top: 12px; }
.page { width: 100%; max-width: 840px; min-width: 0; padding: 0 24px; margin-inline: auto; }
.page > *, .recipe-card > *, .recipe-columns > *, .tip > div { min-width: 0; }
.eyebrow { font-size: 10px; line-height: 1.5; letter-spacing: .14em; font-weight: 700; }
.highlight { background: linear-gradient(transparent 76%, var(--yema) 76%, var(--yema) 94%, transparent 94%); }
.masthead { background: var(--aceituna); color: var(--crema); }
.masthead-inner { max-width: 840px; margin: auto; min-height: 103px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; gap: 9px; align-items: center; }
.brand-mark { width: 47px; height: 47px; }
.masthead .brand-mark { color: var(--yema); }
.brand strong { display: block; font: 800 32px/.9 var(--display); letter-spacing: -.05em; }
.brand small { display: block; margin-top: 6px; font-size: 9px; line-height: 1; font-weight: 700; letter-spacing: .3em; }
.edition { font-size: 8px; letter-spacing: .14em; text-align: right; line-height: 1.8; }
.edition b { font-size: 9px; letter-spacing: 0; font-weight: 500; }
.welcome { padding-top: 35px; }
.welcome > .eyebrow { color: var(--tinta2); margin-bottom: 13px; }
.welcome h1 { max-width: 510px; font-size: clamp(43px, 6.6vw, 62px); line-height: 1.03; }
.intro { color: var(--tinta2); font-size: 14px; margin-top: 17px; max-width: 290px; }
.search-form { display: flex; align-items: center; gap: 11px; background: var(--papel); border: 1px solid var(--linea); border-radius: 16px; padding: 7px 8px 7px 17px; margin-top: 25px; min-height: 60px; }
.search-form > .icon { width: 22px; color: var(--tinta2); }
.search-form input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--tinta); font-size: 16px; padding: 10px 0; }
.search-form input::placeholder { color: var(--tinta2); opacity: 1; }
.search-form:focus-within { outline: 2px solid var(--aceituna); outline-offset: 3px; }
.search-form input:focus { outline: none; }
.icon-button { border: 0; display: inline-flex; justify-content: center; align-items: center; background: transparent; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.search-form .icon-button { background: var(--hoja); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.section-heading > .eyebrow { color: var(--tinta2); font-size: 9px; white-space: nowrap; }
.categories-section { margin-top: 34px; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.category { position: relative; min-height: 122px; padding: 15px 10px 12px; display: flex; flex-direction: column; align-items: flex-start; background: var(--papel); border: 1px solid var(--linea); border-radius: 18px; }
.category > .icon { width: 28px; height: 28px; margin-bottom: 10px; }
.category span { font-size: 11px; font-weight: 700; line-height: 1.3; }
.category b { font: 700 21px/1 var(--display); margin-top: 7px; color: var(--tinta2); }
.category-active { background: var(--aceituna); border-color: var(--aceituna); color: var(--crema); }
.category-active > .icon, .category-active b { color: var(--yema); }
.category .category-arrow { width: 17px; height: 17px; position: absolute; right: 11px; bottom: 8px; margin: 0; }
.daily-section { margin-top: 38px; }
.recipe-card { display: block; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-tarjeta); overflow: hidden; }
a.recipe-card { box-shadow: 0 8px 24px color-mix(in srgb, var(--tinta) 6%, transparent); }
.photo-wrap { position: relative; height: 262px; background: var(--hoja); }
.photo-wrap img { object-position: 50% 60%; }
.photo-pill { position: absolute; top: 17px; left: 17px; display: inline-flex; align-items: center; gap: 7px; border-radius: var(--radio-pildora); background: var(--papel); padding: 7px 12px; font-size: 10px; font-weight: 700; }
.photo-pill::before { content: ''; width: 7px; height: 7px; background: var(--yema); border-radius: 50%; }
.protein-seal { width: 80px; height: 80px; border-radius: 50%; background: var(--pimenton); color: var(--papel); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(8deg); gap: 4px; }
.protein-seal strong { font: 800 25px/1 var(--display); letter-spacing: -.04em; }
.protein-seal small { background: var(--yema); color: var(--aceituna); border-radius: var(--radio-pildora); padding: 2px 5px; font-size: 8px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; }
.photo-wrap .protein-seal { position: absolute; right: 17px; top: 17px; }
.card-copy { padding: 23px 21px 21px; }
.card-copy > .eyebrow { font-size: 9px; color: var(--tinta2); margin-bottom: 10px; }
.card-copy h3 { font-size: 29px; line-height: 1.08; }
.card-note { margin-top: 9px; font-size: 13px; color: var(--tinta2); }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.card-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 11px; color: var(--tinta2); margin-top: 18px; }
.card-stats b { color: var(--aceituna); }
.card-stats span::before { content: '·'; margin-right: 7px; }
.round-arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--hoja); margin-top: 12px; }
.round-arrow .icon { width: 20px; }
.bonus-section { margin-top: 38px; }
.bonus-section .section-heading { margin-bottom: 9px; }
.section-description { color: var(--tinta2); font-size: 13px; margin-bottom: 21px; }
.bonus-rail { display: flex; width: 100%; max-width: 100%; min-width: 0; gap: 14px; overflow-x: auto; padding: 3px 0 15px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--aceituna) var(--linea); }
.bonus-cover { flex: 0 0 185px; min-height: 250px; background: var(--aceituna); color: var(--crema); border-radius: 6px 20px 20px 6px; padding: 20px 18px 14px 22px; border-left: 5px double var(--tinta2); scroll-snap-align: start; display: flex; flex-direction: column; }
.bonus-cover > .eyebrow { font-size: 9px; }
.cover-icon { width: 52px; height: 52px; }
.bonus-cover .cover-icon { color: var(--yema); margin: 23px 0 18px; }
.bonus-cover h3 { font-size: 23px; line-height: 1.08; margin-bottom: 23px; }
.bonus-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--tinta2); display: flex; justify-content: space-between; gap: 6px; font-size: 6px; letter-spacing: .08em; align-items: center; }
.bonus-foot b { font-size: 11px; }
.bonus-cover.light { background: var(--hoja); color: var(--aceituna); border-left-color: var(--linea); }
.bonus-cover.light .cover-icon { color: var(--aceituna); }
.bonus-cover.light .bonus-foot { border-color: var(--linea); }
.page-footer { text-align: center; margin-top: 35px; padding: 25px 0 27px; border-top: 1px solid var(--linea); }
.page-footer > .icon { width: 32px; height: 32px; }
.page-footer p { margin: 6px 0 9px; font: 700 18px var(--display); }
.page-footer small { font-size: 8px; color: var(--tinta2); letter-spacing: .13em; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: center; background: var(--papel); border-top: 1px solid var(--linea); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
.bottom-nav > * { flex: 1; min-width: 0; max-width: 220px; min-height: 57px; border: 0; background: transparent; color: var(--tinta2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; font-size: 10px; font-weight: 700; }
.bottom-nav [aria-current], .bottom-nav .has-favorites { color: var(--aceituna); }
.bottom-nav [aria-current] .icon { background: var(--hoja); border-radius: 8px; box-shadow: 9px 0 var(--hoja), -9px 0 var(--hoja); }
.has-favorites .icon, .favorite-toggle[aria-pressed="true"] .icon { fill: var(--aceituna); }
.chapter-header { background: var(--aceituna); color: var(--crema); }
.chapter-inner { padding-top: 17px; padding-bottom: 20px; }
.chapter-top, .chapter-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; font-weight: 500; }
.back-link .icon { width: 22px; }
.chapter-top > .eyebrow { font-size: 9px; }
.chapter-art { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.chapter-number { font: 800 150px/.95 var(--display); letter-spacing: -.08em; color: var(--yema); }
.chapter-bite { width: 95px; height: 95px; transform: rotate(-12deg); color: var(--crema); margin-right: 12px; }
.chapter-header h1 { font-size: 57px; letter-spacing: -.045em; margin-top: 7px; }
.chapter-header h1 span { color: var(--yema); }
.chapter-header p { margin-top: 22px; font-size: 14px; line-height: 1.6; }
.chapter-bottom { margin-top: 27px; padding-top: 16px; border-top: 1px solid var(--tinta2); font-size: 8px; letter-spacing: .13em; }
.chapter-page { padding-top: 30px; }
.recipe-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.recipe-number { position: absolute; top: 16px; left: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--papel); color: var(--aceituna); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.recipe-grid .card-copy h3 { font-size: 28px; }
.recipe-grid .card-bottom > .icon { width: 22px; margin-top: 16px; }
.pizza-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 23px; }
.pizza-bite { width: 115px; height: 115px; transform: rotate(-15deg); }
.pizza-placeholder > .eyebrow { font-size: 8px; }
.more-recipes { border: 1px solid var(--linea); border-radius: var(--radio-tarjeta); min-height: 250px; padding: 30px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: var(--crema); background-image: url("tile.svg"); }
.more-recipes h3 { margin: 16px 0 10px; font-size: 27px; }
.more-recipes h3 span { display: block; font-size: 58px; }
.more-recipes p { font-size: 13px; color: var(--tinta2); margin-bottom: 18px; }
.more-recipes > .eyebrow { font-size: 8px; }
.recipe-topbar { background: var(--crema); }
.recipe-topbar > .page { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.favorite-toggle { border: 1px solid var(--linea); background: var(--papel); }
.recipe-hero { position: relative; height: 350px; margin-inline: -24px; background: var(--hoja); }
.recipe-hero img { object-position: 50% 59%; }
.recipe-hero .photo-pill { left: 24px; top: 22px; }
.full-recipe { position: relative; }
.recipe-heading { padding-top: 26px; }
.recipe-heading > .eyebrow { font-size: 9px; margin-bottom: 12px; color: var(--tinta2); }
.recipe-heading h1 { font-size: 39px; max-width: 280px; padding-right: 12px; font-weight: 700; }
.recipe-heading .protein-seal { position: absolute; right: 0; top: 17px; width: 73px; height: 73px; }
.recipe-heading .protein-seal strong { font-size: 24px; }
.servings { font-size: 12px; color: var(--tinta2); margin-top: 18px; }
.servings > span { margin: 0 7px; }
.nutrition { background: var(--hoja); border-radius: var(--radio-tarjeta); padding: 22px 8px; margin-top: 21px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nutrition > div { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 0 4px; }
.nutrition > div + div { border-left: 1px solid var(--linea); }
.nutrition .icon { width: 25px; height: 25px; margin-bottom: 10px; }
.nutrition strong { font: 800 30px/1.15 var(--display); letter-spacing: -.04em; }
.nutrition strong small { font-size: 17px; }
.nutrition span { margin-top: 4px; font-size: 11px; color: var(--tinta2); }
.recipe-details { margin-top: 17px; font-size: 12px; color: var(--tinta2); }
.recipe-details p { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.recipe-details b { color: var(--tinta); }
.recipe-details .icon { width: 21px; height: 21px; color: var(--aceituna); }
.recipe-columns { margin-top: 32px; }
.recipe-columns .section-heading { margin-bottom: 11px; }
.recipe-columns h2 { font-size: 26px; }
.check-hint { color: var(--tinta2); font-size: 12px; margin-bottom: 15px; }
.ingredient-list { list-style: none; padding: 0; margin: 0; }
.ingredient-list li { border-bottom: 1px solid var(--linea); }
.ingredient-list label { display: flex; align-items: center; gap: 13px; min-height: 53px; padding: 11px 0; cursor: pointer; font-size: 14px; }
.ingredient-list input { appearance: none; width: 23px; height: 23px; border: 1.5px solid var(--tinta2); border-radius: 6px; margin: 0; flex-shrink: 0; background: var(--papel); display: grid; place-content: center; }
.ingredient-list input:checked { background: var(--aceituna); border-color: var(--aceituna); }
.ingredient-list input:checked::after { content: ''; width: 10px; height: 5px; border-left: 2px solid var(--papel); border-bottom: 2px solid var(--papel); transform: translateY(-1px) rotate(-45deg); }
.ingredient-list input:checked + span { text-decoration: line-through; color: var(--tinta2); }
.preparation { margin-top: 34px; }
.steps { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: steps; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 13px; margin-bottom: 23px; counter-increment: steps; }
.steps li::before { content: counter(steps, decimal-leading-zero); width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--linea); border-radius: 50%; font: 700 13px var(--display); }
.steps p { font-size: 14px; line-height: 1.7; padding-top: 3px; }
.tip { display: flex; align-items: flex-start; gap: 13px; padding: 22px; border-radius: var(--radio-tarjeta); background: var(--hoja); margin-top: 26px; }
.tip .icon { width: 32px; height: 32px; }
.tip h2 { font-size: 23px; margin-bottom: 9px; }
.tip p { font-size: 13px; line-height: 1.65; }
.recipe-actions { margin-top: 34px; }
.recipe-actions > p:first-child { font: 700 24px/1.2 var(--display); margin-bottom: 20px; max-width: 280px; }
.button { min-height: 56px; width: 100%; padding: 15px 20px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 13px; font-size: 15px; font-weight: 700; }
.button-primary { background: var(--pimenton); color: var(--papel); border: 1px solid var(--pimenton); font-size: 20px; line-height: 1.25; }
.button-primary .icon { width: 31px; height: 31px; }
.button-primary small { display: block; font-size: 20px; }
.button-outline { background: transparent; border: 1.5px solid var(--aceituna); color: var(--aceituna); margin-top: 12px; }
.print-help { color: var(--tinta2); font-size: 11px; text-align: center; margin-top: 12px; }
.recipe-footer { display: flex; flex-direction: column; align-items: center; gap: 17px; border-top: 1px solid var(--linea); margin-top: 35px; padding: 28px 0; }
.recipe-footer .brand strong { font-size: 26px; }
.recipe-footer .brand-mark { width: 37px; height: 37px; }
.recipe-footer .brand small { font-size: 7px; }
.recipe-footer > span { color: var(--tinta2); font-size: 11px; }
.toast { position: fixed; bottom: calc(88px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px); width: max-content; background: var(--aceituna); color: var(--papel); border-radius: 12px; padding: 13px 18px; font-size: 13px; box-shadow: var(--sombra); }
.search-results { padding-top: 18px; }
.result-count { font-size: 12px; color: var(--tinta2); margin-bottom: 12px; }
.result-list { display: grid; gap: 10px; }
.search-item { display: flex; align-items: center; gap: 14px; background: var(--papel); border: 1px solid var(--linea); border-radius: 16px; padding: 12px; }
.search-item > img, .search-item > .search-placeholder { width: 65px; height: 72px; border-radius: 10px; flex-shrink: 0; }
.search-placeholder { display: grid; place-items: center; background: var(--hoja); }
.search-item h3 { font-size: 19px; line-height: 1.15; }
.search-item p { font-size: 10px; color: var(--tinta2); margin-top: 5px; }
.search-item small { display: block; font-size: 10px; margin-top: 5px; }
dialog { background: var(--crema); color: var(--tinta); border: 1px solid var(--linea); border-radius: var(--radio-tarjeta); padding: 24px; width: min(440px, calc(100% - 32px)); max-height: 80dvh; box-shadow: var(--sombra); }
dialog::backdrop { background: color-mix(in srgb, var(--aceituna) 65%, transparent); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dialog-heading h2 { font-size: 28px; }
.dialog-content > p { font-size: 14px; color: var(--tinta2); }
.dialog-content .button { margin-top: 20px; }
.missing-photo { display: flex; align-items: center; justify-content: center; background: var(--hoja); color: var(--aceituna); min-height: 72px; }
.search-item > .missing-photo { width: 65px !important; height: 72px !important; border-radius: 10px; flex-shrink: 0; }
/* Encargo 02: extend the existing cards and pill treatment to the full catalogue. */
.photo-wrap > .missing-photo, .recipe-hero > .missing-photo { width: 100%; height: 100%; }
.photo-pill { max-width: calc(100% - 120px); overflow-wrap: anywhere; }
.recipe-hero .photo-pill { max-width: calc(100% - 140px); }
.round-arrow { flex-shrink: 0; }
.search-item > div, .recipe-details p, .chapter-header h1 { min-width: 0; overflow-wrap: anywhere; }
.recipe-heading h1, .card-copy h3 { overflow-wrap: anywhere; }
.recipe-heading > .eyebrow, .card-copy > .eyebrow { text-transform: uppercase; }
.filter-pills, .recipe-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.recipe-tags { margin-top: 16px; margin-bottom: 0; }
.filter-pill, .tag-pill { border: 1px solid var(--linea); border-radius: var(--radio-pildora); background: var(--papel); padding: 9px 14px; font-size: 12px; line-height: 1.4; }
.filter-pill { min-height: 44px; }
.filter-pill[aria-pressed="true"] { background: var(--aceituna); border-color: var(--aceituna); color: var(--crema); }
.tag-pill { background: var(--hoja); }
.related-section { margin-top: 32px; margin-bottom: 32px; }
.favorites-page { padding-top: 35px; padding-bottom: 32px; }
.favorites-page h1 { font-size: 39px; }
.saved-card { position: relative; min-width: 0; }
.saved-card .recipe-card { height: 100%; }
.saved-card > .favorite-toggle { position: absolute; top: 205px; right: 17px; }
.more-recipes h2 { margin: 16px 0 10px; }
@media (hover: hover) { a.recipe-card:hover { box-shadow: 0 12px 30px color-mix(in srgb, var(--tinta) 12%, transparent); } .bottom-nav > *:hover, .icon-button:hover { background: var(--hoja); } .button:hover { text-decoration: underline; text-underline-offset: 4px; } }
@media (min-width: 600px) {
  .page { padding-inline: 40px; }
  .masthead-inner { padding-inline: 40px; min-height: 114px; }
  .edition { font-size: 10px; }.edition b { font-size: 12px; }
  .welcome { padding-top: 43px; }.intro { max-width: none; font-size: 16px; }
  .search-form { margin-top: 27px; }
  .categories-section, .daily-section, .bonus-section { margin-top: 44px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.category { min-height: 118px; padding: 18px; }.category span { font-size: 14px; }.category b { position: absolute; top: 12px; right: 17px; font-size: 27px; }
  .category > .icon { width: 32px; height: 32px; }.category .category-arrow { top: auto; bottom: 15px; right: 18px; width: 22px; height: 22px; }
  .feature-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }.feature-card .photo-wrap { height: 330px; }.feature-card .card-copy { display: flex; flex-direction: column; justify-content: center; padding: 30px; }.feature-card .card-copy h3 { font-size: 33px; }.feature-card .protein-seal { right: 17px; top: 17px; }.feature-card .card-bottom { align-items: flex-end; }.feature-card .card-stats { max-width: 170px; }
  .bonus-cover { flex-basis: 204px; min-height: 268px; }.bonus-cover h3 { font-size: 26px; }
  .chapter-inner { position: relative; padding-top: 22px; padding-bottom: 26px; }.chapter-art { margin-top: 25px; }.chapter-number { font-size: 190px; }.chapter-bite { width: 150px; height: 150px; margin-right: 25px; }.chapter-header h1 { font-size: 74px; margin-top: 8px; }.chapter-header p { font-size: 17px; }.chapter-bottom { margin-top: 30px; font-size: 10px; }
  .chapter-page { padding-top: 36px; }.recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }.recipe-grid .photo-wrap { height: 255px; }.recipe-grid .card-copy { padding: 25px 20px; }.recipe-grid .card-copy h3 { font-size: 28px; }.recipe-grid .card-stats { font-size: 10px; gap: 5px; }.recipe-grid .card-stats span::before { margin-right: 5px; }
  .recipe-hero { height: 430px; border-radius: var(--radio-tarjeta); overflow: hidden; margin-inline: 0; }.recipe-heading { padding-top: 30px; }.recipe-heading h1 { max-width: 520px; font-size: 53px; padding-right: 70px; }.recipe-heading .protein-seal { width: 90px; height: 90px; top: 17px; right: 17px; }.recipe-heading .protein-seal strong { font-size: 29px; }
  .nutrition { margin-top: 25px; padding-block: 24px; }.nutrition strong { font-size: 37px; }.nutrition span { font-size: 12px; }
  .recipe-details { display: flex; flex-wrap: wrap; gap: 7px 25px; font-size: 12px; }
  .recipe-columns { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; margin-top: 33px; }.recipe-columns .section-heading { display: block; }.recipe-columns .section-heading > .eyebrow { display: inline-block; margin-top: 10px; }.preparation { margin-top: 0; }.steps { margin-top: 17px; }.steps li { gap: 10px; }.steps p { font-size: 13px; }.ingredient-list label { font-size: 13px; }
  .recipe-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }.recipe-actions > p:first-child { grid-column: 1 / -1; max-width: none; margin-bottom: 7px; }.recipe-actions .button-outline { margin-top: 0; }.recipe-actions .print-help { grid-column: 1 / -1; margin-top: 0; }.recipe-footer { flex-direction: row; justify-content: space-between; }
}
@media (max-width: 359px) {
  .page { padding-inline: 18px; }.masthead-inner { padding-inline: 18px; }.edition { display: none; }.welcome h1 { font-size: 39px; }.section-heading h2 { font-size: 24px; }.category { padding-inline: 8px; }.category span { font-size: 10px; }.recipe-hero { margin-inline: -18px; }.recipe-heading h1 { font-size: 34px; max-width: 235px; }.recipe-heading .protein-seal { width: 65px; height: 65px; }.recipe-heading .protein-seal strong { font-size: 21px; }.recipe-columns h2 { font-size: 23px; }.card-stats { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Encargo 03: zonas seguras e interfaz de los bonus. */
@media screen {
  html, body { overscroll-behavior: none; }
  body { min-height: 100dvh; }
  .brand { min-height: 44px; }
  input, select, textarea { font-size: 16px; }
  .masthead, .chapter-header, .recipe-topbar { padding-top: env(safe-area-inset-top); }
  .page, .masthead-inner { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .bottom-nav { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}
@media screen and (min-width: 600px) {
  .page, .masthead-inner { padding-left: max(40px, env(safe-area-inset-left)); padding-right: max(40px, env(safe-area-inset-right)); }
}
.network-status { padding: 12px max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left)); background: var(--hoja); color: var(--aceituna); font-size: 14px; border-bottom: 1px solid var(--linea); }
.network-status:not([hidden]) { padding-top: calc(12px + env(safe-area-inset-top)); }
.network-status:not([hidden]) ~ .masthead, .network-status:not([hidden]) ~ .chapter-header, .network-status:not([hidden]) ~ .recipe-topbar { padding-top: 0; }
.install-card { margin-top: 24px; padding: 20px; background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--radio-tarjeta); }
.install-heading { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.install-heading h2 { font-size: 25px; line-height: 1.15; }
.install-card p { margin-top: 12px; font-size: 14px; }
.install-card .button { margin-top: 16px; }
.install-help-link { display: flex; justify-content: center; align-items: center; min-height: 44px; margin-top: 8px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.footer-install-link { display: flex; align-items: center; justify-content: center; min-height: 44px; width: fit-content; margin: 10px auto 0; padding: 8px; color: var(--tinta2); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.install-page { max-width: 640px; }
.install-back { min-height: 44px; width: fit-content; margin-top: 16px; }
.install-intro { margin: 22px 0 28px; }
.install-intro .eyebrow { color: var(--tinta2); margin-bottom: 12px; }
.install-intro h1 { font-size: clamp(40px, 8vw, 56px); line-height: 1.06; max-width: 470px; }
.install-intro > p:last-child { margin-top: 16px; color: var(--tinta2); }
.install-guide { display: grid; gap: 18px; }
.install-block { min-width: 0; border: 1px solid var(--linea); border-radius: var(--radio-tarjeta); padding: 24px 20px; background: var(--papel); }
.install-block > .eyebrow { color: var(--tinta2); margin-bottom: 9px; }
.install-block h2 { font-size: 30px; }
.install-notice { font-size: 14px; margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--hoja); }
.install-steps { margin: 22px 0 0; padding: 0 0 0 26px; }
.install-steps li { padding-left: 7px; margin-top: 16px; }
.install-steps li::marker { color: var(--aceituna); font-weight: 700; }
.install-symbol { width: 25px; height: 25px; vertical-align: middle; color: var(--aceituna); stroke-width: 2; }
.install-older { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--linea); color: var(--tinta2); font-size: 13px; }
.install-block .button { margin-top: 22px; }
.install-feedback:empty { display: none; }
.install-feedback { margin-top: 16px; font-size: 14px; }
.install-finish { margin-top: 28px; padding: 28px 20px; text-align: center; color: var(--crema); background: var(--aceituna); border-radius: var(--radio-tarjeta); }
.install-finish h2 { font-size: 27px; line-height: 1.15; }
.install-app-preview { margin: 24px auto; width: 96px; }
.install-app-preview img { width: 80px; height: 80px; margin: auto; border-radius: 18px; box-shadow: 0 0 0 1px rgb(255 248 238 / 20%); }
.install-app-preview figcaption { margin-top: 8px; font-size: 14px; }
.install-first-open { font-size: 13px; margin-bottom: 16px; }
.install-done { font-weight: 700; font-size: 16px; }
@media print { .footer-install-link, .install-help-link { display: none; } }
.bonus-header h1 { font-size: clamp(36px, 7vw, 58px); line-height: 1.08; }
.bonus-header #bonus-number { margin: 20px 0 12px; color: var(--yema); }
.bonus-page { padding-top: 28px; }
.bonus-panel { padding: 22px; margin-bottom: 18px; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio-tarjeta); min-width: 0; overflow-wrap: anywhere; }
.bonus-panel h3 { font-size: 25px; margin-bottom: 14px; }
.bonus-panel h4 { margin-bottom: 8px; }
.bonus-panel p + p { margin-top: 12px; }
.bonus-list { padding-left: 22px; margin: 18px 0 0; }
.bonus-list li + li { margin-top: 12px; }
.bonus-section-title, .bonus-guide > h2 { margin: 28px 0 20px; }
.bonus-grid, .planner-days { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.bonus-grid .bonus-panel, .planner-days .bonus-panel { margin: 0; }
.bonus-grid { margin-bottom: 24px; }
.week-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 24px 0; }
.week-tabs button { font: inherit; font-size: 13px; min-height: 48px; padding: 8px 2px; border: 1px solid var(--linea); border-radius: 12px; background: var(--papel); }
.week-tabs [aria-selected="true"] { background: var(--aceituna); color: var(--crema); border-color: var(--aceituna); }
#week-panel > h2 { margin: 0 0 20px; }
.planner-day h3 { text-transform: capitalize; }
.planner-day dl { margin: 0; }
.planner-day dt { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--tinta2); font-weight: 700; }
.planner-day dd { margin: 0 0 12px; }
.planner-day dd:last-child { margin-bottom: 0; }
.planner-day a, .recipe-links a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.planner-day a .icon, .recipe-links .icon { width: 18px; height: 18px; }
.recipe-links a + a { border-top: 1px solid var(--linea); }
.shopping-list { margin-top: 32px; }
.shopping-list > .check-hint { margin-top: 12px; }
.shopping-list .button { font-size: 17px; }
.product-protein { background: var(--hoja); padding: 10px 12px; margin: 14px 0; border-radius: 12px; }
.product-card > .eyebrow { margin-bottom: 10px; }
.sauce-card { min-width: 0; border: 1px solid var(--linea); border-radius: var(--radio-tarjeta); background: var(--papel); overflow: hidden; }
.sauce-card .recipe-card { border: 0; border-bottom: 1px solid var(--linea); border-radius: 0; box-shadow: none; }
.sauce-pairings { padding: 20px; }
.sauce-pairings h3 { font-size: 22px; margin-bottom: 10px; }
.pairings { margin-top: 28px; }
.pairings h2 { margin-bottom: 12px; }
.offline-page { padding-top: 40px; }
.offline-page h1 { font-size: 42px; margin: 16px 0; }
.offline-page > p { margin-bottom: 24px; }
@media (min-width: 600px) {
  .bonus-grid, .planner-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@page { size: A4 portrait; margin: 10mm 13mm; }
@media print {
  .network-status, .install-card { display: none !important; }
  .pairings { margin-top: 3mm; }.pairings h2 { font-size: 12pt; margin-bottom: 1mm; }.pairings .recipe-links { display: flex; flex-wrap: wrap; gap: 1mm 4mm; }.pairings a { min-height: 0; padding: 1mm 0; font-size: 7pt; border: 0; }.pairings .icon { display: none; }
  html { scroll-behavior: auto; }
  html, body { overflow-x: visible; }
  body { padding: 0; background: var(--papel); color: var(--tinta); font-size: 9pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .skip-link, .recipe-topbar, .bottom-nav, .recipe-actions, .toast, dialog, .check-hint, .related-section { display: none !important; }
  .recipe-page { width: 100%; max-width: none; padding: 0; margin: 0; }
  .recipe-hero { height: 55mm; margin: 0; border-radius: 4mm; overflow: hidden; }
  .recipe-hero img { object-position: 50% 57%; }.recipe-hero .photo-pill { top: 4mm; left: 4mm; font-size: 8pt; padding: 2mm 3mm; }
  .recipe-heading { position: relative; padding-top: 4mm; }.recipe-heading > .eyebrow { font-size: 7pt; margin-bottom: 1.5mm; }
  .recipe-heading h1 { max-width: 155mm; padding-right: 15mm; font-size: 28pt; line-height: 1.02; }
  .recipe-heading .protein-seal { width: 20mm; height: 20mm; top: 7mm; right: 1mm; }.recipe-heading .protein-seal strong { font-size: 19pt; }.protein-seal small { font-size: 6pt; }
  .servings { font-size: 8pt; margin-top: 2mm; }
  .nutrition { margin-top: 3mm; padding: 3mm 0; border-radius: 4mm; }.nutrition > div { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: 2mm; }.nutrition .icon { width: 5mm; height: 5mm; margin: 0; }.nutrition strong { font-size: 20pt; }.nutrition strong small { font-size: 11pt; }.nutrition span { grid-column: 1 / -1; text-align: center; font-size: 8pt; margin-top: 0; }
  .recipe-details { display: flex; flex-wrap: wrap; gap: 1mm 6mm; margin-top: 2mm; font-size: 7.5pt; }.recipe-details p { gap: 1mm; margin: 0; }.recipe-details .icon { width: 4mm; height: 4mm; }
  .recipe-tags { gap: 1mm; margin-top: 2mm; }.tag-pill { padding: 1mm 2mm; font-size: 7pt; }
  .recipe-columns { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8mm; margin-top: 5mm; }
  .recipe-columns .section-heading { display: flex; margin-bottom: 2mm; gap: 1mm; }.recipe-columns h2 { font-size: 16pt; }.recipe-columns .section-heading > .eyebrow { font-size: 6pt; margin: 0; }
  .ingredient-list label { min-height: 0; padding: 2.4mm 0; gap: 2mm; font-size: 9pt; line-height: 1.4; }
  .ingredient-list input { appearance: none; width: 3mm; height: 3mm; border: .3mm solid var(--tinta2); background: transparent !important; border-radius: .6mm; }
  .ingredient-list input:checked::after { display: none; }.ingredient-list input:checked + span { text-decoration: none; color: var(--tinta); }
  .preparation { margin: 0; }.steps { margin: 3mm 0 0; }.steps li { grid-template-columns: 6mm 1fr; gap: 2mm; margin-bottom: 3mm; break-inside: avoid; }.steps li::before { width: 6mm; height: 6mm; font-size: 8pt; }.steps p { font-size: 8.6pt; line-height: 1.4; padding-top: 0; }
  .tip { margin-top: 3mm; padding: 3mm 4mm; border-radius: 3mm; gap: 3mm; break-inside: avoid; }.tip .icon { width: 6mm; height: 6mm; }.tip h2 { font-size: 13pt; margin-bottom: 1mm; }.tip p { font-size: 8.5pt; line-height: 1.35; }
  .recipe-footer { display: flex; flex-direction: row; justify-content: space-between; margin-top: 4mm; padding: 3mm 0 0; break-inside: avoid; }.recipe-footer .brand strong { font-size: 18pt; }.recipe-footer .brand small { font-size: 5pt; margin-top: 1mm; }.recipe-footer .brand-mark { width: 9mm; height: 9mm; }.recipe-footer > span { font-size: 8pt; }
}
