/* ==========================================================================
   Recetarios de Aquí · Cocina Boricua — sistema de diseño
   Dirección (skill ui-ux-pro-max): revista gastronómica editorial +
   "Warm Brown + Cream + Appetizing accents". Tipografía Playfair Display
   (títulos) + Inter (texto). Iconos SVG, sin emojis en la interfaz.
   ========================================================================== */

:root {
  /* Color — contrastes medidos sobre --cream (AA ≥ 4.5:1 en texto) */
  --cream: #FBF6EE;          /* fondo */
  --ivory: #FFFDF9;          /* superficies */
  --sand: #F3E9DA;           /* bloques tintados */
  --line: #E6D8C4;           /* bordes */
  --ink: #2B1D14;            /* texto principal  (15.4:1) */
  --ink-2: #5E4A3C;          /* texto secundario (7.6:1) */
  --ink-3: #7A6453;          /* texto terciario  (5.1:1) */
  --achiote: #A63A12;        /* primario / acento (6.3:1) */
  --achiote-600: #8C300E;
  --achiote-50: #F8E6DC;
  --plantain: #2F5D34;       /* secundario, verde plátano (7.4:1) */
  --plantain-50: #E3EDDF;
  --gold: #C8912E;           /* sólo decorativo */
  --focus: #1D4ED8;

  /* Tipografía */
  /* Una sola letra en toda la app: Tahoma (Windows y Mac). En iPhone y
     Android, que no la traen, la más parecida: Verdana o la del sistema. */
  --font-display: Tahoma, Verdana, "Segoe UI", system-ui, sans-serif;
  --font-body: Tahoma, Verdana, "Segoe UI", system-ui, sans-serif;
  /* Única excepción: "Puertorriqueña" del título principal. */
  --font-accent: "Playfair Display", Georgia, "Times New Roman", serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  --step-4: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);

  /* Espaciado (escala de 4 px) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4.5rem;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(43, 29, 20, .06), 0 1px 1px rgba(43, 29, 20, .04);
  --shadow: 0 6px 20px -8px rgba(43, 29, 20, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 200ms;
  --header-h: 68px;
  --container: 1200px;

  /* Capas */
  --z-header: 30;
  --z-toast: 50;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
main:focus { outline: none; }
[hidden] { display: none !important; } /* ningún display de componente gana a hidden */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5);
  border-radius: 999px; font-weight: 600; font-size: var(--step--1);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn-primary { background: var(--achiote); color: #fff; }
.btn-primary:hover { background: var(--achiote-600); }
.btn-outline { border: 1.5px solid var(--line); background: var(--ivory); color: var(--ink); }
.btn-outline:hover { border-color: var(--achiote); color: var(--achiote); }
.btn-outline[aria-pressed="true"] { background: var(--achiote-50); border-color: var(--achiote); color: var(--achiote-600); }
.btn-outline[aria-pressed="true"] .icon { fill: currentColor; }
.btn-ghost { color: var(--achiote); padding-inline: var(--s-3); }
.btn-ghost:hover { background: var(--achiote-50); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; color: var(--ink);
  transition: background-color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--sand); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(251, 246, 238, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; text-decoration: none; margin-right: auto; }
/* Logotipo: bandera de Puerto Rico (3:2) con esquinas suaves y un filo para
   que la franja blanca no se pierda sobre el fondo crema. */
.brand-mark { display: inline-block; flex: none; line-height: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(43, 29, 20, .14), var(--shadow-sm); }
.brand-mark svg { width: 54px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.brand-sub { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--plantain); }

.primary-nav { display: flex; align-items: center; gap: var(--s-1); }
.nav-link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-3); border-radius: 999px;
  font-weight: 500; font-size: var(--step--1); text-decoration: none; color: var(--ink-2);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--sand); }
.nav-fav[aria-pressed="true"] { color: var(--achiote-600); background: var(--achiote-50); }
.nav-fav[aria-pressed="true"] .icon { fill: currentColor; }
.nav-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--achiote); color: #fff; font-size: .72rem; font-weight: 700;
  display: inline-grid; place-items: center;
}

.lang-toggle { display: inline-flex; margin-left: var(--s-2); padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--ivory); }
.lang-btn {
  min-width: 44px; min-height: 44px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: var(--ink-3);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
/* minmax(0, …): sin él, el ancho mínimo del campo de búsqueda empujaba la
   columna y la página se desbordaba 7 px en teléfonos de 320 px. */
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--plantain);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.hero-title { font-size: var(--step-4); font-weight: 800; margin: var(--s-4) 0 var(--s-4); max-width: 16ch; text-wrap: balance; }
/* Toque del título: la palabra destacada en cursiva achiote, en su propia
   línea, con un trazo dorado "a pincel" debajo. */
.hero-accent {
  display: inline-block;
  font-family: var(--font-accent);
  font-style: italic; font-weight: 700; color: var(--achiote);
  padding-bottom: .12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11 C 60 4, 120 3, 170 6 S 260 12, 297 5' fill='none' stroke='%23C8912E' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .28em no-repeat;
}
.hero-lead { color: var(--ink-2); font-size: var(--step-1); max-width: 48ch; }
.hero-stats { margin-top: var(--s-4); color: var(--ink-3); font-size: var(--step--1); font-weight: 500; }
.hero-stats strong { color: var(--ink); }

.search {
  position: relative; display: flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-6); max-width: 560px;
  background: var(--ivory); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 6px 6px var(--s-4);
  box-shadow: var(--shadow);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search:focus-within { border-color: var(--achiote); box-shadow: 0 0 0 4px var(--achiote-50), var(--shadow); }
.search-icon { color: var(--ink-3); }
.search-input {
  flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent;
  font-size: var(--step-0); outline: none;
}
.search-input::placeholder { color: var(--ink-3); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-3); }
.search-clear:hover { background: var(--sand); color: var(--ink); }
.search-input:focus-visible { outline: none; }

/* Mosaico decorativo del hero: 4 portadas de categoría reales */
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.hero-art .cover { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-art .cover:nth-child(1) { aspect-ratio: 4 / 5; }
.hero-art .cover:nth-child(2) { aspect-ratio: 4 / 5; transform: translateY(28px); }
.hero-art .cover:nth-child(3) { aspect-ratio: 4 / 3; }
.hero-art .cover:nth-child(4) { aspect-ratio: 4 / 3; transform: translateY(28px); }

/* ---------- Portadas de categoría (sustituyen a la foto cuando no hay) ---------- */
.cover {
  --tone: #E9C9A6; --tone-2: #D9A77A; --cx: 85%; --cy: 90%; --cr: 30%;
  position: relative; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.45), transparent 55%),
    radial-gradient(circle at var(--cx) var(--cy), var(--tone-2) 0 var(--cr), transparent calc(var(--cr) + 1%)),
    var(--tone);
}
.cover::after { /* textura sutil de mantel */
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: repeating-linear-gradient(45deg, rgba(43,29,20,.5) 0 1px, transparent 1px 12px);
}
/* El plato se sirve en un plato: aro crema con borde y sombra suave. */
.cover-emoji {
  position: relative; z-index: 1; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1;
  display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%;
  background: radial-gradient(circle, #FFFDF8 0 56%, #F3E9DA 58% 70%, #FFFDF8 72% 100%);
  box-shadow: 0 .18em .4em rgba(43,29,20,.18), inset 0 -.05em 0 rgba(43,29,20,.06);
}
.cover-svg { display: block; width: 1.25em; height: 1.25em; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

/* ---------- Secciones ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-tint { background: var(--sand); }
.section-head { margin-bottom: var(--s-5); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.section-title { font-size: var(--step-3); }
.section-sub { margin-top: var(--s-2); color: var(--ink-2); max-width: 60ch; }

/* Categorías */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-3); }
.cat-tile {
  display: flex; flex-direction: column; text-align: left;
  background: var(--ivory); border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cat-tile .cover { aspect-ratio: 16 / 9; }
.cat-tile .cover-emoji { font-size: 2.2rem; }
.cat-tile-body { padding: var(--s-3) var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 2px; }
.cat-tile-name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.cat-tile-count { font-size: .8rem; color: var(--ink-3); }
.cat-tile:hover { border-color: var(--achiote); box-shadow: var(--shadow); }
.cat-tile[aria-pressed="true"] { border-color: var(--achiote); box-shadow: 0 0 0 3px var(--achiote-50); }
.cat-tile[aria-pressed="true"] .cat-tile-name { color: var(--achiote-600); }
.cat-tile[aria-pressed="true"] .cat-tile-body::after {
  content: attr(data-active); margin-top: var(--s-1); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--achiote);
}

/* Tarjetas de receta */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-5); }
.card-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: var(--s-5);
  overflow-x: auto; padding: 4px 4px var(--s-4); margin: -4px -4px 0;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.card-rail > * { scroll-snap-align: start; }

.recipe-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.recipe-card:hover { box-shadow: var(--shadow); border-color: #D8C4A8; }
.recipe-card .cover { aspect-ratio: 4 / 3; }
.recipe-card .cover-emoji { transition: transform 400ms var(--ease); }
.recipe-card:hover .cover-emoji { transform: scale(1.08) rotate(-3deg); }
.card-body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); flex: 1; }
.card-cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--plantain); }
.card-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* toda la tarjeta es clicable */
.card-link:focus-visible { outline: none; }
.recipe-card:has(.card-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: auto; padding-top: var(--s-2); color: var(--ink-2); font-size: .85rem; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .icon { width: 16px; height: 16px; color: var(--ink-3); }

.fav-toggle {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 253, 249, .92); color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.fav-toggle:hover { color: var(--achiote); }
.fav-toggle[aria-pressed="true"] { color: var(--achiote); }
.fav-toggle[aria-pressed="true"] .icon { fill: currentColor; }
.fav-toggle.pop { animation: pop 320ms var(--ease); }
@keyframes pop { 50% { transform: scale(1.2); } }

/* Barra de resultados y filtros */
/* Al buscar, los resultados van justo debajo del buscador (sin la cuadrícula de
   categorías ni las rápidas en medio). */
.is-searching #categorias, .is-searching #rapidas, .is-searching #opiniones { display: none; }
.is-searching #recetas { padding-top: var(--s-5); }
.more-results { display: flex; justify-content: center; margin-top: var(--s-6); }
.more-results .btn { min-height: 48px; padding: 0 var(--s-6); }
.results-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.results-count { margin-top: var(--s-1); color: var(--ink-2); font-weight: 500; }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-4);
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--ivory);
  font-size: var(--step--1); font-weight: 600; color: var(--ink-2);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip .icon { width: 16px; height: 16px; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.chip[aria-pressed="true"] .icon { fill: currentColor; }
.chip-clear { border-style: dashed; }

/* Lo que entendió el buscador inteligente */
.search-understood { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0; font-size: .875rem; color: var(--ink-2, #5B4636); }
.su-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.su-label { font-weight: 700; color: var(--ink, #2B1D14); }
.su-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--sand, #F3E9DA); border: 1px solid var(--line, #E6D8C4); color: var(--ink, #2B1D14); }
.su-sep { color: var(--line, #E6D8C4); padding: 0 2px; }
.su-note { font-size: .8125rem; }

/* Grupos por categoría (acordeón) */
.category-section { border-top: 1px solid var(--line); }
.category-section:last-child { border-bottom: 1px solid var(--line); }
.category-header {
  width: 100%; display: flex; align-items: center; gap: var(--s-3);
  min-height: 64px; padding: var(--s-3) var(--s-2); text-align: left;
  transition: background-color var(--dur) var(--ease);
}
.cat-dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.cat-title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; flex: 1; }
.cat-count { font-size: .85rem; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.category-body { padding: var(--s-2) 0 var(--s-6); }

/* Estados */
.empty-state {
  text-align: center; padding: var(--s-7) var(--s-4); border: 1.5px dashed var(--line); border-radius: var(--radius-lg);
  background: var(--ivory);
}
.empty-state .icon { width: 40px; height: 40px; margin: 0 auto var(--s-3); color: var(--ink-3); }
.empty-state h3 { font-size: var(--step-2); margin-bottom: var(--s-2); }
.empty-state p { color: var(--ink-2); margin-bottom: var(--s-4); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast);
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: var(--s-2);
  max-width: calc(100vw - 32px); padding: var(--s-3) var(--s-5);
  background: var(--ink); color: var(--ivory); border-radius: 999px; box-shadow: var(--shadow);
  font-size: var(--step--1); font-weight: 500;
}
.toast .icon { color: #9BD49F; }
.toast.show { animation: toast-in 220ms var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* Aparición progresiva */
.reveal { animation: rise 420ms var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Detalle de receta ---------- */
.recipe-view { padding: var(--s-5) 0 var(--s-8); }
.recipe-container { max-width: 1100px; }
.back-btn { margin-bottom: var(--s-4); margin-left: calc(var(--s-3) * -1); }
.recipe-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.recipe-hero-art .cover { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.recipe-hero-art .cover-emoji { font-size: clamp(4rem, 10vw, 6.5rem); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s-4);
  border-radius: 999px; background: var(--plantain-50); color: var(--plantain);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color var(--dur) var(--ease);
}
.badge:hover { background: #D3E3CD; }
.recipe-title { font-size: var(--step-4); font-weight: 800; margin: var(--s-3) 0 var(--s-5); }
.recipe-title:focus { outline: none; }
.recipe-facts {
  list-style: none; padding: var(--s-4) 0; display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.recipe-facts li { display: flex; align-items: center; gap: var(--s-3); }
.recipe-facts .icon { width: 24px; height: 24px; color: var(--achiote); }
.fact-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.recipe-facts strong { font-size: var(--step-1); }
.recipe-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }

.recipe-body { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); margin-top: var(--s-5); align-items: start; }

/* Pestañas Receta / Información nutricional */
.recipe-tabs {
  display: inline-flex; gap: 4px; margin-top: clamp(32px, 5vw, 56px); padding: 4px;
  background: var(--sand); border: 1px solid var(--line); border-radius: 999px; max-width: 100%;
}
.recipe-tab {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-5);
  border-radius: 999px; font-weight: 600; color: var(--ink-2);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.recipe-tab .icon { width: 18px; height: 18px; }
.recipe-tab:hover { color: var(--ink); }
.recipe-tab[aria-selected="true"] { background: var(--ivory); color: var(--achiote-600); box-shadow: var(--shadow-sm); }

/* Información nutricional */
.nutrition-panel { margin-top: var(--s-5); }
.nutrition-panel:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.nutri-head { margin-bottom: var(--s-5); }
.nutri-sub { color: var(--ink-3); font-size: .9rem; margin-top: var(--s-1); }
.nutri-grid { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.nutri-kcal { display: flex; flex-direction: column; }
.nutri-kcal strong { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2.5vw, 3.6rem); line-height: 1; color: var(--achiote-600); font-variant-numeric: tabular-nums; }
.nutri-kcal span { font-weight: 600; color: var(--ink-2); margin-top: var(--s-2); }
.nutri-total { font-size: .9rem; color: var(--ink-3); margin-top: var(--s-2); }
.nutri-subtitle { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: var(--s-5) 0 var(--s-2); }
.macro-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--sand); gap: 2px; }
.macro-bar span { display: block; min-width: 2px; }
.m-p { background: var(--plantain); }
.m-c { background: var(--gold); }
.m-f { background: var(--achiote); }
.macro-legend { list-style: none; padding: 0; margin-top: var(--s-3); display: grid; gap: var(--s-2); }
.macro-legend li { display: flex; align-items: center; gap: var(--s-2); font-size: .92rem; color: var(--ink-2); }
.macro-legend strong { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.macro-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.nutri-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.nutri-table th, .nutri-table td { padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); text-align: right; }
.nutri-table th[scope="row"], .nutri-table thead th:first-child { text-align: left; }
.nutri-table thead th { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.nutri-table tbody th { font-weight: 600; }
.nutri-table tr.sub th { font-weight: 400; padding-left: var(--s-5); color: var(--ink-2); }
.nutri-table tr.row-kcal th, .nutri-table tr.row-kcal td { font-weight: 800; font-size: var(--step-1); border-bottom-width: 2px; border-bottom-color: var(--ink); }
.nutri-notes { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px dashed var(--line); font-size: .85rem; color: var(--ink-2); display: grid; gap: var(--s-2); max-width: 75ch; }
.nutri-missing { margin: 0 0 0 var(--s-5); color: var(--ink-3); }
.nutri-empty { color: var(--ink-2); margin-top: var(--s-3); }

/* Alergias, alertas y manejo seguro */
.allergen-line {
  display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4); border-radius: var(--radius); background: var(--achiote-50); color: var(--achiote-600); font-size: .92rem;
}
.allergen-line .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.allergen-line strong { margin-right: var(--s-1); }
.safety-panel { margin-top: var(--s-5); }
.safety-panel:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.advice-block { margin-top: var(--s-5); }
.advice-title {
  font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: var(--s-3);
}
.advice-empty { color: var(--ink-2); }
.allergen-list, .alert-list, .tip-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.allergen-list li { display: grid; gap: var(--s-1); padding-bottom: var(--s-3); border-bottom: 1px dashed var(--line); }
.allergen-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.allergen-chip {
  justify-self: start; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .88rem;
  background: var(--achiote-50); color: var(--achiote-600); border: 1px solid #EBC5B2;
}
.allergen-src { font-size: .85rem; color: var(--ink-3); }
.allergen-sub { font-size: .88rem; color: var(--ink-2, var(--ink)); background: #EEF6E8; border-left: 3px solid #5E9E38; padding: 6px 10px; border-radius: 6px; line-height: 1.45; }
.allergen-sub strong { display: block; color: #2F5D34; margin-bottom: 2px; }
.allergen-sub-item { display: block; }
.allergen-sub-item + .allergen-sub-item { margin-top: 4px; }
.allergen-subs-note { font-size: .8rem; color: var(--ink-3); margin: var(--s-2) 0 0; }
.alert { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--radius); border: 1px solid var(--line); line-height: 1.5; }
.alert .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-high { background: var(--achiote-50); border-color: #EBC5B2; color: var(--achiote-600); }
.alert-high span { color: var(--ink); }
.alert-caution { background: #FBF0D9; border-color: #EAD3A0; }
.alert-caution .icon { color: #8A5A00; }
.alert-info { background: var(--plantain-50); border-color: #C9DCC2; }
.alert-info .icon { color: var(--plantain); }
.tip-list li { position: relative; padding-left: var(--s-5); line-height: 1.55; color: var(--ink-2); }
.tip-list li::before {
  content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--plantain);
}
.advice-note { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px dashed var(--line); font-size: .85rem; color: var(--ink-3); max-width: 75ch; }
.panel { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.ingredients-panel { position: sticky; top: calc(var(--header-h) + 16px); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.panel-title { font-size: var(--step-2); }

.stepper { display: inline-flex; align-items: center; gap: var(--s-1); border: 1px solid var(--line); border-radius: 999px; padding: 3px 3px 3px var(--s-3); background: var(--cream); }
.stepper-label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-right: var(--s-1); }
.stepper-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background-color var(--dur) var(--ease); }
.stepper-btn:hover:not(:disabled) { background: var(--sand); }
.stepper-btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper-value { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.scale-note { font-size: .82rem; color: var(--ink-2); background: var(--achiote-50); border-radius: var(--radius-sm); padding: var(--s-2) var(--s-3); margin-bottom: var(--s-3); }

.ingredient-list { list-style: none; padding: 0; }
.ingredient-list li + li { border-top: 1px dashed var(--line); }
.ing-item { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) 0; cursor: pointer; line-height: 1.5; }
.ing-item input { position: absolute; opacity: 0; pointer-events: none; }
.ing-box {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid #CDB89C;
  display: grid; place-items: center; background: var(--ivory);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ing-box .icon { width: 14px; height: 14px; stroke-width: 2.5; color: #fff; opacity: 0; }
.ing-item input:checked + .ing-box { background: var(--plantain); border-color: var(--plantain); }
.ing-item input:checked + .ing-box .icon { opacity: 1; }
.ing-item input:checked ~ .ing-text { color: var(--ink-3); text-decoration: line-through; }
.ing-item input:focus-visible + .ing-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.qty { font-weight: 700; color: var(--ink); }
.qty.scaled { color: var(--achiote-600); }

.step-list { list-style: none; padding: 0; counter-reset: step; }
.step-list li {
  counter-increment: step; position: relative;
  padding: 0 0 var(--s-5) 56px; font-size: var(--step-1); line-height: 1.7; max-width: 68ch;
}
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--achiote); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.step-list li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: 8px; width: 2px; background: var(--line); }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #E9DDCB; padding: var(--s-7) 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-6); flex-wrap: wrap; }
.footer-brand { display: flex; gap: var(--s-4); align-items: flex-start; max-width: 520px; }
.footer-brand .brand-mark { margin-top: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.footer-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-text { margin-top: var(--s-1); color: #CDBDA6; font-size: var(--step--1); }
.footer-contact a { color: #fff; font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--gold); }
.auth-contact { margin-top: var(--s-4); font-size: .85rem; color: var(--ink-3); overflow-wrap: anywhere; }
.auth-contact a { color: var(--achiote); font-weight: 700; }
/* Icono en el celular (js/install.js) */
.footer-install { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: var(--step--1); font-weight: 700; cursor: pointer; }
.footer-install:hover { background: rgba(255,255,255,.08); color: #fff; }
.footer-install .icon { width: 18px; height: 18px; }
.install-btn { width: 100%; justify-content: center; }
.auth-install { margin-top: var(--s-4); }
.install-dialog { margin: auto; width: min(92vw, 460px); max-height: 90vh; overflow: auto; padding: var(--s-5); border: 0; border-radius: var(--radius-lg); background: var(--ivory); color: var(--ink); box-shadow: var(--shadow); }
.install-dialog::backdrop { background: rgba(43, 29, 20, .55); }
.install-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.install-icon { border-radius: 14px; box-shadow: var(--shadow-sm); flex: none; }
.install-title { font-size: var(--step-2); line-height: 1.2; }
.install-text { color: var(--ink-2); margin-bottom: var(--s-3); }
.install-steps { margin: 0 0 var(--s-3); padding-left: 1.4em; display: grid; gap: var(--s-2); }
.install-steps li { padding-left: var(--s-1); }
.install-note { font-size: var(--step--1); color: var(--ink-3); margin-bottom: var(--s-3); }
.install-url { font-weight: 700; color: var(--achiote); overflow-wrap: anywhere; margin-bottom: var(--s-3); }
.install-now { width: 100%; justify-content: center; margin-bottom: var(--s-4); }
.install-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
@media print { .install-dialog, .footer-install { display: none !important; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border-radius: 999px; text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.footer-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-footer :focus-visible { outline-color: #9CC3FF; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-art { grid-template-columns: repeat(4, 1fr); max-width: 640px; }
  .hero-art .cover { aspect-ratio: 1 / 1 !important; transform: none !important; }
  .hero-art .cover-emoji { font-size: 2.4rem; }
  .recipe-hero { grid-template-columns: 1fr; }
  .recipe-hero-art .cover { aspect-ratio: 16 / 9; }
  .recipe-body { grid-template-columns: 1fr; }
  .nutri-grid { grid-template-columns: 1fr; }
  .recipe-tabs { display: flex; width: 100%; }
  .recipe-tabs { border-radius: var(--radius); }
  .recipe-tab { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; padding: var(--s-2) var(--s-1); font-size: .8rem; text-align: center; line-height: 1.2; border-radius: calc(var(--radius) - 4px); }
  .ingredients-panel { position: static; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-grid; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--s-1);
    padding: var(--s-3) clamp(16px, 4vw, 32px) var(--s-4);
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .primary-nav:not(.open) { display: none; }
  .nav-link { justify-content: flex-start; font-size: var(--step-0); }
  .lang-toggle { margin: var(--s-2) 0 0; align-self: flex-start; }
}

@media (max-width: 560px) {
  :root { --header-h: 60px; }
  .brand-mark svg { width: 45px; height: 30px; }
  .brand-name { font-size: 1.12rem; }
  .search { flex-wrap: nowrap; padding-left: var(--s-3); }
  .search-submit { padding: 0 var(--s-4); }
  .hero-art { gap: var(--s-2); }
  .hero-art .cover { border-radius: var(--radius); }
  .hero-art .cover-emoji { font-size: 1.8rem; }
  /* Todas las categorías a la vista, sin deslizar: fichas compactas en 2
     columnas (icono a la izquierda, nombre y recuento a la derecha). */
  .category-grid { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .cat-tile { flex-direction: row; align-items: center; min-height: 64px; }
  .cat-tile .cover { flex: none; width: 52px; aspect-ratio: 1 / 1; margin: 6px 0 6px 6px; border-radius: calc(var(--radius) - 4px); }
  .cat-tile .cover::after { display: none; }
  .cat-tile .cover-emoji { font-size: 1.15rem; box-shadow: 0 .12em .3em rgba(43,29,20,.16); }
  .cat-tile-body { padding: var(--s-2) var(--s-2) var(--s-2) 10px; min-width: 0; }
  .cat-tile-name { font-size: .84rem; line-height: 1.25; overflow-wrap: anywhere; }
  .cat-tile-count { font-size: .72rem; }
  .cat-tile[aria-pressed="true"] .cat-tile-body::after { margin-top: 2px; font-size: .62rem; }
  .recipe-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .results-bar { align-items: flex-start; }
  .cat-title { font-size: var(--step-1); }
  .step-list li { padding-left: 48px; font-size: var(--step-0); }
  .recipe-actions .btn { flex: 1 1 auto; padding: 0 var(--s-4); }
  .stepper-label { display: none; }
}

@media (max-width: 380px) {
  .search-submit { display: none; } /* Enter en el teclado busca igual */
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .recipe-card:hover .cover-emoji { transform: none; }
}

/* ---------- Impresión (receta) ---------- */
@media print {
  .site-header, .site-footer, .back-btn, .recipe-actions, .stepper-btn, .toast, .skip-link, #view-home, .recipe-hero-art, .recipe-tabs { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .recipe-view { padding: 0; }
  .recipe-hero, .recipe-body { display: block; }
  .panel { border: 0; padding: 0; margin-top: 12pt; position: static; }
  .ing-box { display: none; }
  .step-list li { font-size: 11pt; break-inside: avoid; }
  .step-list li::before { background: #000; }
  .step-list li::after { display: none; }
  .scale-note { background: none; padding: 0; }
}

/* ===================== Planes de comida (#/planes) ===================== */
.plans-view { padding: clamp(24px, 4vw, 48px) 0 var(--s-8); }
.plans-wrap { display: flex; flex-direction: column; gap: var(--s-5); }
.plans-head .section-sub { max-width: 70ch; }
#plans-title:focus { outline: none; }
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-3); }
@media (max-width: 520px) { .goal-grid { grid-template-columns: 1fr 1fr; gap: var(--s-2); } .goal-card { padding: var(--s-3); } .goal-desc { font-size: .75rem; } .goal-icon { font-size: 1.3rem; } }
.goal-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: var(--s-4); border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--ivory); color: var(--ink); cursor: pointer; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.goal-card:hover { border-color: var(--achiote); }
.goal-card[aria-checked="true"] { border-color: var(--achiote); box-shadow: 0 0 0 3px var(--achiote-50); background: #FFF8F2; }
.goal-icon { font-size: 1.6rem; line-height: 1; }
.goal-name { font-weight: 700; }
.goal-card[aria-checked="true"] .goal-name { color: var(--achiote-600); }
.goal-desc { font-size: .85rem; color: var(--ink-2); line-height: 1.35; }
.plans-controls { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 860px) { .plans-controls { grid-template-columns: 3fr 2fr; align-items: start; } }
.plans-me, .plans-avoid { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); padding: var(--s-4); margin: 0; }
.plans-me summary { font-weight: 700; cursor: pointer; }
.plans-help { font-size: .88rem; color: var(--ink-2); margin-top: var(--s-2); }
.plans-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s-3); margin-top: var(--s-3); }
.plans-form label, .plans-height legend { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.plans-form input, .plans-form select { font: inherit; font-weight: 400; color: var(--ink); padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; min-width: 0; width: 100%; }
.plans-form input:focus-visible, .plans-form select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.plans-height { border: 0; padding: 0; margin: 0; display: flex; gap: var(--s-2); align-items: flex-end; flex-wrap: wrap; grid-column: span 1; }
.plans-height legend { margin-bottom: 4px; }
.plans-height label { flex-direction: row; align-items: center; gap: 4px; font-weight: 400; color: var(--ink); }
.plans-height input { width: 4.2em; }
.plans-activity { grid-column: 1 / -1; }
.plans-avoid legend { font-weight: 700; padding: 0 4px; }
.plans-avoid { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.plans-avoid .plans-help { flex-basis: 100%; margin: 0 0 var(--s-1); }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-block; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem; background: #fff; }
.chip-check input:checked + span { background: var(--achiote-50); border-color: var(--achiote); color: var(--achiote-600); font-weight: 600; }
.chip-check input:checked + span::before { content: "✕ "; }
.chip-check input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.plans-target { background: var(--plantain-50); border-radius: var(--radius); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.plans-note { font-size: .9rem; color: var(--ink-2); }
.plans-warn { color: var(--achiote-600); font-weight: 600; }
.plans-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; }
.seg { display: inline-flex; gap: 0; }
.seg .btn { border-radius: 0; }
.seg .btn:first-child { border-radius: 999px 0 0 999px; }
.seg .btn:last-child { border-radius: 0 999px 999px 0; margin-left: -1.5px; }
.plan-days { display: grid; gap: var(--s-4); }
.plan-days.week { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.plan-day { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ivory); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); box-shadow: var(--shadow-sm); }
.plan-day-title { font-size: var(--step-1); color: var(--achiote-600); }
.plan-meals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.plan-meal { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: var(--s-3); row-gap: 2px; align-items: start; }
.plan-slot { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--plantain); }
.plan-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: block; }
.plan-thumb .cover { width: 100%; height: 100%; aspect-ratio: auto; }
.plan-thumb .cover-emoji { font-size: 1.7rem; }
.plan-meal-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-meal-name { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.3; }
.plan-meal-name:hover { color: var(--achiote); text-decoration: underline; }
.plan-portion { font-size: .85rem; color: var(--achiote-600); font-weight: 600; }
.plan-nutri { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .8rem; color: var(--ink-3); }
.plan-total { border-top: 1px dashed var(--line); padding-top: var(--s-3); display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s-3); align-items: center; font-size: .88rem; }
.plan-total-label { grid-column: 1 / -1; font-weight: 700; }
.plan-bar { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.plan-bar-fill { display: block; height: 100%; background: var(--achiote); border-radius: inherit; }
.plan-bar-p .plan-bar-fill { background: var(--plantain); }
.plan-total-val { color: var(--ink-2); white-space: nowrap; }
.plan-total-extra { grid-column: 1 / -1; color: var(--ink-3); font-size: .8rem; }
.plans-more-title { font-size: var(--step-2); }
.plans-more > div { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: var(--s-3); }
.plans-more-slot { font-size: var(--step-0); color: var(--plantain); display: flex; gap: var(--s-2); align-items: center; }
.plans-count { font-size: .75rem; background: var(--plantain-50); color: var(--plantain); border-radius: 999px; padding: 1px 8px; }
.plans-more-list { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: flex; flex-direction: column; gap: 6px; }
.plans-more-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.plans-more-list a:hover { color: var(--achiote); text-decoration: underline; }
.plans-more-n { display: block; font-size: .78rem; color: var(--ink-3); }
.plans-disclaimer { font-size: .85rem; color: var(--ink-2); background: var(--sand); border-left: 4px solid var(--gold); padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); }
.plans-side { display: flex; flex-direction: column; gap: var(--s-3); }
.plans-season-pick { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.plans-season-pick select { font: inherit; font-weight: 400; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.chip-pref input:checked + span { background: var(--plantain-50); border-color: var(--plantain); color: var(--plantain); }
.chip-pref input:checked + span::before { content: "✓ "; }
.plans-period { margin: 0 0 var(--s-3); font-weight: 600; color: var(--ink); }
.plans-saved { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-3); }
.plan-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.plan-badge { font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--plantain-50); color: var(--plantain); }
.plan-badge-prot { background: var(--achiote-50); color: var(--achiote-600); }
.plans-season { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); background: #FFF8EE; }
.plans-season-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: 6px var(--s-4); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.plans-season-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.plans-season-list a:hover { color: var(--achiote); text-decoration: underline; }
.plan-sides { list-style: none; margin: 4px 0 0; padding: 6px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 4px; }
.plan-sides li { display: grid; grid-template-columns: 14px 1fr; column-gap: 4px; font-size: .88rem; }
.plan-side-plus { color: var(--plantain); font-weight: 700; }
.plan-sides a { color: var(--ink); font-weight: 600; text-decoration: none; }
.plan-sides a:hover { color: var(--achiote); text-decoration: underline; }
.plan-side-n { grid-column: 2; font-size: .78rem; color: var(--ink-3); }
@media print { .plans-controls, .plans-actions, .goal-grid, .plans-more { display: none; } }

/* Familias dentro de una categoría (js/families.js) */
.family-group + .family-group { margin-top: 28px; }
.family-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-family: inherit; }
.family-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.family-count { font-size: .82rem; color: var(--ink-3); font-weight: 600; }

/* "Combina mejor con" (salsas y aderezos) */
.pairings { margin-top: var(--s-5); padding: var(--s-3) var(--s-4); background: var(--plantain-50); border-left: 4px solid var(--plantain); border-radius: var(--radius-sm); }
.pairings-title { margin: 0 0 var(--s-2); font-size: var(--step-0); font-weight: 700; color: var(--plantain); }
.pairing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pairing-chip { font: inherit; font-size: .9rem; font-weight: 600; color: var(--plantain); background: var(--ivory); border: 1px solid #B9D1B0; border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer; }
.pairing-chip:hover { background: var(--plantain); color: #fff; border-color: var(--plantain); }
.pairing-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media print { .pairing-chip { border: none; padding: 0 8px 0 0; } }

/* ---------- Acceso y administración (js/auth.js) ---------- */
/* Sin sesión validada sólo se ve la pantalla de entrada. */
body.auth-locked .site-header, body.auth-locked main, body.auth-locked .site-footer, body.auth-locked .toast { display: none !important; }
.auth-gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: clamp(16px, 5vw, 48px) 16px; background: radial-gradient(120% 80% at 50% 0%, var(--sand), var(--cream) 70%); }
.auth-gate[hidden] { display: none; }
.auth-card { width: 100%; max-width: 520px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px, 5vw, 40px); }
.auth-top { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.auth-top .brand-text { margin-right: auto; }
.auth-gate .lang-toggle.auth-lang { margin: 0; align-self: center; }
.auth-title { font-size: var(--step-3); line-height: 1.15; margin-bottom: var(--s-3); }
.auth-title:focus { outline: none; }
.auth-text { color: var(--ink-2); line-height: 1.6; margin-bottom: var(--s-5); }
.auth-h2 { font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--plantain); margin-bottom: var(--s-3); }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-2); }
.provider-btn { display: flex; align-items: center; gap: var(--s-3); min-height: 60px; padding: var(--s-2) var(--s-3); text-align: left; background: var(--ivory); border: 1.5px solid var(--line); border-radius: var(--radius); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.provider-btn:hover { border-color: var(--achiote); background: #fff; }
.provider-btn:focus-visible, .auth-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.provider-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.provider-name { font-weight: 700; color: var(--ink); }
.provider-sub { font-size: .78rem; color: var(--ink-3); }
.pmark { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: #fff; }
.pmark-google { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.pmark-google svg { width: 24px; height: 18px; }
.pmark-ms { grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.pmark-ms i { display: block; width: 100%; height: 100%; }
.pmark-ms i:nth-child(1) { background: #F25022; } .pmark-ms i:nth-child(2) { background: #7FBA00; }
.pmark-ms i:nth-child(3) { background: #00A4EF; } .pmark-ms i:nth-child(4) { background: #FFB900; }
.pmark-yahoo { background: #6001D2; font-size: .95rem; }
.pmark-apple { background: #111; }
.pmark-apple svg { width: 20px; height: 20px; fill: #fff; }
.auth-or { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-5) 0 var(--s-3); font-weight: 700; color: var(--ink); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-label { display: block; font-size: var(--step--1); color: var(--ink-2); margin-bottom: var(--s-2); }
.auth-row { display: flex; gap: var(--s-2); }
.auth-input { flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--s-4); border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; color: var(--ink); }
.auth-input:focus { border-color: var(--achiote); }
.auth-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.auth-msg { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); background: var(--achiote-50); color: var(--achiote-600); font-size: var(--step--1); }
.auth-msg[hidden] { display: none; }
/* Aviso dentro de Facebook/Instagram (auth.js → inAppNoticeHTML) */
.inapp-notice { margin: var(--s-3) 0 var(--s-4); padding: var(--s-4); border: 2px solid var(--gold); border-radius: var(--radius); background: #FFF8E8; font-size: var(--step--1); color: var(--ink); scroll-margin-top: var(--s-4); }
.inapp-notice p { margin: 0 0 var(--s-3); }
.inapp-title { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-2); font-size: var(--step-0); color: var(--achiote-600); }
.inapp-title .icon { width: 20px; height: 20px; flex: none; }
.inapp-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
.inapp-open { text-decoration: none; }
.inapp-if { font-weight: 700; color: var(--ink-2); margin-bottom: var(--s-1) !important; }
.inapp-email { margin: 0 !important; padding-top: var(--s-3); border-top: 1px dashed var(--line); color: var(--ink-2); }
.auth-privacy { display: flex; gap: var(--s-2); align-items: flex-start; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }
.auth-privacy .icon { width: 18px; height: 18px; flex: none; color: var(--plantain); }
.auth-loading { color: var(--ink-3); }
@media (max-width: 460px) {
  .provider-grid { grid-template-columns: 1fr; }
  .auth-row { flex-direction: column; }
  .auth-top .brand-sub { display: none; }
}

/* Cuenta en el encabezado */
.account-bar { display: inline-flex; align-items: center; gap: var(--s-1); margin-left: var(--s-2); padding-left: var(--s-2); border-left: 1px solid var(--line); }
.account-bar[hidden] { display: none; }
.account-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--ink-3); }
@media (max-width: 1100px) and (min-width: 761px) { .account-email { display: none; } .account-bar { padding-left: 0; border-left: 0; } }
@media (max-width: 760px) {
  .account-bar { margin: var(--s-2) 0 0; padding: var(--s-2) 0 0; border-left: 0; border-top: 1px solid var(--line); justify-content: space-between; }
  .account-email { max-width: none; flex: 1; min-width: 0; padding-left: var(--s-3); }
}

/* Panel de administración (#/admin) */
.admin-view { padding: clamp(24px, 4vw, 48px) 0 var(--s-8); }
.admin-wrap { display: flex; flex-direction: column; gap: var(--s-4); }
.admin-wrap .section-title:focus { outline: none; }
.admin-intro { color: var(--ink-2); max-width: 70ch; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.admin-stat { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); display: flex; flex-direction: column; }
.admin-stat-num { font-size: var(--step-3); font-weight: 800; color: var(--achiote); font-variant-numeric: tabular-nums; }
.admin-stat-label { font-size: var(--step--1); color: var(--ink-3); }
.admin-tools { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.admin-search { flex: 1 1 220px; }
.admin-table-wrap { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.admin-table-wrap > p { padding: var(--s-4); }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.admin-table th { text-align: left; font-weight: 700; color: var(--ink-2); background: var(--sand); white-space: nowrap; }
.admin-table th, .admin-table td { padding: var(--s-3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-email { font-weight: 600; overflow-wrap: anywhere; }
.admin-you { font-weight: 400; color: var(--ink-3); }
.admin-actions, .admin-date { white-space: nowrap; }
.btn-sm { min-height: 36px; padding: 0 var(--s-3); }
.role-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--sand); color: var(--ink-2); }
.role-tag.is-admin { background: var(--plantain-50); color: var(--plantain); }
.role-tag.is-blocked { background: var(--achiote-50); color: var(--achiote-600); }
@media (max-width: 760px) {
  .admin-stats { gap: var(--s-2); }
  .admin-stat { padding: var(--s-3); }
  .admin-stat-num { font-size: var(--step-2); }
  /* Tabla en fichas: una por usuario. */
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table tr { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
  .admin-table tbody tr:last-child { border-bottom: 0; }
  .admin-table td { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-1) 0; border: 0; text-align: right; }
  .admin-table td::before { content: attr(data-label); font-weight: 600; color: var(--ink-3); text-align: left; }
  .admin-table .admin-email { display: block; text-align: left; font-size: var(--step-0); }
  .admin-table .admin-email::before { display: none; }
  .admin-actions { flex-wrap: wrap; white-space: normal; }
}
@media print { .account-bar, #nav-admin { display: none !important; } }

/* Reseñas (js/reviews.js): estrellas + comentario, con aprobación previa */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.star { display: inline-flex; width: 18px; height: 18px; }
.stars-lg .star { width: 24px; height: 24px; }
.star-svg { width: 100%; height: 100%; stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round; fill: none; }
.star.on .star-svg { fill: var(--gold); }
/* Media estrella: la mitad izquierda rellena y, encima, el contorno completo. */
.star.half { position: relative; }
.star.half .star-svg { fill: var(--gold); clip-path: inset(0 50% 0 0); }
.star.half::after { content: ""; position: absolute; inset: 0; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z' fill='none' stroke='%23C8912E' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.recipe-rating { margin-top: var(--s-3); }
.rating-link { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--ivory); color: var(--ink-2); font: inherit; font-size: .9rem; cursor: pointer; min-height: 36px; }
.rating-link strong { color: var(--ink); }
.rating-link:hover { border-color: var(--gold); }
.rating-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.reviews-panel { margin-top: var(--s-5); }
.reviews-panel .panel-title:focus, .reviews-app .section-title:focus { outline: none; }
.reviews-app { display: flex; flex-direction: column; gap: var(--s-4); }
.reviews-head { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
.reviews-app .reviews-head { margin-bottom: 0; }
.reviews-summary { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.reviews-avg { font-size: var(--step-3); font-weight: 800; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.reviews-count { color: var(--ink-3); font-size: var(--step--1); }
.reviews-empty { color: var(--ink-2); margin-top: var(--s-4); }
.review-mine { margin-bottom: var(--s-4); }
.reviews-app .review-mine { margin-bottom: 0; }
.review-write .icon { width: 18px; height: 18px; }

.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.review { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); display: grid; gap: var(--s-2); }
.reviews-panel .review { background: #fff; }
.review-own { border-color: var(--gold); box-shadow: inset 4px 0 0 var(--gold); }
.review-own-label { font-size: var(--step--1); font-weight: 700; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.review-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); }
.review-name { color: var(--ink); overflow-wrap: anywhere; }
.review-date { color: var(--ink-3); font-size: var(--step--1); }
.review-text { color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; max-width: 75ch; }
.review-hint, .review-email { color: var(--ink-3); font-size: var(--step--1); overflow-wrap: anywhere; }
.review-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.review-tag.is-pending { background: var(--achiote-50); color: var(--achiote-600); }
.review-tag.is-ok { background: var(--plantain-50); color: var(--plantain); }
.review-target { font-weight: 700; color: var(--achiote); }
.review-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.review-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); display: grid; gap: var(--s-2); max-width: 640px; }
.review-label { font-weight: 700; font-size: var(--step--1); color: var(--ink-2); margin-top: var(--s-2); }
.star-input { border: 0; margin: 0; padding: 0; min-width: 0; }
.star-input legend { padding: 0; margin: 0 0 var(--s-1); }
.star-row { display: flex; gap: 2px; }
.star-pick { position: relative; display: inline-flex; width: 44px; height: 44px; padding: 5px; cursor: pointer; border-radius: var(--radius-sm); }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick .star-svg { stroke-width: 1.2; }
.star-pick:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 0; }
.star-row:has(input[value="1"]:checked) .star-pick:nth-child(-n+1) .star-svg,
.star-row:has(input[value="2"]:checked) .star-pick:nth-child(-n+2) .star-svg,
.star-row:has(input[value="3"]:checked) .star-pick:nth-child(-n+3) .star-svg,
.star-row:has(input[value="4"]:checked) .star-pick:nth-child(-n+4) .star-svg,
.star-row:has(input[value="5"]:checked) .star-pick:nth-child(-n+5) .star-svg { fill: var(--gold); }
@media (hover: hover) {
  .star-row:has(.star-pick:hover) .star-pick .star-svg { fill: none; }
  .star-row .star-pick:has(~ .star-pick:hover) .star-svg, .star-row .star-pick:hover .star-svg { fill: var(--gold); }
}
.review-input { border-radius: var(--radius-sm); }
.review-textarea { width: 100%; min-height: 110px; padding: var(--s-3) var(--s-4); border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--ink); resize: vertical; }
.review-input:focus-visible, .review-textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.review-chars { justify-self: end; font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.review-note { font-size: var(--step--1); color: var(--ink-2); }
.review-form .review-actions { margin-top: var(--s-2); }

/* Foto de la reseña (js/photo.js achica; js/reviews.js muestra) */
.review-photo-field { display: grid; gap: var(--s-2); justify-items: start; }
.review-photo-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.review-photo-btns .icon { width: 18px; height: 18px; }
.review-photo-preview { width: min(100%, 280px); aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.review-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-photo-info { font-size: var(--step--1); color: var(--ink-2); min-height: 1.2em; }
.review-photo-info:empty { display: none; }
.review-photo { justify-self: start; width: 160px; max-width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); cursor: zoom-in; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-photo.is-loading img { opacity: 0; }
.review-photo:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.photo-dialog { margin: auto; padding: 0; border: 0; border-radius: var(--radius); background: #000; max-width: min(96vw, 1024px); max-height: 92vh; overflow: hidden; }
.photo-dialog::backdrop { background: rgba(20, 12, 6, .82); }
.photo-dialog img { display: block; max-width: min(96vw, 1024px); max-height: 92vh; object-fit: contain; }
.photo-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 253, 249, .92); color: var(--ink); cursor: pointer; }
.photo-close:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.admin-reviews { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); }
.admin-reviews:empty { display: none; }
.admin-h2 { font-size: var(--step-2); display: flex; align-items: center; gap: var(--s-2); }
.admin-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--achiote); color: #fff; font-size: .85rem; }
@media print { .recipe-rating, .reviews-panel, #opiniones, .photo-dialog { display: none !important; } }
