.recursos {
  background: linear-gradient(135deg, #0f1c28, #162a3a);
  padding: 100px 0;
}

.recursos-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.recursos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 24px;
}

.recursos-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.recursos-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.recursos-ver-todos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  white-space: nowrap;
  transition: gap .2s ease;
}
.recursos-ver-todos:hover { gap: 13px; }

.recursos-arrow {
  font-size: 18px;
  color: var(--green);
  transition: transform .2s ease;
}
.recursos-ver-todos:hover .recursos-arrow { transform: translateX(3px); }

/* Grid — 3 columnas iguales */
.recursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.recurso-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  border-radius: 16px;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.recurso-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.recurso-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease, filter .5s ease;
}

.recurso-card:hover .recurso-img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.recurso-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,18,28,0.92) 0%,
    rgba(10,18,28,0.4) 45%,
    rgba(10,18,28,0.08) 100%
  );
  z-index: 1;
  transition: background .4s ease;
}

.recurso-card:hover .recurso-overlay {
  background: linear-gradient(
    to top,
    rgba(10,18,28,0.95) 0%,
    rgba(10,18,28,0.6) 50%,
    rgba(10,18,28,0.2) 100%
  );
}

.recurso-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recurso-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.recurso-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}

.recurso-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}

.recurso-card:hover .recurso-link {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .recursos-grid {
    grid-template-columns: 1fr;
  }
  .recurso-card {
    aspect-ratio: 16/9;
  }
  .recursos-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
