/* apps/myfuture/static/myfuture/scss/home-resources.css
   Embudo de Recursos: recorrido en escalera (cada paso un poco más arriba) y tarjetas pequeñas. */

.home-resources {
  padding: clamp(3rem, 7vw, 5rem) 0;
  color: #F1EDDF;
}

.home-resources__inner {
  width: min(1100px, 88vw);
  margin-inline: auto;
}

.home-resources__head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.home-resources__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c2ff05;
}

.home-resources__title {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: #fff;
}

.home-resources__lead { margin: 0.75rem 0 0; max-width: 58ch; color: #C8C0AC; }

/* Recorrido: de izquierda a derecha, cada paso más alto que el anterior */
.home-resources__funnel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: end;
  gap: 0.75rem;
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.home-resources__step {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(76, 201, 240, 0.35);
  border-radius: 14px;
  background: rgba(10, 74, 143, 0.4);
}
.home-resources__step:nth-child(1) { min-height: 5.5rem; }
.home-resources__step:nth-child(2) { min-height: 7rem; }
.home-resources__step:nth-child(3) { min-height: 8.5rem; }
.home-resources__step:nth-child(n+4) { min-height: 10rem; }
.home-resources__step:last-child {
  border-color: #c2ff05;
  box-shadow: 0 0 24px rgba(194, 255, 5, 0.18);
}

.home-resources__step-n {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #4cc9f0;
  color: #03162b;
  font-size: 0.85rem;
  font-weight: 700;
}
.home-resources__step-title { font-weight: 700; color: #fff; }
.home-resources__step-text { font-size: 0.9rem; color: #C8C0AC; }

.home-resources__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.home-resources__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(76, 201, 240, 0.3);
  border-radius: 16px;
  background: rgba(10, 74, 143, 0.4);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-resources__card:hover,
.home-resources__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(76, 201, 240, 0.3);
}

.home-resources__icon { font-size: 1.6rem; color: #4cc9f0; }
.home-resources__card-title { margin: 0; font-size: 1.1rem; color: #fff; }
.home-resources__card-text { margin: 0; font-size: 0.95rem; color: #C8C0AC; }
.home-resources__card-more { margin-top: auto; font-weight: 700; color: #4cc9f0; }
.home-resources__empty { margin: 0; color: #C8C0AC; }

.home-resources__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4cc9f0;
  text-decoration: none;
}
.home-resources__more:hover,
.home-resources__more:focus-visible { color: #c2ff05; }

@media (max-width: 700px) {
  .home-resources__funnel { grid-auto-flow: row; align-items: stretch; }
  .home-resources__step,
  .home-resources__step:nth-child(n) { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .home-resources__card { transition: none; }
  .home-resources__card:hover { transform: none; }
}

/* Tema claro: banda tintada azul fría con tarjetas blancas y texto navy */
html[data-theme="light"] main > .home-resources {
  background: linear-gradient(180deg, #dfe9fa 0%, #d3e1f6 100%);
  color: #0a2540;
}
html[data-theme="light"] main > .home-resources .home-resources__eyebrow { color: #0050d6; }
html[data-theme="light"] main > .home-resources .home-resources__title,
html[data-theme="light"] main > .home-resources .home-resources__card-title,
html[data-theme="light"] main > .home-resources .home-resources__step-title { color: #0a2540; }
html[data-theme="light"] main > .home-resources .home-resources__lead,
html[data-theme="light"] main > .home-resources .home-resources__card-text,
html[data-theme="light"] main > .home-resources .home-resources__step-text,
html[data-theme="light"] main > .home-resources .home-resources__empty { color: #3b4d63; }
html[data-theme="light"] main > .home-resources .home-resources__card,
html[data-theme="light"] main > .home-resources .home-resources__step {
  background: #fff;
  border-color: #b9cbe6;
}
html[data-theme="light"] main > .home-resources .home-resources__step:last-child { border-color: #0050d6; box-shadow: 0 0 0 2px rgba(0, 80, 214, 0.15); }
html[data-theme="light"] main > .home-resources .home-resources__step-n { background: #0050d6; color: #fff; }
html[data-theme="light"] main > .home-resources .home-resources__icon,
html[data-theme="light"] main > .home-resources .home-resources__card-more,
html[data-theme="light"] main > .home-resources .home-resources__more { color: #0050d6; }
html[data-theme="light"] main > .home-resources .home-resources__more:hover { color: #c4004a; }
