/* Catálogo de proyectos (proyectos.html): qué tipo de proyectos pueden construir los equipos que se forman
   en Instituto CPE. Cada tarjeta lleva a la página del proyecto. Usa los tokens de styles.css. */

.nav a[aria-current] { color: var(--ink); font-weight: 600; }
.proy-hero { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 40px); }
.proy-kicker { font-family: var(--f-data); font-size: 0.82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.proy-hero h1 { font-size: var(--step-4); margin-top: 14px; max-width: 17ch; line-height: 1.05; }
.proy-hero h1 em { font-style: italic; color: var(--accent); }
.proy-hero .hero-lead { margin-top: 24px; max-width: 54ch; }

.proy-list { padding-bottom: clamp(56px, 8vw, 96px); }
.proy-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.proy-card { display: flex; }
.proy-card > a {
  display: flex; flex-direction: column; width: 100%; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.proy-card > a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.proy-card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--sky); overflow: hidden; }
.proy-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.proy-card > a:hover .proy-card-media img { transform: scale(1.04); }
.proy-play {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border-radius: 999px; background: rgba(8,21,33,.72); color: #fff; font-size: 0.8rem; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.proy-play::before { content: ''; width: 0; height: 0; border-left: 8px solid #4db7e4; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.proy-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 24px; }
.proy-sector { font-family: var(--f-data); font-size: 0.8rem; letter-spacing: .04em; color: var(--teal); }
.proy-card h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }
.proy-card p { color: var(--muted); line-height: 1.55; font-size: 0.95rem; }
.proy-tags { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.proy-tags li { font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.proy-cta { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.92rem; color: var(--accent); }

.proy-contacto {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
  padding-block: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line);
}
.proy-contacto h2 { font-size: var(--step-3); max-width: 20ch; }
.proy-contacto-lead { margin-top: 14px; color: var(--muted); max-width: 52ch; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { .proy-card > a, .proy-card-media img { transition: none; } .proy-card > a:hover { transform: none; } .proy-card > a:hover .proy-card-media img { transform: none; } }
