.smv-ec-front{--blue:#2560AB;--blue-dark:#16447E;--light:#D5E9FF;--panel:#F6F6F6;--line:#DBDBDB;font-family:Roboto,Arial,sans-serif;color:#173c72}.smv-ec-front *{box-sizing:border-box}.smv-ec-featured{display:grid;grid-template-columns:44% 56%;min-height:330px;margin-bottom:34px;border:1px solid var(--line);background:#fff;cursor:pointer}.smv-ec-featured-image{background:var(--panel);overflow:hidden;display:flex;align-items:center;justify-content:center}.smv-ec-featured-image img{width:100%;height:100%;min-height:330px;object-fit:cover}.smv-ec-featured-image.is-portrait img{object-fit:contain}.smv-ec-featured-copy{background:var(--blue);color:#fff;padding:32px 34px 22px;display:flex;flex-direction:column;justify-content:center}.smv-ec-featured-date{font-size:12px;font-weight:700;margin-bottom:14px;opacity:.95}.smv-ec-featured-copy h2{font-family:Roboto,Arial,sans-serif;color:#fff;font-size:26px;line-height:1.2;margin:0 0 16px}.smv-ec-featured-text{font-size:15px;line-height:1.55}.smv-ec-featured-more{align-self:flex-end;margin-top:auto;padding-top:18px;color:#fff;font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:3px}.smv-ec-featured:hover .smv-ec-featured-more{text-decoration-thickness:2px}.smv-ec-grid-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.smv-ec-card{border:1px solid var(--line);background:#fff;display:flex;flex-direction:column;min-width:0}.smv-ec-card-open{display:flex;flex-direction:column;flex:1;padding:0;border:0;background:transparent;text-align:left;color:inherit;cursor:pointer;font:inherit}.smv-ec-card-image{height:210px;background:var(--panel);display:flex;align-items:center;justify-content:center;overflow:hidden}.smv-ec-card-image img{width:100%;height:100%;object-fit:cover}.smv-ec-card-image.is-portrait img{object-fit:contain}.smv-ec-card-date{display:block;background:var(--blue);color:#fff;font-size:11px;font-weight:700;padding:6px 9px}.smv-ec-card-title{display:block;padding:16px 16px 8px;font-size:18px;font-weight:700;line-height:1.25;color:#1c2b3b}.smv-ec-card-excerpt{display:block;padding:0 16px 8px;font-size:14px;line-height:1.45;color:#333}.smv-ec-card-more{display:block;margin-top:auto;padding:5px 16px 14px;text-align:right;color:var(--blue);font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}.smv-ec-card:hover .smv-ec-card-more{text-decoration-thickness:2px}.smv-ec-no-image{display:flex;align-items:center;justify-content:center;min-height:180px;width:100%;background:var(--panel);color:#95a1ae;font-size:34px;font-weight:700}.smv-ec-pagination{margin-top:34px}.smv-ec-pagination ul{display:flex;list-style:none!important;gap:7px;justify-content:center;padding:0!important;margin:0!important}.smv-ec-pagination li{margin:0!important}.smv-ec-pagination a,.smv-ec-pagination span{display:flex;align-items:center;justify-content:center;min-width:34px;height:34px;border:1px solid var(--blue);padding:0 9px;text-decoration:none;color:var(--blue-dark);font-weight:700}.smv-ec-pagination .current{background:var(--blue);color:#fff}.smv-ec-modal[hidden]{display:none!important}.smv-ec-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:30px}.smv-ec-modal-backdrop{position:absolute;inset:0;background:rgba(10,38,72,.72)}.smv-ec-modal-dialog{position:relative;z-index:1;width:min(980px,94vw);max-height:90vh;overflow:auto;background:#fff;border-radius:10px;box-shadow:0 18px 50px rgba(0,0,0,.3);padding:34px}.smv-ec-modal-close{position:absolute;right:14px;top:14px;width:38px;height:38px;border-radius:50%;background:#fff;border:2px solid var(--blue);color:var(--blue-dark);font-size:28px;line-height:28px;cursor:pointer;z-index:3}.smv-ec-modal-event h2{font-size:28px;line-height:1.2;color:var(--blue-dark);margin:5px 55px 20px 0}.smv-ec-modal-date{color:var(--blue);font-size:12px;font-weight:700}.smv-ec-modal-hero{background:var(--panel);display:flex;justify-content:center;align-items:center;min-height:280px;max-height:500px;overflow:hidden;margin-bottom:22px}.smv-ec-modal-hero img{max-width:100%;width:auto;height:auto;max-height:500px;object-fit:contain}.smv-ec-modal-copy{margin-top:8px;color:#314355;font-size:15px;line-height:1.6}.smv-ec-modal-copy p:last-child{margin-bottom:0}.smv-ec-modal-gallery{margin-top:30px;padding-top:22px;border-top:1px solid var(--line)}.smv-ec-modal-gallery-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:12px}.smv-ec-modal-gallery-head h3{margin:0;color:var(--blue-dark);font-size:20px}.smv-ec-modal-gallery-head span{color:#6d7d8c;font-size:12px}.smv-ec-modal-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.smv-ec-gallery-view{position:relative;height:120px;padding:0;border:1px solid var(--line);background:var(--panel);overflow:hidden;cursor:pointer}.smv-ec-gallery-view img{width:100%;height:100%;object-fit:cover}.smv-ec-gallery-view>span{position:absolute;left:0;right:0;bottom:0;padding:6px 8px;background:rgba(22,68,126,.88);color:#fff;font-size:11px;font-weight:700;transform:translateY(100%);transition:transform .18s ease}.smv-ec-gallery-view:hover>span,.smv-ec-gallery-view:focus>span{transform:translateY(0)}.smv-ec-inline-viewer[hidden]{display:none!important}.smv-ec-inline-viewer{position:fixed;inset:0;z-index:1000002;background:rgba(8,25,48,.92);display:flex;align-items:center;justify-content:center;padding:55px 70px}.smv-ec-inline-viewer img{display:block;max-width:min(1100px,88vw);max-height:84vh;width:auto;height:auto;object-fit:contain;box-shadow:0 10px 36px rgba(0,0,0,.4)}.smv-ec-inline-close,.smv-ec-inline-prev,.smv-ec-inline-next{position:absolute;border:0;background:#fff;color:var(--blue-dark);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 14px rgba(0,0,0,.25)}.smv-ec-inline-close{right:24px;top:20px;width:42px;height:42px;border-radius:50%;font-size:30px}.smv-ec-inline-prev,.smv-ec-inline-next{top:50%;transform:translateY(-50%);width:44px;height:56px;font-size:34px}.smv-ec-inline-prev{left:18px}.smv-ec-inline-next{right:18px}body.smv-ec-modal-open{overflow:hidden}@media(max-width:900px){.smv-ec-featured{grid-template-columns:1fr}.smv-ec-featured-image img{min-height:280px;max-height:420px}.smv-ec-grid-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.smv-ec-modal-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:620px){.smv-ec-grid-cards{grid-template-columns:1fr}.smv-ec-featured-copy{padding:24px 20px 18px}.smv-ec-featured-copy h2{font-size:23px}.smv-ec-modal{padding:12px}.smv-ec-modal-dialog{width:100%;padding:24px 16px}.smv-ec-modal-event h2{font-size:23px}.smv-ec-card-image{height:220px}.smv-ec-modal-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.smv-ec-gallery-view{height:105px}.smv-ec-inline-viewer{padding:55px 44px}.smv-ec-inline-prev{left:4px}.smv-ec-inline-next{right:4px}}

/* v1.2.0: franja institucional + sección superior desde SMV Calendario */
.smv-ec-front{background:#fff;border:1px solid #cdd5df;max-width:100%;}
.smv-ec-front .smv-ec-page-header{background:#2560AB;color:#fff;padding:14px 23px;min-height:53px;display:flex;align-items:center;}
.smv-ec-front .smv-ec-page-header h2{margin:0!important;color:#fff!important;font:700 22px/1.25 Roboto,Arial,sans-serif!important;letter-spacing:.02em;}
.smv-ec-page-content{padding:25px 24px 30px;}
.smv-ec-section-title{font:700 16px/1.3 Roboto,Arial,sans-serif!important;color:#16447E!important;letter-spacing:.02em;border-left:4px solid #2560AB;padding:3px 0 3px 10px;margin:0 0 18px!important;}
.smv-ec-upcoming{margin:0 0 32px;}
.smv-ec-upcoming-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.smv-ec-upcoming-item{width:100%;display:flex;align-items:flex-start;gap:11px;text-align:left;background:#f9fbfd;border:1px solid #d7e0ea;border-radius:3px;padding:13px 12px;color:#173c72;cursor:pointer;font-family:Roboto,Arial,sans-serif;min-width:0;transition:background .2s,border-color .2s,box-shadow .2s;}
.smv-ec-upcoming-item:hover,.smv-ec-upcoming-item:focus-visible{background:#edf5fd;border-color:#2560AB;box-shadow:0 3px 12px rgba(20,65,120,.1);outline-offset:2px;}
.smv-ec-upcoming-date{display:flex;flex:0 0 46px;flex-direction:column;align-items:center;justify-content:center;border:1px solid #2560AB;background:#fff;line-height:1.1;}
.smv-ec-upcoming-date b{background:#2560AB;color:white;display:block;width:100%;text-align:center;font-size:13px;padding:4px 2px;text-transform:capitalize;}
.smv-ec-upcoming-date strong{font-size:20px;color:#16447E;padding:4px 2px;}
.smv-ec-upcoming-text{min-width:0;display:flex;flex-direction:column;gap:5px;}
.smv-ec-upcoming-text>strong{font-size:14px;line-height:1.3;color:#16447E;}
.smv-ec-upcoming-text small{font-size:12px;line-height:1.35;color:#3f4e62;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
.smv-ec-upcoming-time{font-size:12px;color:#2560AB;font-weight:700;}
.smv-ec-upcoming-empty{font-size:14px;color:#5b6c7f;margin:0;padding:14px;border:1px solid #e0e6ed;background:#f8fafc;}
.smv-ec-past-heading{margin-bottom:20px!important;}
.smv-ec-upcoming-modal[hidden]{display:none!important;}
.smv-ec-upcoming-modal{position:fixed;inset:0;z-index:1000001;display:flex;align-items:center;justify-content:center;padding:20px;}
.smv-ec-upcoming-shade{position:absolute;inset:0;background:rgba(7,33,66,.73);}
.smv-ec-upcoming-dialog{position:relative;z-index:1;width:min(680px,95vw);max-height:90vh;overflow-y:auto;background:#fff;color:#23384e;border-radius:7px;padding:34px;box-shadow:0 18px 55px rgba(0,0,0,.28);}
.smv-ec-upcoming-dialog h3{margin:0 32px 12px 0;color:#16447E;font-size:23px;}
.smv-ec-upcoming-dialog p{font-size:14px;line-height:1.6;white-space:pre-line;}
.smv-ec-upcoming-dialog .smv-ec-upcoming-detail-date{font-weight:700;color:#2560AB;}
.smv-ec-upcoming-dialog .smv-ec-upcoming-note{border-left:4px solid #2560AB;background:#edf4fc;padding:12px;margin-top:20px;}
.smv-ec-upcoming-dialog a{color:#2560AB;text-decoration:underline;}
.smv-ec-upcoming-close{position:absolute;top:9px;right:10px;border:0;background:transparent;color:#16447E;font-size:29px;cursor:pointer;padding:5px 12px;}
@media(max-width:900px){.smv-ec-upcoming-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){.smv-ec-page-content{padding:17px 13px 24px;}.smv-ec-front .smv-ec-page-header{padding:13px 16px;}.smv-ec-front .smv-ec-page-header h2{font-size:19px!important;}.smv-ec-upcoming-grid{grid-template-columns:1fr;}.smv-ec-upcoming-dialog{padding:25px 18px;}}
