/* Estilos para el Widget de Módulos de Hexágonos GOS */

canvas {
    cursor: pointer;
}

.gos-main-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    border-radius: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
}

.gos-details-panel {
    flex-grow: 1;
    min-width: 300px;
    max-width: 450px;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.gos-details-panel.fading {
    opacity: 0;
}

.gos-details-panel img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gos-details-panel h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: #333;
}

.gos-details-panel h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #555;
}

.gos-details-panel p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 18px;
}

.gos-details-panel button {
    background-color: #28b5b5;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.gos-details-panel button:hover {
    background-color: #24a1a1;
    transform: translateY(-2px);
}

/* Media query para escritorio, invierte la dirección del flex */
@media screen and (max-width: 768px) {
    .gos-main-container {
        flex-direction: row;
        padding: 0;
        flex-wrap: wrap;
    }
    
    canvas {
        width: 70%;
        height: auto;
        max-width: 100%;
    }
    
    .gos-details-panel {
        width: 100%;
    }
}

@media screen and (max-width: 520px) {
    .gos-details-panel {
        flex-grow: 1;
        min-width: auto;
        max-width: 100%;
        padding: 25px;
    }
    
    canvas {
        width: 100%;
    }
    
    .gos-main-container {
        gap: 0px;
    }
    
    .gos-details-panel h2 {
        font-size: 29px;
    }
}