/* Fotografía principal de la receta (Profichef 2.0, Paso 2): la usan el espacio de trabajo y la ficha clásica. */
/* Base mínima para la ficha clásica (/recetas/ver/), que no carga trabajo.css. Mismos valores que trabajo.css. */
.pr-muted { color: var(--text-muted); font-size: .9rem; }
.pr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--border-input); background: var(--bg-elevated); color: inherit; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pr-btn:active { transform: scale(.98); }
.pr-btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.pr-btn.ghost { background: none; border-color: transparent; color: var(--text-muted); }
.pr-btn.sm { min-height: 44px; padding: 8px 14px; font-size: .92rem; }
.pr-btn:focus-visible, .pr-sheet button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pr-sheet-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 200; }
.pr-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 210; background: var(--bg-elevated); border-radius: 18px 18px 0 0; padding: 8px 12px calc(14px + env(safe-area-inset-bottom, 0px)); max-height: 85vh; overflow-y: auto; box-shadow: 0 -8px 30px rgba(0,0,0,.3); }
.pr-sheet h2 { margin: 10px 4px 6px; font-size: .9rem; color: var(--text-muted); font-weight: 600; }
.pr-sheet button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 54px; border: 0; background: none; color: inherit; font: inherit; font-size: 1.02rem; text-align: left; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.pr-aviso { padding: 12px 14px; border-radius: 12px; font-size: .9rem; margin: 0 0 12px; line-height: 1.45; }
.pr-aviso.warn { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning); }
.pr-aviso.ok { background: var(--success-bg); color: var(--success); }
.pr-aviso.info { background: var(--info-bg); color: var(--info); }
.pr-aviso.err { background: var(--danger-bg); color: var(--danger); }

/* ---- Fotografía principal de la receta (Paso 2) ---- */
.pr-foto-host { margin: 0 0 14px; }
.pr-foto-vacia { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border: 1.5px dashed var(--border-input); border-radius: 14px; background: var(--bg-elevated); color: var(--text-muted); font: inherit; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pr-foto-vacia:active { background: var(--bg-input); }
.pr-foto-vacia:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pr-foto img, .pr-foto-previa img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; border-radius: 14px; background: var(--bg-input); aspect-ratio: 4 / 3; }
.pr-foto img { aspect-ratio: 16 / 9; max-height: 210px; }
.pr-foto-previa img { object-fit: contain; }
.pr-foto-botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pr-foto-estado { margin: 6px 0 0; font-size: .85rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.pr-spin { width: 18px; height: 18px; border: 3px solid var(--border-input); border-top-color: var(--accent); border-radius: 50%; animation: pr-giro .8s linear infinite; flex: 0 0 auto; }
@keyframes pr-giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pr-spin { animation-duration: 2.4s; } }
.pr-mini { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; overflow: hidden; background: var(--bg-input); }
.pr-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-mini-v { font-size: 1.15rem; opacity: .55; }
.pr-lst a.con-mini { grid-template-columns: 44px 1fr auto; column-gap: 12px; }
.pr-lst a.con-mini .w { grid-column: 2 / -1; }
@media (min-width: 900px) { .pr-foto img { max-height: 300px; } .pr-foto-previa img { max-height: 380px; } .pr-foto { max-width: 520px; } }

.pr-foto-nota { margin: 8px 0 0; font-size: .85rem; color: var(--text-muted); }
.pr-foto-nota summary { cursor: pointer; padding: 6px 0; min-height: 32px; }
.pr-foto-nota p { margin: 4px 0 8px; line-height: 1.5; }
.pr-foto-diag { white-space: pre-wrap; word-break: break-word; font-size: .75rem; background: var(--bg-input); padding: 10px; border-radius: 10px; margin: 6px 0; }
.con-mini-fila { display: flex; align-items: center; gap: 10px; }
@media print { .pr-foto-botones, .pr-foto-estado, .pr-foto-nota, .pr-foto-vacia, .pr-sheet, .pr-sheet-scrim { display: none !important; } .pr-foto img { max-height: 180px; } }
.pr-mini-s { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; }
.pr-mini-s .pr-mini-v { font-size: .9rem; }
