/* Página de Ayudas y subvenciones */
.ayudas {
  max-width: 1100px;
  margin: 8% auto 60px;
  padding: 0 20px 40px;
  color: #333;
}

.ayudas > h1 {
  font-size: 2.4rem;
  color: #2e3d29;
  text-align: center;
  margin-bottom: 12px;
}

.ayudas > .intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

.ayuda {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 28px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.ayuda h2 {
  font-size: 1.6rem;
  color: #1b5e20;
  margin-bottom: 6px;
}

.ayuda .expediente {
  display: inline-block;
  background: #f2f7f1;
  color: #2e3d29;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.ayuda dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  font-size: 1rem;
  line-height: 1.5;
}

.ayuda dt {
  font-weight: 700;
  color: #2e3d29;
}

.ayuda dd {
  margin: 0;
}

.ayuda .nota {
  margin-top: 18px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.ayuda figure {
  margin: 0;
}

.ayuda figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.ayuda figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #5a6b5b;
  text-align: center;
}

.ayuda a.descargar {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  padding: 10px 20px;
  background: #007f6a;
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.ayuda a.descargar:hover {
  background: #005f50;
}

/* Tarjeta del proyecto ERP, que enlaza a igape.php */
.ayuda--enlace {
  grid-template-columns: 1fr;
  text-align: left;
}

.ayuda--enlace a.mas-info {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: #007f6a;
  text-decoration: none;
}

.ayuda--enlace a.mas-info:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .ayuda {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .ayudas {
    margin-top: 22%;
  }

  .ayudas > h1 {
    font-size: 1.8rem;
  }

  .ayuda dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ayuda dd {
    margin-bottom: 10px;
  }
}
