/* style.css 
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: auto;
    max-width:700px;
    overflow: auto;
    height: auto;
}*/

/**/
/* Global Styles */
body {
    font-family: Arial, sans-serif;
   margin: auto;
    padding: 0;
    background: #f5f5f5;
     max-width:700px;
     overflow: auto;
    height: auto;
}



.terminos {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 0.67em;
    font-weight: normal;
    unicode-bidi: isolate;
}

/* Column Layout */
.row {
    display: flex;
    justify-content: space-between;
    margin: 0px;
}

.hamburger-menu {
    position: relative;
}

.hamburger {
    background-color: black;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 999;

}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: black;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.dropdown-menu.show {
    display: block;
}


.column {
    flex: -1;
    margin: 0px 40px 2px 0px; /* estaba 0px 40px 2px 0px para la col sponsor*/
}

.sponsor {
    display: flex;
    color:grey;
    margin:0px 0px 0px 0px;
    padding:0px 0px 0px 60px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: right;
    right:5px;
    position: relative;
    
    
}

header, footer {
    background-color: #333;
    color: grey;
    text-align: center;
    padding: 1em 0;
}

/* Estilos para el enlace de términos y condiciones en el footer */
footer a {
    color: #ffffff; /* Color blanco */
    text-decoration: none; /* Sin subrayado */
}

footer a:hover {
    color: #dddddd; /* Color al pasar el mouse, opcional */
}


nav a {
    color: black;
    text-decoration: none;
    margin: 0 10px;
}

nav a:hover {
    text-decoration: underline;
}

form {
    margin: 2em auto;
    width: 90%;
    max-width: 700px;
    padding: 1em;
    background-color: #fff;
    border: 1px solid #ccc;
}

input, textarea {
    width: 100%;
    padding: 0.5em;
    margin: 0.5em 0;
    box-sizing: border-box;
}

button {
    padding: 0.5em;
    background-color: coral; /* color de booton: opcion coral ó #1170ae, buscar uno que quede con color de letra bco y negro*/
    color: black; /* color del boton old white*/
    border: none;
    cursor: pointer;
    width: 100%;
}

.post {
    background-color: #fff;
    border: 0px solid #ccc;
    margin: 1em 0;
    padding: 0.8em;
    overflow-x: hidden; /* opcional aquí, clippea siempre */
}

.post img, .post video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.5em 0;
}

.post img.bleed,
.post video.bleed {
  /* anula cualquier max-width previo */
  max-width: none !important;

  /* ancho = 100% del contenido + 2 × padding (1em cada lado) */
  width: calc(100% + 2em) !important;

  /* margenes: .5em arriba/abajo y -1em izquierda/derecha */
  margin: 0.5em -1.0em !important;

  display: block;
  height: auto;
}



@media (max-width: 768px) {
    header, footer {
        padding: 0.5em 0;
    }

    nav a {
        display: block;
        margin: 5px 0;
        
    }

    form {
        width: 95%;
        padding: 0.5em;
    }

    input, textarea {
        padding: 0.4em;
        margin: 0.4em 0;
    }

    button {
        padding: 0.4em;
    }

    .post {
    overflow-x: hidden; /* recorta el “sangrado” */
  }
  .post img.bleed,
  .post video.bleed {
    /* re-declaras la misma lógica en móvil */
    max-width: none;
    width: calc(100% + 2em);
    margin: 0.5em -1em;
    display: block;
    height: auto;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
    form {
        width: 90%;
    }

    input, textarea {
        padding: 0.5em;
        margin: 0.5em 0;
    }

    button {
        padding: 0.5em;
    }
}

/* Estilo para el logo */
#logo2 {
    height: 70px; /* Ajusta la altura del logo según tus necesidades */
    width: auto; /* Mantiene la proporción del logo */
    display: inline-block; /* Asegura que se muestre en línea con el título */
    vertical-align: middle; /* Alinea verticalmente con el título */
    margin-right: 10px; /* Espacio entre el logo y el título */
}

/* Estilo para el contenido del header */
.header-content {
    display: flex;
    align-items: center; /* Alinea verticalmente el logo y el título */
}

/* Ajusta el estilo del header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0px; /* Ajusta el padding según tus necesidades */
    background-color: #f5f5f5; /* Color de fondo del header */
}

header h1 {
    margin: 0; /* Elimina el margen del título */
}

/* Estilo para el nav dentro del header */
header nav {
    margin-top: 10px; /* Añade un margen superior para separar el nav del logo y el título */
}

header nav a {
    margin: 0 10px; /* Espacio entre los enlaces del nav */
    text-decoration: none; /* Elimina la subrayado de los enlaces */
    color: #333; /* Color del texto de los enlaces */
}

header nav a:hover {
    color: #007BFF; /* Color del texto de los enlaces al pasar el cursor por encima */
}



.voting-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.voting-buttons button {
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    background-color: #ffffff; /* Color del boton like y ver mas #0056b3 old */
}

.voting-buttons button:hover {
    background-color: #e0e0e0;
}

.vote-count {
    font-weight: bold;
}


.back-button {
    display: flex;
    align-items: center;
    position: absolute;
    top: -3px;
    left: 5px;
    text-decoration: none;
    color: black;
    font-size: 40px;
    }
.back-button .icon {
    margin: 0px;
    }
.back-button a {
    display: flex;
    align-items: center;
    position: relative;
   
    text-decoration: none;
    }

.back-button .icon a {
    margin: 0px;
}


.back-button3 {
    display: flex;
    align-items: center;
    position: absolute;
    top: -3px;
    left: 5px;
    text-decoration: none;
    color: white;
    font-size: 40px;
    
}

.back-button3 .icon {
    margin: 0px;
    
}

.back-button3 a {
    display: flex;
    align-items: center;
    position: relative;
   
    text-decoration: none;
    
     
}

.back-button3 .icon a {
    margin: 0px;
}

.back-button2 {
    display: flex;
    align-items: center;
    position: absolute;
    top: 200px;
    left: 8px;
    text-decoration: none;
    color: #000;
    font-size: 40px;
    
}

.back-button2 .icon {
    margin: 0px;
    
}

.back-boton {
    display: flex;
    align-items: center;
    position: relative;
    top: 0px;
    left: 0px;
    text-decoration: none;
    color: #000;
    font-size: 40px;
     
}

.back-boton a {
    display: flex;
    align-items: center;
    position: relative;
   
    text-decoration: none;
    
     
}

.back-boton .icon a {
    margin: 0px;
     
    
}

.share-boton {
    display: flex;
    align-items: center;
    position:absolute;
   
    text-decoration: none;
    color:green;
    font-size: 25px;
     right: 10px; /* Ajusta la posición derecha */
      top: 10px; /* Ajusta la posición inferior */
     z-index:1000;
     
}

.share-boton a {
    display: flex;
    align-items: center;
    position: relative;
   
    text-decoration: none;
    
     
}

.share-boton .icon a {
    margin: 0px;
     
    
}



   

    /* Estilo para "Ver más" */
    .read-more {
        text-decoration: none; /* Sin subrayado */
        color: inherit; /* Mantener el color actual */
    }

    /* Estilo para el enlace al perfil del usuario */
    .post small a {
        text-decoration: none; /* Sin subrayado */
        color: inherit; /* Mantener el color actual */
    }

    /* Estilo para el enlace a WhatsApp */
    .post h4 a {
        text-decoration: none; /* Sin subrayado */
        color: white; /* Color verde */
    }

 /* Contenedor para alinear el input y el botón */
.search-container {
    display: flex;
    align-items: center;
    width: 95%;
    padding: 5px;
    background-color: #f4f4f4;
    box-shadow: 0 4px 2px -2px gray;
    transition: top 0.3s;
}

.fixed {
            position: fixed;
            top: 0;
            left: 0;
            width: 15%;
            padding: 0 10px 0 10px;
            z-index: 1000;
            background-color: #f4f4f4;
            box-shadow: 0 4px 2px -2px gray;
        }

        .content {
            margin-top: 1px; /* Para dar espacio cuando la barra está fixed */
        }

/* Estilo para el input de búsqueda */
#search {
    padding: 8px;
    font-size: 16px;
    border: 0px solid #ccc;
    border-radius: 4px 0 0 4px; /* Bordes redondeados solo a la izquierda */
    outline: none;
    width: 200px;
}

/* Estilo para el botón de búsqueda */
#searchButton {
    padding: 8px 16px;
    font-size: 16px;
    border: 0px solid #ccc;
    border-left: none; /* Elimina el borde entre el botón y el input */
    border-radius: 0 4px 4px 0; /* Bordes redondeados solo a la derecha */
    background-color: #d8dce1; /* #0056b3 Color de fondo del botón */
    color: white; /* Color del texto */
    cursor: pointer;
    outline: none;
    width: 200px;
}

/* Cambia el color del botón al pasar el ratón por encima */
#searchButton:hover {
    background-color: #0056b3;
}


        .post-content {
    overflow: hidden;
    max-height: 43px;
    transition: max-height 0.3s ease;

    /* Tipografía y estilo de lectura */
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 17px;
    line-height: 1.2;
    color: #333;
    letter-spacing: -0.8px;
    word-break: break-word;
}

.posted-content {

  font-family: Georgia, 'Times New Roman', Times, serif !important;
  font-size: 17px;
  line-height: 1.4;
  color: #333;
  letter-spacing: -0.8px;
  word-break: break-word;
}




/* Cuando se expande el contenido */
.post-content.expanded {
    max-height: none;
}

/* Párrafos y separación */
.post-content p {
    margin-bottom: 1.2em;
}



/* Listas */
.post-content ul,
.post-content ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

/* Citas */
.post-content blockquote {
    font-style: italic;
    color: #666;
    border-left: 4px solid #ccc;
    padding-left: 1em;
    margin: 1.5em 0;
}

/* Encabezados dentro del post */

.post-content h3,h2,h1 {
    font-family: 'Merriweather', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-top: 1.0em;
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: #222;
}

.post h3 a {font-family: 'Merriweather', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: #222;
    text-decoration:none;
}

        .read-more {
            text-decoration: none; 
        }
        
        .loader {
            text-align: center;
            margin: 20px 0;
        }
        
        .pan {
  overflow-x: auto;     /* permite scroll si es muy largo */
 
}

/* Breadcrumbs siempre a la izquierda en una sola línea */
#breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;  /* fuerza alineación a la izquierda */
  align-items: center;
  gap: 0.5em;
  background: #f0f0f0;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  white-space: nowrap;
}

/* Separador entre enlaces, excepto el último */
#breadcrumbs a:not(:last-child)::after {
  content: "›";
  margin: 0 0.5em;
  color: #999;
}

/* Enlaces */
#breadcrumbs a {
  color: #007BFF;
  text-decoration: none;
  font-weight: 500;
}

/* Elemento actual */
#breadcrumbs span.current {
  color: #333;
  font-weight: 600;
  font-size: clamp(0.85rem, 2.2vw, 1.2rem);
}

/* Hover */
#breadcrumbs a:hover {
  text-decoration: underline;
}

/* Ajustes móviles */
@media (max-width: 350px) {
  #breadcrumbs {
    font-size: 0.8em;
    padding: 0.2em 0.4em;
  }
  #breadcrumbs span.current{
    -webkit-line-clamp:3;
  }
}

        
        
        .whatsapp-button {
        display: inline-block;
        background-color: #25D366;
        color: white;
        padding: 10px 20px;
        text-align: center;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        transition: background-color 0.3s;
    }
    
    
        
       

    .whatsapp-button:hover {
        background-color: #20b85b;
    }
    
    #installLink {
      display: inline-block;
      padding: 10px 20px;
      background-color: red;
      color: white;
      text-align: center;
      text-decoration: none;
      border-radius: 25px;
      font-size: 16px;
      font-weight: bold;
      transition: background-color 0.3s ease;
    }

    #installLink:hover {
      background-color: darkred;
    }
    
           
    .verified {
            color: green;
            font-weight: bold;
        }
       
       .red {color:red;}
       .purple {color:#7843E6;}
       
       .blue {color:blue;}
       

/* Contenedor para el botón de seguir, posicionado al lado derecho */
.follow-button {
    display: flex;
    align-items: center;
    position: absolute;
    top: 200px; /* Alineado verticalmente igual que el botón de regreso */
    right: 8px;  /* Se ubica en el lado derecho */
}

/* Opcional: eliminar margenes del formulario interno */
.follow-button form {
    margin: 0;
}

/* Estilo para el botón en sí */
.follow-button button {
    background-color: #333;      /* Fondo oscuro */
    color: #fff;                 /* Texto en blanco */
    border: none;
    padding: 5px 10px;
    font-size: 12px;             /* Tamaño del texto */
    border-radius: 4px;          /* Bordes redondeados */
    cursor: pointer;
    transition: background-color 0.3s; /* Suavizado al cambiar el color */
}

/* Estado hover para mejorar la interacción */
.follow-button button:hover {
    background-color: #555;
}


/* Estilos para el icono de Home */
.home-icon {
  display: inline-block;
  position: absolute;
  top: 90px;    /* Ajusta la separación desde arriba */
  left: 10px;  /* Ajusta la separación desde la derecha */
  width: 40px;  /* Ancho del icono */
  height: 40px; /* Alto del icono */
  text-decoration: none;
}

.home-icon svg {
  width: 100%;
  height: 100%;
  fill: #333;  /* Color inicial del icono */
  transition: fill 0.3s ease;
}

.home-icon:hover svg {
  fill: #555;  /* Color al pasar el cursor */
}

/* Estilos para el icono de Home */
.home-icon2 {
  display: inline-block;
  position: absolute;
  top: 260px;    /* Ajusta la separación desde arriba */
  left: 10px;  /* Ajusta la separación desde la derecha */
  width: 40px;  /* Ancho del icono */
  height: 40px; /* Alto del icono */
  text-decoration: none;
}

.home-icon2 svg {
  width: 100%;
  height: 100%;
  fill: #333;  /* Color inicial del icono */
  transition: fill 0.3s ease;
}

.home-icon2:hover svg {
  fill: #555;  /* Color al pasar el cursor */
}

/* Estilos para el icono de Home */
.home-icon3 {
  display: inline-block;
  position: absolute;
  top: 52px;    /* Ajusta la separación desde arriba */
  left: 3px;  /* Ajusta la separación desde la derecha */
  width: 40px;  /* Ancho del icono */
  height: 40px; /* Alto del icono */
  text-decoration: none;
}

.home-icon3 svg {
  width: 100%;
  height: 100%;
  fill: white;  /* Color inicial del icono */
  transition: fill 0.3s ease;
}

.home-icon3:hover svg {
  fill: green;  /* Color al pasar el cursor */
}

/* ---------- Botón de Eventos ---------- */
.event-icon {
    position: absolute;
  top: 133px;    /* Ajusta la separación desde arriba */
  left: 10px;  /* Ajusta la separación desde la derecha */
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;                /* fondo */
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  text-decoration: none;
  transition: background .25s, transform .25s;
}

/* Icono SVG dentro del botón */
.event-icon svg {
  width: 24px;
  height: 24px;
  fill: #1565c0;                      /* azul calendario */
  transition: fill .25s;
}

/* Hover / foco: pequeño levantamiento y cambio sutil de color */
.event-icon:hover,
.event-icon:focus-visible {
  background: #f1f6ff;
  transform: translateY(-2px);
}

.event-icon:hover svg,
.event-icon:focus-visible svg {
  fill: #0d47a1;                      /* azul más intenso */
}


/* Estilos para el ícono de Perfil */
.profile-icon {
  display: inline-block;
  position: absolute;
  top: 90px;    /* Separación desde arriba */
  right: 10px;  /* Separación desde la derecha */
  width: 40px;  /* Ancho del ícono */
  height: 40px; /* Alto del ícono */
  text-decoration: none;
}

.profile-icon svg {
  width: 100%;
  height: 100%;
  fill: #333;  /* Color base del ícono */
  transition: fill 0.3s ease;
}

.profile-icon:hover svg {
  fill: #555;  /* Color al pasar el cursor */
}       

/* Estilos para el ícono de Perfil */
.profile-icon2 {
  display: inline-block;
  position: absolute;
  top: 260px;    /* Separación desde arriba */
  right: 10px;  /* Separación desde la derecha */
  width: 40px;  /* Ancho del ícono */
  height: 40px; /* Alto del ícono */
  text-decoration: none;
}

.profile-icon2 svg {
  width: 100%;
  height: 100%;
  fill: #333;  /* Color base del ícono */
  transition: fill 0.3s ease;
}

.profile-icon2:hover svg {
  fill: #555;  /* Color al pasar el cursor */
}

/* Estilos para el ícono de Perfil */
.network-icon {
  display: inline-block;
  position: absolute;
  top: 90px;    /* Separación desde arriba */
  right: 50px;  /* Separación desde la derecha */
  width: 40px;  /* Ancho del ícono */
  height: 40px; /* Alto del ícono */
  text-decoration: none;
}

.network-icon svg {
  width: 100%;
  height: 100%;
  fill: #333;  /* Color base del ícono */
  transition: fill 0.3s ease;
}

.network-icon:hover svg {
  fill: #673ab7;        /* Morado MunicipalPost */
  stroke: #673ab7;
}      

/* Estilos para el ícono de Perfil */
.network-icon2 {
  display: inline-block;
  position: absolute;
  top: 260px;    /* Separación desde arriba */
  right: 50px;  /* Separación desde la derecha */
  width: 40px;  /* Ancho del ícono */
  height: 40px; /* Alto del ícono */
  text-decoration: none;
}

.network-icon2 svg {
  width: 100%;
  height: 100%;
  fill: #333;  /* Color base del ícono */
  transition: fill 0.3s ease;
}

.network-icon2:hover svg {
  fill: #673ab7;        /* Morado MunicipalPost */
  stroke: #673ab7;
}      

/* Estilos exclusivos para follow.php usando pan2 y breadcrumbs2 */

/* Contenedor de las migas de pan */
.pan2 {
    margin: 20px;
    padding: 10px;
    background-color: #f9f9f9; /* Fondo suave */
    border-radius: 4px;
}

/* Estilo específico para el contenedor de breadcrumbs */
#breadcrumbs2 {
    font-family: Arial, sans-serif;
    font-size: 12px;
}

/* Estilos para los enlaces dentro de los breadcrumbs */
#breadcrumbs2 a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    margin-right: 8px;
}

/* Efecto hover para los enlaces */
#breadcrumbs2 a:hover {
    color: #555;
    text-decoration: underline;
}



.municipalpost-ad-container {
    text-align: center;
  /* conserva solo el padding superior y quita el inferior */
  padding-top: 0.5em;
  padding-bottom: 0;
  /* quita el margen inferior */
  margin-bottom: 0;
  /* opcional: controla el espacio de línea interno */
  line-height: 0;
  /* si quieres mantener el fondo gris solo tras la imagen */
  background-color: #f9f9f9;
}

.municipalpost-ad-container img {
  display: block;    /* elimina el hueco que dejan las imágenes inline */
  max-width: 100%;   /* opcional, para responsividad */
  height: auto;      /* igual que tu inline‑style */
}


.municipalpost-ad-banner {
  width: 100%;
  height: auto;
  max-height: 700px;          /* opcional: limita la altura para no estirar demasiado */
  object-fit: cover;          /* cubre el área sin deformar */
  display: inline-block;
}


.comments {
    margin: 20px auto;           /* Margen superior/inferior y centrado horizontal */
    padding: 15px;               /* Espacio interno alrededor del contenido */
    max-width: 800px;            /* Limita el ancho para una mejor legibilidad */
    background-color: #f9f9f9;   /* Color de fondo suave */
    border-radius: 8px;          /* Bordes redondeados */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);  /* Sombra ligera */
}

.comment {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.comment:last-child {
    border-bottom: none;
}

/* Contenedor donde se agrupan hijos (la sangría tiene línea) */
.replies {
  position: relative;       /* para pseudo-elemento */
  margin-left: 20px;        /* sangría visual */
  padding-left: 12px;       /* espacio para la línea */
}

/* Línea vertical que recorre todo el bloque de respuestas */
.replies::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: #d0d0d0;      /* color de la guía */
}

/* Ramita horizontal que conecta cada hijo con la línea */
.comment.reply,
.comment.reply-2 {           /* todos los niveles > 0 */
  position: relative;
  padding-left: 10px;       /* espacio para ramita */
}
.comment.reply::before,
.comment.reply-2::before {
  content: "";
  position: absolute;
  left: -12px;              /* -12 = -padding-left de .replies */
  top: 12px;                /* baja la ramita 12 px */
  width: 12px; height: 2px;
  background: #d0d0d0;
}

/* Opcional: distinto color / grosor para nivel 2 */
.comment.reply-2::before { background:#e0e0e0; }
.replies .replies::before { background:#e0e0e0; }

/* Oculta el trozo final de la guía en el último comentario de cada grupo */
.replies > .comment:last-child::after {
  content: "";
  position: absolute;
  left: -12px;        /* mismo valor negativo usado en ::before */
  bottom: 0;          /* se coloca al fondo del comentario */
  width: 12px;        /* igual a la longitud de la ramita horizontal */
  height: 2px;        /* mismo grosor que la guía */
  background: #f9f9f9;/* color de fondo de tu página (ajústalo si no es blanco) */
}

.alert-verificacion {background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; padding: 15px; border-radius: 5px; margin-bottom: 20px;}

.caption {
    display: block;
    font-size: 0.85em;
    color: #666;
    text-align: left;
    margin-top: 0.3em;
    margin-bottom: 1.2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    line-height: 1.2;
    font-style: italic;
}

.post .caption {
    font-size: 12px;
    margin-top: -0.3em; /* más pegado a la imagen */
    margin-bottom: 1em;
    color: #555;
}


.button-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  width: 65px;
  height: 65px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button-chat img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* whatsapp de posted*/

.button-chat-posted {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 99999;
  width: 65px;
  height: 65px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button-chat-posted img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* ==============================
   MunicipalPost YouTube Background
   Shortcode: [y]url[y]
============================== */

/* Contenedor principal */
.mp-yt-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-radius: 0;
  min-height: 220px;
}

/* Ratios disponibles */
.mp-yt-bg[data-ratio="16:9"] { aspect-ratio: 16 / 9; }
.mp-yt-bg[data-ratio="9:16"] { aspect-ratio: 9 / 16; }
.mp-yt-bg[data-ratio="1:1"]  { aspect-ratio: 1 / 1; }
.mp-yt-bg[data-ratio="4:5"]  { aspect-ratio: 4 / 5; }
.mp-yt-bg[data-ratio="3:4"]  { aspect-ratio: 3 / 4; }
.mp-yt-bg[data-ratio="21:9"] { aspect-ratio: 21 / 9; }

/* Contenedor interno donde JS mete el iframe */
.mp-yt-bg__inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Iframe de YouTube en modo cover */
.mp-yt-bg__inner iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}

/* Ajuste cover para pantallas más verticales */
@media (max-aspect-ratio: 16/9) {
  .mp-yt-bg__inner iframe {
    width: 100%;
    height: 177.78%;
  }
}

/* Si el usuario prefiere reducir movimiento 
@media (prefers-reduced-motion: reduce) {
  .mp-yt-bg__inner iframe {
    display: none;
  }
}
*/
/* Si quieres que también pueda "sangrar" como tus imágenes */
.post .mp-yt-bg.bleed {
  max-width: none !important;
  width: calc(100% + 2em) !important;
  margin: 0.5em -1.0em !important;
  display: block;
  height: auto;
}

/* Base: tipografía y layout */
h1.mp-hero__desc{
  margin: .25rem 10px 0;          /* separa del breadcrumb */
  font-weight: 400;            /* H1 sólido */
  line-height: 1.2;
  letter-spacing: -.015em;
  max-width: 72ch;             /* ancho de lectura cómodo */
  color: #111;
  /* Tamaño fluido (ajusta los límites a tu gusto) */
  font-size: clamp(0.80rem, 3.2vw, 2rem);
}

/* Si lo quieres “hero” más grande */
h1.mp-hero__desc.is-xxl{
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.15;
}

/* Si lo quieres compacto */
h1.mp-hero__desc.is-sm{
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.25;
}

/* Variante “subtle” (gris) */
h1.mp-hero__desc.is-subtle{ color:#444; font-weight:700; }

/* Variante con fondo claro y borde inferior (estilo hero) */
.under-pan h1.mp-hero__desc{
  display:block;
  padding: 10px 16px 14px;
  background:#fff;
  border-bottom:1px solid #eee;
  border-radius: 8px;
}

/* Enlaces, <strong>, <em> dentro del H1 */
h1.mp-hero__desc a{ color:inherit; text-decoration:underline; text-underline-offset:2px; }
h1.mp-hero__desc strong{ font-weight:900; }
h1.mp-hero__desc em{ font-style:italic; }

/* Truncado opcional a 2–3 líneas (quita si no lo necesitas) */
h1.mp-hero__desc.truncate-2{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
h1.mp-hero__desc.truncate-3{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modo oscuro automático */
@media (prefers-color-scheme: dark){
  h1.mp-hero__desc{ color:#f3f3f3; }
  .under-pan h1.mp-hero__desc{
    background:#111;
    border-color:#222;
  }
}

/* Breakpoints finos (opcional) */
@media (min-width: 768px){
  h1.mp-hero__desc{ letter-spacing: -.02em; }
}
@media (min-width: 1200px){
  h1.mp-hero__desc{ max-width: 80ch; }
}

.mp-back-to-top{
  position: fixed;
  left: 14px;
  bottom: 145px;
  z-index: 9999;

  width: 38px;
  height: 38px;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.mp-back-to-top svg{
  width: 18px;
  height: 18px;
  fill: rgba(0,0,0,.55);
}

.mp-back-to-top.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mp-back-to-top:hover{
  background: rgba(255,255,255,.92);
}

@media (max-width: 480px){
  .mp-back-to-top{
    left: 10px;
    bottom: 115px;
    width: 36px;
    height: 36px;
  }
}

.mp-shop-embed{
  display:flex; gap:12px;
  border:1px solid #e7e7e7;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  margin:12px 0;
  box-shadow:0 1px 6px rgba(0,0,0,.04);
}
.mp-shop-product .mp-shop-thumb{ width:140px; flex:0 0 140px; background:#f6f6f6; display:block; }
.mp-shop-product .mp-shop-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.mp-shop-info{ padding:12px; flex:1; min-width:0; }
.mp-shop-title{ font-weight:800; text-decoration:none; color:#111; display:inline-block; margin-bottom:6px; }
.mp-shop-meta{ font-size:14px; margin-bottom:8px; }
.mp-shop-price{ font-weight:800; }
.mp-shop-compare{ text-decoration:line-through; opacity:.55; margin-left:8px; }
.mp-shop-desc{ font-size:14px; opacity:.85; line-height:1.35; margin-bottom:10px; }
.mp-shop-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.mp-shop-btn{ background:#111; color:#fff; padding:8px 12px; border-radius:10px; text-decoration:none; font-weight:800; font-size:14px; }
.mp-shop-link{ text-decoration:none; font-weight:800; font-size:14px; opacity:.85; }
@media (max-width:520px){
  .mp-shop-embed{ flex-direction:column; }
  .mp-shop-product .mp-shop-thumb{ width:100%; flex:0 0 auto; height:180px; }
}

.municipalpost-ad-container,
.adsnet-ad-container {
    margin: 18px 0;
    padding: 0;
    text-align: center;
    overflow: hidden;
    line-height: normal;
}

.municipalpost-ad-container ins.adsbygoogle,
.adsnet-ad-container ins.adsbygoogle {
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
