/* Dante Core: estilos base de los componentes (funcionan con cualquier theme; Dante Theme los refina). */
.dante-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dante-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.dante-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.dante-card__media { aspect-ratio: 4 / 3; background: #e8eef5; overflow: hidden; }
.dante-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dante-card__body { padding: 1rem 1.25rem 1.25rem; }
.dante-card__kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .35rem; opacity: .75; }
.dante-card__title { margin: 0 0 .5rem; font-size: 1.15rem; line-height: 1.3; }
.dante-com-list { display: grid; gap: 1rem; }
.dante-com { padding: 1rem 1.25rem; border-left: 4px solid #5080b0; background: #f5f8fb; border-radius: 0 10px 10px 0; }
.dante-com--featured { border-left-color: #004078; }
.dante-com--prio-2 { border-left-color: #b3261e; }
.dante-com__title { margin: .25rem 0; font-size: 1.1rem; }
.dante-com__date { margin: 0; font-size: .9rem; opacity: .8; }
.dante-badge { display: inline-block; padding: .1rem .55rem; margin: 0 .35rem .25rem 0; border-radius: 999px; font-size: .75rem; background: #e3ebf4; color: #00305a; }
.dante-badge--featured { background: #004078; color: #fff; }
.dante-badge--urgent { background: #b3261e; color: #fff; }
.dante-event { display: flex; gap: 1rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid #e2e8f0; }
.dante-event__date { flex: 0 0 3.5rem; text-align: center; background: #004078; color: #fff; border-radius: 10px; padding: .4rem 0; line-height: 1.1; }
.dante-event__day { display: block; font-size: 1.4rem; font-weight: 700; }
.dante-event__month { display: block; font-size: .75rem; text-transform: uppercase; }
.dante-event__title { margin: 0 0 .25rem; font-size: 1.05rem; }
.dante-event__meta { margin: 0; font-size: .9rem; opacity: .8; }
.dante-cal__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
.dante-cal__title { margin: 0; text-transform: capitalize; }
.dante-cal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dante-cal__grid th { padding: .5rem; font-size: .85rem; }
.dante-cal__grid td { vertical-align: top; height: 6.5rem; padding: .35rem; border: 1px solid #e2e8f0; font-size: .85rem; }
.dante-cal__grid td.is-today { background: #f0f6fc; }
.dante-cal__grid td ul { margin: .25rem 0 0; padding: 0; list-style: none; }
.dante-cal__grid td li a { display: block; padding: .15rem .35rem; margin-bottom: .2rem; border-radius: 4px; background: #004078; color: #fff; text-decoration: none; font-size: .78rem; line-height: 1.25; }
.dante-cal__day { font-weight: 700; }
.dante-cal__agenda { display: none; }
@media (max-width: 760px) { .dante-cal__grid { display: none; } .dante-cal__agenda { display: block; } }
.dante-filter { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; margin: 0 0 1.25rem; }
.dante-filter .dante-field { display: flex; flex-direction: column; gap: .25rem; }
.dante-form { display: grid; gap: 1rem; max-width: 40rem; }
.dante-form .dante-field { display: flex; flex-direction: column; gap: .35rem; }
.dante-form .dante-field--checkbox { flex-direction: row; align-items: flex-start; gap: .5rem; }
.dante-form input:not([type=checkbox]), .dante-form select, .dante-form textarea { padding: .65rem .75rem; border: 1px solid #8a99ab; border-radius: 8px; font: inherit; }
.dante-field__error { color: #b3261e; margin: 0; font-size: .9rem; }
.dante-alert { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1rem; }
.dante-alert--ok { background: #e7f5ea; color: #1e6b32; }
.dante-alert--error { background: #fde8e8; color: #8c1c13; }
.dante-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 999px; border: 2px solid #004078; color: #004078; background: transparent; font-weight: 600; text-decoration: none; cursor: pointer; }
.dante-btn--primary { background: #004078; color: #fff; }
.dante-allies__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.dante-allies__item { display: flex; align-items: center; justify-content: center; min-height: 100px; padding: 1rem; background: #fff; border-radius: 10px; }
.dante-allies__item img { max-height: 70px; width: auto; object-fit: contain; }
.dante-table { width: 100%; border-collapse: collapse; }
.dante-table th, .dante-table td { text-align: left; padding: .6rem; border-bottom: 1px solid #e2e8f0; }
.dante-table-wrap { overflow-x: auto; }
.dante-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.dante-doclist { list-style: none; padding: 0; }
.dante-doclist__item { padding: .75rem 0; border-bottom: 1px solid #e2e8f0; }
.dante-empty { padding: 1rem; background: #f5f8fb; border-radius: 10px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
/* Galería */
.dante-gallery__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.dante-chip { min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 1.5px solid #004078; background: #fff; color: #004078; font: inherit; font-weight: 700; cursor: pointer; }
.dante-chip.is-active, .dante-chip[aria-pressed="true"] { background: #004078; color: #fff; }
.dante-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.dante-gallery__item:nth-child(7n+1) { grid-row: span 2; }
.dante-gallery__item:nth-child(9n+4) { grid-column: span 2; }
.dante-gallery__link { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; }
.dante-gallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.dante-gallery__link:hover .dante-gallery__img, .dante-gallery__link:focus .dante-gallery__img { transform: scale(1.04); }
.dante-gallery--strip .dante-gallery__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); grid-auto-rows: 160px; }
.dante-gallery--strip .dante-gallery__item:nth-child(n) { grid-row: auto; grid-column: auto; }
@media (max-width: 600px) { .dante-gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } .dante-gallery__item:nth-child(9n+4) { grid-column: span 1; } }
.dante-lightbox { width: min(1100px, 96vw); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.dante-lightbox::backdrop { background: rgba(0, 16, 32, .9); }
.dante-lightbox__fig { margin: 0; text-align: center; }
.dante-lightbox__fig img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.dante-lightbox__fig figcaption, .dante-lightbox__count { color: #fff; text-align: center; margin: .5rem 0 0; }
.dante-lightbox__btn { position: fixed; top: 50%; width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: rgba(0,20,40,.5); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.dante-lightbox__prev { left: 2vw; } .dante-lightbox__next { right: 2vw; }
.dante-lightbox__close { top: 4vh; right: 2vw; transform: none; }
.dante-lightbox__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
