:root { --blue:#002f87; --red:#ce0e2d; --mist:#e9fff9; --aqua:#9ed8db; --cyan:#80ced7; --ink:#333333; --white:#fff; --muted:#6b7370; --line:rgba(0,47,135,.14); --serif:"Libre Caslon Display",Georgia,serif; --sans:"DM Sans",Arial,sans-serif; --shadow:0 24px 70px rgba(0,47,135,.14); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; overflow-x:clip; color:var(--ink); background:#f8fbfa; font-family:var(--sans); line-height:1.6; }
body.locked { overflow:hidden; }
a { color:inherit; text-decoration:none; }
button,input,select { font:inherit; }
button { color:inherit; }
img { display:block; max-width:100%; }
.wrap { width:min(1240px,calc(100% - 48px)); margin-inline:auto; }
.skip-link { position:fixed; z-index:500; top:7px; left:7px; padding:10px 16px; color:var(--white); background:var(--red); transform:translateY(-150%); }
.skip-link:focus { transform:none; }
.read-progress { position:fixed; z-index:150; top:0; right:0; left:0; height:3px; }
.read-progress span { display:block; width:0; height:100%; background:var(--red); }
.eyebrow { margin:0 0 16px; color:var(--red); font-size:.69rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; }
.eyebrow.light { color:var(--aqua); }
h1,h2 { margin:0; font-family:var(--serif); font-weight:400; line-height:1; letter-spacing:-.025em; }

.gallery-header { position:sticky; z-index:100; top:0; background:rgba(233,255,249,.96); border-bottom:1px solid var(--line); backdrop-filter:blur(14px); }
.header-row { min-height:84px; display:flex; align-items:center; justify-content:space-between; }
.gallery-brand { display:flex; align-items:center; gap:12px; }
.site-logo { width:185px; height:62px; display:block; object-fit:cover; object-position:center 52%; }
.crest { position:relative; width:46px; height:52px; display:grid; place-items:end center; padding-bottom:5px; color:var(--red); background:var(--blue); clip-path:polygon(0 0,100% 0,100% 78%,50% 100%,0 78%); font-size:.62rem; letter-spacing:.12em; }
.crest i::before,.crest i::after { content:""; position:absolute; top:8px; left:50%; background:var(--red); transform:translateX(-50%); }
.crest i::before { width:3px; height:20px; }
.crest i::after { top:13px; width:13px; height:3px; }
.gallery-brand > span:last-child { display:flex; flex-direction:column; line-height:1.05; }
.gallery-brand strong { font:400 1.3rem var(--serif); }
.gallery-brand small { margin-top:5px; color:var(--muted); font-size:.58rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }
.gallery-nav { display:flex; align-items:center; gap:28px; font-size:.74rem; font-weight:600; }
.gallery-nav > a:hover { color:var(--red); }
.language-toggle { padding:0; color:var(--ink); background:transparent; border:0; cursor:pointer; font-size:.7rem; font-weight:700; }
.language-toggle span { color:var(--red); }
.facebook-button { padding:11px 17px; color:var(--white)!important; background:var(--blue); }
.mobile-nav { display:none; width:42px; height:42px; padding:11px; background:transparent; border:0; }
.mobile-nav span { display:block; height:2px; margin:6px 0; background:var(--blue); }

.gallery-hero { position:relative; padding:105px 0 100px; overflow:hidden; color:var(--white); background:linear-gradient(115deg,rgba(0,47,135,.97),rgba(0,47,135,.79)),url("HTESFOTOS2/full-albums/2026/09-septiembre/1680633067405530/001.jpg") center 42%/cover; }
.hero-content { position:relative; z-index:2; display:grid; grid-template-columns:1.2fr .8fr; gap:90px; align-items:end; }
.gallery-hero h1 { max-width:800px; font-size:clamp(3.7rem,7vw,7rem); }
.hero-copy { max-width:700px; margin:28px 0 0; color:rgba(255,255,255,.74); font-size:1rem; }
.gallery-summary { min-width:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid rgba(255,255,255,.3); border-bottom:1px solid rgba(255,255,255,.3); }
.gallery-summary div { padding:24px 18px; }
.gallery-summary div+div { border-left:1px solid rgba(255,255,255,.25); }
.gallery-summary strong,.gallery-summary span { display:block; }
.gallery-summary strong { color:var(--aqua); font:400 2rem var(--serif); }
.gallery-summary span { color:rgba(255,255,255,.6); font-size:.59rem; letter-spacing:.1em; text-transform:uppercase; }
.hero-watermark { position:absolute; right:-20px; bottom:-78px; color:rgba(255,255,255,.045); font:400 15vw/1 var(--serif); letter-spacing:-.04em; }

.gallery-controls { position:sticky; z-index:80; top:84px; background:var(--white); border-bottom:1px solid var(--line); box-shadow:0 8px 25px rgba(0,47,135,.05); }
.controls-inner { min-height:82px; display:flex; align-items:center; gap:18px; }
.year-filters { display:flex; gap:5px; }
.year-filter { padding:9px 15px; background:transparent; border:1px solid var(--line); border-radius:25px; cursor:pointer; font-size:.68rem; font-weight:700; }
.year-filter.active { color:var(--white); background:var(--blue); border-color:var(--blue); }
.select-filter { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.63rem; }
.select-filter select { min-width:145px; padding:9px 28px 9px 10px; color:var(--ink); background:var(--mist); border:0; outline:0; font-size:.68rem; }
.gallery-search { min-width:250px; display:flex; align-items:center; gap:9px; margin-left:auto; padding:9px 13px; border:1px solid var(--line); }
.gallery-search span { color:var(--blue); font-size:1.1rem; }
.gallery-search input { width:100%; border:0; outline:0; font-size:.7rem; }

.albums-section { min-height:700px; padding:90px 0 115px; }
.results-heading { display:flex; align-items:end; justify-content:space-between; margin-bottom:42px; }
.results-heading span { color:var(--red); font-size:.65rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }
.results-heading h2 { margin-top:5px; font-size:clamp(2.4rem,4vw,4rem); }
.results-heading p { margin:0; color:var(--muted); font-size:.7rem; }
.results-heading p strong { color:var(--blue); }
.album-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.album-card { min-width:0; overflow:hidden; background:var(--white); border:1px solid rgba(0,47,135,.09); box-shadow:0 10px 35px rgba(0,47,135,.06); transition:transform .3s,box-shadow .3s; }
.album-card:hover { transform:translateY(-7px); box-shadow:var(--shadow); }
.album-collage { position:relative; height:320px; display:grid; gap:3px; padding:0; overflow:hidden; background:var(--blue); border:0; cursor:pointer; }
.album-collage img { width:100%; min-width:0; height:100%; object-fit:cover; transition:transform .55s,filter .3s; }
.album-collage.collage-1 { grid-template-columns:1fr; }
.album-collage.collage-2 { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.album-collage.collage-3 { grid-template-columns:minmax(0,2fr) minmax(0,1fr); grid-template-rows:1fr 1fr; }
.album-collage.collage-3 img:first-child { grid-row:1/3; }
.album-collage.collage-4 { grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); grid-template-rows:repeat(3,1fr); }
.album-collage.collage-4 img:first-child { grid-row:1/4; }
.album-card:hover .album-collage img { filter:saturate(1.08); }
.album-card:hover .album-collage img:first-child { transform:scale(1.025); }
.photo-count { position:absolute; margin:16px; align-self:end; justify-self:start; padding:7px 10px; color:var(--white); background:rgba(0,47,135,.82); border:1px solid rgba(255,255,255,.4); border-radius:22px; font-size:.6rem; font-weight:700; backdrop-filter:blur(5px); }
.album-body { padding:26px 27px 28px; }
.album-meta { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.album-date { color:var(--red); font-size:.6rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.album-category { color:var(--muted); font-size:.58rem; }
.album-body h3 { margin:12px 0 13px; font:400 1.55rem/1.15 var(--serif); }
.album-body p { display:-webkit-box; margin:0; overflow:hidden; color:var(--muted); font-size:.73rem; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.album-actions { display:flex; align-items:center; justify-content:space-between; margin-top:22px; padding-top:17px; border-top:1px solid var(--line); }
.album-actions button,.album-actions a { padding:0; color:var(--blue); background:none; border:0; cursor:pointer; font-size:.66rem; font-weight:700; }
.year-filter:focus-visible,.select-filter select:focus-visible,.gallery-search:focus-within,.album-collage:focus-visible,.album-actions button:focus-visible,.album-actions a:focus-visible,.load-more:focus-visible,.modal-photo:focus-visible,.viewer-arrow:focus-visible,.viewer-close:focus-visible,.modal-close:focus-visible { outline:3px solid var(--cyan); outline-offset:3px; }
.empty-gallery { padding:90px 20px; background:var(--mist); text-align:center; }
.empty-gallery > span { font-size:2rem; }
.empty-gallery h2 { margin-top:15px; font-size:2.4rem; }
.empty-gallery p { color:var(--muted); }
.empty-gallery button { padding:11px 17px; color:var(--white); background:var(--red); border:0; cursor:pointer; font-size:.7rem; font-weight:700; }
.load-more-wrap { display:flex; justify-content:center; margin-top:55px; }
.load-more { display:flex; align-items:center; gap:35px; padding:14px 20px 14px 24px; color:var(--white); background:var(--blue); border:0; cursor:pointer; font-size:.7rem; font-weight:700; }
.load-more b { width:31px; height:31px; display:grid; place-items:center; color:var(--blue); background:var(--aqua); border-radius:50%; }

.gallery-cta { padding:80px 0; color:var(--white); background:var(--blue); }
.gallery-cta .wrap { display:flex; align-items:end; justify-content:space-between; gap:50px; }
.gallery-cta h2 { font-size:clamp(2.5rem,4vw,4.3rem); }
.gallery-cta a { min-width:240px; display:flex; justify-content:space-between; padding:16px 0; border-top:1px solid var(--aqua); border-bottom:1px solid var(--aqua); font-size:.73rem; font-weight:700; }
.gallery-footer { padding:28px 0; color:rgba(255,255,255,.65); background:#001e57; font-size:.64rem; }
.gallery-footer .wrap { display:flex; justify-content:space-between; gap:30px; }
.gallery-footer p { margin:0; }

.album-modal { position:fixed; z-index:200; inset:0; visibility:hidden; opacity:0; background:#f8fbfa; transition:opacity .3s,visibility .3s; }
.album-modal.open { visibility:visible; opacity:1; }
.album-modal-shell { height:100%; overflow-y:auto; }
.modal-topbar { position:sticky; z-index:3; top:0; min-height:68px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:0 28px; color:var(--white); background:var(--blue); }
.modal-topbar button { justify-self:start; color:var(--white); background:none; border:0; cursor:pointer; font-size:.7rem; }
.modal-topbar button span { margin-left:12px; }
.modal-topbar > span { color:var(--aqua); font-size:.65rem; }
.modal-topbar a { justify-self:end; font-size:.68rem; font-weight:700; }
.modal-layout { display:grid; grid-template-columns:380px 1fr; min-height:calc(100vh - 68px); }
.album-info { position:sticky; top:68px; height:calc(100vh - 68px); padding:55px 40px; overflow-y:auto; background:var(--mist); border-right:1px solid var(--line); }
.modal-date { color:var(--red); font-size:.65rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase; }
.album-info h2 { margin:15px 0; font-size:2.7rem; }
.modal-category { display:inline-block; padding:6px 10px; color:var(--blue); border:1px solid var(--aqua); border-radius:20px; font-size:.58rem; font-weight:700; }
.album-info > p { margin:28px 0; color:var(--muted); font-size:.78rem; white-space:pre-line; }
.modal-meta { display:flex; flex-direction:column; padding-top:25px; border-top:1px solid var(--line); }
.modal-meta strong { color:var(--blue); font:400 2rem var(--serif); }
.modal-meta span { color:var(--muted); font-size:.61rem; text-transform:uppercase; letter-spacing:.08em; }
.modal-photos { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; align-content:start; padding:7px; background:#dfe5e3; }
.modal-photo { min-width:0; aspect-ratio:1; padding:0; overflow:hidden; background:var(--blue); border:0; cursor:zoom-in; }
.modal-photo:nth-child(7n+1),.modal-photo:nth-child(7n+5) { grid-column:span 2; grid-row:span 2; }
.modal-photo img { width:100%; height:100%; object-fit:cover; transition:transform .45s; }
.modal-photo:hover img { transform:scale(1.04); }

.photo-viewer { position:fixed; z-index:300; inset:0; display:grid; grid-template-columns:80px 1fr 80px; place-items:center; visibility:hidden; opacity:0; color:var(--white); background:rgba(0,18,54,.97); transition:opacity .25s,visibility .25s; }
.photo-viewer.open { visibility:visible; opacity:1; }
.viewer-top { position:absolute; z-index:2; top:0; right:0; left:0; min-height:64px; display:flex; align-items:center; justify-content:space-between; padding:0 24px; background:linear-gradient(rgba(0,18,54,.9),transparent); font-size:.68rem; }
.viewer-close { width:42px; height:42px; color:var(--white); background:transparent; border:1px solid rgba(255,255,255,.4); border-radius:50%; cursor:pointer; font-size:1.5rem; }
.photo-viewer figure { max-width:calc(100vw - 180px); max-height:calc(100vh - 70px); margin:0; }
.photo-viewer figure img { max-width:100%; max-height:calc(100vh - 110px); margin:auto; object-fit:contain; }
.photo-viewer figcaption { margin-top:12px; color:rgba(255,255,255,.65); font-size:.65rem; text-align:center; }
.viewer-arrow { width:48px; height:48px; color:var(--white); background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.3); border-radius:50%; cursor:pointer; }

@media (max-width:1000px) {
  .hero-content { grid-template-columns:minmax(0,1fr); gap:55px; }
  .controls-inner { flex-wrap:wrap; padding:16px 0; }
  .gallery-controls { position:relative; top:auto; }
  .gallery-search { flex:1; }
  .album-grid { grid-template-columns:repeat(2,1fr); }
  .modal-layout { grid-template-columns:310px 1fr; }
  .modal-photos { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:720px) {
  .wrap { width:min(calc(100% - 32px),620px); }
  .header-row { min-height:72px; }
  .gallery-nav { position:fixed; inset:72px 0 auto; display:none; flex-direction:column; align-items:flex-start; padding:35px 24px; color:var(--white); background:var(--blue); }
  .gallery-nav.open { display:flex; }
  .mobile-nav { position:relative; z-index:2; display:block; flex:0 0 42px; }
  .gallery-hero { padding:80px 0; }
  .gallery-hero h1 { font-size:clamp(3.4rem,16vw,5.4rem); }
  .gallery-summary div { padding:18px 10px; }
  .gallery-summary strong { font-size:1.5rem; }
  .controls-inner { align-items:stretch; flex-direction:column; gap:10px; }
  .year-filters { width:100%; min-width:0; overflow-x:auto; padding-bottom:4px; }
  .year-filter { flex:0 0 auto; }
  .select-filter { justify-content:space-between; }
  .select-filter select { flex:1; }
  .gallery-search { min-width:0; margin-left:0; }
  .albums-section { padding:65px 0 85px; }
  .results-heading { align-items:flex-start; flex-direction:column; gap:15px; }
  .album-grid { grid-template-columns:1fr; }
  .album-collage { height:360px; }
  .gallery-cta .wrap,.gallery-footer .wrap { align-items:flex-start; flex-direction:column; }
  .modal-topbar { grid-template-columns:1fr auto; padding:0 14px; }
  .modal-topbar > span { display:none; }
  .modal-topbar a { font-size:0; }
  .modal-topbar a::after { content:"Facebook ↗"; font-size:.65rem; }
  .album-modal-shell { width:100%; max-width:100vw; overflow-x:hidden; }
  .modal-layout { width:100%; max-width:100vw; min-width:0; grid-template-columns:minmax(0,1fr); }
  .album-info { position:static; min-width:0; height:auto; padding:35px 22px; overflow-wrap:anywhere; }
  .album-info h2 { font-size:clamp(2rem,10vw,2.7rem); }
  .modal-photos { min-width:0; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .photo-viewer { grid-template-columns:48px 1fr 48px; }
  .photo-viewer figure { max-width:calc(100vw - 100px); }
  .viewer-arrow { width:38px; height:38px; }
}
@media (max-width:440px) {
  .gallery-brand .site-logo { width:165px; height:54px; }
  .gallery-summary { grid-template-columns:1fr; }
  .gallery-summary div+div { border-top:1px solid rgba(255,255,255,.25); border-left:0; }
  .gallery-hero h1 { font-size:clamp(3rem,13vw,4rem); overflow-wrap:anywhere; }
  .album-collage { height:300px; }
  .modal-photos { gap:3px; padding:3px; }
}
@media (prefers-reduced-motion:reduce) { html{scroll-behavior:auto} *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important} }
