.eventos-section:has(.mg-heading){background:radial-gradient(ellipse at bottom left,#e6f3e9 0,transparent 35%),#f7fafc;padding:64px 0;position:relative}
.mg-heading{padding-right:120px;margin-bottom:28px}.mg-heading:before{content:"";display:block;width:44px;height:3px;background:#53bd54;margin-bottom:14px}.mg-heading h2{font-size:clamp(1.6rem,3vw,2rem);font-weight:800;color:#092e59;margin:0 0 8px}.mg-heading h2 span{color:#50b851}.mg-heading p{color:#647491;font-size:.95rem;line-height:1.6;margin:0}
.mg-carousel{position:relative}.mg-track{display:flex;align-items:stretch;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 22px;scrollbar-width:thin;scrollbar-color:#c9d3df transparent}.mg-event-card{--accent:#56bd52;box-sizing:border-box;background:#fff;border-radius:14px;border:1px solid #edf0f5;border-bottom:3px solid var(--accent);overflow:hidden;color:#0b315c;min-width:0;box-shadow:0 10px 24px #102f5010;scroll-margin-top:130px}.mg-event-card:nth-child(3n+2){--accent:#17b5d0}.mg-event-card:nth-child(3n){--accent:#873dff}.mg-track>.mg-event-card{flex:0 0 calc((100% - 48px)/3);scroll-snap-align:start;display:flex;flex-direction:column}
.mg-event-media{position:relative;aspect-ratio:16/9;background:#ecf1f5;overflow:hidden;flex-shrink:0}.mg-event-media:after{content:"";position:absolute;bottom:0;right:0;width:46px;height:46px;background:var(--accent);clip-path:polygon(100% 0,100% 100%,0 100%);pointer-events:none}.mg-event-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.mg-date-overlay{position:absolute;top:12px;left:12px;display:flex;align-items:center;gap:9px;padding:7px 11px;background:#fffffff5;border-radius:9px;box-shadow:0 3px 10px #102f501a;color:#12385f}.mg-date-overlay>span{font-size:24px;line-height:1}.mg-date-overlay strong,.mg-date-overlay small{display:block;line-height:1.2}.mg-date-overlay strong{font-size:.86rem}.mg-date-overlay small{font-size:.65rem;margin-top:2px;letter-spacing:.03em}
.mg-event-body{padding:20px 22px;display:flex;flex-direction:column;gap:13px;flex:1}.mg-event-body h3{font-size:1.06rem;font-weight:750;line-height:1.35;color:#0b315c;margin:0;overflow-wrap:anywhere}.mg-track .mg-event-body h3{min-height:2.7em}.mg-event-body p{margin:0}.mg-badge{align-self:flex-start;background:#e3f3dc;color:#285d38;padding:4px 10px;border-radius:20px;font-weight:650;font-size:.72rem;line-height:1.2}.mg-past{background:#eee8fa;color:#64438a}.mg-date,.mg-location{font-size:.82rem;line-height:1.5;color:#536888;overflow-wrap:anywhere}.mg-date>span,.mg-location>span{color:#123c65;font-size:18px;margin-right:7px}.mg-description{white-space:pre-line;overflow-wrap:anywhere;line-height:1.7;color:#536888;font-size:.94rem}.mg-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:5px}.mg-actions:empty{display:none}.mg-actions a{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;border:1px solid #873dff;border-radius:24px;padding:8px 17px;color:#7635db;text-decoration:none;font-size:.85rem;font-weight:600;line-height:1.3}.mg-actions .mg-register{background:#083863;border-color:#083863;color:white}.mg-actions a:hover{filter:brightness(.9)}
.mg-controls{position:absolute;right:0;top:-72px;display:flex;gap:10px}.mg-controls[hidden]{display:none}.mg-controls button{width:44px;height:44px;border-radius:50%;border:1px solid #d4deea;background:#fff;color:#365473;font-size:27px;line-height:1;box-shadow:0 2px 3px #1234560a}.mg-controls button:disabled{opacity:.35}.mg-track:focus-visible,.mg-actions a:focus-visible,.mg-controls button:focus-visible{outline:3px solid #873dff;outline-offset:3px}
.mg-list{display:grid;gap:24px;margin:24px 0 48px}.mg-list .mg-event-card{display:grid;grid-template-columns:320px minmax(0,1fr)}.mg-list .mg-event-media{align-self:start}.mg-group-title{color:#0b315c;font-size:1.5rem;font-weight:750}.mg-list .mg-actions{margin-top:0}
@media(max-width:991px){.mg-track>.mg-event-card{flex-basis:calc((100% - 24px)/2)}.mg-list .mg-event-card{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:600px){.eventos-section:has(.mg-heading){padding:36px 0}.mg-heading{padding-right:0;margin-bottom:18px}.mg-heading p{font-size:.88rem}.mg-track{gap:16px;padding-bottom:16px}.mg-track>.mg-event-card{flex-basis:92%}.mg-event-body{padding:18px;gap:12px}.mg-event-body h3{font-size:1rem}.mg-track .mg-event-body h3{min-height:0}.mg-controls{position:static;justify-content:flex-end;margin-top:6px}.mg-list .mg-event-card{grid-template-columns:1fr}.mg-date,.mg-location{font-size:.82rem}.mg-list{gap:20px}.mg-event-media{width:100%}}
@media(prefers-reduced-motion:reduce){.mg-track{scroll-behavior:auto}}
.mg-actions a,.mg-controls button{box-sizing:border-box}

/* Flechas y gesto táctil sin barra visible. */
.mg-track{scrollbar-width:none;-ms-overflow-style:none}.mg-track::-webkit-scrollbar{display:none}.mg-track.mg-animating{scroll-snap-type:none;scroll-behavior:auto}.mg-event-card:target{outline:3px solid #56bd52;outline-offset:3px}
