/* Post Page Styles */

.postHero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
}

.postHero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.postHeroOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(61, 43, 31, 0.3) 0%, rgba(61, 43, 31, 0.85) 100%);
  z-index: 1;
}

.postHeroContent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.postCategoria {
  display: inline-block;
  background: linear-gradient(135deg, #C5A572 0%, #a88a5a 100%);
  color: #3D2B1F;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.postHeroContent h1 {
  color: white;
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  line-height: 1.3;
  margin: 0 0 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.postMeta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.postMeta span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.postMeta span i {
  color: #C5A572;
}

.postSection {
  width: 100%;
  padding: 3rem 0;
  background: #f8f7f5;
  display: flex;
  justify-content: center;
}

.postContainer {
  max-width: 900px;
  width: 100%;
  padding: 0 2rem;
}

.postVolverBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #C5A572;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  border: 1px solid rgba(197, 165, 114, 0.2);
}

.postVolverBtn:hover {
  background: #C5A572;
  color: #3D2B1F;
  transform: translateX(-4px);
}

.postArticle {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  border: 1px solid rgba(197, 165, 114, 0.1);
}

.postContent {
  color: #444;
  font-size: 1.1rem;
  line-height: 1.9;
  text-align: justify;
}

.postContent p {
  margin-bottom: 1.5rem;
}

.postContent h2,
.postContent h3,
.postContent h4 {
  color: #3D2B1F;
  font-family: 'Cinzel', serif;
  margin: 2rem 0 1rem;
}

.postContent h2 {
  font-size: 1.75rem;
}

.postContent h3 {
  font-size: 1.5rem;
}

.postContent h4 {
  font-size: 1.25rem;
}

.postContent a {
  color: #C5A572;
  text-decoration: underline;
}

.postContent a:hover {
  color: #8B1A1A;
}

.postContent blockquote {
  background: linear-gradient(135deg, rgba(197, 165, 114, 0.1) 0%, rgba(139, 26, 26, 0.05) 100%);
  border-left: 4px solid #C5A572;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border-radius: 0 1rem 1rem 0;
  font-style: italic;
  color: #3D2B1F;
}

.postContent ul,
.postContent ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #444;
}

.postContent ul li,
.postContent ol li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.postContent img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.postFigure {
  margin: 2rem 0 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.postFigure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.postFigure:hover img {
  transform: scale(1.02);
}

.postFigure figcaption {
  background: #3D2B1F;
  color: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  text-align: center;
  font-style: italic;
}

.postShare {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  border: 1px solid rgba(197, 165, 114, 0.1);
}

.postShare > span {
  color: #3D2B1F;
  font-weight: bold;
  font-size: 1rem;
}

.postShareLinks {
  display: flex;
  gap: 0.75rem;
}

.postShareLinks a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #3D2B1F;
  text-decoration: none;
  transition: all 0.3s ease;
}

.postShareLinks a:hover {
  transform: translateY(-4px);
}

.postShareLinks a:nth-child(1):hover {
  background: #1877f2;
  color: white;
}

.postShareLinks a:nth-child(2):hover {
  background: #1da1f2;
  color: white;
}

.postShareLinks a:nth-child(3):hover {
  background: #25d366;
  color: white;
}

.postVolverBtnBottom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  color: #3D2B1F;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #C5A572 0%, #a88a5a 100%);
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(197, 165, 114, 0.4);
  transition: all 0.3s ease;
}

.postVolverBtnBottom:hover {
  background: linear-gradient(135deg, #a88a5a 0%, #8B1A1A 100%);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(197, 165, 114, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .postHero {
    height: 50vh;
    min-height: 300px;
  }

  .postHeroContent {
    padding: 1.5rem;
  }

  .postHeroContent h1 {
    font-size: 1.75rem;
  }

  .postMeta {
    gap: 1rem;
  }

  .postMeta span {
    font-size: 0.9rem;
  }

  .postSection {
    padding: 2rem 0;
  }

  .postContainer {
    padding: 0 1rem;
  }

  .postArticle {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .postContent {
    font-size: 1rem;
    line-height: 1.8;
  }

  .postShare {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .postShareLinks a {
    width: 40px;
    height: 40px;
  }

  .postVolverBtnBottom {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .postHero {
    height: 40vh;
    min-height: 250px;
  }

  .postHeroContent h1 {
    font-size: 1.5rem;
  }

  .postCategoria {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .postMeta span {
    font-size: 0.85rem;
  }
}
