/* Estilos para How We Work */
.how-we-work {
    background-color: var(--white);
    padding: var(--section-padding);
    padding-top: 5rem;
}

.work-process {
    margin-top: var(--spacing-lg);
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.process-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 70px;
    left: 30px;
    height: calc(100% - 30px);
    width: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 30px;
    z-index: 1;
}

.step-content {
    background-color: var(--light-gray);
    border-radius: var(--border-radius-md);
    padding: 25px;
    flex-grow: 1;
}

.step-content h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.step-details {
    margin: 15px 0;
    padding-left: 20px;
}

.step-details li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.step-time {
    display: inline-block;
    background-color: rgba(44, 122, 231, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Estilos para Technologies */
.technologies {
    background-color: var(--white);
    padding: var(--section-padding);
}

.tech-categories {
    margin-top: var(--spacing-lg);
}

.tech-category {
    margin-bottom: 40px;
}

.tech-category h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    color: var(--text-color);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.tech-item {
    text-align: center;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon img {
    max-width: 100%;
    max-height: 100%;
}

.tech-item h4 {
    font-size: 1rem;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
    
    .process-step:not(:last-child):after {
        left: 30px;
        top: 60px;
        height: 30px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Estilos para la sección de portfolio fotográfico */
.photo-portfolio {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    width: 100%; /* Asegurar que el ítem ocupe todo el ancho disponible */
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.5s ease;
}

.portfolio-item .portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Asegurar que la imagen ocupe todo el ancho */
    height: 0; /* Usar padding-bottom para mantener la proporción */
    padding-bottom: 75%; /* Proporción 4:3 (75% = 3/4) */
}

.portfolio-item .portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.overlay-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.portfolio-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background-color: white;
    color: var(--primary-color);
}

.portfolio-cta {
    text-align: center;
    margin-top: 30px;
}

.portfolio-cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Animaciones para el filtrado */
.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Responsive */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .portfolio-item .portfolio-image {
        padding-bottom: 75%; /* Mantener proporción 4:3 */
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .portfolio-item {
        max-width: 100%; /* Asegurar que no exceda el ancho del contenedor */
        margin: 0 auto; /* Centrar el ítem */
    }
    
    .portfolio-item .portfolio-image {
        padding-bottom: 66.67%; /* Proporción 3:2 para móviles (66.67% = 2/3) */
        width: 100%;
        margin: 0; /* Eliminar cualquier margen */
    }
    
    .portfolio-filter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        margin: 0;
    }
}

@media (hover: none) {
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    }
    
    .overlay-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: translateY(0);
        text-align: left;
    }
    
    .overlay-content h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .overlay-content p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .portfolio-link {
        position: absolute;
        right: 10px;
        bottom: 10px;
        background: var(--primary-color);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
