.image-section {
    padding: 0 0 70px 0;
    width: 106%;
    height: 500px;
    display: flex;
    overflow: hidden;
}

.image-container {
    width: 34%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transform: skewX(-10deg);
    transform-origin: left;
    transition: all 0.3s ease;
}

.image-container img {
    width: 170%;
    height: 100%;
    object-fit: cover;
    transform: skewX(10deg) translateX(-20%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.image-container:first-child {
    margin-left: -5%;
}

.image-container:last-child {
    margin-right: -7%;
}

.content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: skewX(10deg);
    pointer-events: none;
}

.image-title {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 15px;
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    font-style: normal;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.toggle-btn {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    background-color: #ffc000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease, background-color 0.2s linear;
}

.toggle-btn:hover {
    transform: scale(1.2);
    background-color: #d4cf1d;
    color: #222;
    border-color: rgba(208, 255, 0, 0.5);
}

.hidden-text {
    position: absolute;
    font-size: 20px;
    bottom: 20px;
    width: 80%;
    color: white;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.7);
    padding: 15px;
    border-radius: 5px;
    transform: translateY(20px);
}

.image-container:hover {
    z-index: 3;
}

.image-container:hover img {
    transform: skewX(10deg) translateX(-20%) scale(1.15);
}

.image-section:hover .image-container:not(:hover) img {
    transform: skewX(10deg) translateX(-20%) scale(0.9);
    filter: brightness(0.7);
}

.image-container.active .hidden-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.image-container:hover .content-wrapper:not(.active) {
    opacity: 0.8;
}

.image-container.active .toggle-btn {
    background-color: #222;
    color: #ffc000;
    transform: rotate(45deg);
}

/* Estilos para versión Mobile */
@media screen and (max-width: 768px) {
    .image-section {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        height: 400px;
        width: 100%;
        gap: 5px;
    }

    .image-container {
        flex: 0 0 90%;
        height: 100%;
        transform: none;
        scroll-snap-align: center;
        transition: transform 0.3s ease;
    }

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
    }

    .image-container:first-child,
    .image-container:last-child {
        margin: 0;
    }

    .image-container.active .toggle-btn {
        background-color: #222;
        color: #ffc000;
        transform: none;
    }

    .image-container:hover img {
        transform: none;        
    }
    
    .image-section:hover .image-container:not(:hover) img {
        transform: none;
    }
    
    .image-container.active .hidden-text {
        transform: none;
    }

    .content-wrapper {
        transform: none;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .image-title {
        margin-bottom: 110px;
    }
    
}