/* ====== Variables para tamaños ====== */
:root {
  --card-width: 1200px;    /* ancho del cuadrado negro */
  --card-min-height: 250px; /* alto mínimo del cuadrado */
  --image-max-width: none; /* ancho máximo de las fotos */
}

/* ====== Fuente general ====== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

body {
  background-color: #f5f5f5;
  margin: 0;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Space Grotesk", Sans-Serif;
  justify-content: center;
  text-align: left;
}

/* ====== Título principal ====== */
h1 {
  font-size: 3em;
  margin-bottom: 20px;
  text-align: center;
  color: #000;
}

/* ====== Contenedor general ====== */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  width: fit-content;
  margin: 0 auto;
}

/* ====== Entradas unificadas ====== */
.news-item, .review, .iz-entry, .belljar-item, .entry {
  border: 3px solid #000;
  border-radius: 12px;
  padding: 25px;
  background-color: #fff;
  margin-bottom: 40px;
  box-sizing: border-box;
  display: block;       /* usamos block en lugar de flex */
  position: relative;
  width: 900px;         /* ancho fijo */
  min-height: 100px;
}

/* ===== Imagen principal (flotada) ===== */
.news-item > img:first-of-type {
  float: left;
  width: 200px;
  max-width: 30%;
  margin: 50px 20px 15px 50px ;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

/* ===== Contenido textual ===== */
.news-content, .review-content, .iz-entry, .belljar-item, .entry-content {
  display: block;
}

.news-content h2, .review-content h2, .iz-entry h2, .belljar-item h2, .entry-content h2 {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0 0 0px;
  border-bottom: 2px solid #000;
  padding-bottom: 5px;
}

.news-content .date, .iz-entry .date, .belljar-item .date, .entry-content .date {
  font-size: 0.9rem;
  font-style: italic;
  color: #333;
  margin: 0 0 10px;
}

/* Párrafos */
.news-content p, .review-content p, .iz-entry p, .belljar-item p, .entry-content p {
  margin: 0 0 10px;
  line-height: 1.5;
  font-size: 1.2em;
  font-style: normal;
  color: #222;
  text-align: justify;
}

/* A partir del 2º párrafo, bajar debajo de la imagen */
.news-content > p:nth-of-type(n+2) {
  clear: left;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.8rem;
}

/* Imágenes dentro del contenido → centradas */
.news-content p img {
  display: block;
  margin: 18px auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Clearfix para contener floats */
.news-item::after {
  content: "";
  display: table;
  clear: both;
}

/* ===== Estrellas de reviews ===== */
.stars {
  font-size: 1em;
  color: gold;
  margin-bottom: 0px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .news-item, .review, .iz-entry, .belljar-item, .entry {
    width: 100%;
    padding: 18px;
  }

  .news-item > img:first-of-type {
    float: none;
    display: block;
    margin: 0 auto 12px;
    width: auto;
    max-width: 80%;
  }

  .news-content > p:nth-of-type(2) {
    clear: none;
  }
}

/* ===== Flecha "Atrás" ===== */
.back-button {
  position: fixed;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  z-index: 1000;
  display: inline-block;
}
.back-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 30px solid black;
  transition: border-right-color .2s ease;
}
.back-button:hover::before {
  border-right-color: #444;
}
.back-button:focus {
  outline: 2px dashed #333;
  outline-offset: 2px;
}