/* Encabezado y pie compartidos de las páginas públicas de TerritorioCR (2026-10-13).
   Los inserta /compartido/encabezado.js; dentro de un iframe (p. ej. el mapa de escuelas en la ficha) no se muestran. */
.tcr-nav {
  background: #1B4332; color: #F7F4EE; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; flex-wrap: wrap; gap: 8px 20px; font-family: 'Montserrat', system-ui, sans-serif; font-size: 13px;
  box-shadow: 0 2px 0 rgba(255,255,255,0.04); position: relative; z-index: 50;
}
.tcr-nav .tcr-logo { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; flex-shrink: 0; -webkit-touch-callout: none; user-select: none; padding: 4px 0; background: none; box-shadow: none; border-radius: 0; transform: none; }
.tcr-nav .tcr-logo-img { height: 54px; width: auto; display: block; }
.tcr-nav .tcr-logo:hover .tcr-logo-img { opacity: 0.92; }
.tcr-nav-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.tcr-nav-links a { color: #F7F4EE; text-decoration: none; font-weight: 600; opacity: 0.88; transition: opacity 0.15s ease; }
.tcr-nav-links a:hover { opacity: 1; text-decoration: underline; }
.tcr-nav-links a.activo { opacity: 1; border-bottom: 2px solid #C9A87C; padding-bottom: 2px; }
.tcr-nav-links a.tcr-nav-cta { background: #C9A87C; color: #1B4332; opacity: 1; padding: 8px 16px; border-radius: 100px; border-bottom: none; }
.tcr-nav-links a.tcr-nav-cta:hover { text-decoration: none; filter: brightness(1.05); }
.tcr-menu-btn { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #F7F4EE; font-size: 22px; line-height: 1; padding: 6px 12px; border-radius: 10px; cursor: pointer; }

.tcr-pie { background: #1B4332; color: #cfe0d5; margin-top: 40px; padding: 40px 24px 24px; font-size: 13px; font-family: 'Montserrat', system-ui, sans-serif; line-height: 1.5; }
.tcr-pie-columnas { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.tcr-pie-columnas p { line-height: 1.6; max-width: 340px; }
.tcr-pie-marca { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600; color: #C9A87C; margin-bottom: 8px; }
.tcr-pie-eslogan { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #F7F4EE; opacity: 0.85; margin: -4px 0 12px; }
.tcr-pie-titulo { font-weight: 700; color: #F7F4EE; margin-bottom: 8px; }
.tcr-pie a { display: block; color: #cfe0d5; text-decoration: none; padding: 3px 0; }
.tcr-pie a:hover { color: #F7F4EE; text-decoration: underline; }
.tcr-pie-base { max-width: 1100px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12px; text-align: center; }

.tcr-nav a:focus-visible, .tcr-nav button:focus-visible, .tcr-pie a:focus-visible { outline: 3px solid #C9A87C; outline-offset: 2px; }

@media (max-width: 760px) {
  .tcr-nav .tcr-logo-img { height: 46px; }
  .tcr-menu-btn { display: block; }
  .tcr-nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 4px; }
  .tcr-nav-links.abierto { display: flex; }
  .tcr-nav-links a { padding: 11px 4px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 15px; }
  .tcr-nav-links a.activo { border-bottom: none; color: #C9A87C; }
  .tcr-nav-links a.tcr-nav-cta { text-align: center; margin-top: 8px; border-top: none; }
  .tcr-pie-columnas { grid-template-columns: 1fr 1fr; }
  .tcr-pie-columnas > div:first-child { grid-column: 1 / -1; }
}

/* Botón de idioma (2026-10-15) */
.tcr-nav-links a.tcr-idioma { border: 1px solid rgba(201,168,124,0.7); border-radius: 100px; padding: 6px 12px; font-size: 12px; opacity: 1; color: #C9A87C; }
.tcr-nav-links a.tcr-idioma:hover { background: rgba(201,168,124,0.12); text-decoration: none; }
@media (max-width: 760px) { .tcr-nav-links a.tcr-idioma { text-align: center; margin-top: 8px; border-top: 1px solid rgba(201,168,124,0.7); } }
