/* ==========================================================
   SUPERFRUTA — estilos propios
   Se carga después de main.css (la plantilla Yummy) y solo
   añade o corrige. main.css no se toca: así una actualización
   de la plantilla no se lleva por delante estos cambios.
   ========================================================== */


/* ----------------------------------------------------------
   1. CORRECCIONES GLOBALES
   ---------------------------------------------------------- */

/* La plantilla superpone team-shape.svg sobre cada foto de
   tarjeta. Ese archivo estaba en /img/, que se borró en la
   limpieza, así que ahora mismo cada tarjeta pide un archivo
   que da 404. Como el efecto tampoco aportaba nada, fuera. */
.chefs .chef-member .member-img:after {
  display: none;
}

/* Las tarjetas crecían un 8 % al pasar el ratón. En una rejilla
   de 3 se nota poco; en bloques grandes da un salto brusco.
   Un realce más contenido. */
.chefs .chef-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(55, 55, 63, 0.13);
}


/* ----------------------------------------------------------
   2. FICHA DE ARTÍCULO
   ---------------------------------------------------------- */

.post {
  padding: 40px 0 70px;
}

/* Columna de lectura. 720 px deja unos 70 caracteres por línea,
   que es donde el ojo lee más cómodo. A ancho completo el texto
   cansa mucho antes. */
.post-wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* --- Miga de pan --- */
.post-crumbs {
  font-size: 13px;
  color: #8f8f9c;
  margin-bottom: 34px;
}
.post-crumbs a {
  color: #8f8f9c;
}
.post-crumbs a:hover {
  color: var(--color-primary);
}
.post-crumbs span + span::before {
  content: "/";
  margin: 0 8px;
  color: #c9c9d1;
}

/* --- Cabecera --- */
.post-header {
  text-align: center;
  margin-bottom: 34px;
}

.post-header h1 {
  font-family: var(--font-primary);   /* Amatic SC */
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  line-height: 1.05;
  color: var(--color-secondary);
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.post-meta {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9a9aa6;
}

/* --- Imagen de portada --- */
.post-cover {
  margin: 0 0 42px;
}

.post-cover img {
  display: block;
  width: 100%;
  max-height: 400px;          /* aquí se corta el "demasiado grande" */
  object-fit: cover;          /* recorta, no deforma */
  object-position: center;
  border-radius: 14px;
  box-shadow: 0 6px 26px rgba(55, 55, 63, 0.13);
}

/* --- Cuerpo --- */
.post-body {
  font-size: 17px;
  line-height: 1.8;
  color: #4a4a52;
  text-align: left;           /* la plantilla lo centraba todo */
}

.post-body p {
  margin: 0 0 1.45em;
  font-style: normal;         /* la plantilla lo ponía en cursiva */
}

/* Primer párrafo algo mayor: da entrada al texto y separa
   visualmente la cabecera del cuerpo. */
.post-body > p:first-child {
  font-size: 1.13em;
  line-height: 1.7;
  color: #3a3a42;
}

.post-body strong {
  color: var(--color-secondary);
  font-weight: 600;
}

.post-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.post-body h2,
.post-body h3 {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--color-secondary);
  margin: 2em 0 0.7em;
  line-height: 1.3;
}
.post-body h2 { font-size: 1.5em; }
.post-body h3 { font-size: 1.22em; }

.post-body ul,
.post-body ol {
  margin: 0 0 1.45em;
  padding-left: 1.3em;
}

.post-body li {
  margin-bottom: 0.6em;
  padding-left: 0.2em;
}

.post-body ul li::marker {
  color: var(--color-primary);
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5em 0;
}

.post-body blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--color-primary);
  color: #6a6a74;
  font-style: italic;
}


/* ----------------------------------------------------------
   3. LLAMADA AL FINAL DEL ARTÍCULO
   Si no la quieres, borra este bloque y el <aside class="post-cta">
   de articulo.php.
   ---------------------------------------------------------- */

.post-cta {
  margin: 50px 0 0;
  padding: 30px 32px;
  background: #faf7f7;
  border: 1px solid #f0e9e9;
  border-radius: 14px;
  text-align: center;
}

.post-cta h3 {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 8px;
}

.post-cta p {
  font-size: 15px;
  color: #6a6a74;
  margin: 0 0 20px;
}

.post-cta .btn-more {
  margin: 0 5px 8px;
}


/* ----------------------------------------------------------
   4. "MÁS DEL BLOG"
   Sin fondo gris: solo una línea fina de separación, que es
   lo que hace falta para marcar que ahí acaba el artículo.
   ---------------------------------------------------------- */

.post-related {
  max-width: 1100px;
  margin: 70px auto 0;
  padding-top: 50px;
  border-top: 1px solid #ececf0;
}

.post-related-title {
  font-family: var(--font-primary);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-align: center;
  margin: 0 0 34px;
}

.post-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(55, 55, 63, 0.12);
  text-decoration: none;
}

.post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.post-card-body {
  padding: 16px 18px 20px;
}

.post-card-body h3 {
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-secondary);
  margin: 0 0 6px;
}

.post-card:hover .post-card-body h3 {
  color: var(--color-primary);
}

.post-card-body time {
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a0a0ac;
}


/* ----------------------------------------------------------
   5. MÓVIL
   ---------------------------------------------------------- */

@media (max-width: 768px) {
  .post {
    padding: 24px 0 50px;
  }
  .post-crumbs {
    margin-bottom: 24px;
  }
  .post-cover img {
    max-height: 260px;
    border-radius: 10px;
  }
  .post-body {
    font-size: 16.5px;
  }
  .post-cta {
    padding: 26px 20px;
  }
  .post-related {
    margin-top: 50px;
    padding-top: 36px;
  }
}
