.recursos-container {
  text-align: center;
  padding: 60px 20px;
}

.recursos-container h2 {
  color: #d47a7a;
  font-size: 28px;
  margin-bottom: 40px;
}

/* ===== Cuadrícula de recursos ===== */
.grid-recursos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.recurso-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  display: block;
}

.recurso-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

/* Overlay con texto centrado */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s;
}

.recurso-card:hover img {
  transform: scale(1.05);
}

.recurso-card:hover .overlay {
  background-color: rgba(212, 122, 122, 0.65);
}

/* ===== Footer ===== */
footer {
  background-color: #fff;
  text-align: center;
  padding: 25px 0;
  font-size: 14px;
  color: #777;
  border-top: 1px solid #e6d4d4;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .grid-recursos {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .overlay {
    font-size: 20px;
  }
}