/* =========================================================
   SCIMEC SAS — Portada de Proyectos destacados (imagen + título).
   Se carga después de proyectos-v1.css.
   Para revertir: quitar el <link> de este archivo y el bloque
   .projects-hero del HTML.
   ========================================================= */
.projects .projects-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 1120px;
  min-height: 540px;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius, 10px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  background: #0D1317;
}
.projects .projects-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 0%;
}
.projects .projects-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to left, rgba(10, 16, 20, 0.94) 0%, rgba(10, 16, 20, 0.78) 30%, rgba(10, 16, 20, 0.15) 58%, rgba(10, 16, 20, 0) 72%);
}
.projects .projects-hero-text {
  max-width: 400px;
  padding: 44px 48px;
  text-align: left;
}
.projects .projects-hero-text .section-tag,
.projects .projects-hero-text .section-title,
.projects .projects-hero-text .section-desc { text-align: left; margin-left: 0; margin-right: 0; }
.projects .projects-hero-text .section-tag { color: #FFA352; }
.projects .projects-hero-text .section-title {
  color: #FFFFFF;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  text-wrap: balance;
}
.projects .projects-hero-text .section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 18px;
  border-radius: 2px;
  background: #F1791F;
}
.projects .projects-hero-text .section-desc { color: rgba(255, 255, 255, 0.82); }
.projects .projects-hero + .projects-grid { margin-top: 0; }

@media (max-width: 900px) {
  .projects .projects-hero { min-height: 460px; }
  .projects .projects-hero-text { max-width: 46%; padding: 32px; }
}
@media (max-width: 760px) {
  .projects .projects-hero {
    display: block;
    min-height: 0;
  }
  .projects .projects-hero > img {
    position: relative;
    z-index: 0;
    display: block;
    height: 260px;
    object-position: 30% 10%;
  }
  .projects .projects-hero::after {
    background: linear-gradient(to top, rgba(10, 16, 20, 1) 0%, rgba(10, 16, 20, 0.85) 42%, rgba(10, 16, 20, 0) 62%);
  }
  .projects .projects-hero-text {
    position: relative;
    z-index: 1;
    max-width: none;
    margin-top: -60px;
    padding: 0 22px 26px;
  }
}
