#eventos { background: #f5f3ee; padding: 72px 0; }
#eventos[hidden] { display: none; }
#eventos .ev-container { max-width: 1240px; }
#eventos, .ev-dialog { font-family: 'DM Sans', sans-serif; font-style: normal; letter-spacing: 0; }
.ev-heading { max-width: 730px; margin: 0 auto 36px; text-align: center; }
.ev-heading > span { color: #2d6a4f; font-size: 12px; font-weight: 700; }
.ev-heading h2 { font: 600 36px/1.2 'DM Sans',sans-serif; color: #193c2e; margin: 12px 0 16px; }
.ev-heading p { color: #56645d; line-height: 1.7; }
.ev-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.ev-card { background: #fff; border: 1px solid #dce3dd; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.ev-card:hover { box-shadow: 0 10px 28px #153c2614; }
.ev-card:only-child { grid-column: 1/-1; width: 100%; max-width: 580px; justify-self: center; }
.ev-cover { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ev-photo-empty { background: #e3e9e4; min-height: 100px; }
.ev-card-copy { padding: 26px; display: flex; flex-direction: column; flex: 1; gap: 16px; }
.ev-card h3 { font: 600 25px/1.25 'DM Sans',sans-serif; margin: 0; color: #193c2e; }
.ev-card p { margin: 0; color: #52635a; line-height: 1.65; }
.ev-tags { display: flex; flex-wrap: wrap; list-style: none; gap: 8px; padding: 0; margin: 0; }
.ev-tags li { border-bottom: 1px solid #b6cbbd; color: #315640; font-size: 13px; padding: 4px 0; margin-right: 12px; }
.ev-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: auto; padding-top: 6px; }
.ev-button { display: inline-flex; align-items: center; justify-content: center; background: #286449; color: #fff; border: 0; border-radius: 6px; padding: 12px 20px; min-height: 44px; font: 600 14px/1.4 'DM Sans',sans-serif; cursor: pointer; text-decoration: none; text-align: center; }
.ev-button:hover { background: #194d35; color: #fff; }
.ev-more { color: #28573e; background: none; border: 0; padding: 10px 0; cursor: pointer; font: 600 14px 'DM Sans',sans-serif; }
.ev-cta { border-top: 1px solid #ccd8ce; margin-top: 36px; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ev-cta h3 { font: 600 23px 'DM Sans',sans-serif; margin: 0 0 8px; }
.ev-cta p { margin: 0; color: #52635a; }
.ev-dialog { border: 0; border-radius: 8px; padding: 0; width: min(900px, calc(100% - 32px)); max-height: 90vh; margin: auto; color: #193c2e; }
.ev-dialog::backdrop { background: #10281dcc; }
.ev-detail { position: relative; }
.ev-detail-cover { width: 100%; max-height: 360px; aspect-ratio: 16/8; object-fit: cover; display: block; }
.ev-close { position: sticky; top: 12px; float: right; margin: 12px; margin-bottom: -56px; z-index: 1; width: 44px; height: 44px; border-radius: 6px; border: 1px solid #d7e0d9; background: white; color: #193c2e; font-size: 28px; cursor: pointer; }
.ev-detail-copy { padding: 30px; }
.ev-detail-copy h2 { font: 600 28px/1.2 'DM Sans',sans-serif; margin: 0 0 16px; }
.ev-detail-copy h3 { font: 600 18px 'DM Sans',sans-serif; margin: 24px 0 10px; }
.ev-detail-copy ul:not(.ev-tags) { padding-left: 22px; }
.ev-paragraph { white-space: pre-line; margin-bottom: 18px; }
.ev-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.ev-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #f2f4f1; }
#eventos h2, #eventos h3, #eventos p, .ev-dialog { overflow-wrap: anywhere; }
#eventos :focus-visible, .ev-dialog :focus-visible { outline: 3px solid #a97919; outline-offset: 4px; }
@media(max-width:700px) { #eventos { padding: 44px 0; } .ev-grid { grid-template-columns: 1fr; } .ev-heading h2 { font-size: 28px; } .ev-card-copy, .ev-detail-copy { padding: 20px; } .ev-cta { align-items: flex-start; flex-direction: column; } .ev-gallery { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion:reduce) { .ev-card { transition: none; } }
