.imd-activity-shell{--ia-red:var(--imd-brand-red,#d72a2b);--ia-ink:var(--imd-brand-anthracite,#16191c);--ia-muted:#697179;--ia-card:#fff;--ia-bg:#f7f8fa;--ia-line:rgba(22,25,28,.12);--imd-accent:var(--ia-red);--imd-accent-soft:rgba(215,42,43,.08);--imd-surface:var(--ia-card);--imd-background:var(--ia-bg);--imd-ink:var(--ia-ink);--imd-muted:var(--ia-muted);--imd-muted-strong:var(--ia-muted);--imd-border:var(--ia-line);--imd-shadow:0 18px 50px rgba(22,25,28,.08);box-sizing:border-box;width:min(1180px,calc(100% - 32px));padding:14px 0 70px;margin:0 auto;color:var(--ia-ink);font-family:var(--imd-font-body,Aileron,Arial,sans-serif)}
.imd-activity-shell *{box-sizing:border-box}.imd-activity-shell h1,.imd-activity-shell h2{color:var(--ia-ink)!important;font-family:var(--imd-font-heading,ODUDA,Aileron,sans-serif);font-weight:600;letter-spacing:-.035em}.imd-activity-hero{display:flex;align-items:end;justify-content:space-between;gap:25px;padding:clamp(28px,5vw,58px);border:1px solid var(--ia-line);border-radius:28px;background:radial-gradient(circle at 95% 0,rgba(215,42,43,.17),transparent 40%),var(--ia-card);box-shadow:0 18px 50px rgba(22,25,28,.08)}.imd-activity-hero h1{max-width:760px;margin:5px 0 10px;font-size:clamp(2.25rem,5vw,4.35rem);line-height:.98}.imd-activity-hero p:last-child{max-width:720px;margin:0;color:var(--ia-muted);line-height:1.6}
.imd-story-form{margin:16px 0;padding:22px;border:1px solid rgba(215,42,43,.3);border-radius:20px;background:linear-gradient(120deg,var(--ia-card),rgba(215,42,43,.05))}.imd-story-form label{display:grid;gap:7px;font-weight:800}.imd-story-form input,.imd-story-form textarea{width:100%;padding:12px;border:1px solid var(--ia-line);border-radius:12px;background:var(--ia-card);color:var(--ia-ink)}.imd-story-form>p{color:var(--ia-muted);font-size:.85rem}.imd-story-form>div:last-child{display:flex;justify-content:flex-end;gap:9px}
.imd-stories{overflow:hidden;margin:18px 0;padding:15px;border:1px solid var(--ia-line);border-radius:20px;background:var(--ia-card)}.imd-stories__track{display:flex;gap:15px;overflow-x:auto;padding:3px;scrollbar-width:thin}.imd-story-avatar{display:grid;min-width:82px;gap:6px;justify-items:center;border:0;background:transparent;color:var(--ia-ink);cursor:pointer}.imd-story-avatar>span{display:grid;width:66px;height:66px;padding:3px;place-items:center;overflow:hidden;border:3px solid var(--ia-red);border-radius:50%;background:var(--ia-card)}.imd-story-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.imd-story-avatar b{overflow:hidden;width:82px;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}
.imd-activity-tabs{display:flex;gap:7px;margin:18px 0;padding:7px;border:1px solid var(--ia-line);border-radius:16px;background:var(--ia-card)}.imd-activity-tabs a{padding:10px 18px;border-radius:11px;color:var(--ia-ink)!important;font-weight:800;text-decoration:none}.imd-activity-tabs a.is-active{background:var(--ia-red);color:#fff!important}
.imd-activity-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px}.imd-activity-feed{display:grid;gap:15px}.imd-activity-card,.imd-activity-guide,.imd-activity-empty{overflow:hidden;border:1px solid var(--ia-line);border-radius:22px;background:var(--ia-card);box-shadow:0 12px 36px rgba(22,25,28,.06)}.imd-activity-card>header{display:flex;align-items:center;gap:10px;padding:17px 19px}.imd-activity-card__avatar{display:grid;width:46px;height:46px;place-items:center;overflow:hidden;border-radius:15px;background:rgba(215,42,43,.1);color:var(--ia-red);font-weight:900;text-decoration:none}.imd-activity-card__avatar img{width:100%;height:100%;object-fit:cover}.imd-activity-card>header>div{display:grid;flex:1}.imd-activity-card>header a{color:var(--ia-ink)!important;font-weight:900;text-decoration:none}.imd-activity-card time{color:var(--ia-muted);font-size:.72rem}.imd-activity-card>header>span{padding:6px 9px;border-radius:999px;background:rgba(215,42,43,.08);color:var(--ia-red);font-size:.67rem;font-weight:900;text-transform:uppercase}.imd-activity-card__media{display:block;max-height:430px;overflow:hidden;background:var(--ia-bg)}.imd-activity-card__media img{display:block;width:100%;max-height:430px;object-fit:cover}.imd-activity-card__body{padding:20px}.imd-activity-card h2{margin:0 0 8px;font-size:clamp(1.35rem,3vw,2rem)}.imd-activity-card__body p{margin:0;color:var(--ia-muted);line-height:1.65}.imd-activity-card>footer{display:flex;align-items:center;justify-content:space-between;padding:12px 19px;border-top:1px solid var(--ia-line)}.imd-activity-card>footer a{color:var(--ia-red)!important;font-weight:900;text-decoration:none}
.imd-activity-guide{position:sticky;top:105px;align-self:start;padding:24px}.imd-activity-guide h2{font-size:1.75rem}.imd-activity-guide li{margin:11px 0;color:var(--ia-muted);line-height:1.5}.imd-activity-guide a{color:var(--ia-red);font-weight:800}.imd-activity-empty{padding:42px;text-align:center}.imd-activity-empty h1,.imd-activity-empty h2{margin-top:0}.imd-activity-empty p{color:var(--ia-muted)}
.imd-story-viewer{position:fixed;z-index:999999;inset:0;display:grid;place-items:center;padding:18px;background:rgba(5,8,11,.8);backdrop-filter:blur(8px)}.imd-story-viewer[hidden]{display:none}.imd-story-viewer>button{position:fixed;z-index:2;top:18px;right:18px;width:44px;height:44px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:#16191c;color:#fff;font-size:27px;cursor:pointer}.imd-story-viewer>div{width:min(440px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:20px;border:1px solid rgba(255,255,255,.24);border-radius:26px;background:#16191c;color:#fff;box-shadow:0 30px 90px rgba(0,0,0,.4)}.imd-story-viewer header{display:flex;align-items:center;gap:10px;margin-bottom:15px}.imd-story-viewer header span{display:grid;width:42px;height:42px;place-items:center;overflow:hidden;border-radius:50%;background:var(--ia-red)}.imd-story-viewer header img{width:100%;height:100%;object-fit:cover}.imd-story-viewer>div>img{display:block;width:100%;max-height:62vh;border-radius:18px;object-fit:cover}.imd-story-viewer p{font-size:1.05rem;line-height:1.55}.imd-story-viewer .imd-button{width:100%}
html[data-theme=dark] .imd-activity-shell,html.inmudescuentos-site-dark .imd-activity-shell{--ia-ink:#f7f8fa;--ia-muted:#aeb6bc;--ia-card:#1d2429;--ia-bg:#151a1e;--ia-line:rgba(255,255,255,.13)}
@media(max-width:850px){.imd-activity-layout{grid-template-columns:1fr}.imd-activity-guide{position:static}.imd-story-form>div:first-of-type{grid-template-columns:1fr 1fr}.imd-story-form>div:first-of-type label:first-child{grid-column:1/-1}}
@media(max-width:600px){.imd-activity-shell{width:min(100% - 18px,1180px);margin:0 auto}.imd-activity-hero{align-items:flex-start;flex-direction:column;padding:25px 21px}.imd-activity-hero .imd-button{width:100%}.imd-story-form>div:first-of-type{grid-template-columns:1fr}.imd-story-form>div:first-of-type label:first-child{grid-column:auto}.imd-activity-card>header{align-items:flex-start}.imd-activity-card>header>span{display:none}.imd-activity-card__media,.imd-activity-card__media img{max-height:310px}}
@media(prefers-reduced-motion:reduce){.imd-activity-shell *{scroll-behavior:auto!important;transition:none!important}}

/* Actividad 0.16.2 · feed e historias con superficies oscuras de marca. */
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) .imd-activity-shell {
	--ia-ink:#f7f8fa;
	--ia-muted:#b8c0c6;
	--ia-card:#1d2429;
	--ia-bg:#151a1e;
	--ia-line:rgba(255,255,255,.13);
	color-scheme:dark;
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) .imd-activity-hero {
	background:radial-gradient(circle at 95% 0,rgba(215,42,43,.22),transparent 44%),linear-gradient(145deg,#1d2429,#171c20);
	box-shadow:0 20px 58px rgba(0,0,0,.3);
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) .imd-story-form {
	border-color:rgba(239,76,78,.36);
	background:linear-gradient(120deg,#1d2429,#291f22);
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) :is(.imd-story-form input,.imd-story-form textarea) {
	border-color:var(--ia-line);
	background:#151a1e;
	color:var(--ia-ink);
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) :is(.imd-story-form input,.imd-story-form textarea)::placeholder { color:#8f999f; opacity:1; }
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) .imd-story-form input[type="file"]::file-selector-button {
	border:0;
	border-radius:9px;
	background:#3a2326;
	color:#ff8587;
	font-weight:800;
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) :is(.imd-stories,.imd-activity-tabs,.imd-activity-card,.imd-activity-guide,.imd-activity-empty) {
	box-shadow:0 14px 38px rgba(0,0,0,.24);
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) .imd-stories__track { scrollbar-color:rgba(215,42,43,.72) transparent; }
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) .imd-story-avatar>span { background:#151a1e; }
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) .imd-activity-card__avatar { background:#382225; }
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) .imd-activity-card>header>span { background:#382225; color:#ff8587; }
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) .imd-activity-card__media { background:#111619; }
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) .imd-story-viewer>div {
	border-color:rgba(255,255,255,.18);
	background:linear-gradient(160deg,#20272c,#111619);
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode) .imd-activity-shell :is(a,button,input,textarea):focus-visible {
	outline:2px solid #ff6466;
	outline-offset:3px;
}

/* Actividad comparte los mismos tokens y navegación que las demás áreas Core. */
body.imd-activity-page :is(.entry-title,.page-title,h1.wp-block-post-title,.hero-section .page-title) {
	display:none!important;
}
.imd-activity-shell :is(.imd-professional-nav,.imd-rewards-nav) {
	color:var(--ia-ink);
}
.imd-activity-shell :is(.imd-activity-hero,.imd-activity-card,.imd-activity-guide,.imd-activity-empty) {
	color:var(--ia-ink);
}
.imd-activity-shell .imd-story-avatar {
	background:transparent!important;
	box-shadow:none!important;
	color:var(--ia-ink)!important;
}

/* Reacción compacta: el gesto vive en un corazón circular, no en un bloque. */
.imd-activity-card>footer .imd-activity-like {
	display:inline-flex!important;
	min-height:36px;
	align-items:center;
	gap:7px;
	padding:3px 10px 3px 3px!important;
	border:1px solid transparent!important;
	border-radius:999px!important;
	background:transparent!important;
	box-shadow:none!important;
	color:var(--ia-muted)!important;
	font-size:.82rem;
	font-weight:800;
	line-height:1;
	text-transform:none;
	cursor:pointer;
	transition:color .18s ease,background-color .18s ease,border-color .18s ease,transform .18s ease;
}
.imd-activity-like>span {
	display:grid;
	width:29px;
	height:29px;
	place-items:center;
	border-radius:50%;
	background:rgba(215,42,43,.09);
	color:var(--ia-red);
	font-size:.9rem;
	line-height:1;
	transition:color .18s ease,background-color .18s ease,transform .18s ease;
}
.imd-activity-like>b {
	min-width:1ch;
	color:inherit;
	font-size:.75rem;
}
.imd-activity-card>footer .imd-activity-like.is-active {
	border-color:rgba(215,42,43,.18)!important;
	background:rgba(215,42,43,.07)!important;
	color:var(--ia-red)!important;
}
.imd-activity-like.is-active>span {
	background:var(--ia-red);
	color:#fff;
}
.imd-activity-card>footer .imd-activity-like:focus-visible {
	border-color:rgba(215,42,43,.36)!important;
	background:rgba(215,42,43,.07)!important;
	color:var(--ia-red)!important;
	outline:2px solid var(--ia-red);
	outline-offset:2px;
}
.imd-activity-card>footer .imd-activity-like:disabled {
	opacity:.58;
	cursor:wait;
}
@media(hover:hover){
	.imd-activity-card>footer .imd-activity-like:hover {
		border-color:rgba(215,42,43,.22)!important;
		background:rgba(215,42,43,.07)!important;
		color:var(--ia-red)!important;
		transform:translateY(-1px);
	}
	.imd-activity-like:hover>span {
		background:var(--ia-red);
		color:#fff;
		transform:scale(1.04);
	}
}

/* El tema no debe recuperar fondos claros ni titulares oscuros al cambiar de modo. */
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-activity-shell {
	--ia-ink:#f7f8fa;
	--ia-muted:#b8c0c6;
	--ia-card:#1d2429;
	--ia-bg:#151a1e;
	--ia-line:rgba(255,255,255,.13);
	--imd-shadow:0 20px 58px rgba(0,0,0,.3);
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) :is(.imd-stories,.imd-activity-tabs,.imd-activity-card,.imd-activity-guide,.imd-activity-empty) {
	border-color:var(--ia-line)!important;
	background:var(--ia-card)!important;
	color:var(--ia-ink)!important;
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-activity-hero {
	border-color:var(--ia-line)!important;
	background:radial-gradient(circle at 95% 0,rgba(215,42,43,.22),transparent 44%),linear-gradient(145deg,#1d2429,#171c20)!important;
	color:var(--ia-ink)!important;
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-activity-card>footer .imd-activity-like {
	color:#c7cdd1!important;
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-activity-like>span {
	background:#382225;
	color:#ff8587;
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-activity-card>footer .imd-activity-like.is-active {
	border-color:rgba(255,100,102,.25)!important;
	background:rgba(215,42,43,.14)!important;
	color:#ff8587!important;
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-activity-like.is-active>span {
	background:var(--ia-red);
	color:#fff;
}

:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark) body.imd-activity-page,
body.dark-mode.imd-activity-page,
body.imd-dark-mode.imd-activity-page {
	background:#151a1e!important;
	color:#f7f8fa;
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark) body.imd-activity-page :is(.entry-title,.page-title,h1.wp-block-post-title,.hero-section .page-title),
body.dark-mode.imd-activity-page :is(.entry-title,.page-title,h1.wp-block-post-title,.hero-section .page-title),
body.imd-dark-mode.imd-activity-page :is(.entry-title,.page-title,h1.wp-block-post-title,.hero-section .page-title) {
	color:#f7f8fa!important;
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark) body.imd-activity-page :is(#main,.site-main,.content-area,.entry-content,.ct-container-full),
body.dark-mode.imd-activity-page :is(#main,.site-main,.content-area,.entry-content,.ct-container-full),
body.imd-dark-mode.imd-activity-page :is(#main,.site-main,.content-area,.entry-content,.ct-container-full) {
	background:#151a1e!important;
	color:#f7f8fa;
}

/* Actividad 0.16.8 · compositor simple y catálogo musical autorizado. */
body.imd-activity-page {
	--content-vertical-spacing:0px!important;
}
body.imd-activity-page :is(.entry-title,.page-title,.ct-page-title,h1.wp-block-post-title,.hero-section .page-title,.elementor-widget-theme-post-title),
body.imd-activity-page :is(.site-main,#main,.content-area,.ct-container-full)>article>.entry-header,
body.imd-activity-page :is(.site-main,#main,.content-area,.ct-container-full)>.page-header {
	display:none!important;
}
body.imd-activity-page :is(.site-main,#main,.content-area,.entry-content,.ct-container-full),
body.imd-activity-page :is(.site-main,#main,.content-area,.ct-container-full)>article {
	padding-top:0!important;
	margin-top:0!important;
}
body.imd-activity-page .entry-content>.imd-activity-shell,
body.imd-activity-page .imd-activity-shell {
	width:min(100% - 40px,1240px);
	padding-top:10px;
	margin-top:0!important;
}

.imd-story-form[hidden] { display:none!important; }
.imd-story-form__header {
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:20px;
	margin-bottom:19px;
}
.imd-story-form__header h2 { margin:3px 0 7px; font-size:clamp(1.55rem,3vw,2.25rem); }
.imd-story-form__header p { margin:0; color:var(--ia-muted); line-height:1.5; }
.imd-story-form__header>a { flex:0 0 auto; color:var(--ia-red)!important; font-weight:850; text-decoration:none; }
.imd-story-quick-builder { display:grid; grid-template-columns:minmax(280px,1.05fr) minmax(260px,.95fr); gap:16px; align-items:stretch; }
.imd-story-visual-picker { position:relative; display:grid; min-height:260px; }
.imd-story-quick-copy { display:grid; align-content:start; gap:12px; }
.imd-story-quick-copy label>span,.imd-story-more-options label>span { color:var(--ia-muted); font-size:.76rem; font-weight:650; }
.imd-story-quick-copy textarea { min-height:158px; resize:vertical; }
.imd-story-more-options { padding:0 14px; border:1px solid var(--ia-line); border-radius:14px; background:var(--ia-card); }
.imd-story-more-options>summary { padding:13px 0; color:var(--ia-muted); font-size:.82rem; font-weight:850; cursor:pointer; }
.imd-story-more-options[open]>summary { color:var(--ia-red); }
.imd-story-more-options>label { padding:0 0 14px; }
.imd-story-form__rights { padding:12px 15px; border:1px solid rgba(215,42,43,.22); border-radius:12px; background:rgba(215,42,43,.04); color:var(--ia-muted); font-size:.84rem; line-height:1.5; }
.imd-story-form__rights>strong { color:var(--ia-ink); }
.imd-story-form__privacy { padding:12px 15px; border-left:3px solid var(--ia-red); border-radius:10px; background:rgba(215,42,43,.06); }
.imd-story-form__actions { display:flex; justify-content:flex-end; gap:9px; }
.imd-story-form__actions .imd-button { min-width:160px; border-radius:999px!important; }

.imd-story-presets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:0; margin:0 0 14px; border:0; }
.imd-story-presets>legend { width:100%; padding:0; margin:0 0 2px; color:var(--ia-muted); font-size:.78rem; font-weight:850; }
.imd-story-preset {
	position:relative;
	display:grid!important;
	min-width:0;
	grid-template-columns:74px minmax(0,1fr);
	align-items:center;
	gap:11px!important;
	padding:8px;
	border:1px solid var(--ia-line);
	border-radius:16px;
	background:var(--ia-card);
	color:var(--ia-ink);
	text-align:left;
	cursor:pointer;
	transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.imd-story-preset.is-selected { border-color:var(--ia-red); background:rgba(215,42,43,.065); box-shadow:0 8px 20px rgba(215,42,43,.13); color:var(--ia-ink); }
.imd-story-preset>input {
	position:absolute!important;
	width:1px!important;
	height:1px!important;
	padding:0!important;
	margin:-1px!important;
	overflow:hidden!important;
	clip:rect(0,0,0,0)!important;
	white-space:nowrap!important;
	border:0!important;
}
.imd-story-preset:focus-within { outline:2px solid var(--ia-red); outline-offset:3px; }
.imd-story-preset__visual { position:relative; display:grid; width:74px; aspect-ratio:4/3; place-items:center; overflow:hidden; border-radius:11px; background:#1a2025; color:#fff; }
.imd-story-preset__visual>img { grid-area:1/1; width:100%; height:100%; object-fit:cover; }
.imd-story-preset__visual>i { color:#ff7274; font-size:1.35rem; font-style:normal; }
.imd-story-preset__visual>em { z-index:1; grid-area:1/1; align-self:end; width:100%; padding:18px 6px 5px; background:linear-gradient(transparent,rgba(6,9,11,.9)); color:#fff; font-size:.55rem; font-style:normal; font-weight:900; line-height:1.15; text-align:center; }
.imd-story-preset[data-preset-format="details"] .imd-story-preset__visual>img { width:48%; justify-self:start; }
.imd-story-preset[data-preset-format="details"] .imd-story-preset__visual::after { content:"Datos"; grid-area:1/1; align-self:center; justify-self:end; width:52%; color:#fff; font-size:.58rem; font-weight:900; text-align:center; }
.imd-story-preset[data-preset-format="visit"] .imd-story-preset__visual::after { content:"¡Conócela!"; z-index:1; grid-area:1/1; align-self:center; padding:4px 7px; border-radius:999px; background:#fff; color:#b81214; font-size:.52rem; font-weight:900; }
.imd-story-preset__copy { display:grid; min-width:0; gap:3px; }
.imd-story-preset__copy>strong { color:inherit; font-size:.8rem; line-height:1.18; }
.imd-story-preset__copy>small { color:var(--ia-muted); font-size:.66rem; font-weight:550; line-height:1.3; }
.imd-story-preset.is-selected .imd-story-preset__copy>strong { color:var(--ia-red); }

.imd-story-property-builder { display:grid!important; grid-template-columns:minmax(0,1.25fr) minmax(230px,.75fr)!important; gap:16px!important; align-items:stretch; }
.imd-story-property-preview { position:relative; display:grid; min-height:260px; overflow:hidden; border:1px solid var(--ia-line); border-radius:20px; background:#182027; color:#fff; }
.imd-story-property-preview__stage { position:relative; grid-area:1/1; display:grid; min-width:0; min-height:260px; overflow:hidden; background:#10161a; }
.imd-story-property-preview__slide { grid-area:1/1; display:grid; min-width:0; min-height:260px; padding:0; margin:0; overflow:hidden; opacity:0; pointer-events:none; transform:scale(1.015); }
.imd-story-property-preview__slide[hidden] { display:none!important; }
.imd-story-property-preview__slide.is-active { z-index:1; opacity:1; pointer-events:auto; transform:none; }
.imd-story-property-preview__slide>:is(img,video) { grid-area:1/1; width:100%; height:100%; min-height:260px; object-fit:cover; }
.imd-story-property-preview__slide>video { background:#090d10; object-fit:contain; }
.imd-story-property-preview__empty { align-self:center; justify-self:center; max-width:260px; padding:20px; color:rgba(255,255,255,.75); text-align:center; }
.imd-story-property-preview__copy { z-index:2; grid-area:1/1; align-self:end; padding:62px 20px 48px; background:linear-gradient(transparent,rgba(5,8,11,.92)); pointer-events:none; }
.imd-story-property-preview__copy>span { display:block; margin-bottom:6px; color:#ff7779; font-size:.68rem; font-weight:950; letter-spacing:.12em; text-transform:uppercase; }
.imd-story-property-preview__copy>strong { display:block; color:#fff; font-family:var(--imd-font-heading,ODUDA,Aileron,sans-serif); font-size:1.5rem; }
.imd-story-property-preview__copy>p { margin:6px 0 12px; color:rgba(255,255,255,.84); font-size:.86rem; line-height:1.42; }
.imd-story-property-preview__copy>b { color:#fff; font-size:.78rem; }
.imd-story-property-preview__controls { position:absolute; z-index:4; right:12px; bottom:11px; display:flex; align-items:center; gap:6px; padding:4px; border:1px solid rgba(255,255,255,.2); border-radius:999px; background:rgba(7,10,12,.7); color:#fff; backdrop-filter:blur(7px); }
.imd-story-property-preview__controls[hidden] { display:none!important; }
.imd-story-property-preview__controls>button { display:grid; min-width:30px; height:30px; padding:0 8px; place-items:center; border:0; border-radius:999px; background:transparent; color:#fff; font-size:.72rem; font-weight:850; cursor:pointer; }
.imd-story-property-preview__controls>button:first-child,.imd-story-property-preview__controls>button:last-child { width:30px; padding:0; font-size:1.2rem; }
.imd-story-property-preview__controls>button:is(:hover,:focus-visible) { background:var(--ia-red); }
.imd-story-property-preview__controls>button:disabled { opacity:.42; cursor:not-allowed; }
.imd-story-property-preview__controls>span { min-width:32px; font-size:.65rem; font-weight:850; text-align:center; }
.imd-story-property-preview[data-story-format="catalog"] .imd-story-property-preview__slide.is-entering>img { animation:imdStoryCatalogSlide .46s ease both; }
.imd-story-property-preview[data-story-format="details"] { grid-template-columns:45% 55%; min-height:225px; background:var(--ia-card); color:var(--ia-ink); }
.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__stage { grid-area:1/1; min-height:225px; }
.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__slide { min-height:225px; }
.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__slide>:is(img,video) { min-height:225px; }
.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__slide.is-entering>img { animation:imdStoryDetailsSlide .42s ease both; }
.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__copy { grid-area:1/2; align-self:stretch; padding:22px 22px 52px; background:var(--ia-card); }
.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__copy>:is(strong,b) { color:var(--ia-ink); }
.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__copy>p { color:var(--ia-muted); }
.imd-story-property-preview[data-story-format="visit"] .imd-story-property-preview__copy { padding-top:80px; background:linear-gradient(transparent,rgba(183,17,19,.96)); }
.imd-story-property-preview[data-story-format="visit"] .imd-story-property-preview__copy>b { display:inline-flex; padding:8px 13px; border-radius:999px; background:#fff; color:#b81214; }
.imd-story-property-preview[data-story-format="visit"] .imd-story-property-preview__slide.is-entering>img { animation:imdStoryVisitSlide .5s cubic-bezier(.2,.75,.25,1) both; }
@keyframes imdStoryCatalogSlide { from { opacity:.25; transform:scale(1.07); } to { opacity:1; transform:scale(1); } }
@keyframes imdStoryDetailsSlide { from { opacity:.2; transform:translateX(10%); } to { opacity:1; transform:translateX(0); } }
@keyframes imdStoryVisitSlide { from { opacity:.2; transform:scale(.95) rotate(-.5deg); } to { opacity:1; transform:scale(1) rotate(0); } }
.imd-story-upload-fields { display:grid; align-content:stretch; gap:12px; }
.imd-story-media-field { position:relative; display:grid!important; min-height:100%; align-content:center; justify-items:center; gap:8px!important; padding:24px 18px; border:1.5px dashed rgba(215,42,43,.5); border-radius:20px; background:rgba(215,42,43,.045); text-align:center; cursor:pointer; transition:border-color .18s ease,background-color .18s ease,transform .18s ease; }
.imd-story-media-field__icon { display:grid; width:50px; height:50px; place-items:center; border-radius:50%; background:var(--ia-red); color:#fff; font-size:1.7rem; font-weight:450; line-height:1; box-shadow:0 9px 24px rgba(215,42,43,.22); }
.imd-story-media-field>strong { color:var(--ia-ink); font-size:1rem; }
.imd-story-media-field__cta { display:inline-flex; min-height:36px; align-items:center; padding:8px 15px; border-radius:999px; background:var(--ia-ink); color:var(--ia-card); font-size:.76rem; font-weight:850; }
.imd-story-file-input { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.imd-story-media-field:focus-within { border-style:solid; border-color:var(--ia-red); outline:2px solid var(--ia-red); outline-offset:3px; }
.imd-story-media-field small { max-width:360px; color:var(--ia-muted); font-size:.74rem; font-weight:500; line-height:1.45; }
.imd-story-upload-status { display:block; min-height:1.3em; margin-top:7px; color:var(--ia-red); font-size:.74rem; font-weight:750; line-height:1.35; }
.imd-story-upload-preview { position:absolute; z-index:2; inset:0; display:grid; overflow:hidden; border:1px solid var(--ia-line); border-radius:20px; background:#090d10; pointer-events:none; }
.imd-story-upload-preview[hidden] { display:none!important; }
.imd-story-upload-preview>:is(img,video) { grid-area:1/1; width:100%; height:100%; min-height:260px; max-height:430px; background:#090d10; object-fit:contain; pointer-events:auto; }
.imd-story-upload-preview>button { z-index:2; grid-area:1/1; align-self:end; justify-self:end; min-height:36px; padding:8px 14px; margin:12px; border:1px solid rgba(255,255,255,.45); border-radius:999px; background:rgba(8,12,15,.78); color:#fff; font-size:.75rem; font-weight:850; cursor:pointer; pointer-events:auto; backdrop-filter:blur(5px); }
.imd-story-upload-preview>[hidden] { display:none!important; }

.imd-story-music { margin:16px 0 0; border:1px solid var(--ia-line); border-radius:18px; background:var(--ia-card); }
.imd-story-music__summary { display:flex; min-height:74px; align-items:center; gap:12px; padding:12px 14px; }
.imd-story-music__icon { display:grid; width:44px; height:44px; flex:0 0 auto; place-items:center; border-radius:14px; background:rgba(215,42,43,.1); color:var(--ia-red); font-size:1.2rem; }
.imd-story-music__summary>div { display:grid; flex:1; min-width:0; }
.imd-story-music__summary>div>strong { color:var(--ia-ink); font-size:.9rem; }
.imd-story-music__summary>div>span { overflow:hidden; color:var(--ia-muted); font-size:.78rem; text-overflow:ellipsis; white-space:nowrap; }
.imd-story-music__toggle { min-height:38px; padding:8px 15px; border:1px solid rgba(215,42,43,.35); border-radius:999px; background:transparent; color:var(--ia-red); font-size:.76rem; font-weight:850; cursor:pointer; }
.imd-story-music__toggle:disabled { border-color:var(--ia-line); color:var(--ia-muted); cursor:not-allowed; opacity:.72; }
.imd-story-music__picker { padding:0 14px 14px; border-top:1px solid var(--ia-line); }
.imd-story-music__picker[hidden] { display:none!important; }
.imd-story-music__picker>header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0 10px; }
.imd-story-music__picker>header>div { display:grid; }
.imd-story-music__picker>header strong { color:var(--ia-ink); font-size:.95rem; }
.imd-story-music__picker>header span { color:var(--ia-muted); font-size:.74rem; }
.imd-story-music__picker>header>button { display:grid; width:34px; height:34px; flex:0 0 auto; place-items:center; border:0; border-radius:50%; background:var(--ia-bg); color:var(--ia-ink); font-size:1.25rem; cursor:pointer; }
.imd-story-music__search { display:block!important; }
.imd-story-music__search input { min-height:42px; padding:10px 14px!important; border-radius:999px!important; }
.imd-story-music__list { display:grid; max-height:285px; gap:4px; overflow:auto; padding:8px 2px 2px; overscroll-behavior:contain; }
.imd-story-track { display:flex; min-width:0; align-items:center; flex-wrap:wrap; gap:7px 10px; padding:7px; border:1px solid transparent; border-radius:14px; }
.imd-story-track[hidden],.imd-story-music__empty[hidden] { display:none!important; }
.imd-story-track.is-selected { border-color:rgba(215,42,43,.32); background:rgba(215,42,43,.07); }
.imd-story-track:focus-within { border-color:var(--ia-red); outline:2px solid var(--ia-red); outline-offset:2px; }
.imd-story-track>label { display:flex!important; flex:1; min-width:0; align-items:center; gap:10px!important; cursor:pointer; }
.imd-story-track>label>input { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; }
.imd-story-track>label>span:last-child { display:grid; min-width:0; }
.imd-story-track>label strong,.imd-story-track>label small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.imd-story-track>label strong { color:var(--ia-ink); font-size:.84rem; }
.imd-story-track>label small { color:var(--ia-muted); font-size:.72rem; font-weight:550; }
.imd-story-track__cover { display:grid; width:42px; height:42px; flex:0 0 auto; place-items:center; overflow:hidden; border-radius:10px; background:var(--ia-bg); color:var(--ia-red); font-size:1rem; }
.imd-story-track__cover>img { width:100%; height:100%; object-fit:cover; }
.imd-story-track>button { display:grid; width:38px; height:38px; flex:0 0 auto; place-items:center; border:0; border-radius:50%; background:rgba(215,42,43,.1); color:var(--ia-red); cursor:pointer; }
.imd-story-track>button[aria-pressed="true"] { background:var(--ia-red); color:#fff; }
.imd-story-track>button>span { font-size:.7rem; }
.imd-story-track__credit { width:100%; padding-left:52px; margin:0; color:var(--ia-muted); font-size:.68rem; line-height:1.35; }
.imd-story-track__credit a { color:var(--ia-red)!important; font-weight:750; text-decoration:underline; text-underline-offset:2px; }
.imd-story-music__empty { padding:20px; margin:0; color:var(--ia-muted); font-size:.82rem; text-align:center; }
.imd-story-music__clip { display:grid; gap:9px; padding:14px; border-top:1px solid var(--ia-line); background:linear-gradient(135deg,rgba(215,42,43,.055),transparent); }
.imd-story-music__clip[hidden] { display:none!important; }
.imd-story-music__clip-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.imd-story-music__clip-heading>div { display:grid; gap:2px; }
.imd-story-music__clip-heading strong { color:var(--ia-ink); font-size:.86rem; }
.imd-story-music__clip-heading span { color:var(--ia-muted); font-size:.72rem; line-height:1.4; }
.imd-story-music__clip-heading>button { display:inline-flex; min-height:36px; align-items:center; gap:7px; padding:7px 13px; border:1px solid rgba(215,42,43,.36); border-radius:999px; background:var(--ia-card); color:var(--ia-red); font-size:.73rem; font-weight:850; cursor:pointer; }
.imd-story-music__clip-heading>button[aria-pressed="true"] { background:var(--ia-red); color:#fff; }
.imd-story-music__clip>label { display:flex!important; align-items:center; justify-content:space-between; gap:12px!important; color:var(--ia-ink); font-size:.76rem; font-weight:800; }
.imd-story-music__clip output { min-width:3.2em; color:var(--ia-red); font-variant-numeric:tabular-nums; text-align:right; }
.imd-story-music__clip>input[type="range"] { width:100%; height:24px; padding:0!important; border:0!important; accent-color:var(--ia-red); cursor:pointer; }
.imd-story-music__clip>p { margin:0; color:var(--ia-muted); font-size:.72rem; font-variant-numeric:tabular-nums; }

.imd-stories { padding:20px; }
.imd-stories__header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:15px; }
.imd-stories__header h2 { margin:3px 0 5px; font-size:clamp(1.35rem,2.4vw,1.9rem); }
.imd-stories__header p { margin:0; color:var(--ia-muted); font-size:.86rem; }
.imd-stories__header>.imd-button { flex:0 0 auto; border-radius:999px!important; }
.imd-stories__empty { align-self:center; margin:0; color:var(--ia-muted); font-size:.86rem; }
.imd-story-avatar--create>span { border-style:dashed; background:rgba(215,42,43,.06); }
.imd-story-avatar--create>span>i { color:var(--ia-red); font-size:2rem; font-style:normal; font-weight:500; line-height:1; }
.imd-story-avatar:is(:hover,:focus-visible)>span { box-shadow:0 0 0 4px rgba(215,42,43,.12); }
.imd-story-avatar:disabled { opacity:.45; cursor:not-allowed; filter:grayscale(1); }

.imd-story-viewer__media { position:relative; overflow:hidden; border-radius:18px; background:#090d10; }
.imd-story-viewer__media[data-media-kind="none"] { display:none; }
.imd-story-viewer__media>:is(img,video) { display:block; width:100%; max-height:62vh; object-fit:contain; }
.imd-story-viewer__media>video { min-height:220px; }
.imd-story-viewer__slides { position:absolute; z-index:3; right:10px; bottom:10px; display:flex; align-items:center; gap:6px; padding:4px; border:1px solid rgba(255,255,255,.25); border-radius:999px; background:rgba(7,10,12,.72); color:#fff; backdrop-filter:blur(7px); }
.imd-story-viewer__slides[hidden] { display:none!important; }
.imd-story-viewer__slides>button { display:grid; width:32px; height:32px; padding:0; place-items:center; border:0; border-radius:50%; background:transparent; color:#fff; font-size:1.25rem; cursor:pointer; }
.imd-story-viewer__slides>button:is(:hover,:focus-visible) { background:var(--ia-red); }
.imd-story-viewer__slides>span { min-width:34px; font-size:.68rem; font-weight:850; text-align:center; }
.imd-story-viewer__fallback { display:block; padding:8px 12px; color:#fff!important; font-size:.76rem; font-weight:750; text-align:center; }
.imd-story-viewer__sound { display:grid; gap:5px; padding:10px 0 0; }
.imd-story-viewer__sound>span { color:rgba(255,255,255,.72); font-size:.72rem; font-weight:800; }
.imd-story-viewer__sound>audio { width:100%; height:42px; }
.imd-story-viewer__sound>a { color:#fff!important; font-size:.72rem; font-weight:750; text-align:center; }
.imd-story-viewer__track-meta { display:grid; gap:2px; }
.imd-story-viewer__track-meta>small { color:rgba(255,255,255,.72); font-size:.7rem; font-variant-numeric:tabular-nums; }
.imd-story-viewer__track-meta>span { color:rgba(255,255,255,.76); font-size:.68rem; line-height:1.4; }
.imd-story-viewer__track-meta>span a { color:#fff!important; font-weight:750; text-decoration:underline; text-underline-offset:2px; }
.imd-story-viewer :is(img,video,audio,a,[hidden])[hidden] { display:none!important; }
.imd-story-viewer__copy>p { white-space:pre-line; }
.imd-story-viewer[data-story-format="catalog"] .imd-story-viewer__media { border-radius:18px; }
.imd-story-viewer[data-story-format="catalog"] [data-imd-story-image].is-entering { animation:imdStoryCatalogSlide .46s ease both; }
.imd-story-viewer[data-story-format="catalog"][data-media-kind="image"][data-has-audio="false"] .imd-story-viewer__copy { position:relative; padding:72px 16px 16px; margin:-92px 0 0; border-radius:0 0 18px 18px; background:linear-gradient(transparent,rgba(5,8,11,.95)); }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__card { background:#f7f8fa; color:#16191c; }
.imd-story-viewer[data-story-format="details"] [data-imd-story-image].is-entering { animation:imdStoryDetailsSlide .42s ease both; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__card header strong { color:#16191c; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__copy>p { color:#4c555c; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__sound>span { color:#4c555c; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__sound>a { color:#b81214!important; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__track-meta>:is(small,span) { color:#4c555c; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__track-meta a { color:#b81214!important; }
.imd-story-viewer[data-story-format="visit"] .imd-story-viewer__card { border-color:rgba(255,255,255,.28); background:linear-gradient(155deg,#d72a2b,#981012); }
.imd-story-viewer[data-story-format="visit"] [data-imd-story-image].is-entering { animation:imdStoryVisitSlide .5s cubic-bezier(.2,.75,.25,1) both; }
.imd-story-viewer[data-story-format="visit"] .imd-story-viewer__copy .imd-button { background:#fff!important; color:#b81214!important; }

@media(hover:hover) {
	.imd-story-preset:hover { border-color:rgba(215,42,43,.6); transform:translateY(-1px); }
	.imd-story-media-field:hover { border-color:var(--ia-red); background:rgba(215,42,43,.075); transform:translateY(-1px); }
	.imd-story-music__toggle:not(:disabled):hover,.imd-story-track>button:hover { background:var(--ia-red); color:#fff; }
}
@media(max-width:850px) {
	.imd-story-quick-builder { grid-template-columns:1fr; }
	.imd-story-property-builder { grid-template-columns:1fr!important; }
}
@media(max-width:600px) {
	body.imd-activity-page .imd-activity-shell { width:min(100% - 18px,1240px); padding-top:6px; }
	.imd-story-form { padding:17px; }
	.imd-story-form__header,.imd-stories__header { align-items:stretch; flex-direction:column; }
	.imd-story-form__header>a { align-self:flex-start; }
	.imd-story-presets { display:flex; flex-wrap:nowrap; overflow-x:auto; padding:2px 2px 7px; scroll-snap-type:x proximity; }
	.imd-story-presets>legend { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
	.imd-story-preset { min-width:230px; flex:0 0 78%; scroll-snap-align:start; }
	.imd-story-music__summary { align-items:flex-start; flex-wrap:wrap; }
	.imd-story-music__summary>div { padding-top:3px; }
	.imd-story-music__toggle { width:100%; }
	.imd-story-music__list { max-height:48vh; }
	.imd-story-music__clip-heading { align-items:stretch; flex-direction:column; }
	.imd-story-music__clip-heading>button { justify-content:center; }
	.imd-story-form__actions { align-items:stretch; flex-direction:column-reverse; }
	.imd-story-form__actions .imd-button { width:100%; }
	.imd-story-property-preview[data-story-format="details"] { grid-template-columns:1fr; }
	.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__stage { grid-area:1/1; min-height:190px; }
	.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__slide,
	.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__slide>:is(img,video) { height:190px; min-height:190px; }
	.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__copy { grid-area:2/1; min-height:190px; }
	.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__controls { bottom:204px; }
	.imd-stories { padding:16px 12px; }
	.imd-stories__header>.imd-button { width:100%; }
}

:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) :is(.imd-story-preset,.imd-story-property-preview[data-story-format="details"] .imd-story-property-preview__copy,.imd-story-music,.imd-story-more-options) {
	border-color:var(--ia-line);
	background:#1d2429;
}
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-story-preset.is-selected { border-color:#ff6466; background:rgba(215,42,43,.16); box-shadow:0 0 0 2px rgba(255,100,102,.1); }
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-story-media-field { background:rgba(215,42,43,.1); }
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-story-media-field__cta { background:#f7f8fa; color:#16191c; }
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) :is(.imd-story-music__picker>header>button,.imd-story-track__cover) { background:#151a1e; }
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-story-music__clip-heading>button { background:#151a1e; }

/* Historias agrupadas, filtros y visor continuo. */
.imd-stories__toolbar {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	margin:0 0 16px;
}
.imd-stories__filters {
	display:inline-flex;
	gap:5px;
	padding:4px;
	border:1px solid var(--ia-line);
	border-radius:999px;
	background:var(--ia-bg);
}
.imd-stories__filters>button {
	min-height:36px;
	padding:7px 14px;
	border:0;
	border-radius:999px;
	background:transparent;
	color:var(--ia-muted);
	font-size:.77rem;
	font-weight:850;
	cursor:pointer;
}
.imd-stories__filters>button.is-active {
	background:var(--ia-red);
	color:#fff;
	box-shadow:0 6px 18px rgba(215,42,43,.2);
}
.imd-stories__feedback {
	padding:7px 11px;
	margin:0;
	border-radius:10px;
	background:rgba(30,142,62,.1);
	color:#176d32;
	font-size:.76rem;
	font-weight:800;
}
.imd-stories__feedback[data-state="error"] { background:rgba(215,42,43,.09); color:var(--ia-red); }
.imd-stories__feedback[hidden],.imd-stories__empty[hidden],.imd-story-group[hidden] { display:none!important; }
.imd-stories__track { align-items:flex-start; padding:5px 3px 9px; }
.imd-story-group { flex:0 0 88px; }
.imd-story-group .imd-story-avatar { width:88px; min-width:88px; }
.imd-story-avatar>.imd-story-avatar__visual {
	position:relative;
	overflow:visible;
	border-color:rgba(105,113,121,.55);
}
.imd-story-group.has-unseen .imd-story-avatar>.imd-story-avatar__visual {
	border-color:var(--ia-red);
	box-shadow:0 0 0 2px rgba(215,42,43,.12);
}
.imd-story-avatar__author,
.imd-story-avatar>.imd-story-avatar__visual>img {
	display:grid;
	width:100%;
	height:100%;
	place-items:center;
	overflow:hidden;
	border-radius:50%;
	background:var(--ia-card);
	object-fit:cover;
}
.imd-story-avatar__author[hidden],.imd-story-avatar>.imd-story-avatar__visual>img[hidden] { display:none!important; }
.imd-story-avatar__author>img,.imd-story-avatar__author>span { width:100%; height:100%; border-radius:50%; object-fit:cover; }
.imd-story-avatar__author>span { display:grid; place-items:center; background:rgba(215,42,43,.1); color:var(--ia-red); }
.imd-story-avatar__visual>em {
	position:absolute;
	right:-7px;
	bottom:-3px;
	display:grid;
	min-width:23px;
	height:23px;
	place-items:center;
	padding:0 5px;
	border:2px solid var(--ia-card);
	border-radius:999px;
	background:var(--ia-red);
	color:#fff;
	font-size:.65rem;
	font-style:normal;
	font-weight:950;
	line-height:1;
}
.imd-story-avatar>small {
	overflow:hidden;
	width:88px;
	margin-top:-4px;
	color:var(--ia-muted);
	font-size:.63rem;
	font-weight:650;
	text-align:center;
	text-overflow:ellipsis;
	white-space:nowrap;
}

.imd-story-viewer { overscroll-behavior:contain; }
.imd-story-viewer>.imd-story-viewer__card {
	position:relative;
	width:min(500px,100%);
	padding:15px 18px 18px;
	scrollbar-width:thin;
}
.imd-story-viewer__progress {
	display:flex;
	gap:3px;
	margin:0 0 13px;
}
.imd-story-viewer__segment {
	position:relative;
	height:24px;
	min-width:12px;
	flex:1;
	overflow:hidden;
	padding:0;
	border:0;
	border-radius:6px;
	background:transparent;
	cursor:pointer;
}
.imd-story-viewer__segment::before {
	position:absolute;
	top:10px;
	right:0;
	left:0;
	height:4px;
	border-radius:999px;
	background:rgba(255,255,255,.42);
	content:'';
}
.imd-story-viewer__segment>span {
	display:block;
	position:absolute;
	z-index:1;
	top:10px;
	right:0;
	left:0;
	width:100%;
	height:4px;
	border-radius:999px;
	background:#fff;
	transform:scaleX(0);
	transform-origin:left center;
	transition:transform .1s linear;
}
.imd-story-viewer__segment.is-complete>span { transform:scaleX(1); }
.imd-story-viewer__segment:focus-visible { outline:3px solid #fff; outline-offset:-2px; }
.imd-story-viewer__segment:disabled { opacity:.58; cursor:wait; }
.imd-story-viewer__card>header { min-height:44px; margin-bottom:12px; }
.imd-story-viewer__card>header>div { display:grid; min-width:0; flex:1; }
.imd-story-viewer__card>header strong { overflow:hidden; color:#fff; text-overflow:ellipsis; white-space:nowrap; }
.imd-story-viewer__card>header small { color:rgba(255,255,255,.65); font-size:.68rem; font-weight:750; }
.imd-story-viewer :is(.imd-story-viewer__pause,.imd-story-viewer__delete) {
	min-height:34px;
	padding:6px 12px;
	border:1px solid rgba(255,255,255,.28);
	border-radius:999px;
	background:transparent;
	color:#fff;
	font-size:.71rem;
	font-weight:850;
	cursor:pointer;
}
.imd-story-viewer :is(.imd-story-viewer__pause,.imd-story-viewer__delete):disabled,
.imd-story-viewer>button:disabled { opacity:.55; cursor:wait; }
.imd-story-viewer__announcer {
	position:absolute!important;
	width:1px!important;
	height:1px!important;
	overflow:hidden!important;
	padding:0!important;
	margin:-1px!important;
	border:0!important;
	clip:rect(0,0,0,0)!important;
	white-space:nowrap!important;
}
.imd-story-viewer__feedback {
	padding:8px 11px;
	margin:0 0 10px;
	border-radius:10px;
	background:rgba(255,255,255,.1);
	color:#fff;
	font-size:.75rem!important;
	font-weight:750;
}
.imd-story-viewer__feedback[hidden] { display:none!important; }
.imd-story-viewer__audience { display:grid; gap:8px; margin-top:12px; }
.imd-story-viewer__audience[hidden],.imd-story-viewer__audience-panel[hidden] { display:none!important; }
.imd-story-viewer__audience-toggle {
	display:flex;
	min-height:40px;
	align-items:center;
	justify-content:center;
	gap:7px;
	padding:8px 14px;
	border:1px solid rgba(255,255,255,.24);
	border-radius:999px;
	background:rgba(255,255,255,.08);
	color:#fff;
	font-size:.74rem;
	cursor:pointer;
}
.imd-story-viewer__audience-toggle>span { font-size:.9rem; }
.imd-story-viewer__audience-panel { display:grid; gap:8px; padding:12px; border:1px solid rgba(255,255,255,.18); border-radius:16px; background:#0e1215; }
.imd-story-viewer__audience-panel>div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.imd-story-viewer__audience-panel h3 { margin:0; color:#fff; font-size:.9rem; }
.imd-story-viewer__audience-panel>div>button { display:grid; width:31px; height:31px; place-items:center; border:1px solid rgba(255,255,255,.22); border-radius:50%; background:transparent; color:#fff; font-size:1.2rem; cursor:pointer; }
.imd-story-viewer__audience-panel>p { margin:0; color:rgba(255,255,255,.68); font-size:.72rem; }
.imd-story-viewer__audience-panel>ul { display:grid; max-height:220px; overflow:auto; padding:0; margin:0; list-style:none; scrollbar-width:thin; }
.imd-story-viewer__audience-panel li { border-top:1px solid rgba(255,255,255,.1); }
.imd-story-viewer__audience-panel li:first-child { border-top:0; }
.imd-story-viewer__audience-panel li>:is(a,div) { display:flex; align-items:center; gap:10px; padding:8px 2px; color:#fff!important; text-decoration:none; }
.imd-story-viewer__audience-panel li>:is(a,div)>span:first-child { display:grid; width:36px; height:36px; flex:0 0 36px; place-items:center; overflow:hidden; border-radius:50%; background:rgba(255,255,255,.1); }
.imd-story-viewer__audience-panel li img { width:100%; height:100%; object-fit:cover; }
.imd-story-viewer__audience-panel li>:is(a,div)>span:last-child { display:grid; min-width:0; }
.imd-story-viewer__audience-panel li strong { overflow:hidden; font-size:.76rem; text-overflow:ellipsis; white-space:nowrap; }
.imd-story-viewer__audience-panel li small { color:rgba(255,255,255,.6); font-size:.65rem; }
.imd-story-viewer__track-meta { display:grid; gap:1px; min-width:0; }
.imd-story-viewer__track-meta strong { overflow:hidden; color:#fff; font-size:.8rem; text-overflow:ellipsis; white-space:nowrap; }
.imd-story-viewer__track-meta small { overflow:hidden; color:rgba(255,255,255,.66); font-size:.69rem; text-overflow:ellipsis; white-space:nowrap; }
.imd-story-viewer__rail {
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:8px;
	margin-top:13px;
}
.imd-story-viewer__rail>button {
	display:flex;
	min-width:0;
	min-height:54px;
	align-items:center;
	gap:9px;
	padding:7px 9px;
	border:1px solid rgba(255,255,255,.16);
	border-radius:14px;
	background:rgba(255,255,255,.07);
	color:#fff;
	text-align:left;
	cursor:pointer;
}
.imd-story-viewer__rail>button:last-child { justify-content:flex-end; text-align:right; }
.imd-story-viewer__rail>button:disabled { opacity:.28; cursor:default; }
.imd-story-viewer__rail>button>span:not(.imd-story-viewer__peek) { display:grid; min-width:0; flex:1; }
.imd-story-viewer__rail small { color:rgba(255,255,255,.58); font-size:.61rem; font-weight:750; text-transform:uppercase; }
.imd-story-viewer__rail strong { overflow:hidden; color:#fff; font-size:.72rem; text-overflow:ellipsis; white-space:nowrap; }
.imd-story-viewer__arrow {
	display:grid;
	width:30px;
	height:30px;
	flex:0 0 30px;
	place-items:center;
	border-radius:50%;
	background:#fff;
	color:#16191c;
	font-size:1.7rem;
	font-style:normal;
	font-weight:500;
	line-height:1;
}
.imd-story-viewer__peek {
	display:grid;
	width:38px;
	height:38px;
	flex:0 0 38px;
	place-items:center;
	overflow:hidden;
	border-radius:10px;
	background:rgba(255,255,255,.1);
}
.imd-story-viewer__peek.is-empty::before { content:'•'; color:rgba(255,255,255,.55); }
.imd-story-viewer__peek>img { width:100%; height:100%; object-fit:cover; }
.imd-story-viewer :is(button,a,audio,video):focus-visible { outline:3px solid #fff; outline-offset:2px; }

@media(hover:hover) {
	.imd-stories__filters>button:not(.is-active):hover { color:var(--ia-ink); background:rgba(215,42,43,.07); }
	.imd-story-viewer :is(.imd-story-viewer__pause,.imd-story-viewer__delete):not(:disabled):hover,.imd-story-viewer__rail>button:not(:disabled):hover { border-color:rgba(255,255,255,.42); background:rgba(255,255,255,.13); }
}
@media(max-width:600px) {
	.imd-stories__toolbar { align-items:stretch; flex-direction:column; }
	.imd-stories__filters { display:grid; grid-template-columns:1fr 1fr; width:100%; }
	.imd-stories__filters>button { padding-inline:8px; }
	.imd-stories__feedback { text-align:center; }
	.imd-story-viewer { padding:0; place-items:stretch; }
	.imd-story-viewer>button { top:9px; right:9px; width:40px; height:40px; }
	.imd-story-viewer>.imd-story-viewer__card {
		width:100%;
		max-height:100vh;
		max-height:100dvh;
		padding:14px 12px calc(14px + env(safe-area-inset-bottom));
		border:0;
		border-radius:0;
	}
	.imd-story-viewer__progress { padding-right:43px; }
	.imd-story-viewer__media>:is(img,video) { max-height:56vh; max-height:56dvh; }
	.imd-story-viewer__media>video { min-height:190px; }
	.imd-story-viewer__rail>button { min-height:50px; padding:6px; }
	.imd-story-viewer__peek { width:34px; height:34px; flex-basis:34px; }
	.imd-story-viewer__arrow { display:none; }
}

:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-stories__filters { background:#151a1e; }
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-stories__feedback { color:#8ee3a6; }
:is(html[data-theme="dark"],html[data-imd-color-scheme="dark"],html.inmudescuentos-site-dark,html.imh-site-dark,body.dark-mode,body.imd-dark-mode) .imd-story-avatar__visual>em { border-color:#1d2429; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__segment::before { background:rgba(22,25,28,.5); }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__segment>span { background:var(--ia-red); }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__segment:focus-visible { outline-color:#b81214; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__card>header small { color:#687178; }
.imd-story-viewer[data-story-format="details"] :is(.imd-story-viewer__pause,.imd-story-viewer__delete) { border-color:rgba(215,42,43,.36); color:#b81214; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__feedback { background:rgba(215,42,43,.08); color:#7e1112; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__audience-toggle { border-color:rgba(22,25,28,.14); background:rgba(22,25,28,.045); color:#16191c; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__audience-panel { border-color:rgba(22,25,28,.14); background:#fff; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__audience-panel h3,
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__audience-panel li>:is(a,div) { color:#16191c!important; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__audience-panel>div>button { border-color:rgba(22,25,28,.18); color:#16191c; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__audience-panel>p,
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__audience-panel li small { color:#687178; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__audience-panel li { border-color:rgba(22,25,28,.1); }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__arrow { background:#b81214; color:#fff; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__track-meta strong { color:#16191c; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__track-meta small { color:#687178; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__rail>button { border-color:rgba(22,25,28,.14); background:rgba(22,25,28,.045); color:#16191c; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__rail small { color:#687178; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__rail strong { color:#16191c; }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__peek { background:rgba(22,25,28,.08); }
.imd-story-viewer[data-story-format="details"] .imd-story-viewer__peek.is-empty::before { color:#687178; }
.imd-story-viewer[data-story-format="details"] :is(button,a,audio,video):focus-visible { outline-color:#b81214; }

@media(prefers-reduced-motion:reduce) {
	.imd-story-viewer__segment>span { transition:none!important; }
	.imd-story-property-preview__slide.is-entering>img,
	.imd-story-viewer [data-imd-story-image].is-entering { animation:none!important; }
}
