/* Asegura que todas las imágenes del editor tengan border-radius, tamaño fijo y no se estiren */
.wp-block-image img {
    object-fit: cover; /* esto evita que se deforme la imagen */
    border-radius: 20px;
    display: block;
}

/* Figura completa (contenedor de la imagen y la leyenda) */
.wp-block-image {
    margin-bottom: 24px;
}

/*Line height para el texto*/
.entry-content.wp-block-post-content {
    line-height: 140%;
}

.entry-content {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Leyenda debajo de la imagen */
.wp-block-image figcaption {
    font-family: "TT Norms Pro", sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 150%;
    color: #667892;
    margin-top: 8px;
    text-align: left;
}

.wp-block-columns.is-layout-flex {
    align-items: flex-start !important;
}


/*-----------------------SECCIÓN DE COMENTARIOS-------------------*/

/* ----- TÍTULO "Deja un comentario" ----- */
.comment-reply-title {
    font-family: Montserrat, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 38.4px */
    color: #042354;
    margin-bottom: 16px;
    position: relative;
}

.comment-reply-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ADD754;
    border-radius: 10px;
    margin-top: 8px;
    margin-bottom: 40px;
}

/* ----- Agrupación en columnas ----- */
.comment-form .comment-form-author,
.comment-form .comment-form-email {
    width: 48%;
    float: left;
    box-sizing: border-box;
    margin-bottom: 24px;
}

.comment-form .comment-form-author {
    margin-right: 4%;
}

/* ----- Campo de comentario completo ----- */
.comment-form .comment-form-comment {
    clear: both;
    width: 100%;
    margin-top: 20px;
}

/* ----- Etiquetas (labels) ----- */
.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 19.6px */
    color: #042354;
}

/* ----- Inputs y Textarea ----- */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #DFDFE1;
    background: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 24px */
    letter-spacing: -0.16px;
    color: #042354;
    outline: none;
    box-sizing: border-box;
}

/* ----- Placeholder ----- */
.comment-form ::placeholder {
    color: #667892;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 24px */
    letter-spacing: -0.16px;
}

/* ----- Botón de enviar ----- */
.comment-form input[type="submit"] {
    float: right;
    background: #ADD754;
    border-radius: 10px;
    padding: 9px 26px;
    height: 60px;
    border: none;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 19.2px */
    letter-spacing: -0.16px;
    color: #042354;
    transition: background-color 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background-color: #9ecb45;
}

/* ----- Limpieza de floats ----- */
.comment-form:after {
    content: '';
    display: block;
    clear: both;
}




/*--------ARTICULOS RECOMENDADOS--------*/

.recomendados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
  row-gap: 60px;
  margin-top: 60px;
  margin-bottom: 100px;
}

@media (max-width: 1024px) {
  .recomendados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .recomendados-grid {
    grid-template-columns: 1fr;
  }
}
