/* BuscaYa · Contenido de usuarios (App Review 1.2): Términos antes de ingresar, Denunciar, Bloquear. Tokens de /estilo.css, mismo look que BYDialog. */
.ugc-root{position:fixed;inset:0;z-index:10001;display:flex;align-items:flex-end;justify-content:center}
.ugc-root[hidden]{display:none!important}
.ugc-scrim{position:absolute;inset:0;background:rgba(28,29,33,.45);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.ugc-sheet{position:relative;z-index:1;width:100%;max-width:440px;max-height:calc(100dvh - 24px);overflow:auto;-webkit-overflow-scrolling:touch;background:var(--card,#fff);color:var(--ink,#1c1d21);border-radius:var(--r-lg,18px) var(--r-lg,18px) 0 0;box-shadow:var(--sh-3,0 12px 28px rgba(16,24,40,.14));padding:18px 18px calc(16px + env(safe-area-inset-bottom,0px));font-family:var(--font,inherit);animation:ugcUp .22s cubic-bezier(.2,.8,.2,1)}
@keyframes ugcUp{from{transform:translateY(16px);opacity:0}to{transform:none;opacity:1}}
.ugc-handle{display:block;width:36px;height:4px;border-radius:999px;background:var(--line,#e6e7ea);margin:0 auto 12px}
.ugc-ico{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--brand,#ffde59);color:var(--brand-ink,#2b2300);margin:0 auto 10px}
.ugc-ico.err{background:var(--err-soft,#fde8e6);color:var(--err,#c42b1c)}.ugc-ico.ok{background:var(--ok-soft,#e3f6ea);color:var(--ok,#0f8a45)}
.ugc-ico svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ugc-t{margin:0 0 4px;font-size:1.15rem;font-weight:800;letter-spacing:-.02em;text-align:center;line-height:1.25}
.ugc-sub{margin:0 0 14px;font-size:.92rem;color:var(--ink-2,#4a4d55);text-align:center;line-height:1.45}
.ugc-terms{background:var(--bg,#f3f3f5);border-radius:var(--r,12px);padding:12px 14px;margin:0 0 12px;font-size:.9rem;line-height:1.45;max-height:38dvh;overflow:auto}
.ugc-terms h3{font-size:.95rem;margin:10px 0 4px}.ugc-terms h3:first-child{margin-top:0}
.ugc-terms p,.ugc-terms ul{margin:0 0 6px}.ugc-terms ul{padding-left:18px}.ugc-terms li{margin:0 0 3px}
.ugc-zero{border-left:4px solid var(--err,#c42b1c);background:var(--err-soft,#fde8e6);border-radius:8px;padding:8px 10px;margin:6px 0}
.ugc-terms a,.ugc-link{color:var(--primary,#2459d6);text-decoration:underline;text-underline-offset:2px}
.ugc-check{display:flex;gap:10px;align-items:flex-start;padding:12px;border:2px solid var(--line,#e6e7ea);border-radius:var(--r,12px);margin:0 0 12px;font-weight:700;cursor:pointer;font-size:.98rem;line-height:1.35}
.ugc-check:has(input:checked){border-color:var(--primary,#2459d6);background:var(--primary-soft,#e8efff)}
.ugc-check input{width:22px;height:22px;flex:none;margin:0;accent-color:var(--primary,#2459d6)}
.ugc-acts{display:flex;flex-direction:column-reverse;gap:8px}
.ugc-acts .btn{width:100%;min-height:48px;border-radius:var(--r,12px);font-size:1rem}
.ugc-acts .btn[disabled]{opacity:.45;cursor:not-allowed}
.ugc-reasons{display:flex;flex-direction:column;gap:6px;margin:0 0 10px;padding:0;border:0}
.ugc-reasons legend{font-weight:700;margin:0 0 6px;font-size:.95rem}
.ugc-reason{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line,#e6e7ea);border-radius:var(--r,12px);cursor:pointer;font-size:.95rem}
.ugc-reason:has(input:checked){border-color:var(--primary,#2459d6);background:var(--primary-soft,#e8efff);font-weight:700}
.ugc-reason input{width:20px;height:20px;margin:0;flex:none;accent-color:var(--primary,#2459d6)}
.ugc-fld{display:block;font-size:.9rem;font-weight:700;margin:0 0 12px}
.ugc-fld textarea{display:block;width:100%;box-sizing:border-box;margin-top:4px;border:1px solid var(--line,#e6e7ea);border-radius:var(--r,12px);padding:10px;font:inherit;font-weight:400;min-height:64px;resize:vertical}
.ugc-quote{border-left:3px solid var(--line,#e6e7ea);padding:6px 10px;margin:0 0 12px;color:var(--ink-2,#4a4d55);font-size:.9rem;background:var(--bg,#f3f3f5);border-radius:0 8px 8px 0;max-height:5.5em;overflow:hidden}
.ugc-msg{margin:8px 0 0;font-size:.9rem;text-align:center;min-height:1.2em}.ugc-msg.err{color:var(--err,#c42b1c)}
.btn-ugc-danger{background:var(--err,#c42b1c);color:#fff;border:0}.btn-ugc-danger:hover{filter:brightness(.95)}
/* gate antes de los botones de ingreso */
.ugc-gate{border:1px dashed var(--line,#e6e7ea);border-radius:var(--r,12px);padding:12px;margin:6px 0;background:var(--bg,#f3f3f5);text-align:left;max-width:400px}
.ugc-gate p{margin:0 0 8px;font-size:.9rem;color:var(--ink-2,#4a4d55);line-height:1.4}
.ugc-gate .btn{width:100%;min-height:44px;border-radius:999px}
.ugc-ok-line{font-size:.8rem;color:var(--muted,#5f6470);margin:4px 0 0}
/* acciones en cada opinión/comentario */
.ugc-acts-it{display:flex;gap:6px;flex-wrap:wrap;margin:.4rem 0 0}
.ugc-chip{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:4px 10px;border:1px solid var(--line,#e6e7ea);border-radius:999px;background:var(--card,#fff);color:var(--ink-2,#4a4d55);font:600 .8rem/1.1 var(--font,inherit);cursor:pointer}
.ugc-chip svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ugc-chip:hover{border-color:var(--ink-2,#4a4d55);color:var(--ink,#1c1d21)}
.ugc-chip.blk:hover{border-color:var(--err,#c42b1c);color:var(--err,#c42b1c)}
.ugc-gone{list-style:none;font-size:.85rem;color:var(--muted,#5f6470);background:var(--bg,#f3f3f5);border-radius:var(--r,12px);padding:10px 12px;margin:6px 0}
.ugc-toast{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:10002;background:var(--ink,#1c1d21);color:#fff;padding:10px 16px;border-radius:999px;font-size:.9rem;max-width:calc(100% - 32px);box-shadow:var(--sh-3)}
@media(min-width:560px){.ugc-root{align-items:center;padding:24px}.ugc-sheet{border-radius:var(--r-lg,18px)}.ugc-handle{display:none}.ugc-acts{flex-direction:row}.ugc-acts .btn{flex:1}}
@media(prefers-reduced-motion:reduce){.ugc-sheet{animation:none}}
