/* ═══════════════ HEADER INTERNO PROYECTOS ═══════════════ */
.phero {
  position: relative;
  width: 100%;
  padding: 80px 0;
  overflow: hidden;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 450px;
}

.phero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* ═══════════════ LADO IZQUIERDO: TEXTO ═══════════════ */
.phero__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
}

.phero__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
  animation: pFadeInDown 1s ease-out 0.8s both;
}

.phero__title .accent {
  color: #EB690B;
  position: relative;
  display: inline-block;
}

.phero__desc {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 500px;
  animation: pFadeInUp 1s ease-out 1.6s both;
}

.phero__text .btn-outline {
  padding: 10px 24px;
  font-size: 0.85rem;
  display: inline-block;
  animation: pZoomIn 1s ease-out 2.4s both;
}

/* ═══════════════ LADO DERECHO: IMAGEN ═══════════════ */
.phero__visual {
  flex: 0 0 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pFadeIn 1s ease-out 0.8s both;
}.phero__img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
  transition: opacity 0.5s ease-in-out;
}/* ═══════════════ NATIVE KEYFRAMES PARA PROYECTOS HERO ═══════════════ */
@keyframes pFadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* ═══════════════ GALLERY HEADER ═══════════════ */
.proyectos-gallery {
  position: relative;
  z-index: 1;
}

.proyectos-gallery__inner {
  padding-top: 50px;
}

.gallery-header--delayed {
  animation-delay: 0.2s;
}

/* En la pagina de Proyectos mostramos la imagen completa sin recorte */
.proyectos-gallery .c-card__img-wrap {
  background: #fff;
}

.proyectos-gallery .c-card .c-card__img-wrap .c-card__img {
  object-fit: contain !important;
  object-position: center;
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.gallery-divider {
  width: 60px;
  height: 4px;
  background: #EB690B;
  margin: 0 auto;
  border-radius: 4px;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .phero {
    padding: 50px 0;
  }

  .phero__container {
    flex-direction: column;
    text-align: center;
  }

  .phero__text {
    align-items: center;
  }

  .phero__desc {
    margin: 0 auto 24px;
  }

  .phero__visual {
    width: 100%;
    min-height: 200px;
    padding-left: 0;
    padding-top: 20px;
  }

  .phero__img {
    max-height: 240px;
  }
}
