.sge-portal { min-height: 100vh; display: flex; flex-direction: column; }
.portal-header { background: var(--bs-body-bg); }
.portal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-block: .875rem; }
.portal-brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.portal-search { flex: 1; }
.portal-banner { min-height: 13rem; display: flex; align-items: end; padding: clamp(1.5rem, 4vw, 3.25rem); color: white; background: linear-gradient(40deg, #db9421ab 5%, #db9421c9 30%, #db942155), url('../../../../galeria/eventos.jpg') center 10% / cover; }
.portal-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.portal-events-featured .portal-event:first-child { grid-row: span 2; }
.portal-event { min-width: 0; overflow: hidden; }
.portal-event-link { display: flex; flex-direction: column; height: 100%; color: var(--bs-body-color); text-decoration: none; }
.portal-event-link:hover h3 { color: var(--bs-link-color); }
.portal-event-link:focus-visible { outline-offset: -3px; }
.portal-art { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); overflow: hidden; }
.portal-art img { width: 100%; height: 100%; min-height: 0; object-fit: cover; grid-area: 1 / 1; }
.portal-art i { font-size: 2.5rem; }
.portal-events-featured .portal-event:first-child .portal-art { flex: 1; aspect-ratio: auto; min-height: 16rem; }
.portal-date { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; min-width: 3rem; color: var(--bs-primary-text-emphasis); line-height: 1.15; }
.portal-date strong { font-size: 1.65rem; }
.portal-date span { font-size: .75rem; text-transform: uppercase; }
.portal-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(1rem, 4vw, 3rem); background: var(--bs-tertiary-bg); }
.portal-detail .portal-art { aspect-ratio: 1 / 1; border-radius: .5rem; }
.portal-detail .portal-art img { object-fit: contain; background: var(--bs-body-bg); }
.portal-detail-summary { align-self: center; min-width: 0; overflow-wrap: anywhere; }
.portal-section { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(0, 4fr); gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--bs-border-color); }
.portal-section h2 { color: var(--bs-primary-text-emphasis); }
.portal-copy { white-space: pre-line; overflow-wrap: anywhere; }
.portal-session summary { cursor: pointer; }
@media (max-width: 767px) {
    .portal-search { order: 3; flex-basis: 100%; }
    .portal-toolbar { justify-content: space-between; }
    .portal-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-events-featured .portal-event:first-child { grid-row: auto; grid-column: 1 / -1; }
    .portal-detail, .portal-section { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) { .portal-events { grid-template-columns: minmax(0, 1fr); } }

.portal-category-grid .portal-art { aspect-ratio: 4 / 3; }
@media (min-width: 992px) {
    .portal-events.portal-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .portal-category-mosaic .portal-event:first-child { grid-column: span 2; grid-row: span 2; }
    .portal-category-mosaic .portal-event:first-child .portal-art { aspect-ratio: auto; flex: 1; min-height: 15rem; }
}

@media (max-width: 767px) {
    .portal-toolbar { gap: .65rem; }
    .portal-actions { width: 100%; display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .portal-actions > :is(a, details), .portal-actions summary { min-width: 0; width: 100%; }
    .portal-actions .btn { padding-inline: .5rem; font-size: .875rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
    .portal-actions .dropdown-item { white-space: normal; }
    .portal-banner { min-height: 11rem; }
    .portal-section, .portal-session { overflow-wrap: anywhere; }
}

[data-bs-theme="dark"] .portal-brand { color: var(--bs-primary-text-emphasis); }

.portal-event { border-radius:1rem; transition:box-shadow .2s ease,transform .2s ease; }
.portal-event:hover { box-shadow:0 .6rem 1.5rem #00000018; transform:translateY(-2px); }
.portal-event h3 { overflow-wrap:anywhere; }
.portal-upcoming-mosaic { grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr)); align-items:stretch; }
.portal-upcoming-mosaic .portal-art { aspect-ratio:1; }
.portal-upcoming-mosaic .card-body { min-height:7rem; }
.portal-upcoming-mosaic .portal-event:first-child { grid-row:span 2; }
.portal-upcoming-mosaic .portal-event:first-child .portal-art { flex:1; aspect-ratio:auto; min-height:24rem; }
.portal-upcoming-mosaic .portal-event:first-child h3 { font-size:clamp(1.4rem,2.3vw,2rem); line-height:1.2; }
.portal-upcoming-single { grid-template-columns:minmax(0,1fr); max-width:55rem; }
.portal-upcoming-single .portal-art { aspect-ratio:16 / 9; }
.portal-upcoming-single h3 { font-size:1.75rem; }
.portal-upcoming-pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
.portal-category-strip { grid-template-columns:repeat(6,minmax(0,1fr)); }
.portal-category-strip .portal-art { aspect-ratio:1; }
.portal-category-strip .card-body { padding:1rem; gap:.5rem !important; }
.portal-category-strip h3 { font-size:.9rem; }
.portal-category-strip .portal-date { min-width:2rem; }
.portal-category-strip .portal-date strong { font-size:1.3rem; }
.portal-promotions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
.portal-promotion { display:block; border-radius:1rem; overflow:hidden; background:var(--bs-tertiary-bg); transition:box-shadow .2s ease; }
.portal-promotion > img { display:block; width:100%; height:auto; aspect-ratio:4 / 1; object-fit:contain; }
.portal-promotion:hover { box-shadow:0 0 0 3px var(--bs-primary); }
.portal-promotion:focus-visible { outline:3px solid var(--bs-primary); outline-offset:4px; }
.portal-more-events { text-align:center; }
.portal-more-events summary { list-style:none; }
.portal-more-events summary::-webkit-details-marker { display:none; }
.portal-more-events .portal-events { text-align:start; }
@media(max-width:1199px) {
    .portal-upcoming-mosaic { grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr)); }
    .portal-upcoming-mosaic .portal-event:first-child { grid-row:span 3; }
    .portal-category-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:767px) {
    .portal-upcoming-mosaic { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .portal-upcoming-mosaic .portal-event:first-child { grid-column:1 / -1; grid-row:auto; }
    .portal-upcoming-mosaic .portal-event:first-child .portal-art { aspect-ratio:4 / 3; min-height:0; }
    .portal-category-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .portal-promotions { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:479px) {
    .portal-upcoming-mosaic,.portal-upcoming-pair,.portal-category-strip { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { .portal-event,.portal-promotion { transition:none; } .portal-event:hover { transform:none; } }

.portal-promotion:only-child { grid-column:1 / -1; }
@media(min-width:360px) and (max-width:479px) { .portal-upcoming-mosaic,.portal-upcoming-pair,.portal-category-strip { grid-template-columns:repeat(2,minmax(0,1fr)); } }
