/* ============================================================
   PROCESO.CSS — Estilos exclusivos de "Nuestro Proceso"
   ============================================================ */

/* HEADER */
.proceso-header {
  margin-top: var(--navbar-height);
  padding: 50px 40px 40px;
  padding-top: calc(var(--navbar-height) + 30px);
  text-align: center;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}
.proceso-main-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
}
.proceso-intro {
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  text-align: center;
}
.proceso-etapas-line {
  font-size: 1rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.etapas-badge {
  background: var(--color-primary);
  color: white;
  border-radius: 20px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ETAPA SECTION */
.etapa-section {
  padding: 0;
  background: var(--color-bg);
  text-align: center;
  max-width: 100%;
  margin: 0;
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.etapa-section:nth-child(even) {
  background: var(--color-bg);
  max-width: 100%;
  padding: 0;
}
.etapa-section:nth-child(even) .etapa-image-wrap,
.etapa-section:nth-child(even) .etapa-text,
.etapa-section:nth-child(even) .pills-row {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* IMAGE WRAP */
.etapa-image-wrap {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: none;
  width: 100%;
}
.etapa-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}
.etapa-content-overlay { z-index: 2; }
.etapa-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s ease;
}
.etapa-image-wrap:hover img {
  transform: scale(1.03);
}
.etapa-label {
  position: relative;
  background: transparent;
  backdrop-filter: none;
  text-align: center;
  padding: 0;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: white;
  text-transform: uppercase;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.etapa-content-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  z-index: 2;
}
.etapa-content-overlay .etapa-label {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  font-size: 2.4rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.etapa-content-overlay .etapa-text {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  text-align: center;
}
.etapa-content-overlay .pills-row {
  margin: 16px auto;
}

/* TEXT */
.etapa-text {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 16px;
  text-align: center;
}

/* PILLS */
.pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px auto;
}
.pill-tag {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  border-radius: 24px;
  padding: 9px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}
.pill-tag:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
.pills-full {
  flex-direction: column;
  align-items: center;
}
.pill-wide {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

/* HIGHLIGHT */
.highlight-green {
  background: var(--color-primary);
  color: white;
  border-radius: 20px;
  padding: 4px 14px;
  font-weight: 700;
  display: inline-block;
}

/* LOIMOS */
.loimos-section {
  background: var(--color-bg-alt);
  padding: 0;
}
.loimos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  width: 100%;
  align-items: center;
}
.loimos-image {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loimos-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: 300px !important;
  object-fit: contain !important;
}
.loimos-content {
  padding: 60px 70px 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.loimos-title {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--color-dark);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.loimos-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* Object position per image */
img[src*="industrias.png"]          { object-position: center 10% !important; }
img[src*="desinfeccion-interior.png"]{ object-position: center 10% !important; }
img[src*="industrias2.png"]         { object-position: center 15% !important; }
img[src*="barrios.png"]             { object-position: center center !important; }

/* MOBILE */
@media (max-width: 768px) {
  .proceso-header { padding: 40px 20px 30px; }
  .etapa-section { padding: 0; }
  .loimos-section { padding: 0; }
  .etapa-image-wrap img { height: 320px; }
  .pill-wide { max-width: 100%; }
  .etapa-content-overlay { padding: 24px 20px; }
  .etapa-content-overlay .etapa-label { font-size: 1.4rem; letter-spacing: 2px; margin-bottom: 12px; }
  .etapa-content-overlay .etapa-text { font-size: 0.9rem; }
  .loimos-inner { grid-template-columns: 1fr; }
  .loimos-content { padding: 20px 24px 36px; }
  .loimos-image { padding: 24px; }
}

/* ── Proceso mobile: eliminar espacios en blanco entre etapas ── */
@media (max-width: 768px) {
  .etapa-section {
    min-height: 0 !important;
    display: block !important;
  }
  .etapa-image-wrap img {
    height: 420px !important;
  }
  .etapa-content-overlay {
    padding: 28px 18px !important;
  }
  .etapa-content-overlay .etapa-label {
    font-size: 1.2rem !important;
    letter-spacing: 1px !important;
    margin-bottom: 10px !important;
  }
  .loimos-inner {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }
  .loimos-image img {
    height: 200px !important;
  }
}
