/* apps/myfuture/static/myfuture/scss/featured-projects.css
   Proyectos realizados: tres filas numeradas sobre el mismo eje que el resto del home (cota en lima
   arriba de cada fila, como las líneas del plano del hero). Una fila = un enlace; la descripción
   se corta con line-clamp, no en el texto. */

.home-projects {
  padding: clamp(60px, 9vh, 100px) 0;
}

.home-projects .home-pill { margin: 0 0 18px; }

.home-projects__lead { margin-bottom: clamp(28px, 5vh, 48px); }

.home-projects__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-project {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  padding: 32px 0;
  border-top: 2px solid #c2ff05;
  color: inherit;
  text-decoration: none;
}

.home-project__n {
  align-self: start;
  font-family: "kepler-std", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: #c2ff05;
}

.home-project__art {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid rgba(241, 237, 223, 0.5);
  transition: border-color 0.25s ease;
}

.home-project__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-project__body {
  display: grid;
  gap: 10px;
}

.home-project__name {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: #F1EDDF;
}

.home-project__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
  color: #C8C0AC;
}

.home-project__tech {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: #4cc9f0;
}

.home-project__go {
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #c2ff05;
}

.home-project__go i {
  display: inline-block;
  transition: transform 0.25s ease;
}

.home-project:hover .home-project__art,
.home-project:focus-visible .home-project__art { border-color: #c2ff05; }

.home-project:hover .home-project__art img,
.home-project:focus-visible .home-project__art img { transform: scale(1.05); }

.home-project:hover .home-project__go i,
.home-project:focus-visible .home-project__go i { transform: translateX(6px); }

.home-project:focus-visible {
  outline: 3px solid #c2ff05;
  outline-offset: 4px;
}

.home-projects__list li:last-child .home-project { border-bottom: 2px solid #c2ff05; }

.home-projects__all { margin-top: clamp(28px, 5vh, 48px); }

@media (max-width: 900px) {
  .home-project { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 26px 0; }
  .home-project__n { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-project__art, .home-project__art img, .home-project__go i { transition: none; }
  .home-project:hover .home-project__art img, .home-project:hover .home-project__go i { transform: none; }
}

/* Tema claro */
html[data-theme="light"] .home-project { border-top-color: #0050d6; }
html[data-theme="light"] .home-projects__list li:last-child .home-project { border-bottom-color: #0050d6; }
html[data-theme="light"] .home-project__n { color: var(--color-focus-text); }
html[data-theme="light"] .home-project__art { border-color: rgba(5, 60, 118, 0.35); }
html[data-theme="light"] .home-project:hover .home-project__art,
html[data-theme="light"] .home-project:focus-visible .home-project__art { border-color: var(--color-focus); }
html[data-theme="light"] .home-project__name { color: #053c76; }
html[data-theme="light"] .home-project__desc { color: #2c4a72; }
html[data-theme="light"] .home-project__tech { color: #0050d6; }
html[data-theme="light"] .home-project__go { color: #0050d6; }
html[data-theme="light"] .home-project:focus-visible { outline-color: var(--color-focus); }
