article .entry-content p, 
article .entry-content ul li {
	text-align: justify;
} 

/* Contenedor */
.telegram-cta {
  margin-top: 20px;
  text-align: center;
}

/* Enlace */
.telegram-cta a {
  display: inline-flex;
  flex-direction: column; /* texto arriba, icono abajo */
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #000; /* negro por defecto (texto + círculo del ícono) */
  font: 600 15px/1.2 system-ui, sans-serif;
  transition: color .3s ease, transform .3s ease;
}

/* Ícono */
.telegram-cta .telegram-icon {
  transition: transform .6s ease, color .3s ease;
}

/* Hover */
.telegram-cta a:hover {
  color: #F9E924; /* texto + círculo cambian juntos */
  transform: scale(1.05);
}

.telegram-cta a:hover .telegram-icon {
  transform: rotate(360deg) scale(1.1);
}

.telegram-cta a:active {
  transform: scale(0.95);
}

/* Íconos sociales en la cabecera */
.header-social a,
.site-header .social a,
.social-icons a {
  color: inherit; /* mantienen el color actual por defecto */
  transition: color 0.3s ease, transform 0.3s ease;
}

.header-social a:hover,
.site-header .social a:hover,
.social-icons a:hover {
  color: #F9E924 !important; /* cambia a amarillo en hover */
  transform: scale(1.1);     /* pequeño zoom para más efecto */
}

/* Texto e ícono del CTA de Telegram */
.telegram-cta a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #000;
  font-family: 'Titillium Web', sans-serif; /* usa la tipografía del tema */
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  transition: color .3s ease, transform .3s ease;
}

/* CTA de Telegram debajo de las notas */
.telegram-cta a {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 500;   /* menos pesado que 600, más armónico */
  font-size: 16px;    /* un poco más grande para resaltar */
  line-height: 1.4;   /* aire entre líneas */
  color: #000;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color .3s ease, transform .3s ease;
}

.telegram-cta .telegram-icon {
  width: 45px;
  height: 45px;
  transition: transform .6s ease, color .3s ease;
}

/* Ajustar imágenes dentro de las notas */
.entry-content img,
.wp-block-image img {
  display: block;
  margin: 1.2em auto;    /* centrado con márgenes */
  max-width: 100%;       /* que nunca se pasen del ancho del texto */
  height: auto;          /* mantiene proporciones */
}

/* Hacer que las imágenes en el contenido se expandan al ancho disponible */
.entry-content .wp-block-image img,
.entry-content img {
  display: block;
  margin: 1.2em auto;
  width: 100% !important;    /* ocupar todo el ancho del contenedor */
  max-width: 100% !important;
  height: auto;
}

/* Badge de formato en la imagen destacada */
.post .post-thumbnail {
  position: relative;
}

.post .post-thumbnail::after {
  content: attr(data-icon);
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #000;           /* fondo negro */
  color: #fff;                /* ícono blanco */
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

/* Hover: amarillo */
.post .post-thumbnail:hover::after {
  background: #F9E924;
  color: #000;
}


/* Contenedor de botones de compartir */
.entry-content .sd-sharing,
.sharedaddy {
  text-align: center;
  margin: 25px 0;
}

/* Botones base */
.entry-content .sd-sharing ul li a,
.sharedaddy ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 5px;
  border-radius: 50%;
  color: #fff;                 /* icono blanco */
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Colores por red social */
.sd-sharing ul li.share-facebook a { background: #1877f2; }   /* Facebook */
.sd-sharing ul li.share-twitter a { background: #1da1f2; }    /* Twitter/X */
.sd-sharing ul li.share-linkedin a { background: #0077b5; }   /* LinkedIn */
.sd-sharing ul li.share-whatsapp a { background: #25d366; }   /* WhatsApp */
.sd-sharing ul li.share-telegram a { background: #0088cc; }   /* Telegram */
.sd-sharing ul li.share-pinterest a { background: #bd081c; }  /* Pinterest */
.sd-sharing ul li.share-email a { background: #6e6e6e; }      /* Email */

/* Hover: branding de tu sitio (amarillo + icono negro) */
.entry-content .sd-sharing ul li a:hover,
.sharedaddy ul li a:hover {
  background: #F9E924 !important;
  color: #000 !important;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

/* Opcional: más grandes en móviles */
@media (max-width: 600px) {
  .entry-content .sd-sharing ul li a,
  .sharedaddy ul li a {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* Ajuste general de widgets en el footer */
.site-footer .widget,
.footer-widgets .widget {
  margin: 0 auto 20px auto; /* centrados con espacio inferior */
  text-align: center;       /* contenido alineado al centro */
}

/* Forzar misma altura y alineación entre columnas */
.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

/* Cada columna ocupa el mismo ancho */
.footer-widgets .widget {
  flex: 1 1 25%;   /* 4 columnas, cambia a 33% si son 3 columnas */
  padding: 0 15px;
  box-sizing: border-box;
}

@media (max-width:768px){
  .share-bar{
    position: fixed; bottom: 0; left: 0; right: 0;
    display: flex; gap: 8px; padding: 10px 12px; background: #111827cc; backdrop-filter: blur(6px);
  }
  .share-bar a{
    flex:1; text-align:center; padding:10px 12px; border-radius:12px; color:#fff; text-decoration:none; font-weight:700;
  }
  .share-wa{ background:#25D366; }
  .share-tg{ background:#27A7E7; }
}

.embed-16x9{ position:relative; width:100%; padding-bottom:56.25%; height:0; overflow:hidden; border-radius:12px; }
.embed-16x9 iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

.pullquote{
  margin: 1.4em 0; padding: 1em 1.2em;
  border-left: 4px solid #0ea5e9; background: #f0f9ff; color: #0b3b52;
  font-size: 1.15rem; font-weight: 700; border-radius: 10px;
}

.article-body a{
  color: #0a66c2;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover,
.article-body a:focus-visible{
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  outline: none;
}

/* Galerías WordPress al 100% ancho */
.wp-block-gallery,
.blocks-gallery-grid,
.gallery {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}

/* Imágenes dentro de galerías fluidas */
.wp-block-gallery img,
.blocks-gallery-grid img,
.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover; /* opcional: recorta sin deformar */
  border-radius: 8px; /* opcional: esquinas redondeadas */
}

/* Si usas columnas en la galería */
.wp-block-gallery.columns-2 .blocks-gallery-item,
.wp-block-gallery.columns-3 .blocks-gallery-item,
.wp-block-gallery.columns-4 .blocks-gallery-item {
  flex: 1 1 0; /* hace que las columnas se repartan bien */
}

.icono-nota {
  display: inline-block;
  opacity: 1;
  font-size: 16px;
  color: #000;
  z-index: 10;
}

