/* WebGL Mosaic Plugin CSS */

.webgl-mosaic-container {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.webgl-mosaic-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.webgl-mosaic-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
}

/* Estilos para el grid del equipo */
.webgl-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-member-canvas {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
}

.member-info {
    padding: 25px;
    text-align: center;
}

.member-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}

.member-role {
    color: #666;
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.member-description {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .webgl-team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 15px;
    }
    
    .team-member-canvas {
        height: 250px;
    }
    
    .member-info {
        padding: 20px;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
    
    .member-role {
        font-size: 1rem;
    }
    
    .member-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .webgl-team-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .team-member-canvas {
        height: 220px;
    }
}

/* Estados de carga */
.webgl-mosaic-container.loading {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webgl-mosaic-container.loading::after {
    content: "Cargando...";
    color: #666;
    font-size: 14px;
}

/* Error state */
.webgl-mosaic-container.error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
}

.webgl-mosaic-container.error::after {
    content: "Error al cargar WebGL";
    color: #c62828;
    font-size: 14px;
}

/* Fade in animation */
@keyframes fadeInMosaic {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.webgl-mosaic-canvas.loaded {
    animation: fadeInMosaic 0.5s ease-out;
}