/* =========================================================
   CERNUNNOS · proceso.css
   Sección "Cómo Trabajamos" — timeline + panel sticky.
   ========================================================= */

.proceso-section {
    background: var(--color-primary); /* #001F3F */
    padding-left: 0;
    padding-right: 0;
    /* dw-section hereda overflow:hidden, que rompe position:sticky en el panel */
    overflow: visible;
}

/* ── Título centrado ──────────────────────────────────── */
.proceso-section .proceso-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.proceso-section .proceso-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: #ffffff;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.proceso-section .proceso-header p {
    color: rgba(255, 255, 255, 0.58);
    max-width: 52ch;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 16px;
}

/* ── Layout 2 columnas ────────────────────────────────── */
.proceso-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

/* ── Columna izquierda · pasos ────────────────────────── */
.proceso-steps { padding-top: var(--spacing-sm); }

.proceso-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

/* Cada paso ocupa al menos ~48 vh para que haya scroll suficiente
   y el panel sticky tenga tiempo de mostrar las 4 imágenes. */
.proceso-step { min-height: 48vh; }
.proceso-step:not(:last-child) { padding-bottom: 0; }

/* Línea vertical que conecta los iconos */
.proceso-step:not(:last-child) .proceso-icon-col::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 56px;
    /* llega hasta el icono del siguiente paso */
    height: calc(100% - 56px + 48vh - 54px);
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgba(57, 255, 20, 0.28) 0%,
        rgba(57, 255, 20, 0.04) 100%
    );
}

/* Columna del icono */
.proceso-icon-col {
    flex-shrink: 0;
    position: relative;
    width: 54px;
}

/* Badge cuadrado con gradiente verde→azul */
.proceso-icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0055b3 0%, #39FF14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.45s var(--ease-out-expo),
                box-shadow 0.45s ease;
    will-change: transform, box-shadow;
}

/* Número en esquina superior derecha */
.proceso-num {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0c111c;
    border: 1.5px solid rgba(57, 255, 20, 0.45);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Columna de texto */
.proceso-text-col { padding-top: 10px; }

.proceso-text-col h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 8px;
    line-height: 1.25;
    transition: color 0.35s ease;
}

.proceso-text-col p {
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.75;
    font-size: 15px;
    transition: color 0.35s ease;
}

/* ── Estado activo (set via JS) ───────────────────────── */
.proceso-step.is-active .proceso-icon-badge {
    transform: scale(1.2);
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.5),
                0 0 44px rgba(57, 255, 20, 0.22),
                0 8px 24px rgba(0, 85, 179, 0.35);
}

.proceso-step.is-active .proceso-text-col h3 { color: #ffffff; }
.proceso-step.is-active .proceso-text-col p  { color: rgba(255, 255, 255, 0.65); }

/* ── Panel sticky · derecha ───────────────────────────── */
.proceso-panel {
    position: sticky;
    top: 110px;
}

.proceso-images {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #060e1a;
}

/* Slides: apiladas, solo la activa visible */
.proceso-img-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
}

.proceso-img-slide.is-active { opacity: 1; }

.proceso-img-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info debajo del panel */
.proceso-panel-info {
    padding: 14px 2px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.proceso-counter {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    text-transform: uppercase;
}

.proceso-panel-title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
    .proceso-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .proceso-panel {
        position: relative;
        top: auto;
        order: -1;
    }

    .proceso-images { aspect-ratio: 16 / 9; }
}
