/* ============================================================
   NOTICIAS-ESTILOS.CSS
   Estilos para la página de Eventos y Noticias.

   Namespaces usados (sin conflicto con otros CSS del sitio):
     .directory-hero  → sección hero con imagen de fondo
     .encnot-*        → encabezado slider de últimas noticias
     .arcnot-*        → archivo/grid de todas las noticias
============================================================ */

/* ============================================================
   FUENTES — importadas aquí para centralizar
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── TIPOGRAFÍA GLOBAL ───────────────────────────────────── */
*, *::before, *::after {
  font-family: 'Poppins', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}
input, button, select, textarea {
  font-family: 'Poppins', sans-serif;
}


/* ============================================================
   SECCIÓN HERO — .directory-hero
   Mismo estilo que el Directorio de Dependencias
============================================================ */

.directory-hero {
  background-image: url('https://www.huichapan.gob.mx/images/fondo1.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 64px 80px 72px;
  color: #fff;
}
.directory-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.341);
  pointer-events: none;
}
.directory-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.directory-hero-sup {
  font-family: 'Poppins', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #BFA184;
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.directory-hero-sup::before,
.directory-hero-sup::after {
  content: '';
  width: 32px;
  height: 1px;
  background: #BFA184;
  opacity: 0.5;
}
.directory-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 12px;
  margin-bottom: 16px;
  color: #fff;
  text-align: center;
}
.directory-hero-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 1.7;
}
.directory-hero .encnot-wrapper {
  position: relative;
  z-index: 1;
}
@media (max-width: 600px) {
  .directory-hero { padding: 48px 24px 0; }
  .directory-hero h1 { font-size: 2rem; }
  .directory-hero-inner { padding-bottom: 48px; }
}


/* ============================================================
   ENCABEZADO SLIDER — .encnot-*
============================================================ */

:root {
  --encnot-primary:    #BFA184;
  --encnot-gold:       #BFA184;
  --encnot-dark:       #ffffff;
  --encnot-muted:      rgba(255,255,255,0.55);
  --encnot-line:       rgba(255,255,255,0.2);
  --encnot-transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.encnot-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
  position: relative;
}
.encnot-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.163);
}
.encnot-item {
  position: relative;
  padding: 28px 0 28px 24px;
  border-bottom: 1px solid var(--encnot-line);
  cursor: pointer;
  transition: var(--encnot-transition);
  overflow: hidden;
}
.encnot-item:first-child {
  border-top: 1px solid var(--encnot-line);
}
.encnot-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: 100%;
  background: #BFA184;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.encnot-item.encnot-active::before,
.encnot-item:hover::before {
  transform: scaleY(1);
}
.encnot-item::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(191,161,132,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.encnot-item.encnot-active::after,
.encnot-item:hover::after {
  opacity: 1;
}
.encnot-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.encnot-category {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s ease;
}
.encnot-item.encnot-active .encnot-category,
.encnot-item:hover .encnot-category {
  color: #BFA184;
}
.encnot-sep {
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  opacity: 0.5;
  flex-shrink: 0;
}
.encnot-date {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
.encnot-title {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.25;
  transition: color 0.3s ease, font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}
.encnot-item:not(.encnot-active) .encnot-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.encnot-item.encnot-active .encnot-title,
.encnot-item:hover .encnot-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
}
.encnot-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #BFA184;
  text-decoration: none;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
  position: relative;
  z-index: 1;
}
.encnot-readmore::after {
  content: '→';
  transition: transform 0.25s ease;
}
.encnot-readmore:hover::after {
  transform: translateX(4px);
}
.encnot-item.encnot-active .encnot-readmore,
.encnot-item:hover .encnot-readmore {
  opacity: 1;
  transform: translateY(0);
}
.encnot-visual {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--encnot-dark);
  min-height: 380px;
}
.encnot-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(119,23,47,0.15) 0%, transparent 50%, rgba(191,161,132,0.1) 100%);
  z-index: 2;
  pointer-events: none;
}
.encnot-visual::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(191,161,132,0.25);
  border-radius: 2px;
  z-index: 3;
  pointer-events: none;
}
.encnot-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.9s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
}
.encnot-slide.encnot-slide-active {
  opacity: 1;
  transform: scale(1);
}
.encnot-slide-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 28px 24px;
  background: linear-gradient(0deg, rgba(26,10,14,0.75) 0%, transparent 100%);
  z-index: 4;
  transform: translateY(8px);
  transition: transform 0.5s ease;
}
.encnot-slide.encnot-slide-active .encnot-slide-info {
  transform: translateY(0);
}
.encnot-slide-category {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--encnot-gold);
  margin-bottom: 6px;
}
.encnot-slide-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.encnot-dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.encnot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}
.encnot-dot.encnot-dot-active {
  background: var(--encnot-gold);
  width: 20px;
  border-radius: 3px;
}
.encnot-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}
.encnot-counter span {
  color: var(--encnot-gold);
  font-size: 18px;
  font-weight: 700;
}
@media (max-width: 900px) {
  .encnot-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .encnot-visual { min-height: 260px; order: -1; }
}


/* ============================================================
   DIVISOR ENTRE SECCIONES
============================================================ */

.encnot-arcnot-divider {
  height: 4px;
  background: linear-gradient(90deg, #77172f 0%, #BFA184 50%, #77172f 100%);
  opacity: 0.15;
}


/* ============================================================
   ARCHIVO DE NOTICIAS — .arcnot-*
============================================================ */

.arcnot-section {
  font-family: 'Poppins', sans-serif;
  background: #f7f7f7;
  padding: 60px 80px 80px;
  box-sizing: border-box;
}
.arcnot-header {
  margin-bottom: 36px;
}
.arcnot-supertitle {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #BFA184;
  margin-bottom: 8px;
}
.arcnot-maintitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.arcnot-count {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #888888;
  letter-spacing: 0.05em;
}
.arcnot-count span {
  font-weight: 600;
  color: #77172f;
}
.arcnot-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 0;
  border-bottom: none;
}
.arcnot-filter-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(0,0,0,0.09);
  background: #ffffff;
  color: #666666;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
}
.arcnot-filter-btn:hover {
  border-color: #77172f;
  color: #77172f;
}
.arcnot-filter-btn.arcnot-active {
  background: #77172f;
  border-color: #77172f;
  color: #fff;
}

/* --- Buscador --- */
.arcnot-search-wrap {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0,0,0,0.09);
}
.arcnot-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 50px;
  padding: 0 20px;
  gap: 12px;
  max-width: 520px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.arcnot-search-box:focus-within {
  border-color: #77172f;
  box-shadow: 0 0 0 3px rgba(119,23,47,0.08);
}
.arcnot-search-icon {
  flex-shrink: 0;
  color: #888888;
  transition: color 0.3s ease;
}
.arcnot-search-box:focus-within .arcnot-search-icon {
  color: #77172f;
}
.arcnot-search-input {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  padding: 13px 0;
}
.arcnot-search-input::placeholder {
  color: #aaaaaa;
}
.arcnot-search-clear {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaaaaa;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  display: none;
  transition: color 0.2s ease;
}
.arcnot-search-clear:hover {
  color: #77172f;
}
.arcnot-search-clear.arcnot-search-clear-visible {
  display: block;
}
.arcnot-search-hint {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #aaaaaa;
  margin-top: 10px;
  padding-left: 20px;
  display: none;
}
.arcnot-search-hint.arcnot-search-hint-visible {
  display: block;
}
.arcnot-highlight {
  background: rgba(191,161,132,0.35);
  color: #77172f;
  border-radius: 2px;
  padding: 0 1px;
  font-weight: 600;
}

/* --- Grid de tarjetas --- */
.arcnot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ============================================================
   TARJETA CLICKEABLE
   El click lo maneja JS (delegated listener en #arcnot-grid).
   cursor:pointer solo en :hover para que aparezca únicamente
   cuando el ratón está encima de una tarjeta.
============================================================ */
.arcnot-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.09);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.arcnot-card:hover {
  cursor: pointer;
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}
.arcnot-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e0e0e0;
  position: relative;
}
.arcnot-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.arcnot-card:hover .arcnot-card-img-wrap img {
  transform: scale(1.05);
}
.arcnot-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.04) 100%);
  pointer-events: none;
}
.arcnot-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.arcnot-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.arcnot-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.arcnot-badge-gobierno   { background: #fde8ed; color: #77172f; }
.arcnot-badge-bienestar  { background: #e8f0fd; color: #1a3a77; }
.arcnot-badge-eventos    { background: #fdf3e8; color: #7a4a10; }
.arcnot-badge-cultura    { background: #f3e8fd; color: #5a1077; }
.arcnot-badge-obras      { background: #e8fdf0; color: #10612f; }
.arcnot-badge-dif        { background: #fff3e8; color: #7a3d10; }
.arcnot-card-date {
  font-size: 11px;
  font-weight: 400;
  color: #888888;
}
.arcnot-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin: 0 0 10px;
  transition: color 0.3s cubic-bezier(0.4,0,0.2,1);
}
.arcnot-card:hover .arcnot-card-title {
  color: #77172f;
}
.arcnot-card-desc {
  font-size: 12.5px;
  font-weight: 400;
  color: #666666;
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.arcnot-card-link {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #77172f;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.3s cubic-bezier(0.4,0,0.2,1), gap 0.3s cubic-bezier(0.4,0,0.2,1);
  width: fit-content;
}
.arcnot-card-link::after {
  content: '→';
  transition: transform 0.25s ease;
}
.arcnot-card-link:hover {
  border-color: #77172f;
}
.arcnot-card-link:hover::after {
  transform: translateX(4px);
}
.arcnot-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: #888888;
  font-size: 14px;
}
.arcnot-empty strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 8px;
}
@media (max-width: 1024px) {
  .arcnot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .arcnot-section { padding: 40px 20px 60px; }
  .arcnot-grid { grid-template-columns: 1fr; }
  .arcnot-maintitle { font-size: 28px; }
}


/* ============================================================
   ENCABEZADOS DE MES — .arcnot-month-*
============================================================ */

.arcnot-month-group {
  margin-bottom: 56px;
}
.arcnot-month-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.arcnot-month-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #77172f;
  white-space: nowrap;
}
.arcnot-month-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(119,23,47,0.3) 0%, rgba(191,161,132,0.15) 100%);
}
.arcnot-month-count {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #aaaaaa;
  white-space: nowrap;
}
.arcnot-months-wrap {
  display: block;
}