/* ==========================================================================
   ProTejer — Page-specific styles
   Aesthetic: Industrial elegance — green overlays on factory imagery
   ========================================================================== */

/* --- HERO BANNER --- */
.protejer-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.protejer-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.protejer-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.7);
}

.protejer-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(11, 93, 24, 0.88) 0%,
    rgba(26, 92, 46, 0.75) 40%,
    rgba(114, 190, 68, 0.45) 100%
  );
  mix-blend-mode: multiply;
}

.protejer-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 160px 20px 80px;
}

.protejer-hero__content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.protejer-hero__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* --- GALERÍA DE PROCESO (Bento Grid) --- */
.protejer-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  grid-template-areas:
    "a a b"
    "c d e";
  gap: var(--space-4);
}

.protejer-gallery__item {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.protejer-gallery__item--a { grid-area: a; }
.protejer-gallery__item--b { grid-area: b; }
.protejer-gallery__item--c { grid-area: c; }
.protejer-gallery__item--d { grid-area: d; }
.protejer-gallery__item--e { grid-area: e; }

.protejer-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.protejer-gallery__item:hover img {
  transform: scale(1.05);
}

/* Overlay SIEMPRE visible */
.protejer-gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  background: linear-gradient(
    to top,
    rgba(11, 93, 24, 0.85) 0%,
    rgba(11, 93, 24, 0.3) 45%,
    transparent 75%
  );
}

.protejer-gallery__overlay h4 {
  color: #fff;
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.protejer-gallery__overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- CAPACITY HERO (bloque verde con imagen difuminada) --- */
.protejer-capacity-hero {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.protejer-capacity-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) brightness(0.5);
  z-index: -2;
}

.protejer-capacity-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11, 93, 24, 0.82) 0%,
    rgba(26, 92, 46, 0.7) 50%,
    rgba(11, 93, 24, 0.85) 100%
  );
  z-index: -1;
}

.protejer-capacity-hero .mosaic-card__icon,
.protejer-capacity-hero h3,
.protejer-capacity-hero p {
  position: relative;
  z-index: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .protejer-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 260px 260px 260px;
    grid-template-areas:
      "a a"
      "b c"
      "d e";
  }
  .protejer-hero {
    min-height: 420px;
  }
}

@media (max-width: 600px) {
  .protejer-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 220px);
    grid-template-areas:
      "a"
      "b"
      "c"
      "d"
      "e";
  }
  .protejer-hero {
    min-height: 360px;
  }
  .protejer-hero__content {
    padding: 130px 16px 60px;
  }
  .protejer-hero__content h1 {
    font-size: 1.75rem;
  }
}
