.nav-active { color: var(--green) !important; }
.nav-active::after { transform: scaleX(1) !important; }

.proy-hero {
  min-height: 65vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 2.5rem 5rem;
  position: relative; z-index: 1; overflow: hidden;
}
.proy-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(0,232,122,0.04) 0%, transparent 50%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.proy-hero::after {
  content: '> _';
  position: absolute; top: 50%; right: 5%;
  transform: translateY(-60%);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(160px, 20vw, 280px);
  color: rgba(255,255,255,0.015);
  letter-spacing: -0.05em; line-height: 1;
  pointer-events: none; user-select: none;
}
.proy-hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
}
.proy-hero-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--green); letter-spacing: 0.25em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; margin-bottom: 1.5rem;
}
.proy-hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--green); }
.proy-hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(56px, 9vw, 110px);
  letter-spacing: -0.05em; line-height: 0.92; margin-bottom: 2rem;
}
.proy-hero-title .line2 {
  display: block; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.2);
}
.proy-hero-title .accent { color: var(--green); -webkit-text-stroke: 0; }
.proy-hero-desc {
  font-size: 15px; color: var(--text2); line-height: 1.85; max-width: 500px;
  border-left: 2px solid var(--border-g); padding-left: 1.25rem;
}

.proy-stats {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; background: rgba(18,24,32,0.85);
  backdrop-filter: blur(12px); flex-shrink: 0; min-width: 140px;
}
.pstat {
  padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border);
  position: relative;
}
.pstat:last-child { border-bottom: none; }
.pstat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--pstat-color, var(--green)); opacity: 0.7;
}
.pstat-n {
  font-family: var(--font-display); font-size: 32px; font-weight: 900;
  color: var(--pstat-color, var(--text)); display: block; line-height: 1;
}
.pstat-l {
  font-family: var(--font-mono); font-size: 9px; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.15em; display: block; margin-top: 3px;
}

.proy-main { position: relative; z-index: 1; padding: 3rem 0 8rem; }
.proy-container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }

.toolbar {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.search-wrap { position: relative; flex: 1; min-width: 220px; max-width: 460px; }
.search-ico {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); color: var(--text3); pointer-events: none;
}
.search-input {
  width: 100%; padding: 11px 40px 11px 40px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-lg); color: var(--text);
  font-family: var(--font-mono); font-size: 13px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; appearance: none;
}
.search-input::-webkit-search-cancel-button { display: none; }
.search-input::placeholder { color: var(--text3); }
.search-input:focus { border-color: var(--green-d); box-shadow: 0 0 0 3px rgba(0,232,122,0.06); }
.search-shortcut {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10px; color: var(--text3);
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 6px; pointer-events: none;
}
.results-count {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text3); margin-left: auto; white-space: nowrap;
}

.filters-panel {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.75rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-xl); margin-bottom: 3.5rem;
}
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text3); text-transform: uppercase; letter-spacing: 0.15em;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-family: var(--font-mono); font-size: 11px;
  padding: 5px 14px; border-radius: 100px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text3); cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.pill:hover { border-color: rgba(255,255,255,0.18); color: var(--text2); }
.pill.active { border-color: rgba(255,255,255,0.25); color: var(--text); background: rgba(255,255,255,0.07); }
.pill-completado.active { color: var(--green);  border-color: rgba(0,232,122,0.5);   background: rgba(0,232,122,0.08); }
.pill-curso.active      { color: var(--cyan);   border-color: rgba(56,189,248,0.5);  background: rgba(56,189,248,0.08); }
.pill-proximo.active    { color: var(--amber);  border-color: rgba(245,158,11,0.5);  background: rgba(245,158,11,0.08); }
.filter-reset {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text3); background: none; border: none;
  cursor: pointer; padding: 5px 0; margin-left: auto; align-self: flex-end;
  transition: color 0.2s;
}
.filter-reset:hover { color: var(--red); }

.section-recientes { margin-bottom: 4rem; }

.section-label {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-label-tag {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--green); text-transform: uppercase; letter-spacing: 0.2em;
  display: flex; align-items: center; gap: 10px;
}
.section-label-tag::before { content: ''; width: 24px; height: 1px; background: var(--green); }
.section-label-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
}
.section-label-count {
  font-family: var(--font-mono); font-size: 11px; color: var(--text3);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 2px 10px; border-radius: 100px; margin-left: auto;
}
.section-divider {
  height: 1px; background: var(--border);
  margin: 3.5rem 0;
}

.recientes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-section { margin-bottom: 3.5rem; }
.cat-section-header {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.cat-section-icon {
  width: 36px; height: 36px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.cat-section-name {
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  letter-spacing: -0.02em;
}
.cat-section-badge {
  font-family: var(--font-mono); font-size: 10px;
  padding: 3px 10px; border-radius: 100px; border: 1px solid;
  letter-spacing: 0.08em; text-transform: uppercase; margin-left: auto;
}

.icon-cyber  { background: rgba(0,232,122,0.1);   color: var(--green);  border: 1px solid rgba(0,232,122,0.2); }
.icon-dev    { background: rgba(56,189,248,0.1);  color: var(--cyan);   border: 1px solid rgba(56,189,248,0.2); }
.icon-res    { background: rgba(245,158,11,0.1);  color: var(--amber);  border: 1px solid rgba(245,158,11,0.2); }
.icon-ctf    { background: rgba(167,139,250,0.1); color: var(--purple); border: 1px solid rgba(167,139,250,0.2); }
.icon-sistemas    { background: rgba(255, 255, 255, 0.1); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.2); }
.badge-cyber { color: var(--green);  border-color: rgba(0,232,122,0.3);   background: rgba(0,232,122,0.06); }
.badge-dev   { color: var(--cyan);   border-color: rgba(56,189,248,0.3);  background: rgba(56,189,248,0.06); }
.badge-res   { color: var(--amber);  border-color: rgba(245,158,11,0.3);  background: rgba(245,158,11,0.06); }
.badge-ctf   { color: var(--purple); border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.06); }
.badge-sistemas   { color: var(--white); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.proy-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default; min-height: 240px;
}
a.proy-card { cursor: pointer; }
.proy-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,232,122,0.0) 0%, rgba(0,232,122,0.04) 100%);
  opacity: 0; transition: opacity 0.4s; border-radius: inherit; pointer-events: none;
}
.proy-card::after {
  content: ''; position: absolute;
  top: 0; left: 2rem; right: 2rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.proy-card:hover {
  border-color: rgba(255,255,255,0.14); transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,232,122,0.05);
}
.proy-card:hover::before { opacity: 1; }
.proy-card:hover::after  { opacity: 1; }

.pc-index {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  font-family: var(--font-display); font-weight: 900;
  font-size: 56px; line-height: 1;
  color: rgba(255,255,255,0.03);
  letter-spacing: -0.05em; user-select: none; pointer-events: none;
  transition: color 0.4s;
}
.proy-card:hover .pc-index { color: rgba(0,232,122,0.06); }

.recientes-grid .proy-card { min-height: 280px; padding: 2rem; }

.pc-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 8px; margin-bottom: 1.5rem;
}
.pc-top-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pc-cat {
  font-family: var(--font-mono); font-size: 10px;
  padding: 4px 12px; border-radius: 100px; border: 1px solid;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
}
.cat-cyber { color: var(--green);  border-color: rgba(0,232,122,0.35);   background: rgba(0,232,122,0.08); }
.cat-dev   { color: var(--cyan);   border-color: rgba(56,189,248,0.35);  background: rgba(56,189,248,0.08); }
.cat-res   { color: var(--amber);  border-color: rgba(245,158,11,0.35);  background: rgba(245,158,11,0.08); }
.cat-ctf   { color: var(--purple); border-color: rgba(167,139,250,0.35); background: rgba(167,139,250,0.08); }

.pc-estado {
  font-family: var(--font-mono); font-size: 10px;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.pc-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-done { background: var(--green); box-shadow: 0 0 6px rgba(0,232,122,0.7); }
.dot-wip  { background: var(--cyan);  box-shadow: 0 0 6px rgba(56,189,248,0.7); animation: dot-pulse 2s ease infinite; }
.dot-soon { background: var(--amber); box-shadow: 0 0 6px rgba(245,158,11,0.5); }
@keyframes dot-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.est-done { color: var(--green); }
.est-wip  { color: var(--cyan);  }
.est-soon { color: var(--amber); }

.pc-body { flex: 1; display: flex; flex-direction: column; }
.pc-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: -0.02em; line-height: 1.25;
  color: var(--text); margin-bottom: 0.6rem;
}
.recientes-grid .pc-title { font-size: clamp(18px, 2vw, 22px); }
.pc-desc {
  font-size: 13px; color: var(--text2); line-height: 1.75;
  flex: 1; margin-bottom: 1.25rem;
}
.recientes-grid .pc-desc { font-size: 14px; }

.pc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 1.25rem; }
.pc-tags span {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text3); background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); padding: 2px 9px; border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.proy-card:hover .pc-tags span { color: var(--text2); border-color: rgba(255,255,255,0.1); }

.pc-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.pc-fecha { font-family: var(--font-mono); font-size: 11px; color: var(--text3); }
.pc-link {
  font-family: var(--font-mono); font-size: 11px; color: var(--green);
  display: flex; align-items: center; gap: 5px; transition: gap 0.2s;
}
.proy-card:hover .pc-link { gap: 9px; }

.pc-recent-badge {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--cyan); background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.25);
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}

.proy-list-header,
.proy-row {
  display: grid;
  grid-template-columns: 140px 1fr 120px 1fr 90px 24px;
  gap: 1rem; align-items: center;
  padding: 0.875rem 1.25rem; font-size: 13px;
}
.proy-list-header {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.proy-row {
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: background 0.15s;
}
.proy-row:hover { background: rgba(255,255,255,0.025); }
.pr-cat { font-family: var(--font-mono); font-size: 11px; }
.pr-title { font-weight: 600; font-size: 14px; }
.pr-estado { font-family: var(--font-mono); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.pr-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pr-tags span {
  font-family: var(--font-mono); font-size: 10px; color: var(--text3);
  background: rgba(255,255,255,0.04); padding: 2px 7px; border-radius: 3px;
}
.pr-fecha { font-family: var(--font-mono); font-size: 11px; color: var(--text3); }
.pr-arrow { color: var(--text3); font-size: 14px; text-align: right; transition: color 0.2s; }
.proy-row:hover .pr-arrow { color: var(--green); }

.proy-empty { padding: 3rem 0; display: flex; justify-content: center; }
.empty-terminal {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; max-width: 480px; width: 100%;
}

@media (max-width: 1024px) {
  .recientes-grid,
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .proy-hero { min-height: 55vh; padding: 0 1.5rem 3.5rem; }
  .proy-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .proy-stats { flex-direction: row; flex-wrap: wrap; border-radius: var(--r-lg); }
  .pstat { border-bottom: none; border-right: 1px solid var(--border); padding: 1rem; flex: 1; }
  .pstat:last-child { border-right: none; }
  .pstat::before { width: 100%; height: 2px; bottom: auto; }
  .proy-container { padding: 0 1.5rem; }
  .recientes-grid,
  .cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .proy-list-header { display: none; }
  .proy-row {
    grid-template-columns: 1fr auto; grid-template-rows: auto auto auto;
    gap: 0.4rem 0.75rem; padding: 1rem;
    border: 1px solid var(--border); border-radius: var(--r);
    margin-bottom: 8px; background: var(--bg3);
  }
  .pr-cat { grid-column:1; grid-row:1; }
  .pr-title { grid-column:1; grid-row:2; font-size:15px; }
  .pr-estado { grid-column:2; grid-row:1; justify-content: flex-end; }
  .pr-tags { grid-column:1; grid-row:3; }
  .pr-fecha,.pr-arrow { display:none; }
}

@media (max-width: 768px) {
  .proy-hero {
    min-height: auto;
    padding: 80px 1.25rem 3rem;
  }
  .proy-hero::after { font-size: 80px; opacity: 0.5; right: 0; }
  .proy-hero-title { font-size: clamp(40px, 11vw, 64px); margin-bottom: 1.25rem; }
  .proy-hero-desc { font-size: 14px; padding-left: 1rem; }
  .proy-container { padding: 0 1.25rem; }
  .proy-main { padding: 2rem 0 5rem; }

  .toolbar { gap: 0.75rem; }
  .search-wrap { max-width: 100%; flex: 1; }
  .results-count { width: 100%; margin-left: 0; }

  .filters-panel { padding: 1rem; gap: 0.875rem; margin-bottom: 2rem; }
  .filter-group { width: 100%; }
  .pill { font-size: 10px; padding: 4px 10px; }
  .filter-reset { margin-left: 0; }

  .section-label { flex-wrap: wrap; gap: 0.5rem; }
  .section-label-count { margin-left: 0; }
  .section-divider { margin: 2rem 0; }
  .recientes-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-section { margin-bottom: 2.5rem; }
  .cat-section-name { font-size: 17px; }

  .proy-card { min-height: auto; padding: 1.25rem; }
  .pc-title { font-size: 15px !important; }
  .pc-desc { font-size: 13px; }
  .pc-index { font-size: 36px; }
  .recientes-grid .proy-card { min-height: auto; padding: 1.25rem; }
}

@media (max-width: 480px) {
  .proy-hero-title { font-size: clamp(34px, 12vw, 52px); }
  .pc-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pc-top-right { align-self: flex-end; }
}
