/* Process Section */
.process {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    background-color: var(--color-primary);
    padding-top: 8rem; /* Aumentar espacio superior para balancear la quote previa */
}

.process .section-title {
    color: var(--color-background);
    background: none;
    -webkit-text-fill-color: var(--color-background);
}

.process .section-subtitle {
    color: rgba(234, 224, 213, 0.8);
}

/* Timeline - Original styles for reference */
.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 900px;
    overflow: visible;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(251, 182, 115, 0.6), rgba(255, 255, 255, 0.4));
    transform: translateX(-50%);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: visible;
}
.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}
.timeline-item .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.timeline-item .content {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem;
    width: 350px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    overflow: visible;
}

/* Optimizar texto para tarjetas más pequeñas */
.timeline-item .content h3 {
    font-size: 1rem;
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
    font-weight: 600;
}

.timeline-item .content p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
    color: var(--color-neutral-700);
}

/* Estilos para GIFs del proceso */
.process-gif {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 2;
    /* Color Prussian Blue (#102542) para matchear el tema con alto contraste sobre blanco */
    filter: brightness(0) saturate(100%) invert(11%) sepia(66%) saturate(1370%) hue-rotate(202deg) brightness(96%) contrast(98%);
}

.process-gif-static {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 1;
    position: relative;
    z-index: 1;
    /* Color Prussian Blue (#102542) para matchear el tema con alto contraste sobre blanco */
    filter: brightness(0) saturate(100%) invert(11%) sepia(66%) saturate(1370%) hue-rotate(202deg) brightness(96%) contrast(98%);
}


/* Hover en cualquier parte del timeline-item activa el efecto completo - Solo en pantallas grandes */
@media (min-width: 769px) {
    .timeline-item:hover .process-gif {
        opacity: 1;
        filter: drop-shadow(0 4px 8px rgba(0, 71, 255, 0.3));
        transition: all 0.3s ease;
    }

    .timeline-item:hover .process-gif-static {
        opacity: 0;
        transition: all 0.3s ease;
    }

    .timeline-item:hover .content {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .timeline-item:hover .icon {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 71, 255, 0.2);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Asegurar que el timeline-item en sí no se transforme */
.timeline-item {
    transform: none !important;
}

/* Icono de calendario más grande */
.timeline-item:nth-child(2) .process-gif,
.timeline-item:nth-child(2) .process-gif-static {
    width: 48px;
    height: 48px;
}

/* Desactivar efectos hover en pantallas pequeñas */
@media (max-width: 768px) {
    /* Proceso de trabajo - margin para iconos */
    .process {
        padding: 8rem 1.5rem 0 1.5rem;
    }
    
    .process .container {
        padding: 0 2rem !important;
    }

    .timeline {
        margin: 0;
    }

    .timeline-item:hover .process-gif {
        opacity: 0 !important;
        filter: none !important;
    }

    .timeline-item:hover .process-gif-static {
        opacity: 1 !important;
    }

    .timeline-item:hover .content {
        transform: none !important;
        box-shadow: none !important;
    }

    .timeline-item:hover .icon {
        transform: none !important;
        box-shadow: none !important;
    }

    /* Timeline items center hover effect for mobile */
    .timeline-item.center-hover .content {
        transform: translateY(-8px) scale(1.02) !important;
        box-shadow: 0 20px 40px rgba(0, 71, 255, 0.15) !important;
        transition: all 0.3s ease !important;
    }
    
    .timeline-item.center-hover .icon {
        transform: translateY(-8px) scale(1.02) !important;
        box-shadow: 0 8px 25px rgba(0, 71, 255, 0.2) !important;
        transition: all 0.3s ease !important;
    }
    
    .timeline-item.center-hover .icon img {
        transform: scale(1.1) !important;
        transition: transform 0.3s ease !important;
    }
    
    .timeline-item.center-hover .process-gif {
        opacity: 1 !important;
        filter: drop-shadow(0 4px 8px rgba(0, 71, 255, 0.3)) !important;
    }
    
    .timeline-item.center-hover .process-gif-static {
        opacity: 0 !important;
    }

    .timeline-item .icon {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }
  
    .timeline-item .icon img {
        width: 75% !important;
        height: 75% !important;
        object-fit: contain !important;
    }
  
    /* Ajustar tamaño de GIFs para que coincidan con los iconos */
    .timeline-item .process-gif,
    .timeline-item .process-gif-static {
        width: 75% !important;
        height: 75% !important;
    }
  
    /* Asegurar centrado perfecto de GIFs en pantallas pequeñas */
    .timeline-item .process-gif {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: auto !important;
    }

    .timeline-item h3 {
        font-size: clamp(1.3rem, 3.5vw, 1.5rem) !important;
    }
}

