/* ===================================================
   PROCESO — Pesquera La Pequeña Roma
   Timeline layout with zoom-on-hover images
   =================================================== */

.proceso {
  background: var(--bg-proceso);
  padding-bottom: 120px;
}

.proceso .etiqueta-seccion { color: var(--cyan-claro); }
.proceso .titulo-seccion   { color: var(--blanco); }
.proceso .titulo-seccion em { color: var(--dorado, #d4a843); }

/* ── Grid ── */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* ── Horizontal timeline line behind cards ── */
.proceso-grid::before {
  content: '';
  position: absolute;
  top: 260px; /* roughly center of the image area */
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212,168,67,0.35) 15%,
    rgba(212,168,67,0.35) 85%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Step card ── */
.proceso-paso {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 12px;
  transition: transform 0.35s ease;
}

.proceso-paso:hover {
  transform: translateY(-6px);
}

/* ── Image wrapper: tall, clips zoom ── */
.paso-foto-wrap {
  overflow: hidden;
  border-radius: 16px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.55);
  transition: box-shadow 0.4s ease;
}

.proceso-paso:hover .paso-foto-wrap {
  box-shadow: 0 20px 60px rgba(0,0,0,0.7),
              0 0 0 2px rgba(212,168,67,0.50);
}

/* ── Photo: tall aspect ratio ── */
.paso-foto {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: brightness(0.9);
}

.proceso-paso:hover .paso-foto {
  transform: scale(1.18);
  filter: brightness(1);
}

/* ── Zoom icon overlay ── */
.paso-foto-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,15,35,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
  border-radius: 16px;
}

.proceso-paso:hover .paso-foto-wrap::after {
  background: rgba(5,15,35,0.12);
}

.paso-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212,168,67,0.90);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

.paso-zoom-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.proceso-paso:hover .paso-zoom-icon {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ── Timeline dot over the connector line ── */
.paso-body {
  padding: 22px 4px 0;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ── Step number: bold, prominent ── */
.paso-numero {
  font-family: var(--fuente-titulo);
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--dorado, #d4a843);
  opacity: 0.45;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.proceso-paso:hover .paso-numero {
  opacity: 1;
  transform: scale(1.05);
}

/* ── Icon box ── */
.paso-icono {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(93,173,226,0.12);
  border: 1px solid rgba(93,173,226,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--cyan-claro, #5dade2);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.paso-icono svg { width: 22px; height: 22px; }

.proceso-paso:hover .paso-icono {
  background: rgba(212,168,67,0.15);
  border-color: rgba(212,168,67,0.45);
  color: var(--dorado, #d4a843);
  transform: scale(1.1);
}

/* ── Step title ── */
.paso-titulo {
  font-family: var(--fuente-titulo);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}

.proceso-paso:hover .paso-titulo {
  color: var(--dorado, #d4a843);
}

.paso-titulo::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--dorado, #d4a843);
  border-radius: 2px;
  margin: 8px auto 0;
  transition: width 0.4s ease;
}

.proceso-paso:hover .paso-titulo::after {
  width: 36px;
}

/* ── Description ── */
.paso-descripcion {
  font-size: 0.81rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.42);
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .proceso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .proceso-grid::before { display: none; }
  .proceso-paso { padding: 0; }
  .paso-foto { aspect-ratio: 4/3; }
}

@media (max-width: 600px) {
  .proceso-grid { grid-template-columns: 1fr; }
}
