/* ============================
   Banner Hacienda (CSS completo)
   ============================ */

/* Contenedor principal con fondo announce-1 y overlay turquesa */
.hacienda-container {
  background-image: url('../../resources/images/bg/bg-announce-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* overlay turquesa con opacidad 80% */
  background-color: rgba(158, 221, 215, 0.9);
  background-blend-mode: overlay;

  border-radius: 25px;
  padding: 0 20px 0px 20px !important; /* top = 0, bottom = 1 línea */
  overflow-x: hidden;
}

/* Control de márgenes de la sección */
#HaciendaNotice {
  margin-top: 0;
  margin-bottom: 10px;
}

/* Enlace que envuelve todo el banner */
.notice-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Bloque interno */
.notice-block {
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 20px 10px;
  margin-bottom: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.notice-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

/* Contenido central */
.notice-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================
   Título principal (H1) en contenedor externo
   ============================ */
.main-title {
  font-size: 2rem;
  font-weight: normal; /* sin negrita */
  color: #1f2a44;
  margin: 0; /* sin espacio debajo */
  text-align: left;  /* alineado a la izquierda */
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ============================
   Grid de sistemas (tarjetas)
   ============================ */
.notice-tools {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tool-card {
  background: rgba(255, 255, 255, 0.8); /* fondo 80% transparente */
  border-radius: 12px;
  padding: 20px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Logos (círculo sólido) */
.tool-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,1); /* sólido blanco */
  margin-bottom: 14px;
  border: 1px solid rgba(31,81,134,0.15);
}

.tool-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block;
}

/* Títulos debajo de los logos (H2 visual) */
.tool-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2a44;
  text-align: center;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

/* ============================
   CTA general (texto abajo)
   ============================ */
.notice-cta {
  margin: 16px 0 0;
  font-size: 1.8rem;   /* grande y destacado */
  font-weight: normal; /* sin negrita */
  color: #123a66;
  background: rgba(255,255,255,0.8); /* fondo 80% transparente */
  border: 1px dashed rgba(31,81,134,0.25);
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center; /* centrado */
}

/* ============================
   Color de apoyo (opcional)
   ============================ */
.bg-hacienda {
  background-color: rgba(120, 80, 190, 0.2);
}

/* ============================
   Responsividad
   ============================ */
@media (max-width: 768px) {
  .notice-tools {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tool-logo {
    width: 110px;
    height: 110px;
  }

  .tool-title {
    font-size: 1.15rem;
  }

  .notice-cta {
    font-size: 1.5rem;
    padding: 14px 16px;
  }
}

@media (max-width: 576px) {
  .notice-block {
    padding: 16px 10px;
    margin-bottom: 20px;
  }
}
