/* ==========================================================================
   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: 1fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  grid-template-areas:
    "a b c"
    "a 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;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 
 * AJUSTE INDIVIDUAL DE IMÁGENES:
 * Usa object-position para mover el enfoque de cada foto.
 * 
 * object-position: X Y;
 *   X = horizontal (left, center, right, o porcentaje 0%-100%)
 *   Y = vertical (top, center, bottom, o porcentaje 0%-100%)
 *
 * Ejemplos:
 *   object-position: center top;    -> muestra la parte superior
 *   object-position: center 20%;    -> muestra un poco más abajo del tope
 *   object-position: center center; -> centrado (default)
 *   object-position: center 30%;    -> baja el encuadre un 30%
 *   object-position: left center;   -> enfoca el lado izquierdo
 */
.protejer-gallery__item--a img { object-position: center 20%; }  /* Operativa - vertical largo, muestra persona completa */
.protejer-gallery__item--b img { object-position: center 30%; }  /* Alta visibilidad */
.protejer-gallery__item--c img { object-position: center 25%; }  /* Administrativa */
.protejer-gallery__item--d img { object-position: center 15%; }  /* Línea Médica */
.protejer-gallery__item--e img { object-position: center 20%; }  /* Moda Casual */

.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: 1fr 1fr;
    grid-template-rows: 300px 250px 250px;
    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, 280px);
    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;
  }
}


/* Accent amarillo en capacidad productiva */
.mosaic-card--primary h3 {
  color: var(--yellow-400);
}

.mosaic-card--primary .capacity-mosaic__big-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* Alianza cards - accent en hover */
.alliance-card:hover {
  border-color: var(--color-primary);
}

.alliance-card__role {
  color: var(--color-primary);
  font-weight: 600;
}

/* === PROPUESTA DE VALOR === */
.valor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.valor-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.valor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.valor-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 40px rgba(11, 93, 24, 0.08);
  transform: translateY(-4px);
}

.valor-card:hover::before {
  opacity: 1;
}

.valor-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light), rgba(114, 190, 68, 0.15));
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.valor-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}

.valor-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-foreground-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.valor-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.valor-card__list li {
  position: relative;
  font-size: var(--font-size-sm);
  color: var(--color-foreground-secondary);
  padding-left: 20px;
  line-height: 1.5;
}

.valor-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.7;
}

.valor-card__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-foreground-secondary);
  line-height: 1.6;
  padding: var(--space-4);
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
}

.valor-card__detail-label {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 992px) {
  .valor-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}
