/* ============================================
   Boletín Detail Page — Node Display
   Paleta: #fff, #222, #000, #FFE817, #EE5646, #333333
   ============================================ */

/* === Título del Boletín === */
.node--type-boletin .field--name-title h1,
.node--type-boletin h1.page-title,
.node--type-boletin .page-title {
  color: #222;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  line-height: 1.1;
  /*border-left: 6px solid #FFE817;
  padding-left: 20px;*/
}

/* === Cuerpo del Boletín === */
.node--type-boletin .field--name-body {
  line-height: 1.8;
  text-align: justify;
  /*margin-bottom: 3rem;*/
  padding-bottom: 2rem;
  /*border-bottom: 1px solid #f0f0f0;*/
  color: #333333;
  font-size: 1.8rem;
}

.node--type-boletin .field--name-body p:last-child {
  margin-bottom: 0;
}

/* === Etiqueta "Contenidos" === */
.node--type-boletin .field--name-field-contenidos > .field__label {
  color: #222;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-left: 16px;
  border-left: 4px solid #FFE817;
  display: inline-block;
}

/* === Grid de Contenidos === */
.node--type-boletin .field--name-field-contenidos > .field__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* === Tarjeta (Card) === */
.node--type-boletin .field--name-field-contenidos > .field__items > .field__item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.node--type-boletin .field--name-field-contenidos > .field__items > .field__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* Franja amarilla decorativa superior */
.node--type-boletin .field--name-field-contenidos > .field__items > .field__item::before {
  content: '';
  display: block;
  height: 4px;
  background: #FFE817;
  width: 100%;
  flex-shrink: 0;
}

/* Article dentro de la tarjeta */
.node--type-boletin .field--name-field-contenidos article {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
      padding: 0 !important;
      margin-bottom: 0 !important;
}

.node--type-boletin .field--name-field-contenidos article .node__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
}

/* === Área de Imagen === */
.node--type-boletin .field--name-field-contenidos .field--name-field-imagen {
  width: 100%;
  min-height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Placeholder cuando no hay imagen — ícono decorativo */
.node--type-boletin .field--name-field-contenidos .field--name-field-imagen:empty::after {
  content: '\f03e';
  font-family: "FontAwesome", "Font Awesome 6 Free";
  font-size: 3rem;
  opacity: 0.15;
  color: #999;
}

/* Cuando la imagen existe, quitar placeholder */
.node--type-boletin .field--name-field-contenidos .field--name-field-imagen:has(.field__item) {
  min-height: 0;
  background: none;
}

/* Campo de imagen individual */
.node--type-boletin .field--name-field-contenidos .field--name-field-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.node--type-boletin .field--name-field-contenidos .field--name-field-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.node--type-boletin .field--name-field-contenidos .field--name-field-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* Hover zoom en imagen */
.node--type-boletin .field--name-field-contenidos .field__item:hover .field--name-field-image img {
  transform: scale(1.05);
}

/* === Título dentro de la Tarjeta === */
.node--type-boletin .field--name-field-contenidos .field--name-title {
  padding: 1rem 1.5rem 0;
}

/* Si no hay imagen, más padding superior */
.node--type-boletin .field--name-field-contenidos .field--name-field-imagen:empty + .field--name-title {
  padding-top: 1.5rem;
}

.node--type-boletin .field--name-field-contenidos .field--name-field-imagen:not(:has(.field__item)) + .field--name-title {
  padding-top: 1.5rem;
}

.node--type-boletin .field--name-field-contenidos .field--name-title h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.9rem;
  line-height: 1.3;
}

.node--type-boletin .field--name-field-contenidos .field--name-title a {
  
  color: #EE5646;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.node--type-boletin .field--name-field-contenidos .field--name-title a:hover {
  color: #222;
}

/* Ocultar contextual links en vista boletín */
.node--type-boletin .field--name-field-contenidos .contextual {
  display: none;
}

/* === Resumen dentro de la Tarjeta === */
.node--type-boletin .field--name-field-contenidos .text-summary {
  padding: 0.5rem 1.5rem 1.5rem;
  flex-grow: 1;
}

.node--type-boletin .field--name-field-contenidos .text-summary .field--name-body,
.node--type-boletin .field--name-field-contenidos .text-summary .field__item {
  font-family: Arial, sans-serif;
  font-size: 1.7rem;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Type Badge (si existe) === */
.node--type-boletin .field--name-field-contenidos .node--type-article .type-badge {
  background: #EE5646;
}

.node--type-boletin .field--name-field-contenidos .node--type-noticia .type-badge {
  background: #222;
}

.node--type-boletin .field--name-field-contenidos .type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  z-index: 2;
}

/* === AddToAny === */
.node--type-boletin .addtoany_list a {
  margin-bottom: 1.5rem;
}

/* ============================================
   Botones Suscribirse / Darse de baja
   Contexto: fondo oscuro (#222)
   Paleta: #fff, #222, #000, #FFE817, #EE5646, #333333
   ============================================ */

/* Contenedor de los botones */
.simplenews-subscriber-form .custom-simplenews-links {
  /*display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;*/
}

/* === Base compartida === */
.custom-simplenews-links a {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 12px 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
}

.custom-simplenews-links a:after{
	content: '';
	display: none;
}

/* === SUSCRIBIRSE — Botón primario === */
.custom-simplenews-links a.btn-subscribe{
  background-color: #FFE817;
  color: #222;
  border-color: #FFE817;
}

.custom-simplenews-links a.btn-subscribe:hover {
  background-color: #F5D800;
  border-color: #F5D800;
  color: #000;
  box-shadow: 0 4px 14px rgba(255, 232, 23, 0.35);
  transform: translateY(-1px);
}

.custom-simplenews-links a.btn-subscribe:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(255, 232, 23, 0.2);
}

/* === DARSE DE BAJA — Botón secundario (outline) === */
.custom-simplenews-links a.btn-unsubscribe{
  background-color: transparent;
  color: #999;
  border-color: #666;
  margin-left: 1rem;
}

.custom-simplenews-links a.btn-unsubscribe:hover {
  background-color: transparent;
  color: #EE5646;
  border-color: #EE5646;
  box-shadow: 0 4px 14px rgba(238, 86, 70, 0.2);
  transform: translateY(-1px);
}

.custom-simplenews-links a.btn-unsubscribe:active{
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(238, 86, 70, 0.15);
}

/* === Focus (accesibilidad) === */
.custom-simplenews-links a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .custom-simplenews-links {
    flex-direction: column;
    width: 100%;
  }
  .custom-simplenews-links a {
    width: 100%;
    padding: 14px 20px;
    font-size: 13px;
  }
  .custom-simplenews-links a.btn-unsubscribe{
  margin-left: 0;
  margin-top: 1rem;
	}
}



/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .node--type-boletin .field--name-field-contenidos > .field__items {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  .node--type-boletin .field--name-title h1,
  .node--type-boletin h1.page-title {
    font-size: 2.2rem;
  }
  .node--type-boletin .field--name-field-contenidos > .field__label {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .node--type-boletin .field--name-field-contenidos > .field__items {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .node--type-boletin .field--name-title h1,
  .node--type-boletin h1.page-title {
    font-size: 1.8rem;
    border-left-width: 4px;
    padding-left: 14px;
  }
  .node--type-boletin .field--name-field-contenidos > .field__label {
    font-size: 1.3rem;
  }
  .node--type-boletin .field--name-field-contenidos .field--name-field-image,
  .node--type-boletin .field--name-field-contenidos .field--name-field-imagen {
    height: 180px;
    min-height: 180px;
  }
}