﻿/*!
Theme Name: Municipalidad
Theme URI: https://www.municipalidadentusmanos.gob.do
Author: Liga Municipal Dominicana
Author URI: https://lmd.gob.do
Description: "Municipalidad" es un template de WordPress para centralizar informacion municipal en una sola plataforma. Facilita el acceso a datos clave para la ciudadania y autoridades locales, con enfoque en transparencia, rendicion de cuentas y consulta dinamica de gobiernos locales en Republica Dominicana.
Version: 4.3.30
Requires at least: 6.0
Tested up to: 6.9.4
Requires PHP: 8.1
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, custom-logo, custom-menu, featured-images, theme-options, translation-ready, accessibility-ready, responsive-layout, right-sidebar
Text Domain: municipalidad
*/

/* Don't overwrite this file. Compile "/assets/main.(less|scss)" to "/assets/css/main.css" */
/* From http://codex.wordpress.org/CSS */

.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 96%; /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}
.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}
.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}
.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

.gallery-item {
  display: inline-block;
  text-align: left;
  vertical-align: top;
  width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
  background: none;
  display: inline-block;
  max-width: 100%;
}

.gallery-item a img {
  display: block;
  -webkit-transition: -webkit-filter 0.2s ease-in;
  transition: -webkit-filter 0.2s ease-in;
  transition: filter 0.2s ease-in;
  transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
  -webkit-filter: opacity(60%);
  filter: opacity(60%);
}

.gallery-caption {
  display: block;
  text-align: left;
  padding: 0 10px 0 0;
  margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
  max-width: 100%;
}

.gallery-columns-2 .gallery-item {
  max-width: 50%;
}

.gallery-columns-3 .gallery-item {
  max-width: 33%;
}

.gallery-columns-4 .gallery-item {
  max-width: 25%;
}

.gallery-columns-5 .gallery-item {
  max-width: 20%;
}

.gallery-columns-6 .gallery-item {
  max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
  max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
  max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
  max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
  display: none;
}

.bypostauthor {
  font-weight: bold;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000; /* Above WP toolbar. */
}

/* AnimaciÃƒÆ’Ã‚Â³n y propiedades comunes para badges "Nuevo" */
.badge,
.new-badge, .ip-chevron-cta-glow {
    font-size: 08px !important;
    padding: 3px 7px;
    border-radius: 10px;
    font-weight: bold;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: ip-pulse 1.5s infinite;
	  background-color: #f58221;
    color: white;
    border: none;
    z-index: 1;
}

/*Badge "Nuevo" Panel de Datos */
.badge {
    margin-left: 0.5em;
}

/*Badge "Nuevo" Blocks Programs (solo posiciÃƒÆ’Ã‚Â³n*/
.new-badge {
    position: absolute;
    top: 5px;
    right: 92px;
}

/* AnimaciÃƒÆ’Ã‚Â³n pulse */
@keyframes ip-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,193,7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255,193,7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255,193,7, 0); }
}

/* Estilos para la cuadrÃƒÆ’Ã‚Â­cula de informaciÃƒÂ³n del territorio */
.territory-grid-row {
  display: grid !important;
  gap: 24px 20px;
  align-items: stretch;
  justify-items: center;
  justify-content: center;
}

.territory-grid-row--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.territory-grid-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.territory-grid-item {
  min-width: 0;
  padding: 0 6px;
  width: 100%;
  text-align: center;
}

.territory-grid-item .data_display_in_column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 98px;
}

.territory-grid-item .highlight_content {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  color: #1f2937;
  white-space: normal;
  overflow-wrap: anywhere;
}

.territory-grid-item .highlight_content,
.territory-grid-item .highlight_content a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.territory-grid-row--three .territory-grid-item {
  max-width: 258.83px;
}

.territory-grid-item .highlight_content i {
  font-size: 20px;
  line-height: 1;
}

.territory-grid-item .label_content {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  color: #334155;
}

.territory-grid-item a {
  color: #000;
}

.territory-grid-item a:hover {
  color: #0d6efd;
}

.territory-grid-item--social .data_display_in_column {
  min-height: 78px;
}

.territory-grid-item--social .highlight_content,
.territory-grid-item--social .highlight_content a {
  font-size: 17px;
}

.territory-grid-item--social .highlight_content i {
  font-size: 22px;
}

.territory-grid-row--social {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.territory-grid-item--schedule .highlight_content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.territory-schedule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.territory-schedule__text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}

.territory-schedule__days {
  font-size: 16px;
  font-weight: 700;
}

.territory-schedule__time {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.one-bulletin-card {
  border: 1px solid #cfd6e3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  position: relative;
  overflow: hidden;
}

.one-bulletin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: #0d6efd;
}

.one-bulletin-card .card-body {
  padding: 20px 24px 20px 30px;
}

.one-bulletin-card__content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.one-bulletin-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 100px;
  border-radius: 12px;
  background: #f1f5ff;
  border: 1px solid #cfd6e3;
}

.one-bulletin-card__brand svg {
  width: 100px;
  height: 100px;
  padding:10px
}

.one-bulletin-card__text h4 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.one-bulletin-card__summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.one-bulletin-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #0d6efd;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #0d6efd;
}

.one-bulletin-card__button:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
  color: #ffffff;
}

.one-bulletin-card__button:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.birthday-panel {
  position: fixed;
  left: 24px;
  top: 50%;
  right: auto;
  bottom: auto;
  margin-top: -32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  transition: left 0.25s ease, right 0.25s ease, bottom 0.25s ease;
}

.birthday-panel__trigger {
  position: relative;
  width: 56px;
  height: 64px;
  border-radius: 50% 50% 48% 48%;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 30% 25%, #fff2c6 0%, #ffd36a 35%, #f39200 75%, #f58221 100%);
  box-shadow: 0 18px 28px rgba(245, 130, 33, 0.35), inset -6px -10px 18px rgba(210, 78, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  font-size: 24px;
  animation: birthday-balloon-float 3.8s ease-in-out infinite;
}

.birthday-panel__trigger.is-dragging {
  cursor: grabbing;
  animation-play-state: paused;
}

.birthday-panel__trigger {
  cursor: grab;
}

.authority-photo-wrap {
  position: relative;
}

.authority-photo-wrap.is-birthday {
  box-shadow: 0 0 0 4px rgba(245, 130, 33, 0.25), 0 0 18px rgba(245, 130, 33, 0.35);
}

.authority-photo-wrap.is-birthday::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(245, 130, 33, 0.45);
  box-shadow: 0 0 12px rgba(245, 130, 33, 0.35);
  pointer-events: none;
}


.birthday-panel__trigger::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #f39200 0%, #f56415 100%);
  border-radius: 0 0 12px 12px;
  clip-path: polygon(50% 0%, 100% 40%, 60% 100%, 40% 100%, 0% 40%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45);
  z-index: 1;
}

.birthday-panel__trigger::before {
  content: "";
  position: absolute;
  bottom: -34px;
  left: 50%;
  width: 2px;
  height: 36px;
  background: rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
  transform-origin: top;
  animation: birthday-balloon-string 2.4s ease-in-out infinite;
  z-index: 0;
}

.birthday-panel__trigger::marker {
  content: "";
}

@keyframes birthday-balloon-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes birthday-balloon-string {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) rotate(6deg);
  }
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
}

.birthday-panel__trigger:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.birthday-panel__count {
  position: absolute;
  top: -10px;
  right: -12px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.canvas-confetti-btn .tool-tip {
  position: absolute;
  bottom: 70px;
  right: -6px;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.canvas-confetti-btn:hover .tool-tip,
.canvas-confetti-btn:focus-visible .tool-tip {
  opacity: 1;
  transform: translateY(0);
}

.birthday-panel__overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10000;
}

.birthday-panel__sheet {
  position: fixed;
  right: 0;
  left: auto;
  top: 0;
  height: 100%;
  width: min(420px, 95vw);
  background: linear-gradient(180deg, #f2f6ff 0%, #ffffff 48%, #f9fafb 100%);
  box-shadow: -20px 0 40px rgba(23, 49, 92, 0.22);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  outline: none;
  border-left: 1px solid #e0e7ff;
  z-index: 10001;
  --adaptive-close-btn-size: 42px;
  --adaptive-close-btn-radius: 16px;
  --adaptive-close-btn-radius-inner: 12px;
  --adaptive-close-btn-bg: #f58220;
  --adaptive-close-btn-hover-bg: #17315c;
  --adaptive-close-btn-border-color: #17315c;
  --adaptive-close-btn-hover-border-color: #17315c;
  --close-btn-z-index: 4;
}

.birthday-panel.is-open .birthday-panel__overlay {
  opacity: 1;
  pointer-events: auto;
}

.birthday-panel.is-open .birthday-panel__sheet {
  transform: translateX(0);
}

.birthday-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.birthday-panel__header .close-btn--corner:not(.close-btn--adaptive) {
  top: -28px;
  right: -28px;
}

.birthday-panel__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.birthday-panel__brand img {
  width: 350px;
  height: auto;
}

.birthday-panel__congrats {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #17315c;
  font-weight: 600;
  text-align: center;
}

/* PWA + mobile safe-area adjustments */
:root {
  --safe-top: env(safe-area-inset-top);
  --safe-right: env(safe-area-inset-right);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
}

html,
body {
  height: 100%;
}

body {
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

@supports (height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

@media (display-mode: standalone) {
  body {
    background-color: #ffffff;
  }
}

@media (max-width: 1024px) {
  #header {
    padding-top: calc(10px + var(--safe-top));
    padding-left: calc(10px + var(--safe-left));
    padding-right: calc(10px + var(--safe-right));
  }

  #menuPhoneOverlayContainer {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(15px + var(--safe-top));
    padding-right: calc(15px + var(--safe-right));
    padding-bottom: calc(15px + var(--safe-bottom));
  }

  #generalOverlayContainer {
    position: fixed;
    top: calc(85px + var(--safe-top));
    left: calc(15px + var(--safe-left));
    width: calc(100% - 30px - var(--safe-left) - var(--safe-right));
    height: calc(100dvh - 180px - var(--safe-top) - var(--safe-bottom));
  }
}

@media (max-width: 768px) {
  .birthday-panel__header .close-btn--corner:not(.close-btn--adaptive) {
  top: -23px;
  right: -23px;
}
}

.birthday-panel__close {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1f2937;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
}

.birthday-panel__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 6px;
}

.birthday-panel__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e0e7ff;
  background: #fffffff5;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.birthday-panel__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.birthday-panel__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #5ecbf3;
  background: #e0e7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.birthday-panel__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.birthday-panel__avatar-fallback {
  font-size: 20px;
  color: #1d4ed8;
}

.birthday-panel__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.birthday-panel__meta {
  display: block;
  font-size: 13px;
  color: #475569;
}

.birthday-panel__dot {
  margin: 0 6px;
}

@media (max-width: 768px) {
  .birthday-panel {
    left: 16px;
    top: 50%;
    right: auto;
    bottom: auto;
    margin-top: -32px;
  }

  .birthday-panel__sheet {
    width: 100%;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .one-bulletin-card__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .one-bulletin-card__actions {
    justify-self: center;
  }
}

.territory-value--toggle {
  display: inline-block;
  max-width: 100%;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  vertical-align: middle;
}

.territory-value__text {
  display: inline-block;
  max-width: 100%;
}

.territory-value--toggle.is-expanded {
  max-width: none;
  white-space: normal;
  overflow: visible;
}

.territory-grid-collapsible {
  display: none;
}

.territory-grid-collapsible.is-open {
  display: block;
}

.territory-grid-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  gap: 8px;
  margin: 6px auto 0;
  padding: 6px 14px;
  border: 1px solid #0d6efd;
  background: transparent;
  color: #0d6efd;
  font-size: 13px;
  border-radius: 999px;
}

.territory-grid-toggle i {
  transition: transform 0.2s ease;
}

.territory-grid-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

@media (max-width: 991px) {
  .territory-grid-row--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .territory-grid-row--social {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .territory-grid-row--two,
  .territory-grid-row--three,
  .territory-grid-row--social {
    grid-template-columns: 1fr;
  }
}

.lmd-map-info {
  color: #111827;
  font-size: 13px;
  line-height: 1.4;
}

.lmd-map-info__logo {
  display: block;
  width: 90px;
  height: auto;
  margin: 0 auto 6px;
}

.lmd-map-info a {
  color: #1d6499;
  text-decoration: underline;
}

.lmd-map-info a:hover {
  color: #0d6efd;
}

.info_window_v3.lmd_highlight {
  border-color: #ea0029;
}

.info_window_v3.lmd_highlight .iwv3_header {
  background-color: #002d5d;
}

.info_window_v3.lmd_highlight .iwv3_iconic_photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info_window_v3.lmd_highlight .iwv3_territory_name {
  background-color: #000000ab;
}

.info_window_v3.lmd_highlight .iwv3_authority_photo {
  border-color: #ea0029;
}

.info_window_v3.lmd_highlight .ivv3_authority_name strong {
  display: block;
  color: #002e60;
}

.info_window_v3.lmd_highlight .ivv3_authority_name .lmd-role {
  display: block;
  color: #434344cf;
  font-size: 11px;
  line-height: 1.2;
}

.info_window_v3.lmd_highlight .ivv3_authority {
  width: 75%;
}

.info_window_v3.lmd_highlight .ivv3_data {
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: normal;
  justify-content: space-evenly;
  align-items: normal;
}

.info_window_v3.lmd_highlight .ivv3_data a {
  color: #002e60;
  text-decoration: none;
}

.info_window_v3.lmd_highlight .ivv3_data div {
  align-items: center;
  gap: 6px;
}

.info_window_v3.lmd_highlight .ivv3_data .iwv3_data_icon {
  margin-right: 0;
}

.info_window_v3.lmd_highlight .ivv3_data div > span:nth-child(2) {
  top: 0;
}

.info_window_v3.lmd_highlight .ivv3_data a:hover {
  color: #ea0029;
}

.info_window_v3.lmd_highlight .iwv3_data_icon i {
  color: #ea0029;
  font-size: 18px;
  line-height: 1;
}


