.cl-clientes-subtitulo {
  color: var(--color-grey-dark);
  padding: 0;
}
/*TOP BUTTON*/
.btn-volver-arriba {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  transition: transform 0.4s ease;
}

.btn-volver-arriba:hover {
  transform: translateY(-5px);
}

.btn-volver-arriba img {
  width: 100%;
  height: 100%;
  transform: rotate(-180deg);
}

/*TOP BUTTON END*/
.im-imagenes {
  background-color: var(--color-grey);
  padding-bottom: 5rem;
  padding-top: 8rem;
}

.im-imagenes-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.im-imagenes-logo img {
  height: 75px;
  width: auto;
}

.im-imagenes-cap {
  /*background-color: white;*/
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.im-imagenes-cap-btn {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.im-imagenes-cap-intro {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.im-imagenes-cap-img {
  flex: 1 1 30%;
}

.im-imagenes-cap-img img {
  width: 100%;
  border-radius: 20px;
}

.im-imagenes-cap-texto {
  flex: 1 1 65%;
  background-color: var(--color-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 20px;
  border-radius: 20px;
}

.im-imagenes-cap-texto h3 {
  color: var(--color-green);
  text-transform: uppercase;
  font-family: 'Manrope Bold', sans-serif;
}

.im-imagenes-linea {
  height: 1px;
  width: 100%;
  margin: 10px 0;
  border: none;
}

.im-imagenes-linea-green {
  background-color: var(--color-green);
}

.im-images-cap-mesesbtn {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.im-imagenes-cap-download {
  display: flex;
  justify-content: end;
}

/*CALENDARIO*/
/*TEST SCROLL*/
.mes {
  scroll-margin-top: 80px;
  /* ajusta el valor al alto de tu header - ME FUNCIONA SOLO CON ENERO :(*/
}

/* Contenedor por mes */
.mes {
  margin-bottom: 40px;
}

/* Contenedor general de bloques */
.contenedor-bloques {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  /* <-- Esta línea es clave */
  padding-top: 1.5rem;/*5rem*/
  /*revisa esto, en enero-febrero-tengo mas espacio que en otros meses...*/
}

/* Bloque individual */
.bloque-noticia {
  flex: 0 1 calc(50% - 10px);
  /* Dos columnas con espacio */
  background-color: var(--color-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 8px 16px 20px 16px;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;

}
.bloque-noticia:hover {
  transform: translateY(2px);
}

/* Cabecera con fecha y flecha */
.bloque-noticia .cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 26px 0;
}

.bloque-noticia h4 {
  text-transform: uppercase;
  margin: 0;
  color: var(--color-grey-dark);
  font-family: 'Manrope Regular', sans-serif;
}

/* Icono flecha */
.bloque-noticia .cabecera img {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Rotación del icono cuando está activo */
.bloque-noticia.activo .cabecera img {
  transform: rotate(180deg);
}

/* Título */
.titulo-noticia {
  margin: 0;
  /* font-size: 1.2rem;*/
  padding-bottom: 1rem;
  font-family: 'Manrope Medium', sans-serif;
  font-size: 26px;
  line-height: 1.1;
  color: var(--color-green);
}


/* Imagen */
.imagen-noticia {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}
.top-center {
  object-position: center top;
}
.imagen-noticia.bottom {
  object-position: bottom;
}

.imagen-noticia.top {
  object-position: top;
}

/* Texto noticia oculto inicialmente (con animación de altura) */
.texto-noticia {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}

/* Texto visible cuando el bloque está activo */
.bloque-noticia.activo .texto-noticia {
  padding-top: 1rem;
  max-height: 800px;
  /* Ajusta según contenido máximo esperado */
  transition: max-height 0.5s ease;
}

/*.btn-pop-up-text {
    color: var(--color-green);
    text-decoration: underline;
  }
*/

/* #region POP-UP*/
/* BOTÓN: "Vídeo y transcripción" */
.btn-pop-up-text a {
  font-family: 'Manrope Bold', sans-serif;
  font-size: 14px;
  /* text-decoration: underline;*/
  color: var(--color-black);
}

.btn-pop-up-text a:hover {
  text-decoration: underline;
}

/* CONTENEDOR GENERAL DEL MODAL */
.popup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.popup-modal.activo {
  display: flex;
}

/* CAJA INTERNA DEL POPUP */
.popup-content {
  padding: 20px 0;
  background-color: var(--color-grey);
  width: 800px;
  height: 800px;
  border-radius: 20px;
  overflow: hidden;
  /* ocultamos scroll aquí */
  position: relative;
  display: flex;
  flex-direction: column;
}

/* WRAPPER SCROLLABLE CON PADDING INTERNO */
.popup-inner {
  padding: 30px;
  overflow-y: auto;
  max-height: 100%;
  box-sizing: border-box;
}

/* TITULAR */
.popup-inner h3 {
  margin-top: 0;
  font-size: 24px;
}

/* BOTÓN CERRAR */
.btn-cerrar-popup {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* VIDEO */
.popup-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 20px 0;
}

.popup-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: black;
}

/* #endregion POP-UP*/
/* TEXTOS */


/* #region POP-UP-IMG*/
/* Fondo oscuro */
.popimg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenedor con fondo blanco y padding igual arriba y abajo */
.popimg-content {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  display: inline-block;
  margin-top: 2rem;
  /* Para que haya espacio arriba también */
  margin-bottom: 2rem;
  /* Espacio igual abajo */
}

/* Imagen ampliada */
.popimg-img {
  width: 60vw;
  /* Siempre ocupa el 60% del ancho de la ventana */
  max-height: calc(90vh - 4rem);
  /* Restar padding vertical */
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

/* Botón cerrar */
.popimg-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* #endregion POP-UP-IMG*/

/* #region MQ*/
@media (max-width: 1080px) {
  .im-imagenes-cap {
    margin: 1.5rem;
  }

}

@media (max-width: 768px) {}

@media (max-width: 450px) {

  /*TOP BUTOM*/
  .btn-volver-arriba {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 0.5rem;
  }

  /*INTRO*/
  .im-imagenes {
    padding-bottom: 3rem;
    padding-top: 7rem;
  }

  .im-imagenes-logo img {
    height: 30px;
  }

  .im-imagenes-cap {
    padding: 1rem 0.63rem;
    gap: 1rem;
    margin: 16px;
  }

  .im-imagenes-cap-texto {
    padding: 10px 10px 20px 10px;
    border-radius: 10px;
  }

  .im-imagenes-cap-img img {
    border-radius: 10px;
  }

  .im-images-cap-mesesbtn {
    gap: 5px;
  }

  /*CALENDARIO*/
  .bloque-noticia {
    flex: 0 1 100%;
    border-radius: 10px;
    padding: 4px 8px 10px 8px;
  }

  .imagen-noticia {
    height: 100px;
  }

  .titulo-noticia {
    font-size: 14px;
  }

  .bloque-noticia h4 {
    font-size: 14px;
  }

  /*POP UP*/

  .popup-inner {
    padding: 1rem;
  }

  .popup-content {
    height: 600px;
  }

  /*POP UP IMG*/


  .popimg-img {
    width: 80vw;
    /* Más ancha en móvil */
    max-height: calc(90vh - 2rem);
    border-radius: 10px;
  }

  .popimg-content {
    padding: 2rem 1rem;
    /* padding top & bottom 2rem, left & right 1rem */
  }

  .popimg-close {
    top: 0.25rem;
    right: 0.25rem;
    width: 20px;
    /* Más pequeña para móvil */
    height: 20px;
  }

}




/* #endregion MQ*/