/* ===== 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;
  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%;
  }
}

/* ===== Layout: lateral izquierdo + formulario ===== */
.hc-page .ac-layout {
  display: grid;
  grid-template-columns: minmax(230px, 285px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.hc-page .ac-lateral {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hc-page .ac-formulario {
  min-width: 0;
}

/* ===== Card ===== */
.hc-page .ac-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 22px;
  color: #333;
}

/* ===== Títulos dentro de cards (simples, sin barra) ===== */
.hc-page .ac-titulo {
  display: block;
  margin: 0 0 2px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #131313;
}

.hc-page .ac-subtitulo {
  margin: 0 0 14px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
}

.hc-page .ac-lateral .ac-subtitulo {
  margin-bottom: 10px;
  font-size: 12px;
}

/* ===== Lateral compacto (≈75% del tamaño anterior) ===== */
.hc-page .ac-lateral .ac-card {
  padding: 16px;
}

.hc-page .ac-lateral .ac-titulo {
  margin-bottom: 2px;
  font-size: 16px;
}

/* ===== Listas de filas ===== */
.hc-page .ac-lista {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
}

.hc-page .ac-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #ddd;
}

.hc-page .ac-fila:last-child {
  border-bottom: 0;
}

.hc-page .ac-fila-nombre {
  font-weight: 600;
  color: #333;
}

.hc-page .ac-fila-valor {
  text-align: right;
  color: #333;
}

.hc-page .ac-fila-numero {
  font-size: 16px;
  font-weight: 700;
  color: #77172F;
  text-decoration: none;
}

.hc-page .ac-fila-numero:hover {
  text-decoration: underline;
}

/* ===== Bloques con icono rojo (911 y Emergencias 24/7) ===== */
.hc-page .ac-911,
.hc-page .ac-emergencia-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-decoration: none;
  background-color: #F0F0F0;
  border: 2px solid #BFA184;
  border-radius: 4px;
  color: #333;
  transition: background-color 0.3s ease, transform 0.25s ease;
}

.hc-page .ac-911:hover,
.hc-page .ac-emergencia-link:hover {
  background-color: #e6e6e6;
  transform: translateY(-2px);
}

.hc-page .ac-911-icono {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #f2453d, #c62828);
  border-radius: 4px;
  animation: acPulsoIcono 2s infinite;
}

.hc-page .ac-911-icono svg {
  width: 18px;
  height: 18px;
}

@keyframes acPulsoIcono {
  0%   { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(229, 57, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.hc-page .ac-911-texto {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hc-page .ac-911-etiqueta {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: #333;
}

.hc-page .ac-911-numero {
  font-size: 25px;
  font-weight: 700;
  color: #77172F;
}

.hc-page .ac-emergencia-titulo {
  font-size: 14px;
  font-weight: 500;
  color: #77172F;
}

.hc-page .ac-emergencia-sub {
  font-size: 11px;
  font-weight: 400;
  color: #333;
}

/* ===== Ubicación ===== */
.hc-page .ac-direccion {
  margin: 0 0 12px 0;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

.hc-page .ac-btn-enlace {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background-color: #77172F;
  border: 2px solid #77172F;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hc-page .ac-btn-enlace:hover {
  background-color: #BFA184;
  border-color: #BFA184;
}

.hc-page .ac-mapa {
  display: block;
  width: 100%;
  height: 195px;
  border: 0;
  border-radius: 4px;
}

/* ===== Formulario embebido ===== */
.hc-page .ac-form-iframe {
  display: block;
  width: 100%;
  height: 950px;
  border: 0;
  border-radius: 4px;
}

.hc-page .ac-enlace-externo {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #77172F;
  text-decoration: none;
}

.hc-page .ac-enlace-externo:hover {
  text-decoration: underline;
}

/* ===== Botón ENVIAR DENUNCIA (solo móvil) ===== */
.hc-page .ac-btn-enviar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: #77172F;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.35);
}

.hc-page .ac-btn-enviar svg {
  width: 22px;
  height: 22px;
}

/* ===== Modal ===== */
.hc-page .ac-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.6);
}

.hc-page .ac-modal.activo {
  display: flex;
}

.hc-page .ac-modal-caja {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  height: 100%;
  max-height: calc(100vh - 24px);
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.hc-page .ac-modal-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
}

.hc-page .ac-modal-titulo {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #77172F;
}

.hc-page .ac-modal-cerrar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #77172F;
  background-color: #F0F0F0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.hc-page .ac-modal-cerrar svg {
  width: 20px;
  height: 20px;
}

.hc-page .ac-modal-iframe {
  flex: 1;
  width: 100%;
  border: 0;
}

/* ===== 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;
  }

  .hc-page .ac-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hc-page .ac-btn-enviar {
    display: flex;
  }

  .hc-page .ac-formulario {
    display: none;
  }
}

@media (min-width: 901px) {
  .hc-page .ac-modal {
    display: none !important;
  }
}

@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 .ac-card {
    padding: 18px;
  }

  .hc-page .ac-titulo {
    font-size: 18px;
  }

  .hc-page .ac-lateral .ac-titulo {
    font-size: 16px;
  }

  .hc-page .ac-mapa {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-page .ac-911-icono {
    animation: none;
  }
}
