/* ============================================================
   KATARAS EXCAVACIONES — proceso.css
   ============================================================ */

/* ============================================================
   SECCIÓN PROCESO
   ============================================================ */
.proceso-section {
  position: relative;
  padding: 96px 0 80px;
  background-color: var(--color-bg);
  overflow: hidden;

  /* Misma textura diagonal que hero */
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 18px,
      rgba(27, 62, 150, 0.018) 18px,
      rgba(27, 62, 150, 0.018) 19px
    );
}

/* Franja lateral izquierda — coherencia con hero */
.proceso-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-yellow) 0%, var(--color-blue) 60%);
}

/* Acento geométrico fondo izquierdo (espejo del hero) */
.proceso-section::after {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(27, 62, 150, 0.05);
  pointer-events: none;
}

/* ── Contenedor general ── */
.proceso-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   ENCABEZADO DE SECCIÓN
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-blue);
  background: rgba(27, 62, 150, .07);
  border: 1px solid rgba(27, 62, 150, .18);
  border-left: 3px solid var(--color-yellow);
  border-radius: 2px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: .01em;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section-title .highlight {
  color: var(--color-blue);
  position: relative;
  display: inline;
}

/* Subrayado amarillo decorativo */
.section-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-yellow);
  border-radius: 2px;
}

.section-description {
  font-size: clamp(.92rem, 1.3vw, 1.02rem);
  line-height: 1.75;
  color: rgba(2, 2, 2, .65);
}

.section-description strong {
  color: var(--color-dark);
  font-weight: 700;
}

/* ============================================================
   TIMELINE DE PROCESO
   ============================================================ */
.proceso-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin: 0 auto 72px;
}

/* ── Cada paso ── */
.proceso-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 28px;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .5s ease, transform .5s ease;
}

/* Animación de entrada al hacer scroll */
.proceso-step.step-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delays escalonados */
.proceso-step:nth-child(1) { transition-delay: 0s; }
.proceso-step:nth-child(2) { transition-delay: .1s; }
.proceso-step:nth-child(3) { transition-delay: .2s; }
.proceso-step:nth-child(4) { transition-delay: .3s; }
.proceso-step:nth-child(5) { transition-delay: .4s; }

/* ── Marcador lateral (número + línea) ── */
.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--color-yellow);
  box-shadow: 0 4px 16px rgba(27, 62, 150, .28);
  position: relative;
  z-index: 1;
}

.step-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-blue) 0%, rgba(27, 62, 150, .18) 100%);
  margin: 6px 0;
  min-height: 40px;
}

/* Último paso: sin línea */
.proceso-step:last-child .step-line {
  display: none;
}

/* ── Contenido del paso ── */
.step-content {
  display: flex;
  gap: 20px;
  padding-bottom: 40px;
  align-items: flex-start;
}

.proceso-step:last-child .step-content {
  padding-bottom: 0;
}

/* Ícono del paso */
.step-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 4px;
  background: rgba(27, 62, 150, .06);
  border: 1px solid rgba(27, 62, 150, .14);
  border-bottom: 3px solid var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-blue);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.proceso-step:hover .step-icon {
  background: var(--color-blue);
  color: #fff;
  transform: translateY(-2px);
}

/* Texto principal */
.step-text {
  flex: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 8px;
  letter-spacing: .01em;
  line-height: 1.2;
}

.step-description {
  font-size: .92rem;
  line-height: 1.7;
  color: rgba(2, 2, 2, .65);
  margin: 0 0 12px;
}

.step-description strong {
  color: var(--color-dark);
  font-weight: 700;
}

/* Detalles (íconos inline) */
.step-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
}

.detail-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(2, 2, 2, .55);
}

.detail-item i {
  color: var(--color-yellow);
  font-size: .82rem;
  filter: drop-shadow(0 0 2px rgba(245, 168, 0, .3));
}

.detail-item strong {
  color: var(--color-blue);
}

/* CTA inline del paso 1 */
.step-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-yellow);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--color-yellow);
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
  position: relative;
  overflow: hidden;
}

.step-cta i { font-size: 1rem; }

.step-cta:hover,
.step-cta:focus {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 62, 150, .28);
  outline: none;
}

/* ============================================================
   BENEFICIOS ADICIONALES DEL PROCESO
   ============================================================ */
.proceso-beneficios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 72px;
  padding: 36px;
  background: rgba(27, 62, 150, .04);
  border: 1px solid rgba(27, 62, 150, .1);
  border-top: 4px solid var(--color-yellow);
  border-radius: 4px;
  position: relative;
}

/* Esquina decorativa */
.proceso-beneficios::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: rgba(245, 168, 0, .06);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.beneficio-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.beneficio-item > i {
  font-size: 1.4rem;
  color: var(--color-blue);
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 0 4px rgba(27, 62, 150, .2));
}

.beneficio-texto h4 {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.beneficio-texto p {
  font-size: .8rem;
  line-height: 1.55;
  color: rgba(2, 2, 2, .58);
  margin: 0;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.proceso-cta {
  text-align: center;
}

.cta-card {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 28px 36px;
  background: var(--color-blue);
  border-radius: 4px;
  border-bottom: 4px solid var(--color-yellow);
  box-shadow: 0 12px 48px rgba(27, 62, 150, .22);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
  justify-content: center;
}

/* Trama diagonal sobre la card azul */
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 14px,
    rgba(255, 255, 255, .03) 14px,
    rgba(255, 255, 255, .03) 15px
  );
  pointer-events: none;
}

.cta-icon {
  font-size: 2rem;
  color: var(--color-yellow);
  filter: drop-shadow(0 0 8px rgba(245, 168, 0, .4));
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cta-texto {
  text-align: left;
  position: relative;
  z-index: 1;
}

.cta-texto h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.2;
}

.cta-texto p {
  font-size: .88rem;
  color: rgba(255, 255, 255, .72);
  margin: 0;
  line-height: 1.5;
}

/* Botón CTA proceso */
.btn-cta-proceso {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--color-yellow);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--color-yellow);
  white-space: nowrap;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: color .25s ease, border-color .25s ease, transform .22s ease, box-shadow .22s ease;
}

.btn-cta-proceso::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}

.btn-cta-proceso > * { position: relative; z-index: 1; }

.btn-cta-proceso i:last-child {
  transition: transform .3s ease;
}

.btn-cta-proceso:hover,
.btn-cta-proceso:focus {
  color: var(--color-blue);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  outline: none;
}

.btn-cta-proceso:hover::before,
.btn-cta-proceso:focus::before {
  transform: translateX(0);
}

.btn-cta-proceso:hover i:last-child,
.btn-cta-proceso:focus i:last-child {
  transform: translateX(4px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .proceso-section .container { padding: 0 32px; }
  .proceso-beneficios { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .proceso-section {
    padding: 64px 0 60px;
  }

  .proceso-section .container { padding: 0 24px; }

  .section-header { margin-bottom: 52px; }

  .proceso-timeline { margin-bottom: 52px; }

  .proceso-step {
    grid-template-columns: 56px 1fr;
    gap: 0 18px;
  }

  .step-number {
    width: 44px; height: 44px;
    font-size: 1.1rem;
  }

  .step-icon {
    width: 44px; height: 44px;
    font-size: 1.2rem;
  }

  .step-content {
    gap: 14px;
    padding-bottom: 32px;
  }

  .proceso-beneficios {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 52px;
    padding: 28px 20px;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
    gap: 18px;
  }

  .cta-texto { text-align: center; }

  .btn-cta-proceso { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .proceso-section .container { padding: 0 16px; }

  .proceso-step {
    grid-template-columns: 44px 1fr;
    gap: 0 14px;
  }

  .step-content { flex-direction: column; gap: 10px; }

  .step-icon { display: none; }

  .step-details { flex-direction: column; gap: 6px; }

  .section-title .highlight::after { display: none; }
}