/* Proyectos page - Proyecto abierto (diseño Figma) */

* { margin: 0; padding: 0; box-sizing: border-box; }

@keyframes proyectos-fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes proyectos-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes proyectos-scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.proyectos-page {
  background-color: #002829;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.proyectos-wrap {
  width: 100%;
  background: #002829;
  border-radius: 40px 40px 0 0;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Header (título) */
.proyectos-header {
  background: #002829;
  padding: 24px 24px 80px;
  position: relative;
}

/* Hero title */
.proyectos-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.8px;
  color: #008287;
  text-align: left;
  margin: 0;
  padding: 80px 134px;
  opacity: 0;
  animation: proyectos-fade-in-up 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.proyectos-hero-accent {
  font-weight: 700;
  font-style: italic;
  color: #8cffee;
}

/* Main grid */
.proyectos-main {
  background: #002829;
  padding: 0 30px;
  width: 100%;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  padding: 0 0 32px;
}

.proyectos-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 500px;
  padding: 24px;
  border-radius: 24px;
  text-decoration: none;
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.proyectos-card.visible {
  animation: proyectos-fade-in-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.proyectos-card:nth-child(1).visible { animation-delay: 0s; }
.proyectos-card:nth-child(2).visible { animation-delay: 0.1s; }
.proyectos-card:nth-child(3).visible { animation-delay: 0.2s; }
.proyectos-card:nth-child(4).visible { animation-delay: 0.3s; }

.proyectos-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.proyectos-card:nth-child(3),
.proyectos-card:nth-child(4) {
  border-radius: 32px;
}

.proyectos-card-bg {
  position: absolute;
  inset: 0;
}

.proyectos-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.proyectos-card:hover .proyectos-card-bg img {
  transform: scale(1.05);
}

.proyectos-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.proyectos-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proyectos-card-year {
  font-size: 20px;
  font-weight: 500;
  color: #80d3d5;
  letter-spacing: -0.48px;
}

.proyectos-card-title {
  font-size: 36px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.8px;
  margin: 0;
}

.proyectos-card-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.proyectos-card:hover .proyectos-card-arrow {
  opacity: 1;
  transform: scale(1.1);
}

.proyectos-card-arrow img {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 1024px) {
  .proyectos-hero-title {
    font-size: 48px;
  }

  .proyectos-grid {
    grid-template-columns: 1fr;
    padding: 0 0 24px;
  }

  .proyectos-card {
    min-height: 400px;
  }
}

@media (max-width: 640px) {
  .proyectos-header {
    padding: 16px 20px 80px;
  }

  .proyectos-hero-title {
    font-size: 36px;
  }

  .proyectos-grid {
    gap: 24px;
    padding: 0 0 24px;
  }

  .proyectos-card {
    min-height: 320px;
    padding: 20px;
  }

  .proyectos-card-title {
    font-size: 28px;
  }

  .proyectos-card-year {
    font-size: 18px;
  }

  .proyectos-card-arrow {
    right: 20px;
    bottom: 20px;
  }

  .proyectos-card-arrow img {
    width: 54px;
    height: 54px;
  }

  .proyectos-wrap {
    border-radius: 24px 24px 0 0;
  }
}
