/* ===== Contenedor general de la plantilla (solo afecta al contenido) ===== */
.hc-page {
  flex: 1000 0 auto;
  width: 100%;
  padding-top: 30px;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
  color: #333;
  box-sizing: border-box;
}

.hc-page *,
.hc-page *::before,
.hc-page *::after {
  box-sizing: border-box;
}

/* ===== Hero ===== */
.hc-page .hc-hero {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px;
  background-image: url('https://www.huichapan.gob.mx/images/fondo1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.hc-page .hc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hc-page .hc-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hc-page .hc-hero-titulo {
  display: inline-block;
  margin: 0 0 14px 0;
  padding-bottom: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 45px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  position: relative;
}

.hc-page .hc-hero-titulo::after {
  content: '';
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 4px;
  border-radius: 4px;
  background-color: #BFA184;
}

.hc-page .hc-hero-texto {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #fff;
}

/* ===== Contenido ===== */
.hc-page .hc-contenido {
  width: 100%;
  padding: 40px;
  background-color: #fff;
}

/* Márgenes 15% izquierdo / 70% contenido / 15% derecho en resoluciones grandes */
@media (min-width: 1400px) {
  .hc-page .hc-contenido {
    width: 100%;
    margin: 0;
    padding-left: 15%;
    padding-right: 15%;
  }
}

/* ===== Botones de año ===== */
.hc-page .ay-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hc-page .ay-tab-btn {
  padding: 11px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hc-page .ay-tab-btn:hover {
  background-color: #BFA184;
  color: #fff;
}

.hc-page .ay-tab-btn.activo {
  background-color: #77172F;
  border-color: #77172F;
  color: #fff;
}

/* ===== Paneles ===== */
.hc-page .ay-panel {
  display: none;
}

.hc-page .ay-panel.activo {
  display: block;
}

/* ===== Tabla ===== */
.hc-page .ay-tabla-wrap {
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hc-page .ay-tabla {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
}

.hc-page .ay-tabla thead tr {
  background-color: #77172F;
}

.hc-page .ay-tabla thead th {
  padding: 16px 22px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.hc-page .ay-tabla tbody tr {
  border-bottom: 1px solid #ddd;
  transition: background-color 0.25s ease;
}

.hc-page .ay-tabla tbody tr:last-child {
  border-bottom: 0;
}

.hc-page .ay-tabla tbody tr:hover {
  background-color: #F0F0F0;
}

.hc-page .ay-tabla td {
  padding: 18px 22px;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* ===== Botón Ver Archivos ===== */
.hc-page .ay-btn-ver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background-color: #77172F;
  border: 2px solid #77172F;
  border-radius: 4px;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}

.hc-page .ay-btn-ver:hover {
  background-color: #BFA184;
  border-color: #77172F;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Tablet y móvil ===== */
@media (max-width: 900px) {
  .hc-page {
    padding-top: 50px;
    overflow-x: hidden;
  }

  .hc-page .hc-hero-titulo {
    font-size: 36px;
  }

  .hc-page .hc-hero-texto {
    font-size: 16px;
  }

  .hc-page .hc-contenido {
    padding: 25px 20px;
  }
}

@media (max-width: 600px) {
  .hc-page .hc-hero {
    min-height: 200px;
    padding: 35px 16px;
  }

  .hc-page .hc-hero-titulo {
    font-size: 30px;
  }

  .hc-page .hc-hero-texto {
    font-size: 15px;
  }

  .hc-page .hc-contenido {
    padding: 22px 16px;
  }

  .hc-page .ay-tabs {
    gap: 8px;
  }

  .hc-page .ay-tab-btn {
    flex: 1 1 calc(50% - 8px);
    padding: 10px 8px;
    font-size: 13px;
  }

  .hc-page .ay-tabla thead th {
    padding: 14px 14px;
    font-size: 14px;
  }

  .hc-page .ay-tabla td {
    padding: 14px;
    font-size: 13px;
  }

  .hc-page .ay-btn-ver {
    padding: 9px 12px;
    font-size: 12px;
  }
}
