/* Bibuaran - Feedback
   Sistema visual v1.1 (Fase 1: fundamentos). Solo presentación; los hooks funcionales
   (data-bfb, .bfb-star, .bfb-chip, .on, [hidden], .is-empty, .no-art) se respetan tal cual. */

/* ---------- Tokens ---------- */
.bfb-root{
  /* Variables originales (se conservan) */
  --navy:#0b3d22;--ink:#0b2a1a;--body:#2b4a38;--blue:#136436;--blue-d:#0e4f2a;--soft:#eef5f0;--line:#d3e3d9;--gold:#f5a623;
  /* Nuevos tokens del sistema */
  --bfb-mint:#e5f2ea;--bfb-mint-2:#f4f9f6;--bfb-cream:#fbf7ee;--bfb-muted:#5d7566;--bfb-star-off:#dfe8e2;--bfb-gold-soft:#f8cf7a;--bfb-gold-d:#a85f00;
  --bfb-danger:#a12626;--bfb-field:#fafcfb;
  --bfb-r-sm:10px;--bfb-r-md:14px;--bfb-r-lg:20px;--bfb-r-xl:24px;
  --bfb-sh-sm:0 1px 2px rgba(11,42,26,.06),0 2px 8px -2px rgba(11,42,26,.08);
  --bfb-sh-md:0 2px 4px rgba(11,42,26,.05),0 12px 28px -12px rgba(11,42,26,.22);
  --bfb-sh-xl:0 2px 6px rgba(0,40,20,.08),0 28px 70px -16px rgba(0,40,20,.42);
  --bfb-ring:0 0 0 4px rgba(19,100,54,.14);
  --bfb-ease:cubic-bezier(.2,.7,.2,1);
  --bfb-pl:34px;--bfb-pr:10px;--bfb-pt:30px;--bfb-pb:28px;
  --bfb-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;

  position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px;
  font-family:var(--bfb-font);font-size:15px;line-height:1.5;text-align:left;color:var(--body);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box}
.bfb-root[hidden]{display:none}
#bfb-root *{box-sizing:border-box}
#bfb-root [hidden]{display:none !important}

/* Blindaje frente al tema: tipografía, alineación y estilos heredados */
#bfb-root h2,#bfb-root p,#bfb-root label,#bfb-root input,#bfb-root textarea,#bfb-root button,#bfb-root strong,#bfb-root span{
  font-family:inherit;letter-spacing:normal;text-transform:none;text-shadow:none}
#bfb-root h2,#bfb-root p,#bfb-root label{text-align:left}
#bfb-root h2,#bfb-root p{margin-top:0}
#bfb-root button{-webkit-appearance:none;appearance:none;box-shadow:none}

/* ---------- Marco del modal ---------- */
#bfb-root .bfb-overlay{position:absolute;inset:0;background:rgba(6,32,19,.52);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
#bfb-root .bfb-modal{position:relative;background:#fff;border-radius:var(--bfb-r-xl);box-shadow:var(--bfb-sh-xl);width:100%;max-width:720px;
  max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;
  display:grid;grid-template-columns:1fr 220px;gap:0;animation:bfbIn .32s var(--bfb-ease)}
@keyframes bfbIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
#bfb-root .bfb-main,#bfb-root .bfb-thanks{padding:var(--bfb-pt) var(--bfb-pr) var(--bfb-pb) var(--bfb-pl);grid-column:1;grid-row:1}
#bfb-root .bfb-art{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;padding:28px 30px 28px 10px}
#bfb-root .bfb-art img{display:block;max-width:100%;max-height:260px;object-fit:contain;border-radius:var(--bfb-r-lg);box-shadow:var(--bfb-sh-md)}
#bfb-root .bfb-art.is-empty{display:none}
#bfb-root .bfb-modal.no-art{grid-template-columns:1fr}
#bfb-root .bfb-modal.no-art .bfb-art{display:none}

/* Cierre: siempre visible, también al hacer scroll dentro del modal */
#bfb-root .bfb-x{position:sticky;top:12px;grid-column:2;grid-row:1;justify-self:end;align-self:start;z-index:3;
  width:42px;height:42px;margin:12px 14px 0 0;padding:0;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line);border-radius:50%;background:rgba(255,255,255,.94);box-shadow:var(--bfb-sh-sm);
  font-size:24px;line-height:1;color:var(--bfb-muted);cursor:pointer;transition:color .15s,background .15s,border-color .15s,transform .15s var(--bfb-ease)}
#bfb-root .bfb-x:hover{color:var(--navy);background:#fff;border-color:#b9d1c2;transform:rotate(90deg)}
#bfb-root .bfb-modal.no-art .bfb-x{grid-column:1}

/* ---------- Tipografía ---------- */
#bfb-root .bfb-logo{display:block;height:auto;max-height:40px;width:auto;max-width:180px;margin:0 0 18px}
#bfb-root .bfb-title{font-family:var(--bfb-font);text-transform:none;margin:0 0 8px;font-size:26px;line-height:1.15;font-weight:800;letter-spacing:-.015em;color:var(--ink)}
#bfb-root .bfb-text{margin:0 0 16px;font-size:15px;line-height:1.5;color:var(--body)}
#bfb-root .bfb-question{margin:6px 0 8px;font-size:15px;line-height:1.35;font-weight:700;color:var(--ink)}

/* ---------- Sujeto valorado (producto / servicio / vendedor) ---------- */
#bfb-root .bfb-subject{display:flex;align-items:center;gap:14px;margin:0 0 16px;padding:10px 14px 10px 10px;color:var(--ink);
  background:var(--bfb-mint-2);border:1px solid var(--line);border-radius:var(--bfb-r-md)}
#bfb-root .bfb-subject[hidden]{display:none}
#bfb-root .bfb-subject img{flex:0 0 auto;width:52px;height:52px;object-fit:cover;border-radius:var(--bfb-r-sm);background:#fff;box-shadow:var(--bfb-sh-sm)}
#bfb-root .bfb-subject strong{font-size:14.5px;line-height:1.35;font-weight:700;color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}

/* ---------- Estrellas ---------- */
#bfb-root .bfb-stars{display:flex;gap:4px;margin:0 -2px}
#bfb-root .bfb-star{border:0;background:none;padding:3px;cursor:pointer;line-height:0;border-radius:8px;-webkit-tap-highlight-color:transparent}
#bfb-root .bfb-star svg{display:block;width:40px;height:40px;fill:var(--bfb-star-off);stroke:var(--bfb-star-off);stroke-width:1.4;stroke-linejoin:round;
  transition:transform .18s var(--bfb-ease),fill .15s,stroke .15s,filter .15s}
#bfb-root .bfb-star.on svg{fill:var(--gold);stroke:var(--gold);filter:drop-shadow(0 2px 5px rgba(217,138,11,.38));animation:bfbPop .32s var(--bfb-ease)}
/* Vista previa progresiva al pasar el ratón (solo CSS; sin :has() se mantiene el zoom simple) */
@media (hover:hover){
  #bfb-root .bfb-star:hover svg{transform:scale(1.14)}
  #bfb-root .bfb-star:not(.on):hover svg{fill:var(--bfb-gold-soft);stroke:var(--bfb-gold-soft)}
  #bfb-root .bfb-star:not(.on):has(~ .bfb-star:hover) svg{fill:var(--bfb-gold-soft);stroke:var(--bfb-gold-soft)}
}
@keyframes bfbPop{0%{transform:scale(.8)}60%{transform:scale(1.18)}100%{transform:scale(1)}}
#bfb-root .bfb-star:focus-visible,#bfb-root .bfb-chip:focus-visible,#bfb-root .bfb-btn:focus-visible,#bfb-root .bfb-x:focus-visible{outline:3px solid rgba(19,100,54,.45);outline-offset:2px}
#bfb-root .bfb-starlabel{margin:2px 0 10px;min-height:18px;font-size:13.5px;font-weight:700;letter-spacing:.01em;color:var(--bfb-gold-d)}

/* ---------- Chips de criterios ---------- */
#bfb-root .bfb-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
#bfb-root .bfb-chips:empty{display:none}
#bfb-root .bfb-chip{display:inline-flex;align-items:center;gap:8px;min-height:40px;border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:999px;
  padding:8px 15px;font-size:13.5px;font-weight:600;line-height:1.2;cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:background .15s,border-color .15s,box-shadow .15s,transform .15s var(--bfb-ease)}
#bfb-root .bfb-chip:hover{background:var(--bfb-mint-2);border-color:#a9c9b6}
#bfb-root .bfb-chip:active{transform:scale(.97)}
#bfb-root .bfb-chip svg{flex:0 0 auto;width:17px;height:17px;stroke:var(--blue);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#bfb-root .bfb-chip.on{background:var(--bfb-mint);border-color:var(--blue);box-shadow:var(--bfb-ring)}

/* ---------- Campos ---------- */
#bfb-root .bfb-comment{margin:0 0 14px}
#bfb-root .bfb-comment label{display:block;margin:0 0 6px;font-size:13px;font-weight:600;line-height:1.3;color:var(--ink)}
#bfb-root .bfb-comment[hidden]{display:none}
#bfb-root .bfb-comment input,#bfb-root .bfb-comment textarea{display:block;width:100%;margin:0;border:1px solid var(--line);border-radius:12px;background:var(--bfb-field);
  padding:12px 14px;font:inherit;font-size:15px;line-height:1.4;color:var(--ink);box-shadow:none;height:auto;
  transition:border-color .15s,box-shadow .15s,background .15s}
#bfb-root .bfb-comment textarea{resize:vertical;min-height:84px}
#bfb-root .bfb-comment input::placeholder,#bfb-root .bfb-comment textarea::placeholder{color:#5f7768;opacity:1}
#bfb-root .bfb-comment input:hover,#bfb-root .bfb-comment textarea:hover{border-color:#b9d1c2}
#bfb-root .bfb-comment input:focus,#bfb-root .bfb-comment textarea:focus{outline:0;background:#fff;border-color:var(--blue);box-shadow:var(--bfb-ring)}

/* ---------- Mensajes ---------- */
#bfb-root .bfb-msg{min-height:20px;margin:0 0 10px;font-size:13px;font-weight:600;line-height:1.4;color:var(--bfb-danger)}
#bfb-root .bfb-msg.ok{color:var(--blue)}

/* ---------- Botones ---------- */
#bfb-root .bfb-actions{display:flex;flex-wrap:wrap;gap:10px}
#bfb-root .bfb-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:var(--bfb-r-md);padding:14px 26px;
  font-size:15px;font-weight:700;line-height:1.2;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent;
  transition:background .15s,box-shadow .2s,transform .15s var(--bfb-ease),border-color .15s}
#bfb-root .bfb-primary{background:var(--blue);color:#fff;box-shadow:0 8px 18px -8px rgba(19,100,54,.7)}
#bfb-root .bfb-primary:hover{background:var(--blue-d);transform:translateY(-1px);box-shadow:0 12px 22px -10px rgba(19,100,54,.75)}
#bfb-root .bfb-primary:active{transform:translateY(0);box-shadow:0 4px 10px -6px rgba(19,100,54,.7)}
#bfb-root .bfb-primary[disabled]{opacity:.6;cursor:wait;transform:none;box-shadow:none}
#bfb-root .bfb-secondary{background:var(--soft);color:var(--navy);border-color:transparent}
#bfb-root .bfb-secondary:hover{background:var(--bfb-mint);border-color:#b9d1c2}

/* ---------- Pantalla de gracias ---------- */
#bfb-root .bfb-thanks[hidden],#bfb-root .bfb-main[hidden]{display:none}
#bfb-root .bfb-check{width:64px;height:64px;border-radius:50%;background:var(--blue);color:#fff;font-size:32px;line-height:1;
  display:flex;align-items:center;justify-content:center;margin:8px 0 18px;box-shadow:0 0 0 8px var(--bfb-mint);animation:bfbPop .5s var(--bfb-ease)}
#bfb-root .bfb-preview{position:absolute;left:0;right:0;bottom:-30px;text-align:center;color:#fff;font-size:12px}

/* ---------- Tablet ---------- */
@media (max-width:760px){
  .bfb-root{--bfb-pl:28px}
  #bfb-root .bfb-modal{max-width:640px;grid-template-columns:1fr 190px}
  #bfb-root .bfb-art{padding:26px 26px 26px 6px}
  #bfb-root .bfb-title{font-size:24px}
}

/* ---------- Móvil: hoja inferior ---------- */
@media (max-width:640px){
  .bfb-root{--bfb-pl:20px;--bfb-pr:20px;--bfb-pt:18px;--bfb-pb:calc(20px + env(safe-area-inset-bottom,0px));align-items:flex-end;padding:0}
  #bfb-root .bfb-modal{grid-template-columns:1fr;max-width:none;max-height:92vh;max-height:92dvh;border-radius:var(--bfb-r-xl) var(--bfb-r-xl) 0 0;animation:bfbUp .34s var(--bfb-ease)}
  @keyframes bfbUp{from{opacity:.6;transform:translateY(40px)}to{opacity:1;transform:none}}
  #bfb-root .bfb-art{grid-column:1;grid-row:1;padding:18px 20px 0}
  #bfb-root .bfb-art img{max-height:110px;width:100%;object-fit:cover}
  #bfb-root .bfb-main,#bfb-root .bfb-thanks{grid-row:2}
  #bfb-root .bfb-x{grid-column:1;grid-row:1 / span 2;width:44px;height:44px;margin:10px 12px 0 0}
  #bfb-root .bfb-title{font-size:22px}
  #bfb-root .bfb-star svg{width:42px;height:42px}
  #bfb-root .bfb-stars{justify-content:space-between;max-width:320px}
  #bfb-root .bfb-comment input,#bfb-root .bfb-comment textarea{font-size:16px}
  #bfb-root .bfb-btn{flex:1 1 100%;text-align:center}
}

/* Barra de acciones fija cuando falta altura (móvil o pantallas bajas) */
@media (max-width:640px),(max-height:900px){
  #bfb-root .bfb-main .bfb-actions{position:sticky;bottom:0;z-index:2;margin:0 calc(-1 * var(--bfb-pr)) calc(-1 * var(--bfb-pb)) calc(-1 * var(--bfb-pl));
    padding:22px var(--bfb-pr) var(--bfb-pb) var(--bfb-pl);background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 20px)}
}

/* =====================================================================
   FASE 2 - Producto físico (variantes order / general)
   Contexto detectado con :has() sobre la imagen decorativa existente (box.png).
   Sin soporte de :has() este bloque se ignora y se ve el diseño universal de la Fase 1.
   ===================================================================== */
@media (min-width:641px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]){max-width:800px;grid-template-columns:1fr;--bfb-panel:248px;--bfb-pr:38px;--bfb-pt:36px;--bfb-pb:30px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-main{position:relative;grid-column:1 / -1;min-height:470px;padding:var(--bfb-pt) var(--bfb-pr) var(--bfb-pb) calc(var(--bfb-panel) + 36px)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-x{grid-column:1}

  /* El producto es el protagonista: panel lateral a toda altura */
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-subject{position:absolute;top:0;bottom:0;left:0;width:var(--bfb-panel);margin:0;padding:64px 24px 112px;
    flex-direction:column;justify-content:flex-start;gap:18px;text-align:center;
    background:var(--bfb-mint-2);border:0;border-right:1px solid var(--line);border-radius:0}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-subject img{width:100%;max-width:176px;height:auto;aspect-ratio:1 / 1;object-fit:contain;padding:8px;background:#fff;border-radius:var(--bfb-r-lg);box-shadow:var(--bfb-sh-md)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-subject strong{font-size:14.5px;line-height:1.4;-webkit-line-clamp:4;text-align:center}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]):has(.bfb-subject[hidden]) .bfb-main{padding-left:var(--bfb-pr);min-height:0}

  /* Ilustración de paquete: detalle secundario, anclado abajo en el panel */
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-art{grid-column:1;grid-row:1;position:sticky;bottom:22px;align-self:end;justify-self:start;display:block;
    width:84px;margin:0 0 22px 24px;padding:0;z-index:2;pointer-events:none}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-art img{display:block;width:84px;height:84px;max-height:none;object-fit:cover;border:3px solid #fff;border-radius:18px;box-shadow:var(--bfb-sh-md)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]):has(.bfb-subject[hidden]) .bfb-art,#bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]):has(.bfb-thanks:not([hidden])) .bfb-art{display:none}

  /* Columna de formulario */
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-logo{margin-bottom:22px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-title{font-size:28px;padding-right:44px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-text{padding-right:44px;margin-bottom:22px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-question{margin-top:2px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-star svg{width:42px;height:42px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-chips{margin-bottom:20px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-actions .bfb-primary{flex:1 1 220px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-main .bfb-actions{margin-left:0;padding-left:0}

  /* Gracias: composición centrada */
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-thanks{grid-column:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:44px 48px 42px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-thanks .bfb-title,#bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-thanks .bfb-text{padding-right:0;text-align:center}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-thanks .bfb-text{max-width:420px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-thanks .bfb-logo{margin-bottom:10px}
}
@media (min-width:641px) and (min-height:761px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-subject{justify-content:center}
}
@media (min-width:641px) and (max-width:760px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]){--bfb-panel:208px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-main{padding-left:calc(var(--bfb-panel) + 28px);--bfb-pr:28px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-subject{padding:60px 18px 108px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-subject img{max-width:140px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-title{font-size:25px;padding-right:36px}
}
@media (max-width:640px){
  /* Móvil: tarjeta de producto compacta; se oculta la ilustración para ganar altura */
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-art{display:none}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-subject{gap:14px;padding:12px 14px 12px 12px;background:var(--bfb-mint-2)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-subject img{width:72px;height:72px;object-fit:contain;padding:4px;background:#fff;border-radius:var(--bfb-r-md)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-subject strong{font-size:14px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-actions{flex-wrap:nowrap}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-actions .bfb-primary{flex:1 1 auto}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-actions .bfb-secondary{flex:0 0 auto;padding-left:20px;padding-right:20px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-thanks{text-align:center;display:flex;flex-direction:column;align-items:center}
}

/* =====================================================================
   FASE 3 - Gastronomía (variante gastronomy)
   Contexto detectado con :has() sobre la imagen decorativa existente (food.png).
   Estado A: hay imagen real del plato -> es la protagonista (food.png se oculta).
   Estado B: sin imagen real -> food.png enmarcada como foto de plato.
   Sin soporte de :has() este bloque se ignora y se ve el diseño universal de la Fase 1.
   ===================================================================== */
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]){--bfb-cream-bg:#fffdf8;--bfb-cream-2:#f6eddb;--bfb-cream-line:#eadfc6;--bfb-serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
  background:var(--bfb-cream-bg)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-x{background:rgba(255,253,248,.94);border-color:var(--bfb-cream-line)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-main .bfb-title{font-family:var(--bfb-serif);font-weight:700;letter-spacing:-.01em}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-main .bfb-title::after{content:"";display:block;width:44px;height:3px;margin-top:12px;border-radius:3px;background:var(--gold)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-thanks .bfb-title{font-family:var(--bfb-serif);font-weight:700}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-text{color:#4a5d4f}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-subject{background:#fff;border-color:var(--bfb-cream-line);box-shadow:var(--bfb-sh-sm)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-subject strong{font-family:var(--bfb-serif);font-size:16px;font-weight:700}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-chip{background:#fff;border-color:var(--bfb-cream-line)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-chip:hover{background:var(--bfb-cream-2);border-color:#d9c79b}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-chip.on{background:#e9f3ec;border-color:var(--blue)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-comment input,#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-comment textarea{background:#fff;border-color:var(--bfb-cream-line)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-comment input:hover,#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-comment textarea:hover{border-color:#d9c79b}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-comment input:focus,#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-comment textarea:focus{border-color:var(--blue)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-secondary{background:var(--bfb-cream-2)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-secondary:hover{background:#efe2c6;border-color:#d9c79b}
#bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-check{box-shadow:0 0 0 8px var(--bfb-cream-2)}

@media (min-width:641px){
  /* Estado B (por defecto): panel crema con foto de plato en arco */
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]){max-width:780px;grid-template-columns:1fr 272px;--bfb-pr:38px;--bfb-pt:36px;--bfb-pb:30px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-art{padding:64px 28px;background:var(--bfb-cream-2);border-left:1px solid var(--bfb-cream-line)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-art img{width:100%;max-width:204px;max-height:none;aspect-ratio:9 / 10;object-fit:cover;border-radius:999px 999px 28px 28px;border:4px solid #fff;box-shadow:var(--bfb-sh-md)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-logo{margin-bottom:22px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-title{font-size:28px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-star svg{width:42px;height:42px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-actions .bfb-primary{flex:1 1 200px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-main .bfb-actions{background:linear-gradient(to bottom,rgba(255,253,248,0),#fffdf8 20px)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-thanks{display:flex;flex-direction:column;align-items:center;text-align:center;padding:44px 40px 42px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-thanks .bfb-text{max-width:400px;text-align:center}

  /* Estado A: la foto real del plato es la protagonista */
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])){grid-template-columns:1fr;max-width:800px;--bfb-panel:268px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-x{grid-column:1}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-art{display:none}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-main{position:relative;grid-column:1 / -1;min-height:480px;padding:var(--bfb-pt) calc(var(--bfb-panel) + 38px) var(--bfb-pb) var(--bfb-pl)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-subject{position:absolute;top:0;bottom:0;right:0;width:var(--bfb-panel);margin:0;padding:68px 26px 40px;
    flex-direction:column;justify-content:flex-start;gap:20px;text-align:center;
    background:var(--bfb-cream-2);border:0;border-left:1px solid var(--bfb-cream-line);border-radius:0;box-shadow:none}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-subject img{width:100%;max-width:208px;height:auto;aspect-ratio:4 / 5;object-fit:cover;padding:0;background:#fff;
    border:4px solid #fff;border-radius:999px 999px 28px 28px;box-shadow:var(--bfb-sh-md)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-subject strong{text-align:center;-webkit-line-clamp:4}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-main .bfb-actions{margin-right:0;padding-right:0}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-thanks{grid-column:1}
}
@media (min-width:641px) and (min-height:761px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-subject{justify-content:center;padding-bottom:84px}
}
@media (min-width:641px) and (max-width:760px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]){grid-template-columns:1fr 220px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-art{padding:56px 20px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-art img{max-width:176px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])){--bfb-panel:216px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-subject{padding:60px 20px 36px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-subject img{max-width:170px}
}
@media (max-width:640px){
  /* Móvil: banda crema con foto de plato en arco (estado B) o tarjeta con foto real (estado A) */
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-art{background:var(--bfb-cream-2);padding:18px 0 14px;display:flex;justify-content:center;border-bottom:1px solid var(--bfb-cream-line)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-art img{width:84px;height:92px;max-height:none;object-fit:cover;border:3px solid #fff;border-radius:999px 999px 18px 18px;box-shadow:var(--bfb-sh-sm)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-art{display:none}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-subject{padding:12px 14px 12px 12px;gap:14px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-subject img{width:80px;height:92px;object-fit:cover;border-radius:999px 999px 16px 16px;box-shadow:var(--bfb-sh-sm)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-main .bfb-actions{background:linear-gradient(to bottom,rgba(255,253,248,0),#fffdf8 20px)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-actions{flex-wrap:nowrap}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-actions .bfb-primary{flex:1 1 auto}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-actions .bfb-secondary{flex:0 0 auto;padding-left:20px;padding-right:20px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-thanks{display:flex;flex-direction:column;align-items:center;text-align:center}
}

/* =====================================================================
   FASE 4 - Servicios (variante service)
   Contexto detectado con :has() sobre la imagen decorativa existente (worker.png).
   Sin soporte de :has() este bloque se ignora y se ve el diseño universal de la Fase 1.
   Carácter: sobrio y estructurado (ficha de servicio con acento verde, criterios como
   sellos de calidad, retrato profesional enmarcado).
   ===================================================================== */
#bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-main .bfb-title{text-wrap:balance}
#bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-subject{align-items:center;padding:14px 16px 14px 18px;gap:14px;background:#fff;border-color:var(--line);
  box-shadow:inset 4px 0 0 var(--blue),var(--bfb-sh-sm)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-subject img{width:56px;height:56px;border-radius:12px;object-fit:cover}
#bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-subject strong{font-size:16px;font-weight:700;line-height:1.35}
#bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-chips:not(:empty){gap:10px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-chip{border-radius:12px;padding:9px 16px;background:#fff;border-color:var(--line);color:var(--navy)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-chip:hover{background:var(--bfb-mint-2);border-color:#a9c9b6}
#bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-chip.on{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 8px 16px -10px rgba(19,100,54,.8)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-chip.on svg{stroke:#fff}
#bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-art img{background:#fff}

@media (min-width:641px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]){max-width:790px;grid-template-columns:1fr 260px;--bfb-pr:38px;--bfb-pt:36px;--bfb-pb:30px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-art{padding:72px 28px 40px;background:var(--bfb-mint-2);border-left:1px solid var(--line);align-items:flex-start}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-art img{width:100%;max-width:158px;max-height:none;aspect-ratio:4 / 5;object-fit:cover;object-position:top;border:4px solid #fff;border-radius:22px;box-shadow:var(--bfb-sh-md);margin:0 auto}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-logo{margin-bottom:22px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-title{font-size:27px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-star svg{width:42px;height:42px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-actions .bfb-primary{flex:1 1 200px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-thanks{display:flex;flex-direction:column;align-items:center;text-align:center;padding:44px 40px 42px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-thanks .bfb-text{max-width:400px;text-align:center}
}
@media (min-width:641px) and (min-height:761px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-art{align-items:center;padding-top:40px;padding-bottom:70px}
}
@media (min-width:641px) and (max-width:760px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]){grid-template-columns:1fr 206px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-art{padding:64px 20px 30px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-art img{max-width:140px}
}
@media (max-width:640px){
  /* Móvil: banda con retrato circular y ficha de servicio */
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-art{background:var(--bfb-mint-2);padding:16px 0 14px;display:flex;justify-content:center;border-bottom:1px solid var(--line)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-art img{width:76px;height:76px;max-height:none;object-fit:cover;object-position:top;border:3px solid #fff;border-radius:50%;box-shadow:var(--bfb-sh-sm)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-subject{padding:12px 14px 12px 16px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-chips:not(:empty){padding-bottom:16px;margin-bottom:16px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-actions{flex-wrap:nowrap}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-actions .bfb-primary{flex:1 1 auto}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-actions .bfb-secondary{flex:0 0 auto;padding-left:20px;padding-right:20px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-thanks{display:flex;flex-direction:column;align-items:center;text-align:center}
}

/* =====================================================================
   FASE 5 - Valoración del vendedor (variante whatsapp)
   Contexto detectado con :has() sobre la imagen decorativa existente (phone.png).
   Texto aprobado: «Valora tu experiencia» / «con» / [nombre del vendedor] (nombre y avatar
   existentes). Sin soporte de :has() se ve el diseño universal de la Fase 1.
   ===================================================================== */
#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-main{text-align:center}
#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-logo{margin-left:auto;margin-right:auto}
#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-main .bfb-title{text-align:center;text-wrap:balance;font-weight:800}
#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-main .bfb-text{display:flex;align-items:center;justify-content:center;gap:14px;margin:2px 0 14px;
  font-size:16px;font-weight:500;font-style:italic;letter-spacing:.02em;text-align:center;color:var(--bfb-muted)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-main .bfb-text::before,#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-main .bfb-text::after{content:"";flex:0 0 36px;height:1px;background:var(--line)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-subject{flex-direction:column;justify-content:center;gap:12px;margin:0 0 22px;padding:0;background:none;border:0;box-shadow:none;border-radius:0;text-align:center}
#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-subject img{width:84px;height:84px;object-fit:cover;border:4px solid #fff;border-radius:50%;
  box-shadow:0 0 0 2px var(--bfb-mint),var(--bfb-sh-md);background:#fff}
#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-subject strong{font-size:24px;line-height:1.2;font-weight:800;letter-spacing:-.01em;color:var(--navy);text-align:center;
  -webkit-line-clamp:3;text-wrap:balance}
#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-question{margin:0 0 6px;font-size:13.5px;font-weight:600;text-align:center;color:var(--bfb-muted)}
#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-stars{justify-content:center;margin:0 auto}
#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-starlabel{text-align:center}
#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-actions{justify-content:center}

@media (min-width:641px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]){max-width:760px;grid-template-columns:1fr 244px;--bfb-pr:34px;--bfb-pt:36px;--bfb-pb:30px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-art{padding:72px 26px 40px;background:var(--bfb-mint-2);border-left:1px solid var(--line);align-items:flex-start}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-art img{width:100%;max-width:192px;max-height:none;aspect-ratio:275 / 295;object-fit:cover;border:4px solid #fff;border-radius:24px;box-shadow:var(--bfb-sh-md);margin:0 auto}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-logo{margin-bottom:20px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-title{font-size:30px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-star svg{width:46px;height:46px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-actions .bfb-primary{flex:1 1 220px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-thanks{display:flex;flex-direction:column;align-items:center;text-align:center;padding:44px 40px 42px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-thanks .bfb-text{max-width:380px;text-align:center}
}
@media (min-width:641px) and (min-height:761px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-art{align-items:center;padding-top:40px;padding-bottom:70px}
}
@media (min-width:641px) and (max-width:760px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]){grid-template-columns:1fr 200px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-art{padding:64px 18px 30px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-art img{max-width:150px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-title{font-size:26px}
}
@media (max-width:640px){
  /* Móvil: banda con la ilustración y la identidad del vendedor centrada */
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-art{background:var(--bfb-mint-2);padding:16px 0 14px;display:flex;justify-content:center;border-bottom:1px solid var(--line)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-art img{width:80px;height:86px;max-height:none;object-fit:cover;border:3px solid #fff;border-radius:18px;box-shadow:var(--bfb-sh-sm)}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-subject img{width:68px;height:68px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-subject strong{font-size:21px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-actions{flex-wrap:nowrap}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-actions .bfb-primary{flex:1 1 auto}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-actions .bfb-secondary{flex:0 0 auto;padding-left:20px;padding-right:20px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-thanks{display:flex;flex-direction:column;align-items:center;text-align:center}
}

/* Refinamiento Fase 6: pantallas muy bajas (móvil apaisado) */
@media (min-width:641px) and (max-height:560px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-art{display:none}
}

/* Refinamiento Fase 6: modo compacto para pantallas muy bajas (móvil apaisado) */
@media (min-width:641px) and (max-height:480px){
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]){--bfb-pt:16px;--bfb-pb:16px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-main{min-height:0}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-logo{max-height:28px;margin-bottom:10px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-main .bfb-title{font-size:22px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-text{margin-bottom:12px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-star svg{width:34px;height:34px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-chips{margin-bottom:12px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-main .bfb-actions{padding-top:12px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-btn{padding:11px 22px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]){--bfb-pt:16px;--bfb-pb:16px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-main{min-height:0}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-logo{max-height:28px;margin-bottom:10px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-main .bfb-title{font-size:22px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-text{margin-bottom:12px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-star svg{width:34px;height:34px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-chips{margin-bottom:12px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-main .bfb-actions{padding-top:12px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-btn{padding:11px 22px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]){--bfb-pt:16px;--bfb-pb:16px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-main{min-height:0}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-logo{max-height:28px;margin-bottom:10px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-main .bfb-title{font-size:22px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-text{margin-bottom:12px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-star svg{width:34px;height:34px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-chips{margin-bottom:12px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-main .bfb-actions{padding-top:12px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-btn{padding:11px 22px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]){--bfb-pt:16px;--bfb-pb:16px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-main{min-height:0}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-logo{max-height:28px;margin-bottom:10px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-main .bfb-title{font-size:22px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-text{margin-bottom:12px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-star svg{width:34px;height:34px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-chips{margin-bottom:12px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-main .bfb-actions{padding-top:12px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-btn{padding:11px 22px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])){--bfb-pt:16px;--bfb-pb:16px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-main{min-height:0}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-subject{padding:40px 20px 20px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]):has(.bfb-subject:not([hidden]) img:not([hidden])) .bfb-subject img{max-width:120px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-subject{padding:40px 20px 20px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="box.png"]) .bfb-subject img{max-width:110px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-art{padding:24px 20px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="food.png"]) .bfb-art img{max-width:130px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-art,#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-art{padding:40px 20px 20px}
  #bfb-root .bfb-modal:has(.bfb-art img[src$="worker.png"]) .bfb-art img,#bfb-root .bfb-modal:has(.bfb-art img[src$="phone.png"]) .bfb-art img{max-width:120px}
}
/* Refinamiento Fase 6: pantallas estrechas (<=360 px) */
@media (max-width:360px){
  #bfb-root .bfb-btn{padding-left:12px;padding-right:12px;font-size:14.5px}
  #bfb-root .bfb-actions .bfb-secondary{padding-left:14px;padding-right:14px}
  #bfb-root .bfb-main .bfb-title{font-size:21px}
}

@media (prefers-reduced-motion:reduce){
  #bfb-root .bfb-modal,#bfb-root .bfb-star.on svg,#bfb-root .bfb-check{animation:none}
  #bfb-root *{transition:none !important}
}
