/* ========================================
   PÁGINA DE NOTÍCIAS - ESTILOS
   ======================================== */

/* Hero Section */
.noticiasHero {
  width: 100%;
  background: linear-gradient(135deg, #24231f 0%, #3a3935 100%);
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.noticiasHero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/pattern-orthodox.png") repeat;
  opacity: 0.05;
  pointer-events: none;
}

.noticiasHeroContent {
  max-width: 800px;
  text-align: center;
  z-index: 1;
}

.noticiasHeroContent h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
}

.noticiasHeroContent h1::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: #7ea8c9;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.noticiasHeroContent p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Seção Principal */
.noticiasSection {
  width: 100%;
  padding: 3rem 0;
  display: flex;
  justify-content: center;
}

.noticiasContainer {
  max-width: 1400px;
  width: 100%;
  padding: 0 2rem;
}

/* Filtros */
.noticiasFiltros {
  margin-bottom: 2.5rem;
}

.filtrosForm {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  align-items: center;
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.filtroSearch {
  flex: 1;
  position: relative;
}

.filtroSearch i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7ea8c9;
}

.filtroSearch input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "Inria Serif", serif;
}

.filtroSearch input:focus {
  outline: none;
  border-color: #7ea8c9;
  box-shadow: 0 0 0 3px rgba(126, 168, 201, 0.2);
}

.filtroBtn {
  padding: 0.875rem 1.5rem;
  background: #7ea8c9;
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inria Serif", serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.filtroBtn:hover {
  background: #5d8fb3;
  transform: translateY(-2px);
}

/* Post Destacado */
.noticiaDestacada {
  margin-bottom: 3rem;
}

.noticiaDestacadaLink {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.noticiaDestacadaLink:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.noticiaDestacadaImg {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.noticiaDestacadaImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.noticiaDestacadaLink:hover .noticiaDestacadaImg img {
  transform: scale(1.05);
}

.noticiaCategoria {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #7ea8c9;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.noticiaDestacadaContent {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

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

.noticiaMeta span {
  color: #7ea8c9;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.noticiaDestacadaContent h2 {
  color: #24231f;
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 0;
}

.noticiaDestacadaContent p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
}

.leerMasBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #7ea8c9;
  font-weight: bold;
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: gap 0.3s ease;
}

.noticiaDestacadaLink:hover .leerMasBtn {
  gap: 1rem;
}

/* Grid de Notícias */
.noticiasGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.noticiaCard {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.noticiaCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.noticiaCardLink {
  text-decoration: none;
  display: block;
}

.noticiaCardImg {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.noticiaCardImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.noticiaCard:hover .noticiaCardImg img {
  transform: scale(1.08);
}

.noticiaCardContent {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.noticiaCardContent h3 {
  color: #24231f;
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.noticiaCardContent p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.leerMasLink {
  color: #7ea8c9;
  font-weight: bold;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  transition: gap 0.3s ease;
}

.noticiaCard:hover .leerMasLink {
  gap: 0.8rem;
}

/* Paginação */
.noticiasPaginacion {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.paginacionBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  color: #7ea8c9;
  border: 2px solid #7ea8c9;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.paginacionBtn:hover {
  background: #7ea8c9;
  color: white;
}

.paginacionNumeros {
  display: flex;
  gap: 0.5rem;
}

.paginacionNum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  color: #24231f;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.paginacionNum:hover {
  border-color: #7ea8c9;
  color: #7ea8c9;
}

.paginacionNum.active {
  background: #7ea8c9;
  color: white;
}

/* Estado Vacío */
.noticiasVacio {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.noticiasVacio i {
  font-size: 4rem;
  color: #7ea8c9;
  margin-bottom: 1.5rem;
}

.noticiasVacio h3 {
  color: #24231f;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.noticiasVacio p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.volverBtn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: #7ea8c9;
  color: white;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.volverBtn:hover {
  background: #5d8fb3;
  transform: translateY(-2px);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .noticiasHeroContent h1 {
    font-size: 2.5rem;
  }

  .noticiaDestacadaLink {
    grid-template-columns: 1fr;
  }

  .noticiaDestacadaImg {
    height: 300px;
  }

  .noticiasGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .noticiasHero {
    padding: 3rem 1.5rem;
  }

  .noticiasHeroContent h1 {
    font-size: 2rem;
  }

  .noticiasHeroContent p {
    font-size: 1rem;
  }

  .noticiasContainer {
    padding: 0 1rem;
  }

  .filtrosForm {
    flex-wrap: wrap;
    padding: 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .filtroSearch {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }

  .filtroSearch input {
    width: 100%;
    box-sizing: border-box;
  }

  .filtroBtn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .noticiaDestacadaImg {
    height: 220px;
  }

  .noticiaDestacadaContent {
    padding: 1.5rem;
  }

  .noticiaDestacadaContent h2 {
    font-size: 1.4rem;
  }

  .noticiaDestacadaContent p {
    font-size: 1rem;
  }

  .noticiasGrid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .noticiaCardImg {
    height: 180px;
  }

  .noticiasPaginacion {
    flex-direction: column;
    gap: 0.75rem;
  }

  .paginacionNumeros {
    order: -1;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .noticiasHeroContent h1 {
    font-size: 1.75rem;
  }

  .noticiaDestacadaContent h2 {
    font-size: 1.25rem;
  }

  .noticiaCardContent h3 {
    font-size: 1.1rem;
  }

  .paginacionNum {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}
