.section-title{
  text-align: center;
  padding-bottom: 20px;
  font-size: 2rem;
}

.proyectos-section {
  padding: 90px;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.proyecto-card {
  background: white;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  transition: transform 0.3s ease;
  cursor: pointer;
  height: 280px;
}

.proyecto-card:hover {
  transform: translateY(-4px);
}

.proyecto-imagen {
  height: 220px;
  overflow: hidden;
}

.proyecto-img-top {
  object-position: 50% 40%;
}

.proyecto-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.proyecto-card:hover .proyecto-imagen img {
  transform: scale(1.05);
}

.proyecto-info {
  background: rgb(243, 243, 243);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 80px; /* antes 60px */
  width: 90%; /* menos ancho */
  margin: 0 auto; /* centrar horizontalmente */
  border-radius: 8px 8px 0 0;
  box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.proyecto-info h2 {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

.proyecto-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1;
}

.proyecto-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background-color: #8bc34a;
  border-bottom-left-radius: 100%; /* 🔁 Cuarto de círculo */
  border-top-right-radius: 8px; /* 🔁 Misma curva que .proyecto-info */
}

.proyecto-card:hover .proyecto-overlay {
  opacity: 1;
  visibility: visible;
}

.proyecto-overlay svg {
  width: 20px;
  height: 20px;
  stroke: white;
  position: absolute;
  top: 18px;
  right: 18px;
}

@media (max-width: 768px) {
  .proyectos-grid {
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .proyectos-section {
    padding: 60px 40px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .proyecto-info {
    height: 70px;
    width: 92%;
    padding: 0 14px;
  }

  .proyecto-info h2 {
    font-size: 17px;
  }

  .proyecto-overlay {
    width: 50px;
    height: 50px;
  }

  .proyecto-overlay::before {
    width: 50px;
    height: 50px;
  }

  .proyecto-overlay svg {
    width: 18px;
    height: 18px;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 768px) {
  .proyectos-section {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 1.6rem;
    text-align: center;
  }

  .proyectos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .proyecto-card {
    height: auto;
  }

  .proyecto-imagen {
    height: 200px;
  }

  .proyecto-info {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 12px;
    gap: 8px;
  }

  .proyecto-info h2 {
    font-size: 16px;
  }

  .proyecto-overlay {
    width: 45px;
    height: 45px;
  }

  .proyecto-overlay::before {
    width: 45px;
    height: 45px;
  }

  .proyecto-overlay svg {
    width: 16px;
    height: 16px;
    top: 14px;
    right: 14px;
  }

  .button-3d-container {
    justify-content: center;
    margin-top: 30px;
  }

  .btn-3d {
    width: 150px;
    height: 45px;
  }

  .btn-3d span {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.4rem;
  }

  .proyecto-info h2 {
    font-size: 15px;
  }

  .btn-3d {
    width: 130px;
    height: 42px;
  }

  .btn-3d span {
    font-size: 13px;
  }
}
