/* ========================================
   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);
}

/* Multi-category badges container */
.noticiaCategoriaBadges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.noticiaCategoria {
  position: static;
  background: #7ea8c9;
  color: white;
  padding: 0.4rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  background: rgba(126, 168, 201, 0.85);
}

.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;
  }
}

/* ========================================
   SEARCH TOOLBAR
   ======================================== */
.blogToolbar {
  width: 100%;
  background: #f8f9fa;
  padding: 2rem 0 0;
}

.blogToolbarInner {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.blogSearchForm {
  display: flex;
  gap: 0;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  border: 2px solid rgba(126, 168, 201, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(36, 35, 31, 0.04);
}

.blogSearchForm:focus-within {
  border-color: #7ea8c9;
  box-shadow: 0 4px 20px rgba(126, 168, 201, 0.15);
}

.blogSearchInputWrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.blogSearchIcon {
  position: absolute;
  left: 1.15rem;
  color: #bbb;
  font-size: 0.9rem;
  pointer-events: none;
}

.blogSearchInput {
  width: 100%;
  padding: 0.95rem 2.5rem 0.95rem 3rem;
  border: none;
  font-family: "Inria Serif", serif;
  font-size: 0.95rem;
  background: transparent;
  color: #24231f;
  outline: none;
  box-sizing: border-box;
}

.blogSearchInput::placeholder {
  color: #aaa;
}

.blogSearchClear {
  position: absolute;
  right: 0.5rem;
  color: #999;
  font-size: 0.85rem;
  text-decoration: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.blogSearchClear:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #24231f;
}

.blogSearchBtn {
  padding: 0 1.5rem;
  background: linear-gradient(135deg, #7ea8c9 0%, #5d8fb3 100%);
  color: white;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
}

.blogSearchBtn:hover {
  background: linear-gradient(135deg, #8fb8d5 0%, #7ea8c9 100%);
}

.blogSearchResults {
  text-align: center;
}

.blogSearchCount {
  display: inline-block;
  background: rgba(126, 168, 201, 0.12);
  color: #24231f;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid rgba(126, 168, 201, 0.2);
}

.blogSearchCount strong {
  color: #7ea8c9;
}

/* ========================================
   CATEGORY CARDS CAROUSEL
   ======================================== */
.catCardsSection-outer {
  width: 100%;
  background: #f8f9fa;
  padding: 0;
}

.blogToolbar + .catCardsSection-outer {
  padding-top: 2rem;
}

.catCardsWrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.catCardsSection {
  position: relative;
  width: 100%;
  overflow: visible;
}

.catCardsTrack {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.catCardsTrack::-webkit-scrollbar {
  display: none;
}

.catCard {
  position: relative;
  flex-shrink: 0;
  width: 155px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.catCardBg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.catCardOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(36, 35, 31, 0.6) 0%, rgba(20, 20, 18, 0.75) 100%);
  transition: all 0.35s ease;
}

.catCardContent {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 10px;
  text-align: center;
}

.catCardName {
  color: #fff;
  font-family: "Inria Serif", serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.catCardName i {
  margin-right: 4px;
  font-size: 0.7rem;
}

.catCardCount {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.catCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.catCard:hover .catCardBg {
  transform: scale(1.1);
}

.catCard:hover .catCardOverlay {
  background: linear-gradient(135deg, rgba(36, 35, 31, 0.45) 0%, rgba(20, 20, 18, 0.6) 100%);
}

.catCardActive {
  box-shadow: 0 4px 16px rgba(126, 168, 201, 0.3), 0 0 0 2.5px #7ea8c9;
}

.catCardActive .catCardOverlay {
  background: linear-gradient(135deg, rgba(126, 168, 201, 0.2) 0%, rgba(36, 35, 31, 0.6) 100%);
}

.catCardActive .catCardName {
  color: #7ea8c9;
}

.catCardActive .catCardCount {
  color: rgba(126, 168, 201, 0.65);
}

.catCardActive:hover {
  box-shadow: 0 8px 28px rgba(126, 168, 201, 0.35), 0 0 0 2.5px #7ea8c9;
}

/* Arrow buttons */
.catCardsArrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #24231f;
  font-size: 0.8rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

.catCardsArrow:hover {
  background: #24231f;
  color: #7ea8c9;
  box-shadow: 0 4px 16px rgba(36, 35, 31, 0.2);
}

.catCardsArrowLeft {
  left: -18px;
}

.catCardsArrowRight {
  right: -18px;
}

.catCardsSection.has-scroll-left .catCardsArrowLeft,
.catCardsSection.has-scroll-right .catCardsArrowRight {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive - Toolbar & Category Cards */
@media (max-width: 768px) {
  .blogToolbarInner {
    padding: 0 1rem;
  }

  .blogSearchBtn {
    min-width: 48px;
    padding: 0 1rem;
  }

  .catCardsWrapper {
    padding: 0 1rem;
  }

  .catCardsTrack {
    padding: 8px 0 12px;
  }

  .catCard {
    width: 120px;
    height: 72px;
  }

  .catCardName {
    font-size: 0.68rem;
  }

  .catCardCount {
    font-size: 0.58rem;
  }

  .catCardsArrow {
    width: 30px;
    height: 30px;
    font-size: 0.65rem;
  }

  .catCardsArrowLeft {
    left: 2px;
  }

  .catCardsArrowRight {
    right: 2px;
  }
}
