/* Botón «¿Necesitas ayuda?» — chat en tiempo real y WhatsApp */
.snt-help {
	--h-paper: var(--paper, #FFFFFF);
	--h-ink: var(--ink, #111111);
	--h-surface: var(--surface, #F4F4F2);
	--h-line: var(--line, #E2E2DE);
	--h-muted: var(--muted, #5A5A5A);
	--h-accent: var(--snt-red, #E31E24);
	--h-wa: #0B7A3E;
	position: fixed; right: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); z-index: 899;
	display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; font-size: 1rem;
}
.snt-help .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; }
.snt-help.is-chatting { display: none; }
/* El chat se abre desde este botón: su botón propio no se muestra. */
.snt-chat--via-help .snt-chat__fab { display: none; }

.snt-help__fab {
	position: relative; display: inline-flex; align-items: center; gap: .6rem; min-height: 56px; padding: 0 1.3rem 0 1.1rem;
	border: 0; border-radius: var(--btn-radius, 0); background: var(--h-ink); color: var(--h-paper);
	font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 14px 34px -12px rgba(0,0,0,.45);
	transition: transform .2s ease, background .2s ease;
}
.snt-help__fab:hover { background: var(--h-accent); color: #FFFFFF; transform: translateY(-2px); }
.snt-help__fab:focus-visible { outline: 3px solid var(--h-accent); outline-offset: 3px; }
.snt-help__fab-ico { display: grid; place-items: center; width: 24px; height: 24px; }
.snt-help__fab-ico svg { grid-area: 1 / 1; transition: opacity .15s ease, transform .2s ease; }
.snt-help__i-close { opacity: 0; transform: rotate(-45deg); }
.snt-help.is-open .snt-help__i-open { opacity: 0; transform: rotate(45deg); }
.snt-help.is-open .snt-help__i-close { opacity: 1; transform: none; }

.snt-help__badge { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--h-accent); color: #FFFFFF; font-size: .75rem; font-weight: 800; }
.snt-help__badge[hidden] { display: none; }
.snt-help__badge--fab { position: absolute; top: -8px; right: -8px; border: 2px solid var(--h-paper); }

.snt-help__menu {
	width: min(340px, calc(100vw - 24px)); padding: 1rem; border: 1px solid var(--h-line); border-top: 4px solid var(--h-accent);
	background: var(--h-paper); color: var(--h-ink); box-shadow: 0 24px 60px -18px rgba(0,0,0,.4);
	transform-origin: bottom right; animation: snt-help-in .18s ease-out;
}
.snt-help__menu[hidden] { display: none; }
@keyframes snt-help-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
html[data-motion="reduce"] .snt-help__menu, html.reduce-motion .snt-help__menu { animation: none; }
@media (prefers-reduced-motion: reduce) { .snt-help__menu { animation: none; } .snt-help__fab { transition: none; } }

.snt-help__title { margin: 0 0 .75rem; font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.snt-help__list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.snt-help__opt {
	display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: .75rem; width: 100%; min-height: 64px; padding: .6rem .75rem;
	border: 1px solid var(--h-line); background: var(--h-paper); color: var(--h-ink); text-align: left; text-decoration: none;
	font: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.snt-help__opt:hover { border-color: var(--h-ink); background: var(--h-surface); color: var(--h-ink); }
.snt-help__opt:focus-visible { outline: 3px solid var(--h-accent); outline-offset: 2px; }
.snt-help__ico { display: grid; place-items: center; width: 44px; height: 44px; color: #FFFFFF; }
.snt-help__ico svg { width: 22px; height: 22px; }
.snt-help__ico--chat { background: var(--h-ink); }
.snt-help__ico--wa { background: var(--h-wa); }
.snt-help__txt { display: grid; gap: .1rem; min-width: 0; }
.snt-help__txt strong { font-size: .98rem; line-height: 1.25; }
.snt-help__txt small { color: var(--h-muted); font-size: .85rem; line-height: 1.3; }
.snt-help__hours { display: flex; gap: .5rem; align-items: flex-start; margin: .85rem 0 0; padding-top: .75rem; border-top: 1px solid var(--h-line); color: var(--h-muted); font-size: .82rem; line-height: 1.4; }
.snt-help__hours svg { flex: none; width: 16px; height: 16px; margin-top: .1rem; }
.snt-help__h { display: grid; gap: .1rem; }
.snt-help__h__note { margin-top: .2rem; font-style: italic; }

html.dark .snt-help { --h-paper: #16181C; --h-ink: #F2F2F2; --h-surface: #202329; --h-line: #33373E; --h-muted: #B9BEC6; --h-accent: #FF6B70; --h-wa: #1E9E57; }
html.dark .snt-help__fab { background: #F2F2F2; color: #111111; }
html.dark .snt-help__fab:hover { background: #FF6B70; color: #111111; }
html.dark .snt-help__ico--chat { background: #F2F2F2; color: #111111; }
html.dark .snt-help__ico--wa { color: #0B1A10; }
html.hc .snt-help { --h-paper: #000000; --h-ink: #FFFFFF; --h-surface: #000000; --h-line: #FFFFFF; --h-muted: #FFFFFF; --h-accent: #FFE066; --h-wa: #FFE066; }
html.hc .snt-help__fab { background: #FFE066; color: #000000; border: 2px solid #FFFFFF; }
html.hc .snt-help__ico { color: #000000; }

@media (max-width: 640px) {
	.snt-help__fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
	.snt-help__fab { width: 56px; padding: 0; justify-content: center; border-radius: 50%; }
}
@media print { .snt-help { display: none; } }
