/* styles específicos para la página de proyectos */
.projects-hero {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--glass);
  background: var(--card);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
}

.projects-hero-text h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.projects-hero-text h2 i {
  color: var(--accent1);
}

.projects-hero-text p {
  color: var(--muted);
  line-height: 1.7;
}

.projects-hero-image img {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  object-fit: cover;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.project {
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
  border: 1px solid transparent;
}

.project.is-focused {
  transform: translateY(-8px);
  border-color: var(--accent1);
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.28);
}
.p-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
}
.project .project-content {
  padding: 0.9rem;
}
.filters {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.filter {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--muted-border, rgba(255,255,255,0.06));
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
}
.filter.active {
  background: var(--primary, #2f7be2);
  color: #fff;
}
.section-cta { text-align: center; margin: 2rem 0; }

/* Modal gallery basic */
.modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); align-items:center; justify-content:center; z-index:200; }
.modal[aria-hidden="false"] { display:flex; }
.modal-content { max-width:900px; width:100%; padding:1.25rem; }

@media (max-width: 640px) {
  .projects-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .projects-hero-text h2 {
    font-size: 24px;
  }

  .p-thumb { height: 120px; }
}
