/* estilos-post.css */

/* ==== Estilo para el detalle del post ==== */
.post-detail {
  max-width: 950px;
  margin: 0.1rem auto 2rem;
  padding: 2rem;
  background-color: #ffffff;
  color: #222;
}

.post-detail h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #474747;
  line-height: 1.3;
  text-align: center;
  padding: 2rem;
}

.post-detail small {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  text-align: center;
}

.post-detail img {
  display: block;
  margin: 0 auto 2rem;
  max-width: 100%;
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* ==== Contenido del post ==== */
.contenido-post {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  padding: 1.5rem;
  text-align: justify;
}

.contenido-post p {
  margin-bottom: 1rem;
  line-height: 1.8;
  word-break: break-word;
  text-align: justify !important;
}

.contenido-post p[style*="text-align"] {
  text-align: justify !important;
}

.contenido-post p:empty {
  display: none;
}

.contenido-post h2,
.contenido-post h3 {
  color: #343434;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.contenido-post ul,
.contenido-post ol {
  margin: 1rem 0 1.5rem 2rem;
  padding-left: 1rem;
}

.contenido-post strong {
  color: #4d4d4d;
}

.post-detail .btn {
  display: inline-block;
  margin-top: 2rem;
  background-color: #0e5292;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.post-detail .btn:hover {
  background-color: #093866;
}

/* ==== Responsivo ==== */
@media (max-width: 768px) {
  .post-detail {
    padding: 0.5rem;
    margin: 2rem 1rem;
  }

  .post-detail h1 {
    font-size: 1.3rem;
    padding: 0.5rem;
  }

  .contenido-post {
    font-size: 1rem;
  }

  .post-detail img {
    max-height: 300px;
  }
}

/* ==== botones compartir redes ==== */
.compartir-redes {
  margin: 30px 0;
  text-align: center;
}

.compartir-redes p {
  font-weight: bold;
  margin-bottom: 10px;
}

.compartir-redes .btn {
  display: inline-block;
  margin: 5px;
  padding: 10px 15px;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease;
}

.red-facebook { background-color: #3b5998; }
.red-whatsapp { background-color: #25d366; }
.red-twitter  { background-color: #000000; }


.compartir-redes .btn:hover {
  opacity: 0.85;
}

.compartir-redes a.red-facebook {
  background-color: #3b5998 !important;
  color: #fff !important;
}

.compartir-redes a.red-whatsapp {
  background-color: #25d366 !important;
  color: #fff !important;
}

.compartir-redes a.red-twitter {
  background-color: #000000 !important;
  color: #fff !important;
}


/* ==== Publicaciones Recomendadas ==== */
.recomendados {
  margin-top: 4rem;
  padding: 2rem;
  background-color: #fcfcfc;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}


.recomendados h2 {
  text-align: left;
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: #0e5292;
}

.recomendados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.recomendados .post-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.recomendados .post-card:hover {
  transform: translateY(-5px);
}

.recomendados .post-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.recomendados .post-content {
  padding: 0.8rem;
  flex-grow: 1;
}

.recomendados .post-content h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: #3e3e3e;
}

.recomendados .post-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 0.5rem;
}

.recomendados .post-content small {
  font-size: 0.8rem;
  color: #777;
  text-align: left;
}

.recomendados .post-card a {
  text-decoration: none;
  color: inherit;
  border: none;
  outline: none;
}

@media (max-width: 992px) {
  .recomendados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .recomendados-grid {
    grid-template-columns: 1fr;
  }
}