/* Blog: entradas y galería fotográfica del AFA. */
.blog-heading { padding-block: 3rem 1.5rem; }
.blog-heading .eyebrow, .blog-entry-intro .eyebrow, .blog-gallery-heading .eyebrow { color: var(--blue); font-size: .88rem; }
.blog-heading h1 { margin: .4rem 0 0; color: var(--blue-deep); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.035em; }
.blog-list { padding-bottom: 4rem; }
.blog-story-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 1.5rem; background: #fff; box-shadow: 0 1rem 3rem rgb(6 60 120 / 7%); }
.blog-story-image { display: grid; place-items: center; background: #edf3f7; overflow: hidden; }
.blog-story-image img { width: 100%; height: 100%; max-height: 35rem; object-fit: contain; }
.blog-story-summary { align-self: center; padding: clamp(1.5rem, 4vw, 3.4rem); }
.blog-story-summary time { display: inline-block; padding: .35rem .7rem; background: var(--yellow); color: var(--blue-deep); font-size: .94rem; font-weight: 600; border-radius: .4rem; }
.blog-story-summary h2 { margin: 1rem 0; color: var(--blue-deep); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.025em; }
.blog-story-summary h2 a { text-decoration: none; }
.blog-story-summary h2 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.blog-story-summary p { margin: 0 0 1.5rem; font-size: 1.05rem; line-height: 1.75; }
.blog-story-summary .button { font-size: .98rem; }
.blog-photo-count { display: block; margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.blog-back { display: inline-block; padding-block: 1.5rem .5rem; color: var(--blue); font-size: .94rem; font-weight: 600; text-underline-offset: .25em; }
.blog-entry-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 25rem); align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-block: 2rem 3rem; }
.blog-entry-intro { min-width: 0; }
.blog-entry-date { display: inline-block; margin-block: 1.4rem 1rem; padding: .4rem .8rem; background: var(--yellow); color: var(--blue-deep); font-size: 1rem; font-weight: 600; border-radius: .35rem; }
.blog-entry-intro h1 { margin: 0 0 2rem; color: var(--blue-deep); font-size: clamp(2.4rem, 5.1vw, 4.6rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.blog-gallery-jump { display: inline-flex; align-items: center; gap: 1rem; padding-block: .6rem; font-size: 1rem; font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--yellow); }
.blog-gallery-jump span { font-size: .88rem; font-weight: 500; color: var(--muted); }
.blog-entry-feature { position: relative; margin: 0; isolation: isolate; }
.blog-entry-feature::before { position: absolute; inset: -1rem 1rem 1.5rem -1rem; z-index: -1; background: var(--yellow); border-radius: 1.4rem; content: ''; }
.blog-entry-feature img { width: 100%; height: auto; border-radius: 1.2rem; box-shadow: 0 1rem 2rem rgb(6 60 120 / 12%); }
.blog-entry-feature figcaption { padding: .65rem .25rem 0; color: var(--muted); font-size: .88rem; }
.blog-entry-text { max-width: 48rem; margin: 1rem auto 4rem; }
.blog-entry-text p { margin: 0 0 1.4rem; color: #254867; font-size: 1.13rem; line-height: 1.85; }
.blog-entry-text p:first-child { font-size: 1.28rem; color: var(--blue-deep); }
.blog-gallery-section { padding-block: 3.5rem 4.5rem; background: #f0f6fb; border-top: 1px solid var(--line); }
.blog-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.blog-gallery-heading h2 { margin: .5rem 0 0; color: var(--blue-deep); font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.12; letter-spacing: -.025em; }
.blog-gallery-heading > p { margin: 0; color: var(--blue-deep); font-size: 1rem; }
.blog-gallery-heading > p span { color: var(--muted); font-size: .94rem; }
.blog-photo-mosaic { columns: 4; column-gap: 1rem; }
.blog-gallery-photo { position: relative; display: block; margin: 0 0 1rem; break-inside: avoid; overflow: hidden; border-radius: .85rem; background: #e1e9f0; box-shadow: 0 .4rem 1.2rem rgb(6 60 120 / 8%); }
.blog-gallery-photo img { width: 100%; height: auto; transition: transform 250ms ease; }
.blog-photo-overlay { position: absolute; inset: 0; display: flex; align-items: end; justify-content: space-between; padding: 1rem; opacity: 0; background: linear-gradient(transparent 55%, rgb(3 31 60 / 72%)); color: #fff; transition: opacity 200ms ease; font-size: .94rem; font-weight: 600; }
.blog-gallery-photo:hover .blog-photo-overlay, .blog-gallery-photo:focus-visible .blog-photo-overlay { opacity: 1; }
.blog-gallery-photo:hover img { transform: scale(1.025); }
.blog-gallery-photo:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.blog-gallery-open { overflow: hidden; }
.blog-lightbox { width: min(94vw, 90rem); height: 94dvh; max-width: none; max-height: 94dvh; margin: auto; padding: 1rem 1.2rem; overflow: hidden; border: 1px solid rgb(255 255 255 / 15%); border-radius: 1rem; background: #062340; color: #fff; box-shadow: 0 2rem 6rem rgb(0 0 0 / 35%); }
.blog-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; }
.blog-lightbox::backdrop { background: rgb(3 18 33 / 87%); }
.blog-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 1rem; font-weight: 600; }
.blog-lightbox-close { display: inline-flex; align-items: center; gap: .7rem; padding: .45rem .8rem; border: 1px solid rgb(255 255 255 / 35%); border-radius: 999px; background: transparent; color: #fff; cursor: pointer; font-size: .94rem; }
.blog-lightbox-close span { font-size: 1.6rem; line-height: 1; }
.blog-lightbox-stage { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; gap: 1rem; min-height: 0; align-items: center; }
.blog-lightbox-stage > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.blog-lightbox-prev, .blog-lightbox-next { display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; background: rgb(255 255 255 / 7%); color: #fff; cursor: pointer; }
.blog-lightbox button:hover { background: rgb(255 255 255 / 17%); }
.blog-lightbox button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.blog-lightbox-info { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #e3edf6; font-size: .94rem; }
.blog-lightbox-info p { margin: 0; }
.blog-lightbox-info > span { flex: 0 0 auto; color: var(--yellow); font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .blog-photo-mosaic { columns: 3; }
  .blog-entry-hero { grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: 2.5rem; }
}
@media (max-width: 700px) {
  .blog-heading { padding-top: 2rem; }
  .blog-story-card { grid-template-columns: 1fr; }
  .blog-story-image img { max-height: 27rem; }
  .blog-entry-hero { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 1rem 2rem; }
  .blog-entry-intro h1 { font-size: clamp(2.4rem, 9vw, 3.5rem); margin-bottom: 1.2rem; }
  .blog-entry-date { margin-top: .9rem; }
  .blog-entry-feature { width: min(calc(100% - 1rem), 23rem); margin-inline: auto; }
  .blog-entry-text { margin-block: 1rem 2.5rem; }
  .blog-entry-text p, .blog-entry-text p:first-child { font-size: 1.06rem; line-height: 1.8; }
  .blog-gallery-section { padding-block: 2.5rem; }
  .blog-gallery-heading { display: block; }
  .blog-gallery-heading > p { margin-top: 1rem; }
  .blog-photo-mosaic { columns: 2; column-gap: .65rem; }
  .blog-gallery-photo { margin-bottom: .65rem; border-radius: .6rem; }
  .blog-lightbox { width: 100vw; height: 100dvh; max-height: 100dvh; padding: 1rem .65rem; border: 0; border-radius: 0; }
  .blog-lightbox-stage { position: relative; grid-template-columns: 1fr; }
  .blog-lightbox-prev, .blog-lightbox-next { position: absolute; z-index: 1; width: 2.75rem; height: 2.75rem; background: rgb(6 35 64 / 85%); }
  .blog-lightbox-prev { left: .25rem; }
  .blog-lightbox-next { right: .25rem; }
  .blog-lightbox-info { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-gallery-photo img, .blog-photo-overlay { transition: none; }
  .blog-gallery-photo:hover img { transform: none; }
}

.blog-list-all { display: grid; gap: 2rem; }
.blog-list-all .blog-story-image img { max-height: 29rem; }
.blog-entry-intro h1.blog-entry-title-long { font-size: clamp(2.3rem, 4.3vw, 3.8rem); }
.blog-entry-feature > a { display: block; border-radius: 1.2rem; }
.blog-entry-feature > a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.blog-entry-feature figcaption span { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.blog-entry-text h2 { margin: 2rem 0 .7rem; color: var(--blue-deep); font-size: 1.5rem; line-height: 1.3; }
.blog-entry-text p.blog-lead { font-size: 1.28rem; color: var(--blue-deep); }
.blog-lightbox [hidden] { display: none !important; }
.blog-lightbox.is-single .blog-lightbox-stage { grid-template-columns: 1fr; }
@media (max-width: 700px) {
  .blog-entry-intro h1.blog-entry-title-long { font-size: clamp(2.2rem, 8.3vw, 3.2rem); }
  .blog-entry-text p.blog-lead { font-size: 1.06rem; }
  .blog-list-all { gap: 1.3rem; }
}
.blog-photo-mosaic.gallery-single { columns: initial; width: min(100%, 32rem); margin-inline: auto; }
.blog-photo-mosaic.gallery-pair { columns: 2; width: min(100%, 52rem); margin-inline: auto; }
