/* Componente compartido: la superficie decide la ubicación y la creatividad decide inline o modal. */
.erp-promotion{box-sizing:border-box;min-width:0;overflow:hidden;border:1px solid #d7e5df;border-radius:18px;background:#fff;box-shadow:0 14px 34px rgba(15,48,40,.1);color:#173a31}
.erp-promotion--landing,.erp-promotion--planes{width:min(100%,980px);margin-inline:auto}
.erp-promotion--landing{margin-bottom:24px}.erp-promotion--dashboard_anunciante{margin-bottom:18px}.erp-promotion--planes{margin-bottom:34px}
.erp-promotion--plantilla{display:grid;grid-template-columns:minmax(190px,.62fr) minmax(0,1.38fr)}
.erp-promotion-media{display:grid;place-items:center;min-height:184px;overflow:hidden;background:linear-gradient(135deg,#0f3b31,#1db982)}
.erp-promotion-banner-link{width:100%;height:100%;display:grid;place-items:center;color:inherit;text-decoration:none}
.erp-promotion--plantilla .erp-promotion-banner-link{pointer-events:none}
.erp-promotion--plantilla .erp-promotion-media img{width:100%;height:100%;object-fit:cover}
.erp-promotion-mark{display:grid;place-items:center;width:64px;height:64px;border:1px solid rgba(255,255,255,.4);border-radius:18px;background:rgba(255,255,255,.14);color:#fff;font-size:2rem}
.erp-promotion-content{display:grid;align-content:center;justify-items:start;gap:.5rem;padding:1.1rem 1.25rem;overflow-wrap:anywhere}
.erp-promotion-content h3,.erp-promotion-content p{margin:0}.erp-promotion-content h3{font-size:1.2rem;line-height:1.15}.erp-promotion-content p{color:#667085;font-size:.78rem;line-height:1.5}
.erp-promotion-kicker{color:#027a48;font-size:.62rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.erp-promotion-type{padding:.25rem .55rem;border-radius:999px;background:#eaf6f1;color:#027a48;font-size:.66rem;font-weight:900;text-transform:uppercase}
.erp-promotion-benefit{color:#027a48;font-size:1.3rem}.erp-promotion-limit{color:#667085;font-size:.72rem;font-weight:800}
.erp-promotion-cta{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:.45rem .9rem;border-radius:11px;background:#039855;color:#fff;font-size:.78rem;font-weight:800;text-decoration:none}
.erp-promotion-cta:hover{background:#027a48}.erp-promotion-cta:focus-visible{outline:3px solid #12b76a;outline-offset:2px}
.erp-promotion--template-fundadores{border-color:#e1c56a;background:#fffdf5}.erp-promotion--template-beneficio{border-color:#9dccec;background:#f5fbff}
/* Base compacta compartida por todas las plantillas integradas. */
:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes).erp-promotion--plantilla{width:100%;max-width:none;height:196px;grid-template-columns:minmax(0,34%) minmax(0,66%)}
:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes).erp-promotion--plantilla:has(.erp-promotion-media img[hidden]){grid-template-columns:minmax(140px,24%) minmax(0,76%)}
:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes).erp-promotion--plantilla .erp-promotion-media{height:100%;min-height:0}
:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes).erp-promotion--plantilla .erp-promotion-content{height:100%;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"kicker kicker type" "title title title" "benefit copy cta" "limit copy cta";align-content:center;align-items:center;gap:.3rem .7rem;padding:24px 26px}
:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes) .erp-promotion-kicker{grid-area:kicker}:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes) .erp-promotion-type{grid-area:type;justify-self:end}:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes) .erp-promotion-content h3{grid-area:title;display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes) .erp-promotion-benefit{grid-area:benefit;white-space:nowrap}:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes) .erp-promotion-content>p:not(.erp-promotion-kicker){grid-area:copy;display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes) .erp-promotion-limit{grid-area:limit;white-space:nowrap}:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes) .erp-promotion-cta{grid-area:cta;white-space:nowrap}
.erp-promotion--banner{display:block;margin:0;border:0;border-radius:16px;background:#102f28;box-shadow:none}
.erp-promotion--banner .erp-promotion-media{min-height:0;background:#102f28}.erp-promotion--banner .erp-promotion-banner-link{display:block;height:auto}
.erp-promotion--banner img{display:block;width:100%;height:auto;object-fit:contain}.erp-promotion--banner .erp-promotion-mark{margin:2rem auto}
/* Only the editable preview retains template controls while displaying a banner. */
.erp-promotion--banner [data-erp-content][hidden]{display:none}
.erp-promotion--banner .erp-promotion-banner-link:focus-visible{outline:4px solid #12b76a;outline-offset:-4px}
.erp-popup-shell[hidden]{display:none}.erp-popup-shell{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:20px}
.erp-popup-overlay{position:absolute;inset:0;background:rgba(10,25,21,.62);backdrop-filter:blur(3px)}
.erp-popup-dialog{position:relative;z-index:1;width:min(900px,90vw);max-height:90vh;overflow:auto;border:1px solid rgba(255,255,255,.3);border-radius:20px;background:#102f28;box-shadow:0 30px 90px rgba(0,0,0,.35)}
.erp-popup-dialog:has(>.erp-promotion--banner){width:fit-content;max-width:min(900px,90vw)}
.erp-popup-dialog .erp-promotion--banner img{width:auto;max-width:100%;max-height:calc(90vh - 2px)}
.erp-popup-close{position:absolute;z-index:3;top:10px;right:10px;display:inline-flex;align-items:center;gap:.3rem;min-height:38px;padding:.45rem .7rem;border:1px solid rgba(15,47,40,.18);border-radius:999px;background:rgba(255,255,255,.94);color:#173a31;font:inherit;font-size:.75rem;font-weight:900;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.14)}
.erp-popup-close:focus-visible{outline:3px solid #12b76a;outline-offset:2px}.erp-popup-open{overflow:hidden}
.erp-sr-only{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}
@media(max-width:640px){.erp-promotion--plantilla{grid-template-columns:1fr}.erp-promotion--plantilla .erp-promotion-media{min-height:0;aspect-ratio:16/8}.erp-popup-shell{padding:10px}.erp-popup-dialog{width:min(900px,94vw);max-height:94vh;border-radius:15px}.erp-popup-close span{display:none}}
@media(max-width:640px){.erp-popup-dialog:has(>.erp-promotion--banner){max-width:min(900px,94vw)}.erp-popup-dialog .erp-promotion--banner img{max-height:calc(94vh - 2px)}}
@media(max-width:640px){:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes).erp-promotion--plantilla,:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes).erp-promotion--plantilla:has(.erp-promotion-media img[hidden]){height:auto;grid-template-columns:1fr}:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes).erp-promotion--plantilla .erp-promotion-media{height:136px;aspect-ratio:auto}:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes).erp-promotion--plantilla:has(.erp-promotion-media img[hidden]) .erp-promotion-media{height:96px}:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes).erp-promotion--plantilla .erp-promotion-content{height:auto;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"kicker type" "title title" "benefit benefit" "copy copy" "limit limit" "cta cta";padding:20px;gap:.45rem .6rem}:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes) .erp-promotion-type{justify-self:end}:is(.erp-promotion--landing,.erp-promotion--dashboard_anunciante,.erp-promotion--planes) .erp-promotion-cta{justify-self:start}}
