/* ================================================================
   HEADER + FOOTER OFICIAL Gob.mx \2014  Sistema Nacional de Dise\F1 o
   Barra superior institucional y pie de p\E1 gina est\E1 ndar.
   ================================================================ */

.gobmx-topbar {
  background: linear-gradient(to right, var(--pguinda900, #611232), var(--pguinda600, #9B2247));
  color: #fff;
  min-height: 42px;
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  box-shadow: var(--dropLV1, 0 2px 4px rgba(0,0,0,.15));
  position: relative;
  z-index: 1200;
}
.gobmx-topbar-inner {
  width: 100%;
  max-width: var(--MaxWidth, 1440px);
  margin: 0 auto;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.gobmx-logo { display: flex; align-items: center; text-decoration: none; }
.gobmx-logo svg { height: 26px; width: auto; display: block; }
.gobmx-logo-text { fill: #fff; font-family: 'Montserrat', sans-serif; }
.gobmx-branch { display: flex; flex-direction: column; line-height: 1.1; }
.gobmx-branch-name { font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.gobmx-branch-sub  { font-size: .68rem; opacity: .85; }
.gobmx-topbar-links { margin-left: auto; display: flex; gap: 14px; font-size: .8rem; font-weight: 600; }
.gobmx-topbar-links a { color: #fff; text-decoration: none; opacity: .9; }
.gobmx-topbar-links a:hover { opacity: 1; text-decoration: underline; }

/* \2500 \2500  Layout con topbar + footer \2500 \2500  */
body { height: auto !important; min-height: 100vh !important; overflow: visible !important; }
#main {
  flex: none !important;
  height: calc(100vh - var(--header-h, 62px) - 42px) !important;
  min-height: 480px !important;
}

/* \2500 \2500  FOOTER \2500 \2500  */
.gobmx-footer {
  margin-top: 0;
  background: var(--pguinda900, #611232);
  color: #fff;
  font-family: 'Noto Sans', sans-serif;
}
.gobmx-footer-container {
  max-width: var(--MaxWidth, 1440px);
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.gobmx-footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 10px 0;
  color: #fff;
}
.gobmx-footer-col ul { list-style: none; margin: 0; padding: 0; }
.gobmx-footer-col ul li { margin: 6px 0; font-size: .875rem; }
.gobmx-footer-col a { color: #fff; text-decoration: none; opacity: .88; font-weight: 400; }
.gobmx-footer-col a:hover { opacity: 1; text-decoration: underline; }
.gobmx-footer-social { display: flex; flex-direction: column; }
.gobmx-footer-social-icons { display: flex; gap: 14px; margin-top: 4px; }
.gobmx-footer-social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.05rem;
  transition: background .15s ease-in-out;
}
.gobmx-footer-social-icons a:hover { background: rgba(255,255,255,.24); }
.gobmx-footer-legal {
  border-top: 1px solid rgba(255,255,255,.22);
  padding: 14px 16px 18px;
  text-align: center;
  font-size: .78rem;
  opacity: .92;
}
.gobmx-footer-legal p { margin: 3px 0; }
@media (max-width: 767.98px) {
  .gobmx-topbar { min-height: 38px; }
  .gobmx-branch-sub { display: none; }
  #main { height: calc(100vh - var(--header-h, 62px) - 38px) !important; }
}

/* ================================================================
   SELECTOR DE IDIOMA (ES/EN) \2014  integrado al header del visor
   ================================================================ */
.lang-switch {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid rgba(255,255,255,0.13); border-radius: var(--r-sm, 8px);
  overflow: hidden; background: rgba(255,255,255,0.09);
}
.lang-switch .lang-opt {
  background: transparent; border: none; color: #fff;
  font-family: 'Montserrat', sans-serif; font-size: 0.68rem; font-weight: 700;
  padding: 0.34rem 0.52rem; cursor: pointer; line-height: 1;
  min-width: 32px; min-height: 28px;
  transition: background var(--t-fast, .15s) ease;
}
.lang-switch .lang-opt:hover { background: rgba(255,255,255,0.16); }
.lang-switch .lang-opt.active { background: var(--pguinda600, #9B2247); }

/* ================================================================
   PANTALLA COMPLETA \2014  oculta encabezado y pie de p\E1 gina del sitio
   Activada con html.pantalla-completa (bot\F3 n #btn-fullscreen)
   ================================================================ */
#btn-fullscreen {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--r-sm, 8px); color: #fff;
  font-size: 0.95rem; padding: 0.38rem 0.55rem; cursor: pointer;
  min-width: 40px; min-height: 40px; flex-shrink: 0;
  transition: background var(--t-fast, .15s) var(--ease, ease),
              transform var(--t-fast, .15s) var(--ease-spring, ease);
}
#btn-fullscreen:hover { background: rgba(255,255,255,0.16); transform: rotate(90deg); }
#btn-fullscreen:active { transform: scale(.94); }

html.pantalla-completa .gobmx-topbar,
html.pantalla-completa .gobmx-footer,
html.pantalla-completa .navbar.sub-navbar,
html.pantalla-completa #gobmx-topbar-fallback,
html.pantalla-completa #gobmx-footer-fallback,
html.pantalla-completa .app-header,
html.pantalla-completa footer.app-footer {
  display: none !important;
}
/* Visor a ventana completa: solo queda el header de la app */
html.pantalla-completa #main {
  height: calc(100vh - var(--header-h, 62px)) !important;
}
html.pantalla-completa #geovisor-app {
  height: 100vh !important;
}
html.pantalla-completa body {
  overflow: hidden !important;
}
