/* Estilos locales del encabezado y pie; no modifican el archivo de actas. */
.topbar { background: #102536; color: #dce5eb; font-size: .78rem; padding: 8px 0; line-height: 1.5; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .container > span:last-child { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem; }
.topbar .mx-2 { margin-inline: .5rem; opacity: .5; }
.topbar .me-1, .actas-header .me-1 { margin-right: .25rem; }
.actas-header { background: #fff; box-shadow: 0 7px 24px rgba(18,38,54,.09); position: sticky; top: 0; z-index: 1020; padding: 8px 0; line-height: 1.5; }
.actas-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.actas-header .actas-brand { display: inline-flex; align-items: center; padding: 5px 0; }
.actas-header .brand-mark { width: 220px; height: auto; max-height: 85px; object-fit: contain; object-position: left center; }
.actas-navigation { display: flex; align-items: center; gap: 12px; }
.actas-navigation a { font-size: .9rem; font-weight: 650; text-decoration: none; }
.actas-portal-link { color: #334152; padding: 10px 16px; border-radius: .45rem; }
.actas-portal-link:hover { color: var(--brand); background: #fbecef; }
.actas-home-link { display: inline-flex; align-items: center; padding: 6px 16px; border: 1px solid var(--brand); border-radius: 30px; background: var(--brand); color: #fff; }
.actas-home-link:hover { background: var(--dark); color: #fff; }
.site-footer { background: #102536; color: #c9d4dc; overflow: hidden; position: relative; }
.site-footer::before { background: var(--brand); content: ""; height: 4px; inset: 0 0 auto; position: absolute; }
.site-footer .footer-main { padding: 4rem 0 2.75rem; }
.site-footer .footer-logo-panel { background: #fff; border-radius: .7rem; display: inline-flex; margin-bottom: 1.15rem; padding: .45rem .7rem; }
.site-footer .footer-logo { max-height: 58px; max-width: 220px; object-fit: contain; object-position: left center; }
.site-footer .footer-intro { color: #b2c0ca; line-height: 1.7; max-width: 355px; }
.site-footer h2 { color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .1em; margin: .5rem 0 1.1rem; text-transform: uppercase; }
.site-footer a { color: #c9d4dc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links li + li { margin-top: .65rem; }
.site-footer .footer-links a { font-size: .9rem; }
.site-footer .footer-links a::before { color: #d65061; content: "›"; font-weight: 800; margin-right: .45rem; }
.site-footer .footer-contact li { align-items: flex-start; display: flex; font-size: .87rem; gap: .7rem; line-height: 1.5; margin-bottom: .9rem; }
.site-footer .footer-contact i { color: #e25868; margin-top: .2rem; width: 14px; }
.site-footer .footer-social { display: flex; gap: .65rem; }
.site-footer .footer-social a { align-items: center; background: rgba(255,255,255,.1); border-radius: 50%; display: inline-flex; height: 38px; justify-content: center; transition: background .2s ease, transform .2s ease; width: 38px; }
.site-footer .footer-social a:hover { background: var(--brand); transform: translateY(-2px); }
.site-footer .footer-bottom { align-items: center; border-top: 1px solid rgba(255,255,255,.13); color: #91a2ad; display: flex; flex-wrap: wrap; font-size: .78rem; gap: .8rem 1.5rem; justify-content: space-between; padding: 1.25rem 0; }
.site-footer .footer-bottom a { color: #fff; font-weight: 700; }


.site-footer { line-height: 1.5; }
.site-footer .footer-main { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 48px; }
.site-footer .footer-links, .site-footer .footer-contact { list-style: none; padding: 0; margin: 0 0 16px; }
.site-footer .footer-intro { margin: 0 0 16px; font-size: 16px; }
.site-footer h2 { line-height: 1.2; }
.site-footer .footer-logo { display: block; width: auto; height: auto; }
@media (max-width: 1199.98px) { .actas-header .brand-mark { width: 164px; } }
@media (max-width: 991.98px) {
  .site-footer .footer-main { grid-template-columns: 5fr 7fr; gap: 24px; }
  .site-footer .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .actas-navigation { gap: 5px; flex-wrap: wrap; }
  .actas-navigation a { font-size: .75rem; }
  .actas-portal-link { padding: 8px; }
}
@media (max-width: 575.98px) {
  .topbar .container { justify-content: center; text-align: center; }
  .topbar .mx-2 { display: none; }
  .actas-header .brand-mark { width: 145px; max-height: 62px; }
  .site-footer .footer-main { padding: 3rem 0 2rem; }
  .site-footer .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 374.98px) { .actas-header .brand-mark { width: 125px; } }
@media print { .actas-header, .topbar, .site-footer { display: none; } }

.back-to-top { align-items: center; background: var(--brand); border: 2px solid #fff; border-radius: 50%; bottom: 1.25rem; box-shadow: 0 8px 24px rgba(16, 37, 54, .28); color: #fff; display: inline-flex; height: 48px; justify-content: center; opacity: 0; pointer-events: none; position: fixed; right: 1.25rem; text-decoration: none; transform: translateY(10px); transition: background .2s ease, opacity .2s ease, transform .2s ease, visibility .2s ease; visibility: hidden; width: 48px; z-index: 1050; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
.back-to-top.is-visible:hover { background: var(--dark); color: #fff; transform: translateY(-3px); }


@media (max-width: 575.98px) { .back-to-top { bottom: 1rem; height: 44px; right: 1rem; width: 44px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
@media print { .back-to-top { display: none; } }

/* Navegación compacta para teléfonos y tabletas. */
@media (max-width: 991.98px) {
  .actas-header .brand-mark { width: 180px; }
  .actas-navigation a { white-space: nowrap; }
  .actas-navigation .actas-portal-link, .actas-navigation .actas-home-link { min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer .footer-main > div { min-width: 0; }
  .site-footer .footer-contact i { flex-shrink: 0; }
}
@media (max-width: 575.98px) {
  .topbar { font-size: 11px; padding: 8px 0; }
  .topbar .container { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .topbar .container > span:last-child { gap: 4px 10px; }
  .topbar-hours { white-space: nowrap; }
  .actas-header { padding: 10px 0; }
  .actas-header .container { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; }
  .actas-header .actas-brand { grid-row: 1; }
  .actas-header .brand-mark { width: 155px; max-height: 62px; }
  .actas-navigation { display: contents; }
  .actas-navigation .actas-home-link { grid-column: 2; grid-row: 1; justify-content: center; font-size: 12px; padding: 8px 12px; }
  .actas-navigation .actas-portal-link { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; min-height: 36px; font-size: 12px; padding: 4px 0; }
  .site-footer .footer-main { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 32px 0; }
  .site-footer .footer-about { grid-column: auto; }
  .site-footer .footer-intro { font-size: 14px; }
  .site-footer .footer-bottom { padding-right: 52px; font-size: 11px; }
}
@media (max-width: 359.98px) {
  .actas-header .brand-mark { width: 132px; }
  .actas-navigation .actas-home-link { font-size: 11px; padding-inline: 10px; }
}

/* Menú propio de actas, sin dependencias del portal. */
.actas-menu-toggle { display: none; }
@media (max-width: 991.98px) {
  .actas-header .container { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 16px; }
  .actas-header .actas-brand { grid-column: 1; grid-row: 1; }
  .actas-menu-toggle { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--brand); cursor: pointer; }
  .actas-menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .15s ease, opacity .15s ease; }
  .actas-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .actas-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .actas-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .actas-navigation { display: none; grid-column: 1 / -1; grid-row: 2; padding: 12px 0 4px; margin-top: 10px; border-top: 1px solid var(--line); }
  .actas-navigation.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .actas-navigation .actas-portal-link, .actas-navigation .actas-home-link { justify-content: center; padding: 10px 16px; font-size: 14px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .actas-menu-toggle span { transition: none; } }
