/* Sección principal */
.trabajos-section {
    padding: 80px 20px; /* Más espacio alrededor */
    background: #000;
    text-align: center;
    color: #fff;
    min-height: 100vh;
    overflow: hidden;
}

/* Título */
.trabajos-title {
    font-size: 3rem; /* Título grande */
    margin-bottom: 30px; 
}

/* Subtítulo */
.trabajos-subtitle {
    margin: 0 auto 60px;
    font-size: 20px;
    max-width: 65%;
}

/* Carrusel */
.trabajos-carousel {
    position: relative;
    height: 500px;
    width: 100%;
    margin: 0 auto 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Slides del carrusel */
.trabajos-slide {
    position: absolute;
    transition: transform 0.5s ease, opacity 0.5s ease;
    width: 33%;
    height: 100%;
    opacity: 0.5;
    z-index: 1;
}

.trabajos-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.trabajos-slide.active {
    width: 50%;
    transform: scale(1.1);
    opacity: 1;
    z-index: 3;
}

.trabajos-slide.prev {
    transform: translateX(-120%) scale(0.9);
    opacity: 0.7;
}

.trabajos-slide.next {
    transform: translateX(120%) scale(0.9);
    opacity: 0.7;
}

/* Navegación (Flechas) */
.trabajos-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.trabajos-nav-left,
.trabajos-nav-right {
    cursor: pointer;
    width: 70px; 
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent; 
    box-shadow: none; 
    transition: transform 0.2s ease;
}

.trabajos-nav-left img,
.trabajos-nav-right img {
    width: 40px; 
    height: 40px;
    filter: brightness(100%);
}

.trabajos-nav-left:hover,
.trabajos-nav-right:hover {
    transform: scale(1.2);
}

/* Botón "Visitar" */
.trabajos-button {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-top: 20px; /* Espacio por defecto */
}

.trabajos-button:hover {
    background: #eee; 
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

/* =========================
   MEDIA QUERIES
   ========================= */

/* Para pantallas menores a 768px (tablets, móviles grandes) */
@media (max-width: 768px) {
    .trabajos-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .trabajos-subtitle {
        font-size: 16px;
        max-width: 80%;
        margin-bottom: 40px;
    }
    
    .trabajos-carousel {
        height: 300px; /* Reducir la altura en pantallas más chicas */
    }
    
    .trabajos-slide {
        width: 50%;
    }
    
    .trabajos-slide.active {
        width: 60%;
    }
    
    .trabajos-nav-left, .trabajos-nav-right {
        width: 50px;
        height: 50px;
    }
    
    .trabajos-nav-left img, .trabajos-nav-right img {
        width: 25px;
        height: 25px;
    }
    
    .trabajos-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .trabajos-carousel {
        height: 250px;
        overflow: visible; /* Permite que se vean las slides en los costados */
        margin-bottom: 20px; /* Mantén la separación con el botón */
    }
    
    .trabajos-slide {
        width: 60%;
    }
    
    .trabajos-slide.active {
        width: 70%;
        transform: scale(1.05);
    }
    
    .trabajos-slide.prev {
        transform: translateX(-90%) scale(0.9);
    }
    
    .trabajos-slide.next {
        transform: translateX(90%) scale(0.9);
    }

    .trabajos-button {
        margin-top: 0; /* Mantén el botón cerca del carrusel */
        margin-bottom: 40px; /* Incrementa la separación del botón con la siguiente sección */
    }
}


