/*
  재파라과이 한인회 · Portal institucional
  Pretendard + azul marino #012F6C, superficies blancas, radios 12/20/28 y píldoras.
  Ver DESIGN.md.
*/
:root {
    --navy: #012F6C;
    --blue: #0348a2;
    --ink: #14213a;
    --canvas: #f6f8fc;
    --tint: #eef3fb;
    --tint-2: #dfe9f8;
    --paper: #ffffff;
    --line: #e4e9f1;
    --muted: #5d687c;
    --red: #cd2e3a;
    --r-sm: 12px; --r-md: 20px; --r-lg: 28px;
    --sec: clamp(56px, 7vw, 96px);
    --gut: clamp(16px, 2.4vw, 32px);
    --shadow: 0 14px 30px -22px rgba(1, 47, 108, .4);
    --shadow-up: 0 26px 40px -24px rgba(1, 47, 108, .5);
    --ease: cubic-bezier(.16, 1, .3, 1);
    --sans: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
body { font-family: var(--sans); color: var(--ink); background: var(--canvas); line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sans); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); text-wrap: balance; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--tint-2); outline-offset: 2px; box-shadow: 0 0 0 2px var(--blue); }
p { color: var(--muted); }
.hn-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Cabecera: logo centrado, reloj e idiomas a los lados ---------- */
.hn-mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.hn-mast-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 212px; }
.hn-logo { display: block; justify-self: center; }
.hn-logo img { display: block; height: 184px; width: auto; }
.hn-clocks { display: flex; align-items: stretch; gap: 0; margin: 0; justify-self: start; }
.hn-clock { display: grid; grid-template-areas: "info" "time"; row-gap: 8px; padding: 2px 24px; line-height: 1; white-space: nowrap; }
.hn-clock:first-child { padding-left: 0; }
.hn-clock + .hn-clock { border-left: 1px solid var(--line); }
.hn-clock-flag { display: none; }
.hn-clock-time { grid-area: time; margin-left: -2px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hn-clock-info { grid-area: info; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 12px; color: var(--muted); }
.hn-clock-city { font-size: 15px; font-weight: 700; color: var(--navy); }
.hn-lang { display: flex; gap: 12px; justify-self: end; }
.hn-lang a { display: block; width: 44px; height: 32px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); opacity: .6; transition: opacity .2s, box-shadow .2s, transform .3s var(--ease); }
.hn-lang a img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hn-lang a:hover { opacity: 1; transform: translateY(-2px); }
.hn-lang a.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--navy); }

/* ---------- Barra de menú (fija al desplazarse) ---------- */
.hn-bar, #header.hn-bar { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(10px); box-shadow: 0 1px 0 var(--line); }
.hn-bar #menu { display: flex; align-items: stretch; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
/* el li ocupa toda la altura de la barra: no hay hueco entre el botón y el submenú al mover el mouse */
.hn-bar #menu > li { float: none; position: relative; padding: 8px 0; list-style: none; display: flex; align-items: center; }
.hn-bar #menu > li > a { display: block; padding: 12px 24px; border-radius: 999px; font-size: 17px; font-weight: 700; color: var(--ink); transition: background .2s, color .2s; }
.hn-bar #menu > li > a:hover, .hn-bar #menu > li.show > a { background: var(--tint); color: var(--navy); }
.hn-bar #menu > li > a.activo, .hn-bar #menu > li.activo > a { background: var(--tint); color: var(--navy); }
.hn-bar .dropdown-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 10px; border: 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); vertical-align: middle; transition: transform .25s var(--ease); }
.hn-bar .dropdown-toggle.show::after { transform: rotate(-135deg) translate(-2px, -2px); }

/* ---------- Submenú: lista minimalista con línea roja ---------- */
.hn-bar #menu .dropdown-menu { position: absolute; inset: calc(100% - 4px) auto auto 0 !important; transform: none !important; margin: 0; min-width: 260px; padding: 8px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: 0 2px 6px rgba(1, 47, 108, .06), 0 32px 56px -20px rgba(1, 47, 108, .42); }
.hn-bar #menu .dropdown-menu.show { animation: hn-drop .24s var(--ease) both; }
.hn-bar #menu .dropdown-menu li { padding: 0; float: none; display: block; }
.hn-bar #menu .dropdown-menu li + li { border-top: 1px solid var(--line); }
.hn-bar .dropdown-item { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 11px 0; font-size: 15.5px; font-weight: 600; background: none; color: var(--ink); white-space: nowrap; transition: color .2s, padding .3s var(--ease); }
.hn-bar .dropdown-item::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--red); transition: width .35s var(--ease); }
.hn-bar .dropdown-item::after { content: "\2192"; font-size: 17px; color: var(--red); opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .3s var(--ease); }
.hn-bar .dropdown-item:hover, .hn-bar .dropdown-item:focus-visible { background: none; color: var(--navy); }
.hn-bar .dropdown-item:hover::before, .hn-bar .dropdown-item:focus-visible::before { width: 100%; }
.hn-bar .dropdown-item:hover::after, .hn-bar .dropdown-item:focus-visible::after { opacity: 1; transform: none; }
@keyframes hn-drop { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .hn-bar #menu .dropdown-menu.show { animation: none; } }
.hn-bar .hn-social { display: flex; align-items: center; gap: 2px; }
.hn-bar .hn-social a { padding: 11px 12px; font-size: 17px; border-radius: 50%; }
.hn-burger { display: none; background: var(--tint); color: var(--navy); border: 0; width: 46px; height: 46px; border-radius: var(--r-sm); font-size: 18px; justify-self: end; grid-column: 3; }

/* ---------- Botones ---------- */
.hn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-size: 16px; font-weight: 700; background: var(--navy); color: #fff; border: 1.5px solid var(--navy); transition: transform .3s var(--ease), background .2s, color .2s, border-color .2s; }
.hn-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.hn-btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.hn-btn--light:hover { background: var(--tint); border-color: var(--tint); color: var(--navy); }
.hn-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.hn-btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }
.hn-btn--line { background: transparent; color: var(--navy); border-color: var(--tint-2); }
.hn-btn--line:hover { background: var(--tint); color: var(--navy); border-color: var(--tint-2); }

/* ---------- Héroe ---------- */
.hn-hero { padding-top: 0; }
.hn-stage { position: relative; height: clamp(460px, 44vw, 640px); border-radius: 0; overflow: hidden; width: 100%; background: var(--navy); isolation: isolate; }
.hn-stage .carousel, .hn-stage .carousel-inner, .hn-stage .carousel-item, .hn-slide { height: 100%; }
.hn-slide { background-position: center 35%; background-size: cover; }
.hn-stage::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(1, 47, 108, .72) 0%, rgba(1, 47, 108, .5) 22%, rgba(1, 47, 108, .16) 40%, rgba(1, 47, 108, 0) 55%); pointer-events: none; }
.hn-stage-inner { position: absolute; z-index: 3; inset: 0; left: 0; right: 0; margin: 0 auto; pointer-events: none; }
.hn-stage-text { text-shadow: 0 2px 18px rgba(1, 47, 108, .55); position: absolute; left: var(--gut); top: 50%; transform: translateY(-56%); color: #fff; max-width: 600px; padding-right: 24px; pointer-events: auto; }
.hn-pill { display: inline-flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px; backdrop-filter: blur(6px); }
.hn-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.hn-h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: #fff; margin: 0 0 18px; }
.hn-h1--long { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.hn-lead { font-size: clamp(1rem, 1.35vw, 1.2rem); color: rgba(255, 255, 255, .9); margin: 0 0 30px; max-width: 30em; }
.hn-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hn-stage-ctrl { position: absolute; z-index: 4; left: 0; right: 0; bottom: 84px; pointer-events: none; }
.hn-stage-ctrl .hn-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.hn-stage .carousel-indicators { position: static; margin: 0; justify-content: flex-end; pointer-events: auto; }
.hn-stage .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); opacity: 1; margin: 0 4px; padding: 0; text-indent: 0; transition: background .2s, width .35s var(--ease); }
.hn-stage .carousel-indicators .active { width: 34px; background: #fff; }
.hn-stage .carousel-fade .carousel-item { transition-duration: 1s; }

/* ---------- Accesos rápidos ---------- */
.hn-quick { position: relative; z-index: 5; margin: -56px clamp(8px, 3vw, 40px) 0; background: var(--paper); border-radius: var(--r-md); box-shadow: 0 24px 48px -24px rgba(1, 47, 108, .35); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hn-quick a { display: flex; align-items: center; gap: 16px; padding: 26px clamp(16px, 2vw, 32px); border-right: 1px solid var(--line); transition: background .2s; }
.hn-quick a:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.hn-quick a:last-child { border-right: 0; border-radius: 0 var(--r-md) var(--r-md) 0; }
.hn-quick a:hover { background: var(--tint); }
.hn-ic { flex: none; width: 54px; height: 54px; border-radius: var(--r-sm); background: var(--tint); color: var(--navy); display: grid; place-items: center; transition: background .2s, color .2s; }
.hn-quick a:hover .hn-ic { background: var(--navy); color: #fff; }
.hn-quick b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.3; }
.hn-qs { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* ---------- Secciones ---------- */
.hn-sec { padding-top: var(--sec); }
.hn-sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.hn-sh h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; }
.hn-sh h2 em { font-style: normal; color: var(--blue); }
.hn-sh p { margin: 6px 0 0; font-size: 15px; }
.hn-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--blue); white-space: nowrap; padding: 8px 4px; }
.hn-more:hover { color: var(--navy); }

/* ---------- Tarjetas de noticias ---------- */
.hn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.hn-card { display: block; background: var(--paper); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.hn-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); color: inherit; }
.hn-card-im { position: relative; aspect-ratio: 4 / 3; background: var(--tint) center / cover no-repeat; overflow: hidden; }
.hn-card-im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hn-card:hover .hn-card-im img { transform: scale(1.05); }
.hn-tag { position: absolute; left: 16px; top: 16px; z-index: 2; background: #fff; color: var(--navy); font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.hn-card-bd { padding: 22px 26px 26px; }
.hn-card h3 { font-size: 20px; line-height: 1.45; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-card:hover h3 { color: var(--blue); }
.hn-card p { margin: 0 0 12px; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-date { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Paneles ---------- */
.hn-panels { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gut); align-items: start; }
.hn-panel { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 38px) clamp(20px, 3vw, 40px); box-shadow: var(--shadow); }
.hn-panel--navy { background: var(--navy); color: #fff; box-shadow: none; }
.hn-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hn-panel h3 { font-size: 22px; margin: 0; }
.hn-panel--navy h3 { color: #fff; }
.hn-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.hn-tabs button { border: 0; background: var(--tint); color: var(--navy); padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: background .2s, color .2s; }
.hn-tabs button:hover { background: var(--tint-2); }
.hn-tabs button.active { background: var(--navy); color: #fff; }
.hn-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; color: var(--ink); }
.hn-row:last-child { border-bottom: 0; }
.hn-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-row:hover { color: var(--blue); }
.hn-panel--navy .hn-row { color: #fff; border-color: rgba(255, 255, 255, .18); }
.hn-panel--navy .hn-row:hover { color: #fff; opacity: .85; }
.hn-panel--navy .hn-date { color: rgba(255, 255, 255, .7); }
.hn-panel--navy .hn-more { color: #fff; }
.hn-empty { margin: 6px 0 0; font-size: 15px; }
.hn-panel--navy .hn-empty { color: rgba(255, 255, 255, .75); }

/* ---------- Galería ---------- */
.hn-gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15.5vw, 215px); gap: 16px; }
.hn-gal { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--tint); display: block; color: #fff; }
.hn-gal:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.hn-gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.hn-gal:hover img { transform: scale(1.06); }
.hn-gal span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; font-weight: 700; font-size: 15px; background: linear-gradient(transparent, rgba(1, 47, 108, .88)); color: #fff; }
.hn-gal:hover { color: #fff; }

/* ---------- Aliados ---------- */
.hn-allies { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.hn-ally { background: var(--paper); border-radius: var(--r-md); height: 104px; display: flex; align-items: center; justify-content: center; padding: 20px; box-shadow: var(--shadow); }
.hn-ally img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.hn-ally:hover img { filter: none; opacity: 1; }

/* ---------- Pie ---------- */
.hn-foot { background: var(--navy); color: #fff; margin-top: var(--sec); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.hn-foot-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr; gap: clamp(28px, 4vw, 64px); padding: clamp(48px, 6vw, 80px) 0 40px; }
.hn-foot h4 { font-size: 18px; color: #fff; margin: 0 0 16px; }
.hn-foot p, .hn-foot a, .hn-foot dd, .hn-foot dt { color: rgba(255, 255, 255, .82); font-size: 15px; }
.hn-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hn-foot-logo { background: var(--paper); display: inline-block; padding: 14px 20px; border-radius: var(--r-sm); margin-bottom: 18px; }
.hn-foot-logo img { height: 66px; width: auto; display: block; }
.hn-foot dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.hn-foot dt { font-weight: 700; color: rgba(255, 255, 255, .6); }
.hn-foot dd { margin: 0; overflow-wrap: anywhere; }
.hn-foot-social { display: flex; gap: 10px; margin-top: 20px; }
.hn-foot-social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; transition: background .2s, color .2s; }
.hn-foot-social a:hover { background: #fff; color: var(--navy); text-decoration: none; }
.hn-foot-list { list-style: none; margin: 0; padding: 0; }
.hn-foot-list li { padding: 9px 0; }
.hn-foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px; color: rgba(255, 255, 255, .7); }
.hn-copy { border-top: 1px solid rgba(255, 255, 255, .16); padding: 18px 0 26px; font-size: 13px; text-align: center; }
.hn-copy p, .hn-copy a { color: rgba(255, 255, 255, .75); margin: 0; }
.scrollTo { position: fixed; right: 20px; bottom: 20px; z-index: 1040; background: var(--navy); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; padding: 0; display: none; box-shadow: 0 14px 24px -12px rgba(1, 47, 108, .7); }
.scrollTo:hover { background: var(--blue); color: #fff; }

/* ---------- Menú móvil ---------- */
#menuMovil .modal-content { border: 0; border-radius: var(--r-md); overflow: hidden; }
#menuMovil .accordion-button { font-weight: 800; font-size: 1.05rem; border-radius: 0; }
#menuMovil .accordion-button:not(.collapsed) { background: var(--tint); color: var(--navy); box-shadow: none; }
#menuMovil a.accordion-button::after { display: none; }
#menuMovil .accordion-item { border-radius: 0; }
#menuMovil li a { display: block; padding: 7px 0; font-weight: 600; }
#menuMovil .hn-btn { padding: 10px 20px; }

/* ---------- Movimiento ---------- */
@keyframes hn-rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
    .hn-stage-text > * { animation: hn-rise .9s var(--ease) both; }
    .hn-stage-text > :nth-child(2) { animation-delay: 80ms; } .hn-stage-text > :nth-child(3) { animation-delay: 160ms; } .hn-stage-text > :nth-child(4) { animation-delay: 240ms; }
    .hn-quick { animation: hn-rise 1s var(--ease) 300ms both; }
    @supports (animation-timeline: view()) {
        .hn-reveal .hn-card, .hn-reveal .hn-gal, .hn-reveal .hn-panel, .hn-reveal .hn-ally { animation: hn-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    }
}

/* ---------- Adaptación ---------- */
@media (max-width: 991px) {
    #header.hn-bar { display: none; }
    .hn-mast { position: sticky; top: 0; z-index: 1030; }
    .hn-mast-in { min-height: 84px; grid-template-columns: 1fr auto auto; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
    .hn-logo { grid-column: 1; grid-row: 1; justify-self: start; }
    .hn-logo img { height: 72px; }
    .hn-lang { grid-column: 2; grid-row: 1; gap: 8px; }
    .hn-lang a { width: 36px; height: 26px; border-radius: 6px; }
    .hn-burger { grid-column: 3; grid-row: 1; }
    .hn-burger { display: inline-grid; place-items: center; }
    .hn-clocks { display: none; }
    .hn-stage::before { background: linear-gradient(180deg, rgba(1, 47, 108, 0) 35%, rgba(1, 47, 108, .78) 100%); }
    .hn-stage-text { top: auto; bottom: 104px; transform: none; padding-right: 24px; right: 0; }
    .hn-stage-ctrl { bottom: 70px; }
    .hn-stage-text { bottom: 104px; }
    .hn-stage-ctrl .hn-wrap { justify-content: center; }
    .hn-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -32px 12px 0; }
    .hn-quick a { border-bottom: 1px solid var(--line); }
    .hn-quick a:nth-child(2n) { border-right: 0; }
    .hn-quick a:nth-last-child(-n+2) { border-bottom: 0; }
    .hn-quick a:first-child, .hn-quick a:last-child { border-radius: 0; }
    .hn-quick a:nth-child(1) { border-top-left-radius: var(--r-md); } .hn-quick a:nth-child(2) { border-top-right-radius: var(--r-md); }
    .hn-quick a:nth-child(3) { border-bottom-left-radius: var(--r-md); } .hn-quick a:nth-child(4) { border-bottom-right-radius: var(--r-md); }
    .hn-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hn-panels { grid-template-columns: 1fr; }
    .hn-gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
    .hn-foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .hn-stage { height: 540px; }
    .hn-quick a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; }
    .hn-cards { grid-template-columns: 1fr; }
    .hn-sh p { display: none; }
    .hn-row { font-size: 16px; }
    .hn-gal-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
    .hn-gal:nth-child(1) { grid-column: auto; grid-row: auto; }
    .hn-lang a { padding: 6px 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .hn-card, .hn-gal img, .hn-card-im img { transition: none; }
}

/* =====================================================================
   Páginas internas
   ===================================================================== */
.hn-pagehead { padding-top: 24px; }
.hn-pagehead-in { position: relative; overflow: hidden; background: var(--tint); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 48px) clamp(22px, 4vw, 56px); }
.hn-pagehead-in::after { content: ""; position: absolute; right: -90px; top: -110px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(3, 72, 164, .16), rgba(3, 72, 164, 0) 68%); pointer-events: none; }
.hn-pagehead h1 { position: relative; z-index: 1; font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--navy); margin: 8px 0 0; letter-spacing: -.03em; }
.hn-pagehead p { position: relative; z-index: 1; margin: 10px 0 0; font-size: 17px; max-width: 46em; }
.hn-crumbs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hn-crumbs a { color: var(--blue); }
.hn-crumbs a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.hn-crumbs b { color: var(--ink); font-weight: 700; }

.hn-page { padding-top: 32px; }
.hn-page-grid { display: grid; gap: var(--gut); align-items: start; grid-template-columns: minmax(0, 1fr); }
.hn-page-grid.has-aside { grid-template-columns: 290px minmax(0, 1fr); }
.hn-aside { position: sticky; top: 76px; display: grid; gap: 20px; }
.hn-side { background: var(--paper); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow); }
.hn-side h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 0 0 12px; }
.hn-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hn-side li { list-style: none; }
.hn-side a, .hn-side button.hn-side-btn { display: block; width: 100%; text-align: left; padding: 11px 16px; border: 0; background: transparent; border-radius: var(--r-sm); font-size: 16px; font-weight: 700; color: var(--ink); transition: background .2s, color .2s; }
.hn-side a:hover, .hn-side button.hn-side-btn:hover { background: var(--tint); color: var(--navy); }
.hn-side a.is-on, .hn-side button.hn-side-btn.is-on { background: var(--navy); color: #fff; }
.hn-recent { display: grid; gap: 14px; }
.hn-recent a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; }
.hn-recent .im { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--tint) center / cover no-repeat; overflow: hidden; }
.hn-recent .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hn-recent b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.45; font-weight: 700; color: var(--ink); }
.hn-recent a:hover b { color: var(--blue); }
.hn-recent .hn-date { font-size: 12px; }

.hn-sheet { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 48px); box-shadow: var(--shadow); }

/* Texto enriquecido (contenido del panel) */
.hn-prose { font-size: 17px; line-height: 1.85; color: var(--ink); overflow-wrap: break-word; }
.hn-prose p, .hn-prose li, .hn-prose span, .hn-prose div { color: inherit; }
.hn-prose p { margin: 0 0 1.1em; }
.hn-prose h1, .hn-prose h2, .hn-prose h3, .hn-prose h4 { margin: 1.6em 0 .6em; color: var(--navy); }
.hn-prose img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.hn-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.hn-prose ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1.1em; }
.hn-prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.hn-prose li { list-style: inherit; }
.hn-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; }
.hn-prose td, .hn-prose th { border: 1px solid var(--line); padding: 10px 14px; }
.hn-prose iframe { max-width: 100%; border: 0; border-radius: var(--r-sm); }
.hn-prose > *:last-child { margin-bottom: 0; }

/* Artículo */
.hn-article-im { border-radius: var(--r-md); overflow: hidden; margin-bottom: 28px; background: var(--tint); }
.hn-article-im img { display: block; width: 100%; height: auto; }
.hn-article h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin: 0 0 10px; }
.hn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.hn-meta i { color: var(--blue); margin-right: 6px; }
.hn-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; font-weight: 700; color: var(--blue); }

/* Listados */
.hn-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.hn-search { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: var(--shadow); flex: 1; min-width: 260px; max-width: 560px; }
.hn-search i { color: var(--blue); }
.hn-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; padding: 10px 4px; color: var(--ink); min-width: 0; }
.hn-search input::placeholder { color: var(--muted); opacity: .8; }
.hn-search button { border: 0; background: var(--navy); color: #fff; font-weight: 700; padding: 11px 22px; border-radius: 999px; transition: background .2s; }
.hn-search button:hover { background: var(--blue); }
.hn-count { font-size: 14px; color: var(--muted); font-weight: 600; }
.hn-empty-box { background: var(--paper); border-radius: var(--r-md); padding: 48px 24px; text-align: center; color: var(--muted); box-shadow: var(--shadow); }

.hn-rows { display: grid; gap: 14px; }
.hn-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--paper); border-radius: var(--r-md); padding: 14px 20px 14px 14px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.hn-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); color: inherit; }
.hn-item .im { width: 112px; height: 84px; border-radius: var(--r-sm); background: var(--tint) center / cover no-repeat; }
.hn-item h3 { font-size: 18px; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-item:hover h3 { color: var(--blue); }
.hn-item small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.hn-item .go { color: var(--blue); font-weight: 800; white-space: nowrap; }

.hn-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.hn-pager a, .hn-pager span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.hn-pager a:hover { background: var(--tint); color: var(--navy); }
.hn-pager .is-on { background: var(--navy); color: #fff; }
.hn-pager .is-off { opacity: .45; box-shadow: none; background: transparent; }

/* Galería */
.hn-album { display: block; border: 0; padding: 0; text-align: left; width: 100%; background: var(--paper); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.hn-album:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); }
.hn-album .im { aspect-ratio: 4 / 3; background: var(--tint) center / cover no-repeat; position: relative; }
.hn-album .im::after { content: "\f03e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; font-size: 14px; }
.hn-album b { display: block; padding: 18px 22px 22px; font-size: 17px; line-height: 1.45; color: var(--ink); }
.hn-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.hn-video { background: var(--paper); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
.hn-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.hn-video b { display: block; padding: 16px 20px 20px; font-size: 17px; line-height: 1.45; color: var(--ink); }
#modalGaleriaFoto .modal-content { border: 0; border-radius: var(--r-lg); overflow: hidden; }
#modalGaleriaFoto .modal-header { border-bottom: 1px solid var(--line); padding: 18px 26px; }
#modalGaleriaFoto .modal-title { font-weight: 800; letter-spacing: -.02em; }
#modalGaleriaFoto .modal-body { padding: 26px; }
#modalGaleriaFoto .carousel img { border-radius: var(--r-sm); }
#modalGaleriaFoto .carousel-indicators { position: static; margin: 12px 0 0; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
#modalGaleriaFoto .carousel-indicators [data-bs-target] { width: 72px !important; height: 56px !important; border-radius: 8px; border: 2px solid transparent; opacity: .6; margin: 0; }
#modalGaleriaFoto .carousel-indicators .active { opacity: 1; border-color: var(--navy); }

/* Directorio */
.hn-chips2 { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hn-chips2 button { border: 0; background: var(--paper); color: var(--navy); font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 999px; box-shadow: var(--shadow); transition: background .2s, color .2s; }
.hn-chips2 button:hover { background: var(--tint); }
.hn-chips2 button.is-on { background: var(--navy); color: #fff; }
.hn-dir { display: grid; gap: 14px; }
.hn-dir-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; background: var(--paper); border-radius: var(--r-md); padding: 22px 26px; box-shadow: var(--shadow); }
.hn-dir-item h3 { font-size: 20px; margin: 0 0 6px; }
.hn-dir-item .addr { font-size: 15px; color: var(--muted); }
.hn-dir-item .addr a { color: var(--blue); }
.hn-dir-item .addr a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hn-phone { display: inline-flex; align-items: center; gap: 10px; background: var(--tint); color: var(--navy); font-weight: 800; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.hn-phone:hover { background: var(--navy); color: #fff; }
.hn-soc { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.hn-soc a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--navy); font-size: 15px; transition: background .2s, color .2s; }
.hn-soc a:hover { background: var(--navy); color: #fff; }

/* Introducción */
.hn-pres { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.hn-pres-card { position: sticky; top: 96px; }
.hn-pres-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }
.hn-pres-cap { margin-top: 14px; background: var(--tint); border-radius: var(--r-sm); padding: 14px 16px; }
.hn-pres-cap span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.hn-pres-cap b { display: block; font-size: 20px; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.hn-facts { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 0; background: var(--tint); border-radius: var(--r-md); margin: 28px 0; overflow: hidden; }
.hn-facts > * { padding: 14px 18px; border-bottom: 1px solid var(--tint-2); font-size: 16px; }
.hn-facts dt { font-weight: 800; color: var(--navy); }
.hn-facts dd { margin: 0; color: var(--ink); }
.hn-facts .wide { grid-column: span 3; }
.hn-facts > *:nth-last-child(-n+2) { border-bottom: 0; }
.hn-block { margin-top: 36px; }
.hn-block h3 { font-size: 22px; margin: 0 0 14px; }
.hn-block h4 { font-size: 16px; color: var(--blue); margin: 0 0 6px; }
.hn-members { display: grid; gap: 14px; }
.hn-member { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 28px; background: var(--paper); border-radius: var(--r-md); padding: 22px 26px; box-shadow: var(--shadow); }
.hn-member .role { font-size: 14px; font-weight: 700; color: var(--blue); }
.hn-member .who { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.hn-member .hn-prose { font-size: 15px; line-height: 1.7; }
.hn-contacts { display: grid; gap: 10px; }
.hn-contact { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: var(--paper); border-radius: var(--r-sm); padding: 16px 22px; box-shadow: var(--shadow); font-weight: 700; }
.hn-contact span:last-child { color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hn-map iframe { width: 100% !important; min-height: 420px; border: 0; border-radius: var(--r-md); }
.hn-org-img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }

@media (max-width: 991px) {
    .hn-page-grid.has-aside { grid-template-columns: minmax(0, 1fr); }
    .hn-aside { position: static; }
    .hn-side ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .hn-side ul::-webkit-scrollbar { display: none; }
    .hn-side a, .hn-side button.hn-side-btn { white-space: nowrap; width: auto; padding: 9px 16px; background: var(--tint); }
    .hn-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hn-pres { grid-template-columns: 1fr; }
    .hn-pres-card { position: static; max-width: 280px; }
    .hn-member { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .hn-grid-3 { grid-template-columns: 1fr; }
    .hn-item { grid-template-columns: 88px minmax(0, 1fr); padding: 12px; gap: 14px; }
    .hn-item .im { width: 88px; height: 72px; }
    .hn-item .go { display: none; }
    .hn-dir-item { grid-template-columns: 1fr; }
    .hn-soc { justify-content: flex-start; }
    .hn-facts { grid-template-columns: 1fr 1fr; }
    .hn-facts .wide { grid-column: span 1; }
    .hn-contact { flex-direction: column; align-items: flex-start; gap: 4px; }
}
.hn-sheet .hn-member { box-shadow: none; background: var(--canvas); }
.hn-sheet .hn-contact { box-shadow: none; background: var(--canvas); }

/* Móvil: el lateral no debe ensanchar la página */
.hn-aside, .hn-side, .hn-main { min-width: 0; }
@media (max-width: 991px) {
    .hn-side { overflow: hidden; }
    .hn-recent a { grid-template-columns: 76px minmax(0, 1fr); }
    .hn-recent b { white-space: normal; }
    /* en móvil el contenido va primero: se oculta la lista de recientes del lateral */
    .hn-side + .hn-side { display: none; }
}
