body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 120px; /* Un poco más grande para acompañar */
    border-radius: 15px;
    margin-bottom: 40px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.gallery {
    display: grid;
    /* Ajustado para cuadros más grandes: mínimo 240px */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.item {
    background: rgba(255, 255, 255, 0.3);
    padding: 25px; /* Más espacio interno */
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.image-box {
    width: 200px; /* Tamaño de imagen aumentado */
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Elimina el fondo blanco si la imagen es plana */
    mix-blend-mode: multiply; 
}

button {
    background-color: #d62828;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 4px 10px rgba(214, 40, 40, 0.2);
}

button:hover {
    background-color: #b01515;
    box-shadow: 0 6px 15px rgba(214, 40, 40, 0.3);
}

button.success {
    background-color: #2a9d8f !important;
    box-shadow: 0 4px 10px rgba(42, 157, 143, 0.2);
}

/* Estilos para el nuevo selector */
.selector-wrapper {
    margin-bottom: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.custom-select {
    width: 100%;
    padding: 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.custom-select:focus {
    border-color: #ff4d4d; /* Ajusta según tu color principal */
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.2);
}

/* Ajuste para que la galería muestre solo un item centrado */
.single-display {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 400px; /* Evita saltos de pantalla */
}

/* Mantén tus estilos de .item, .image-box y .btn-copiar que ya tenías */

/* Estilos para el menú desplegable */
.selector-container {
    margin-bottom: 30px;
    width: 100%;
    max-width: 320px;
}

#figura-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#figura-select:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: #ffb3b3;
}

/* Ajuste para que la figura individual se vea grande y centrada */
.gallery {
    display: flex;
    justify-content: center;
}

.selector-container {
    margin-bottom: 30px;
    width: 100%;
    max-width: 350px;
    padding: 0 20px;
}

#figura-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery {
    display: flex;
    justify-content: center;
    width: 100%;
}