/* Estilos específicos para la página de Proyectos - Estilo Cinematográfico */

/* Page Header cinematográfico */
.page-header {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 77, 77, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 20%, rgba(255, 107, 107, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #ff4d4d 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.page-header p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Filtros Cinematográficos */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 77, 77, 0.1);
}

.filter-btn {
  padding: 0.8rem 2rem;
  border: 1px solid rgba(255, 77, 77, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 77, 0.3), transparent);
  transition: left 0.5s;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #ff4d4d 0%, #ff6b6b 100%);
  color: white;
  border-color: #ff4d4d;
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
  transform: translateY(-2px);
}

/* Grid de proyectos cinematográfico */
.projects-grid-section {
  padding: 4rem 0;
  background: rgba(26, 26, 26, 0.8);
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 77, 77, 0.2);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #ff4d4d 0%, #ff6b6b 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 77, 77, 0.3);
  border-color: #ff4d4d;
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.9) contrast(1.1);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(255, 77, 77, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  color: white;
  padding: 1rem 2rem;
  border: 2px solid white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.project-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 77, 0.3), transparent);
  transition: left 0.5s;
}

.project-link:hover::before {
  left: 100%;
}

.project-link:hover {
  background: white;
  color: #ff4d4d;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.project-info {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: white;
  font-weight: 600;
}

.project-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.5;
}

/* Paginación cinematográfica */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 4rem;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 77, 77, 0.2);
  position: relative;
  overflow: hidden;
}

.pagination a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff4d4d 0%, #ff6b6b 100%);
  transition: left 0.3s;
}

.pagination a:hover::before,
.pagination a.active::before {
  left: 0;
}

.pagination a:hover,
.pagination a.active {
  color: white;
  border-color: #ff4d4d;
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
  transform: translateY(-2px);
}

/* Responsive cinematográfico */
@media (max-width: 768px) {
  .page-header {
    padding: 6rem 0 3rem;
  }

  .page-header h1 {
    font-size: 2.8rem;
  }

  .page-header p {
    font-size: 1.1rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  .filters {
    gap: 0.8rem;
    padding: 1.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 2.2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    gap: 0.5rem;
  }

  .pagination a {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
}
