/* Atelier 00949 — pegamento específico de WordPress.
   Los tokens y la gramática viven en revista.css + glossier.css;
   aquí solo lo que WordPress necesita para no romper el formato. */

/* Barra dorada de progreso de lectura (fix31 del portal). */
.atl-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}
.atl-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: #d9bc83;
  transition: width 0.08s linear;
}
body.admin-bar .atl-progress { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .atl-progress { top: 46px; }
}

/* Embeds de video (la clase del portal) y bloques de WP. */
.atl-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.atl-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}
.gls-video-stage .wp-block-embed,
.gls-video-stage figure {
  margin: 0;
}
.gls-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.gls-post-body video {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.gls-pod-bar audio {
  width: 100%;
}

/* Archivo y buscador. */
.atl-archive {
  padding: 2.2rem 0 3rem;
  display: grid;
  gap: 1.6rem;
}
.atl-empty {
  color: #6b6f6a;
  font-family: 'Libre Franklin', sans-serif;
}
.atl-search {
  display: flex;
  gap: 0.6rem;
}
.atl-search input[type='search'] {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid #ddd6c7;
  border-radius: 999px;
  font-family: 'Libre Franklin', sans-serif;
}
.atl-search button,
.atl-sub-form button {
  background: #173e32;
  color: #faf8f3;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700;
  cursor: pointer;
}
.atl-sub-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.atl-sub-form input[type='email'] {
  flex: 1 1 220px;
  padding: 0.7rem 1rem;
  border: 1px solid #ddd6c7;
  border-radius: 999px;
  font-family: 'Libre Franklin', sans-serif;
}
.atl-sub-ok {
  color: #173e32;
  font-weight: 700;
  margin-top: 0.6rem;
}

/* Flipbook. */
.atl-flip-wrap {
  padding: 2rem 0 3rem;
}
.atl-flip {
  width: 100%;
  height: 80vh;
  border: 1px solid #e7e1d3;
  border-radius: 12px;
  background: #fff;
}

/* Comentarios nativos con aire de la casa. */
.atl-comments .comment-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}
.atl-comments .comment-body {
  background: #fff;
  border: 1px solid #eee7d7;
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.atl-comments .comment-meta,
.atl-comments .comment-author {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.85rem;
  color: #6b6f6a;
}
.atl-comments textarea,
.atl-comments input[type='text'],
.atl-comments input[type='email'],
.atl-comments input[type='url'] {
  width: 100%;
  border: 1px solid #ddd6c7;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-family: 'Libre Franklin', sans-serif;
}
.atl-comments .submit {
  background: #173e32;
  color: #faf8f3;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

/* ===== Fase 3: Directorio + Anúnciate ===== */
.atl-dir, .atl-an { max-width: 880px; margin: 0 auto; padding: 2.2rem 1.1rem 3rem; }
.atl-dir-hero h1, .atl-an h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem); margin: .3rem 0 .6rem; color: #173e32; }
.atl-dir-sub { max-width: 640px; color: #4c554e; font-size: 1.05rem; }
.atl-dir-block { margin-top: 2.4rem; }
.atl-dir-block > h2, .atl-an-group > h2, .atl-previa > h2 { font-family: 'Playfair Display', serif; color: #173e32; border-bottom: 2px solid #d9bc83; padding-bottom: .35rem; }
.atl-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; margin-top: 1rem; }
.atl-cat-card { display: flex; flex-direction: column; gap: .15rem; background: #fff; border: 1px solid #e3ddcf; border-radius: 14px; padding: .9rem 1rem; text-decoration: none; color: #22302a; transition: border-color .15s, transform .15s; }
.atl-cat-card:hover { border-color: #d9bc83; transform: translateY(-2px); }
.atl-cat-name { font-weight: 700; }
.atl-cat-count { font-size: .85rem; color: #71806f; }
.atl-cat-free { font-size: .78rem; color: #173e32; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.atl-biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; margin-top: 1rem; }
.atl-biz-card { background: #fff; border: 1px solid #e3ddcf; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.atl-biz-pos { border-color: #d9bc83; box-shadow: 0 6px 22px rgba(23,62,50,.08); }
.atl-biz-photo { position: relative; display: block; aspect-ratio: 16/9; background: #eef0e6; }
.atl-biz-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atl-biz-photo-ph { display: flex; align-items: center; justify-content: center; height: 100%; font-family: 'Playfair Display', serif; font-size: 3rem; color: #173e32; }
.atl-biz-badge { position: absolute; left: .7rem; bottom: .7rem; background: #173e32; color: #f4e9d2; font-size: .74rem; font-weight: 700; letter-spacing: .03em; padding: .28rem .6rem; border-radius: 999px; }
.atl-biz-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.atl-biz-cat { margin: 0; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: #71806f; font-weight: 700; }
.atl-biz-name { margin: 0; font-family: 'Playfair Display', serif; font-size: 1.25rem; }
.atl-biz-name a { color: #173e32; text-decoration: none; }
.atl-biz-oferta { margin: 0; color: #7a5f22; font-weight: 600; }
.atl-biz-actions { margin: .5rem 0 0; display: flex; gap: .45rem; flex-wrap: wrap; }
.atl-biz-btn { background: #173e32; color: #faf8f3; text-decoration: none; font-size: .85rem; font-weight: 700; padding: .45rem .8rem; border-radius: 999px; }
.atl-biz-btn-wa { background: #2f7d4f; }
.atl-biz-btn-ghost { background: transparent; color: #173e32; border: 1.5px solid #173e32; }
.atl-dir-cta { margin-top: 3rem; background: #173e32; color: #faf8f3; border-radius: 18px; padding: 2rem; text-align: center; }
.atl-dir-cta h2 { font-family: 'Playfair Display', serif; margin-top: 0; }
.atl-ficha-photo img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; }
.atl-ficha h1 { font-family: 'Playfair Display', serif; color: #173e32; }
.atl-ficha-oferta { font-size: 1.15rem; color: #7a5f22; font-weight: 700; }
.atl-ficha-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.atl-tarjeta-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.atl-tarjeta { background: #fff; border: 2px solid #173e32; border-radius: 20px; padding: 1.6rem; max-width: 430px; width: 100%; text-align: center; box-shadow: 0 12px 34px rgba(23,62,50,.12); }
.atl-tarjeta-logo { width: 170px; }
.atl-tarjeta-photo img { width: 100%; border-radius: 12px; margin-top: .8rem; }
.atl-tarjeta h1 { font-family: 'Playfair Display', serif; color: #173e32; margin: .7rem 0 .2rem; }
.atl-tarjeta-cat { color: #71806f; margin: 0; }
.atl-tarjeta-oferta { color: #7a5f22; font-weight: 700; }
.atl-tarjeta-qr { margin-top: .8rem; }
.atl-tarjeta-scan { font-size: .85rem; color: #71806f; }
.atl-mapa-frame { border-radius: 16px; overflow: hidden; border: 1px solid #e3ddcf; margin-top: 1rem; }
.atl-an-group { margin-top: 2.6rem; }
.atl-an-dark { background: #173e32; color: #faf8f3; border-radius: 18px; padding: 1.4rem 1.6rem; }
.atl-an-dark > h2 { color: #f4e9d2; border-color: #d9bc83; }
.atl-an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.atl-an-card { background: #fff; border: 1px solid #e3ddcf; border-radius: 16px; padding: 1.1rem 1.2rem; color: #22302a; }
.atl-an-card h3 { font-family: 'Playfair Display', serif; color: #173e32; margin: 0 0 .4rem; }
.atl-an-price { font-size: 1.5rem; font-weight: 800; color: #173e32; margin: .2rem 0; }
.atl-an-price span { font-size: .9rem; font-weight: 600; color: #71806f; }
.atl-an-price small { display: block; font-size: .8rem; font-weight: 600; color: #7a5f22; }
.atl-an-terms { margin: .5rem 0; padding-left: 1.1rem; color: #4c554e; font-size: .92rem; }
.atl-previa { margin-top: 2.2rem; background: #fffdf7; border: 1px solid #e3ddcf; border-radius: 18px; padding: 1.4rem 1.6rem; }
.atl-previa-grid { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 1.4rem; margin-top: 1rem; }
@media (max-width: 860px) { .atl-previa-grid { grid-template-columns: 1fr; } }
.atl-previa-form { display: flex; flex-direction: column; gap: .7rem; }
.atl-previa-form label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .92rem; color: #22302a; }
.atl-previa-form input, .atl-previa-form select, .atl-previa-form textarea { border: 1px solid #ddd6c7; border-radius: 10px; padding: .55rem .7rem; font: inherit; background: #fff; }
.atl-previa-precio { background: #173e32; color: #faf8f3; border-radius: 12px; padding: .9rem 1rem; }
.atl-previa-precio .pv-line, .atl-previa-precio .pv-total { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.atl-previa-precio .pv-total { border-top: 1px solid rgba(250,248,243,.35); margin-top: .4rem; padding-top: .5rem; font-size: 1.08rem; }
.atl-previa-nota { font-size: .82rem; color: #71806f; }
.atl-previa-frames { display: flex; flex-direction: column; gap: 1rem; }
.pv-frame { margin: 0; }
.pv-frame figcaption { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #71806f; margin-bottom: .35rem; }
.pv-feed, .pv-dir, .pv-side { display: flex; gap: .8rem; background: #fff; border: 1px solid #e3ddcf; border-radius: 14px; padding: .8rem; align-items: flex-start; }
.pv-feed img, .pv-dir img, .pv-side img, .pv-banner img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.pv-ph { width: 84px; height: 84px; flex: 0 0 84px; display: flex; align-items: center; justify-content: center; background: #eef0e6; border-radius: 10px; font-family: 'Playfair Display', serif; font-size: 2rem; color: #173e32; }
.pv-feed small { color: #71806f; text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; }
.pv-feed p { margin: .25rem 0 0; color: #4c554e; }
.pv-banner { display: flex; gap: .9rem; align-items: center; background: linear-gradient(120deg, #173e32, #24543f); color: #faf8f3; border-radius: 14px; padding: 1rem 1.2rem; }
.pv-presentador { background: #101c17; color: #f4e9d2; border-radius: 14px; padding: 1.1rem; text-align: center; }
.pv-presentador small { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: #d9bc83; }
.pv-presentador strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.6rem; margin: .3rem 0; }

/* fix (Fase 3): «.gls a» (0,1,1) ganaba a «.atl-biz-btn» (0,1,0) y
   dejaba la etiqueta VERDE sobre el botón verde — invisible, el
   mismo defecto fix4 del portal. Se reafirma con (0,2,1). */
.atl-dir a.atl-biz-btn, .atl-an a.atl-biz-btn { color: #faf8f3; }
.atl-dir a.atl-biz-btn-wa, .atl-an a.atl-biz-btn-wa { color: #fff; }
.atl-dir a.atl-biz-btn-ghost, .atl-an a.atl-biz-btn-ghost { color: #173e32; }

/* Corrección (Jorge, 11 nov 2026): en los marcos de la previa, el
   nombre, la oferta y las etiquetas son elementos EN LÍNEA dentro
   de la columna de texto y salían PEGADOS, sin espacio ni salto
   («PUBLICIDADTu NegocioOferta…»). Cada pieza va en su renglón. */
.pv-txt > strong { display: block; font-size: 1.04rem; }
.pv-txt > span { display: block; }
.pv-txt > small { display: block; }
.pv-feed .pv-txt > span, .pv-dir .pv-txt > span, .pv-side .pv-txt > span { color: #7a5f22; font-weight: 600; }
.pv-dir .pv-txt > small { margin-top: .3rem; color: #71806f; font-size: .78rem; letter-spacing: .02em; }
.pv-banner .pv-txt > span { color: #e9dfc8; }
.pv-presentador > span { display: block; }

/* Escala simplificada: lista propia de bienes raíces y autos. */
.atl-an-valor { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: #173e32; margin: .2rem 0 .4rem; }
.atl-an-lista { list-style: none; padding: 0; margin: .8rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; }
.atl-an-lista li { background: #fff; border: 1px solid #e3ddcf; border-left: 4px solid #d9bc83; border-radius: 10px; padding: .7rem .9rem; }

/* Fase 4.1: Publicar (Editor) + entrada de comentarios. */
.atl-pub-box, .atl-pub-form { background: #fff; border: 1px solid #e3ddcf; border-radius: 16px; padding: 1.2rem 1.4rem; max-width: 720px; }
.atl-pub-ok { border-color: #173e32; background: #eef4ee; }
.atl-pub-err { border-color: #c0563b; background: #fbf0ec; }
.atl-pub-form { display: flex; flex-direction: column; gap: .8rem; }
.atl-pub-form label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
.atl-pub-form input[type="text"], .atl-pub-form select, .atl-pub-form textarea { border: 1px solid #ddd6c7; border-radius: 10px; padding: .55rem .7rem; font: inherit; }
.atl-comment-login { background: #fffdf7; border: 1px dashed #d9bc83; border-radius: 14px; padding: 1rem 1.2rem; }

/* Fase 4.2: compartir + escuchar, horóscopo, marketplace. */
.atl-share-listen { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; justify-content: space-between; border-top: 1px solid #e3ddcf; border-bottom: 1px solid #e3ddcf; padding: .8rem 0; margin-bottom: 1.2rem; }
.atl-escuchar-btn { background: #173e32; color: #faf8f3; border: 0; border-radius: 999px; padding: .55rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer; }
.atl-share { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.atl-share-label { font-weight: 700; color: #173e32; }
.atl-share-btn { border: 1px solid #d9bc83; color: #173e32; border-radius: 999px; padding: .3rem .8rem; text-decoration: none; font-weight: 600; background: #fffdf7; }
.atl-horo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.atl-horo-card { background: #fff; border: 1px solid #e3ddcf; border-radius: 16px; padding: 1.1rem 1.2rem; }
.atl-horo-medal { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #173e32; color: #d9bc83; font-size: 1.5rem; border: 2px solid #d9bc83; }
.atl-horo-card h2 { margin: .6rem 0 .3rem; font-family: 'Playfair Display', serif; }
.atl-horo-foot { margin-top: 1.4rem; }
.atl-mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.atl-mkt-card { background: #fff; border: 1px solid #e3ddcf; border-radius: 14px; overflow: hidden; padding-bottom: .8rem; }
.atl-mkt-media img { width: 100%; height: 150px; object-fit: cover; display: block; }
.atl-mkt-plate { display: flex; height: 150px; align-items: center; justify-content: center; background: #f3efe4; color: #173e32; font-weight: 700; }
.atl-mkt-name { font-size: 1rem; margin: .7rem .9rem .2rem; }
.atl-mkt-price { margin: 0 .9rem; font-weight: 800; color: #173e32; }
.atl-mkt-foot { margin-top: 1.2rem; }

/* Del Municipio + ventana Wagmore. */
.atl-muni-frame, .gls-muni-sec .atl-muni-frame { display: flex; justify-content: center; }
.atl-muni-foot { text-align: center; margin-top: 1rem; }
.gls-muni-sec { padding: 2.2rem 1.2rem; max-width: 1100px; margin: 0 auto; }
.wag-modal-err { color: #b3261e; font-weight: 600; }

/* Media kit. */
.atl-mk-band { margin: 1.6rem 0; }
.atl-mk-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin: 1rem 0; }
.atl-mk-stat { background: #fff; border: 1px solid #e3ddcf; border-radius: 14px; padding: 1rem; display: flex; flex-direction: column; gap: .2rem; }
.atl-mk-stat strong { font-size: 1.7rem; color: #173e32; font-family: 'Playfair Display', serif; }

/* Ajustes de escritorio (Jorge, 11 nov 2026): la página se veía
 * demasiado amplia y la tira de autor se rompía. Medida más
 * recogida, canales con aire y la tira en una sola línea.
 * Segundo ajuste (Jorge, 19:00 AST: «todavía está amplio»):
 * 1180px → 1020px. Tercer ajuste (Jorge, 12 nov 2026: la portada
 * «debe ir un poco más recogida»): 880px en todo el sitio desde
 * 861px de ventana, y el héroe de portada menos alto. */
@media (min-width: 861px) {
  .gls-wrap, .gls-main, .gls-header-in, .gls-strip, .gls-post-head,
  .gls-readnext, .gls-archive, .gls-comments-sec, .gls-prevnext { max-width: 880px; }
  .gls-main { padding: 0 32px; }
  .gls-hero { min-height: min(62vh, 560px); }
  /* El héroe de portada vive en un <main> sin clase (no hereda el
   * canal): se recoge él mismo al mismo ancho, centrado. */
  .gls-hero { max-width: 880px; width: calc(100% - 32px); margin: 10px auto 0; }
}
/* La tira de autor/firma: una línea, sin píldora estirada. */
.gls-col-strip { display: flex; flex-wrap: nowrap; gap: 14px; padding: 8px 20px 8px 10px; max-width: 100%; }
.gls-col-strip .gls-share { flex: none; margin-left: auto; }
.gls-col-strip .gls-share-btn { width: 36px; height: 36px; }
.gls-col-strip .gls-col-plate { width: 48px; height: 48px; font-size: 19px; }
@media (min-width: 861px) {
  .gls-col-meta { flex-wrap: nowrap; white-space: nowrap; font-size: 13px; gap: 12px; }
}
@media (max-width: 860px) {
  .gls-col-strip { flex-wrap: wrap; border-radius: 24px; }
  .gls-col-strip .gls-share { margin-left: 0; }
}
/* El sello de la portada, con sus colores LITERALES (en el tema
 * las variables --hlrev-* viven bajo .hlrev y el sello de la
 * portada quedaba sin relleno: disco negro e ilegible). */
.hlrev-seal-disc { fill: #d9bc83; }
.hlrev-seal-rule { stroke: #8a6d2f; }
.hlrev-seal-text { fill: #5d4a15; }
.hlrev-seal-big { fill: #3d2f08; }
.hlrev-seal-small { fill: #5d4a15; }

/* Directorio organizado: tarjetas de grupo con listas limpias. */
.atl-dir-search { display: flex; gap: .6rem; margin: 1.4rem 0 .4rem; max-width: 640px; }
.atl-dir-search input { flex: 1; border: 1px solid #ddd6c7; border-radius: 999px; padding: .6rem 1.1rem; font: inherit; background: #fff; }
.atl-dir-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.1rem; margin-top: 2.2rem; align-items: start; }
.atl-gcard { background: #fff; border: 1px solid #e3ddcf; border-radius: 18px; padding: 1.15rem 1.3rem 1.3rem; }
.atl-gcard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid #d9bc83; padding-bottom: .45rem; margin-bottom: .5rem; }
.atl-gcard-head h2 { font-family: 'Playfair Display', serif; color: #173e32; font-size: 1.28rem; margin: 0; border: 0; padding: 0; }
.atl-gcard-total { color: #8a8464; font-size: .85rem; white-space: nowrap; }
.atl-glist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.8rem; }
.atl-glist li { break-inside: avoid; border-bottom: 1px solid #f0ead9; }
.atl-glist a { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .42rem .1rem; color: #22302a; text-decoration: none; }
.atl-glist a:hover .atl-gname { color: #a07d1e; text-decoration: underline; }
.atl-gcount { color: #8a8464; font-size: .85rem; }
.atl-gcount-0 { font-style: italic; }
.atl-gfree { color: #7a5f22; font-weight: 700; font-size: .8rem; white-space: nowrap; }
@media (max-width: 480px) { .atl-glist { columns: 1; } }

/* Tarjeta de negocio sin foto: placa baja, no un bloque vacío. */
.atl-biz-photo:has(.atl-biz-photo-ph) { height: 84px; }
.atl-biz-photo-ph { font-size: 2rem; }

/* Mi panel (Fase 4.4). */
.atl-panel-card { background: #fff; border: 1px solid #e3ddcf; border-radius: 18px; padding: 1.3rem 1.5rem; margin-top: 1.4rem; }
.atl-panel-card h2 { font-family: 'Playfair Display', serif; color: #173e32; margin-top: 0; }
.atl-panel-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #f0ead9; }
.atl-panel-row:last-of-type { border-bottom: 0; }
.atl-panel-note { color: #7a7466; font-size: .92rem; }
.atl-plate-fallback { display: inline-flex; align-items: center; justify-content: center; background: #173e32; color: #d9bc83; font-weight: 700; }

/* La barra superior no se sale de la medida (11 nov): enlaces en
 * una sola línea, huecos más cortos y la cabecera jamás empuja
 * el ancho de la página. */
.gls-header { overflow-x: clip; }
.gls-nav a { white-space: nowrap; }
@media (min-width: 1024px) {
  .gls-nav { gap: 18px; }
  .gls-nav a { letter-spacing: .09em; }
}

/* Del Municipio sin visor (11 nov): la tarjeta que lleva a la fuente. */
.atl-muni-card { background: #fff; border: 1px solid #e3ddcf; border-radius: 18px; padding: 1.4rem 1.5rem; margin: 1.2rem auto; max-width: 720px; text-align: left; }
.gls-muni-sec .atl-muni-card { margin: 0 auto; }
.atl-muni-name { font-family: 'Playfair Display', serif; font-size: 1.45rem; color: #173e32; margin: 0 0 .5rem; }
.atl-muni-txt { line-height: 1.55; margin: 0 0 1rem; }
.atl-muni { max-width: 880px; margin: 0 auto; padding: 2.2rem 1.1rem 3rem; }

/* .gls-btn no existía en el tema (las plantillas Publicar, Mi
 * panel y Municipio lo usaban y salía como enlace subrayado).
 * Se define como la píldora verde de la casa, igual que
 * .gls-pill-dark, con especificidad para ganarle a «.gls a». */
.gls a.gls-btn, a.gls-btn, button.gls-btn { display: inline-flex; align-items: center; background: #173e32; color: #faf8f3; font-weight: 700; font-size: 14px; border: 0; border-radius: 999px; padding: 12px 24px; text-decoration: none; cursor: pointer; font-family: inherit; }
.gls a.gls-btn:hover, a.gls-btn:hover, button.gls-btn:hover { color: #d9bc83; }

/* Selector de idioma ES|EN (Polylang) en la barra superior:
 * dos siglas en versalitas separadas por una línea fina; la
 * activa va en dorado. En la cabecera transparente (portada)
 * hereda el color claro de la barra. */
.gls-lang { display: inline-flex; align-items: center; gap: 2px; margin-left: 14px; flex: none; }
.gls a.gls-lang, .gls-lang a { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 5px 7px; border-radius: 6px; opacity: .75; }
.gls-lang a + a { border-left: 1px solid currentColor; border-radius: 0 6px 6px 0; }
.gls-lang a.on { opacity: 1; color: #b98f2e; }
.gls-header-overlay .gls-lang a.on { color: #d9bc83; }
@media (max-width: 640px) { .gls-lang { margin-left: 8px; } .gls-lang a { padding: 4px 5px; } }
