.cp-community-story-modal-open{overflow:hidden}
.cp-community-stories{position:relative;min-width:0;padding:14px 14px 13px;border:1px solid #d7e5dc;border-radius:17px;background:#fff;box-shadow:0 7px 22px rgba(27,58,43,.045)}
.cp-community-stories__heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin:0 1px 10px}.cp-community-stories__heading>div{display:grid;gap:1px}.cp-community-stories__heading span{color:#07883d;font-size:8px;font-weight:900;letter-spacing:.13em}.cp-community-stories__heading strong{color:#183228;font-size:14px;line-height:1.2}.cp-community-stories__heading>small{color:#73837a;font-size:9px}
.cp-community-stories__rail{display:flex;gap:8px;max-width:100%;padding:1px 1px 7px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-color:#b7d6c3 transparent;scrollbar-width:thin}.cp-community-stories__rail::-webkit-scrollbar{height:5px}.cp-community-stories__rail::-webkit-scrollbar-thumb{border-radius:99px;background:#b7d6c3}
.cp-community-story{position:relative;flex:0 0 112px;width:112px;height:158px;scroll-snap-align:start}.cp-community-story>button{position:relative;display:block;width:100%;height:100%;padding:0;overflow:hidden;border:2px solid #0ca34f!important;border-radius:14px!important;background:#17372a!important;color:#fff!important;box-shadow:none!important;cursor:pointer}.cp-community-story.is-seen>button{border-color:#c8d5ce!important}.cp-community-story>button:focus-visible{outline:3px solid rgba(9,145,70,.25)!important;outline-offset:2px}
.cp-community-story__media,.cp-community-story__media img,.cp-community-story__media video{position:absolute;inset:0;display:block;width:100%!important;height:100%!important}.cp-community-story__media img,.cp-community-story__media video{object-fit:cover}.cp-community-story__shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.03) 30%,rgba(3,18,10,.8) 100%)}.cp-community-story__avatar{position:absolute;left:9px;top:9px;width:31px!important;height:31px!important;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 2px #14b45c;object-fit:cover}.cp-community-story.is-seen .cp-community-story__avatar{box-shadow:0 0 0 2px #aebcb5}.cp-community-story>button>strong{position:absolute;right:8px;bottom:23px;left:8px;overflow:hidden;color:#fff;font-size:10px;font-weight:900;line-height:1.15;text-align:left;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 5px rgba(0,0,0,.45)}.cp-community-story>button>small{position:absolute;right:8px;bottom:8px;left:8px;overflow:hidden;color:#eef8f2;font-size:7px;font-weight:700;line-height:1.15;text-align:left;text-overflow:ellipsis;white-space:nowrap}.cp-community-story__video{position:absolute;right:8px;top:10px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:rgba(0,0,0,.52);color:#fff;font-size:9px;font-style:normal}
.cp-community-story--create>button{border:1px solid #d4dfd9!important;background:#202522!important}.cp-community-story--create .cp-community-story__media{bottom:48px;height:auto!important;overflow:hidden;background:#e8f3ed}.cp-community-story--create .cp-community-story__media:after{position:absolute;inset:auto 0 0;height:18px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.18));content:""}.cp-community-story--create .cp-community-story__media img{object-fit:cover;object-position:center}.cp-community-story--create>button>i{position:absolute;z-index:2;left:50%;bottom:33px;display:grid;place-items:center;width:30px;height:30px;border:3px solid #202522;border-radius:50%;background:#078ff0;color:#fff;font-size:22px;font-style:normal;line-height:1;box-shadow:0 0 0 2px #fff;transform:translateX(-50%)}.cp-community-story--create>button>strong{right:5px;bottom:19px;left:5px;color:#fff;font-size:10px;text-align:center;text-shadow:none}.cp-community-story--create>button>small{right:5px;bottom:6px;left:5px;color:#c7d0cb;font-size:7px;text-align:center}
.cp-community-stories__scroll{position:absolute;z-index:5;top:101px;display:grid;place-items:center;width:36px;height:36px;margin-top:-18px;padding:0;border:1px solid #d7e4dc!important;border-radius:50%!important;background:#fff!important;color:#174432!important;font-size:27px!important;line-height:1!important;box-shadow:0 5px 16px rgba(14,48,32,.18)!important;cursor:pointer}.cp-community-stories__scroll[hidden]{display:none}.cp-community-stories__scroll--previous{left:7px}.cp-community-stories__scroll--next{right:7px}
.cp-community-story-create,.cp-community-story-viewer{padding:0;border:0;border-radius:20px;background:#fff;box-shadow:0 30px 100px rgba(1,25,14,.42)}.cp-community-story-create::backdrop,.cp-community-story-viewer::backdrop{background:rgba(3,22,13,.78);backdrop-filter:blur(3px)}
#cp-community dialog.cp-community-story-create[open],#cp-community dialog.cp-community-story-viewer[open]{position:fixed!important;right:auto!important;bottom:auto!important;left:50%!important;top:50%!important;margin:0!important;transform:translate(-50%,-50%)!important}
.cp-community-story-create{width:min(520px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:auto;color:#173228}.cp-community-story-create>form>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:19px 20px 15px;border-bottom:1px solid #e2ece6}.cp-community-story-create>form>header span{color:#07883d;font-size:8px;font-weight:900;letter-spacing:.14em}.cp-community-story-create>form>header h2{margin:3px 0 0;font-size:20px;line-height:1.2}.cp-community-story-create>form>header button,.cp-community-story-viewer header button{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:0!important;border-radius:50%!important;background:#eef5f1!important;color:#173228!important;font-size:22px!important;cursor:pointer}
.cp-community-story-create__drop{display:grid;justify-items:center;gap:7px;margin:18px 20px 12px;padding:25px 16px;border:1px dashed #8fc3a5;border-radius:14px;background:#f4faf6;text-align:center;cursor:pointer}.cp-community-story-create__drop input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.cp-community-story-create__drop>span{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#dff4e7;color:#07883d}.cp-community-story-create__drop svg{width:24px!important;height:24px!important}.cp-community-story-create__drop strong{font-size:13px}.cp-community-story-create__drop small{max-width:350px;color:#6d7f75;font-size:9px;line-height:1.45}
.cp-community-story-create__preview{height:250px;margin:0 20px 13px;overflow:hidden;border-radius:14px;background:#11241b}.cp-community-story-create__preview[hidden]{display:none}.cp-community-story-create__preview img,.cp-community-story-create__preview video{display:block;width:100%!important;height:100%!important;object-fit:contain}.cp-community-story-create>form>label:not(.cp-community-story-create__drop){display:grid;gap:5px;margin:0 20px 13px}.cp-community-story-create>form>label>span{font-size:10px;font-weight:900}.cp-community-story-create>form>label input[type=text]{min-height:42px;padding:0 12px;border:1px solid #ceded5;border-radius:10px;font:inherit;font-size:12px}.cp-community-story-create__policy,.cp-community-story-create__status{margin:0 20px 13px;padding:10px 12px;border-radius:10px;background:#f1f7f3;color:#5f7267;font-size:9px;line-height:1.45}.cp-community-story-create__status{background:#eaf7ef;color:#08723b;font-weight:800}.cp-community-story-create__status.is-error{background:#fff0ed;color:#a23c31}.cp-community-story-create__status[hidden]{display:none}.cp-community-story-create>form>footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px 19px;border-top:1px solid #e2ece6}.cp-community-story-create>form>footer button{min-height:40px;padding:0 15px;border:1px solid #bed5c8!important;border-radius:10px!important;background:#fff!important;color:#53675c!important;font-size:10px!important;font-weight:900!important;cursor:pointer}.cp-community-story-create>form>footer button[type=submit]{border-color:#098d47!important;background:#098d47!important;color:#fff!important}.cp-community-story-create>form>footer button:disabled{opacity:.58;cursor:wait}
.cp-community-story-viewer{position:fixed;width:min(430px,calc(100vw - 24px));height:min(760px,calc(100vh - 24px));max-height:none;overflow:hidden;background:#06130d;color:#fff}.cp-community-story-viewer__progress{position:absolute;z-index:5;right:12px;top:10px;left:12px;height:3px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.35)}.cp-community-story-viewer__progress span{display:block;width:0;height:100%;border-radius:inherit;background:#fff}.cp-community-story-viewer>header{position:absolute;z-index:4;right:13px;top:20px;left:13px;display:flex;align-items:center;gap:9px;padding-top:5px}.cp-community-story-viewer>header>img{width:38px!important;height:38px!important;border:2px solid #fff;border-radius:50%;object-fit:cover}.cp-community-story-viewer>header>div{min-width:0;flex:1}.cp-community-story-viewer>header strong,.cp-community-story-viewer>header small{display:block;overflow:hidden;color:#fff;text-overflow:ellipsis;white-space:nowrap}.cp-community-story-viewer>header strong{font-size:11px}.cp-community-story-viewer>header small{margin-top:1px;color:rgba(255,255,255,.74);font-size:8px}.cp-community-story-viewer>header button{flex-basis:31px;width:31px;height:31px;background:rgba(0,0,0,.45)!important;color:#fff!important}.cp-community-story-viewer__stage{position:absolute;inset:0;display:grid;place-items:center}.cp-community-story-viewer__stage img,.cp-community-story-viewer__stage video{display:block;width:100%!important;height:100%!important;object-fit:contain}.cp-community-story-viewer>p{position:absolute;z-index:4;right:24px;bottom:60px;left:24px;margin:0;padding:10px 12px;border-radius:10px;background:rgba(0,0,0,.5);color:#fff;font-size:11px;line-height:1.35;text-align:center}.cp-community-story-viewer>p[hidden]{display:none}.cp-community-story-viewer__previous,.cp-community-story-viewer__next{position:absolute;z-index:4;top:50%;display:grid;place-items:center;width:36px;height:50px;margin-top:-25px;padding:0;border:0!important;border-radius:9px!important;background:rgba(0,0,0,.38)!important;color:#fff!important;font-size:34px!important;line-height:1!important;cursor:pointer}.cp-community-story-viewer__previous{left:9px}.cp-community-story-viewer__next{right:9px}.cp-community-story-viewer>footer{position:absolute;z-index:4;right:13px;bottom:12px;left:13px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:rgba(255,255,255,.72);font-size:8px}.cp-community-story-viewer>footer button{padding:6px 9px;border:1px solid rgba(255,255,255,.55)!important;border-radius:8px!important;background:rgba(0,0,0,.42)!important;color:#fff!important;font-size:8px!important;font-weight:900!important;cursor:pointer}.cp-community-story-viewer>footer button[hidden]{display:none}
@media(max-width:620px){.cp-community-stories{padding:12px 10px 10px;border-radius:14px}.cp-community-stories__heading{margin:0 2px 9px}.cp-community-stories__heading>small{display:none}.cp-community-story{flex-basis:96px;width:96px;height:142px}.cp-community-story__avatar{width:28px!important;height:28px!important}.cp-community-stories__scroll{display:none!important}.cp-community-story-create{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);border-radius:16px}.cp-community-story-create__preview{height:220px}.cp-community-story-viewer{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}#cp-community dialog.cp-community-story-viewer[open]{inset:0!important;margin:0!important;transform:none!important}.cp-community-story-viewer__previous{left:4px}.cp-community-story-viewer__next{right:4px}}
@media(prefers-reduced-motion:reduce){.cp-community-story-viewer__progress span{transition:none!important}}

/* Compatibilidad con los estilos globales del tema de ChilePrevencion. */
#cp-community .cp-community-stories,
#cp-community .cp-community-stories *,
html body #cp-community dialog.cp-community-story-create,
html body #cp-community dialog.cp-community-story-create *,
html body #cp-community dialog.cp-community-story-viewer,
html body #cp-community dialog.cp-community-story-viewer *{box-sizing:border-box}

#cp-community .cp-community-story,
#cp-community .cp-community-story>button{
    min-width:0!important;
    max-width:none!important;
    min-height:0!important;
    margin:0!important;
}

#cp-community .cp-community-story>button{
    padding:0!important;
    line-height:normal!important;
    text-transform:none!important;
    letter-spacing:normal!important;
    appearance:none!important;
}

#cp-community .cp-community-story__media,
#cp-community .cp-community-story__media img,
#cp-community .cp-community-story__media video{
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
}

/* Reserva una franja real para el texto de Crear historia. */
#cp-community .cp-community-story--create .cp-community-story__media{
    top:0!important;
    right:0!important;
    bottom:auto!important;
    left:0!important;
    width:100%!important;
    height:calc(100% - 49px)!important;
}

#cp-community .cp-community-story--create .cp-community-story__media img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
}

#cp-community .cp-community-story--create>button>i,
#cp-community .cp-community-story--create>button>strong,
#cp-community .cp-community-story--create>button>small{z-index:3}

/* El tema posiciona los dialog en 0,0; estas reglas los centran de forma aislada. */
html body #cp-community dialog.cp-community-story-create[open],
html body #cp-community dialog.cp-community-story-viewer[open]{
    position:fixed!important;
    top:50%!important;
    right:auto!important;
    bottom:auto!important;
    left:50%!important;
    float:none!important;
    margin:0!important;
    transform:translate(-50%,-50%)!important;
}

html body #cp-community dialog.cp-community-story-create[open]{
    width:min(520px,calc(100vw - 28px))!important;
    max-width:calc(100vw - 28px)!important;
    max-height:calc(100dvh - 28px)!important;
}

html body #cp-community dialog.cp-community-story-create[open]>form{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
}

html body #cp-community dialog.cp-community-story-create[open] .cp-community-story-create__drop,
html body #cp-community dialog.cp-community-story-create[open]>form>label:not(.cp-community-story-create__drop),
html body #cp-community dialog.cp-community-story-create[open] .cp-community-story-create__policy,
html body #cp-community dialog.cp-community-story-create[open] .cp-community-story-create__status,
html body #cp-community dialog.cp-community-story-create[open] .cp-community-story-create__preview{
    width:auto!important;
    max-width:none!important;
}

html body #cp-community dialog.cp-community-story-create[open] input[type=text]{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
}

html body #cp-community dialog.cp-community-story-create[open] .cp-community-story-create__preview img,
html body #cp-community dialog.cp-community-story-create[open] .cp-community-story-create__preview video,
html body #cp-community dialog.cp-community-story-viewer[open] .cp-community-story-viewer__stage img,
html body #cp-community dialog.cp-community-story-viewer[open] .cp-community-story-viewer__stage video{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
}

html body #cp-community dialog.cp-community-story-viewer[open]{
    width:min(430px,calc(100vw - 24px))!important;
    height:min(760px,calc(100dvh - 24px))!important;
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100dvh - 24px)!important;
}

html body #cp-community dialog.cp-community-story-create[open] button,
html body #cp-community dialog.cp-community-story-viewer[open] button{
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    line-height:normal!important;
    text-transform:none!important;
    letter-spacing:normal!important;
}

html body #cp-community dialog.cp-community-story-create[open]>form>header button{
    flex:0 0 34px!important;
    width:34px!important;
    height:34px!important;
    padding:0!important;
    line-height:1!important;
}

html body #cp-community dialog.cp-community-story-create[open]>form>footer button{
    width:auto!important;
    height:40px!important;
    padding:0 15px!important;
}

html body #cp-community dialog.cp-community-story-viewer[open]>header button{
    flex:0 0 31px!important;
    width:31px!important;
    height:31px!important;
    padding:0!important;
    line-height:1!important;
}

html body #cp-community dialog.cp-community-story-viewer[open]>header>img{
    flex:0 0 38px!important;
    width:38px!important;
    height:38px!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:cover!important;
}

html body #cp-community dialog.cp-community-story-viewer[open]>header button[hidden]{display:none!important}

html body #cp-community dialog.cp-community-story-viewer[open] .cp-community-story-viewer__previous,
html body #cp-community dialog.cp-community-story-viewer[open] .cp-community-story-viewer__next{
    width:36px!important;
    height:50px!important;
    padding:0!important;
    line-height:1!important;
}

html body #cp-community dialog.cp-community-story-viewer[open]>footer button{
    width:auto!important;
    height:auto!important;
    padding:6px 9px!important;
    line-height:normal!important;
}

@media(max-width:620px){
    html body #cp-community dialog.cp-community-story-create[open]{
        top:50%!important;
        left:50%!important;
        width:calc(100vw - 18px)!important;
        max-width:calc(100vw - 18px)!important;
        max-height:calc(100dvh - 18px)!important;
        transform:translate(-50%,-50%)!important;
    }

    html body #cp-community dialog.cp-community-story-viewer[open]{
        top:0!important;
        right:auto!important;
        bottom:auto!important;
        left:0!important;
        width:100vw!important;
        height:100dvh!important;
        max-width:none!important;
        max-height:none!important;
        margin:0!important;
        border-radius:0!important;
        transform:none!important;
    }
}
