/**
 * Estilos para Simple Color Selector
 */

/* Contenedor principal - completamente transparente */
.simple-color-selector-container {
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
    text-align: center;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Forzar transparencia para cualquier elemento del contenedor */
.simple-color-selector-container * {
    background-image: none !important;
}

/* Título del selector */
.selector-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
    width: 100%;
    display: block;
}

/* Contenedor de imagen */
.color-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    background: none !important;
}

/* Imagen del color seleccionado */
.color-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: scale(1);
    border-radius: 0;
    background: none !important;
}

/* Efectos de transición para la imagen */
.color-image.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

.color-image.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Mensaje cuando no hay imagen */
.no-image {
    padding: 80px 20px;
    background-color: transparent;
    border: 1px dashed #ccc;
    text-align: center;
    color: #888;
    border-radius: 0;
}

/* Área de selección de colores */
.color-selection-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    background: none !important;
}

/* Color: Texto que aparece antes de los selectores */
.color-name-display {
    font-size: 16px;
    font-weight: normal;
    margin: 10px auto 5px;
    color: #333;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none !important;
}

.color-name-display span {
    font-weight: normal;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    margin-left: 5px;
}

/* Efecto de subrayado para el nombre del color */
.color-name-display span:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #333;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.color-name-display span.animate:after {
    transform: scaleX(1);
}

/* Contenedor de selectores de color - estilo Figma */
.color-options-wrapper {
    border: solid 1px #B9B9B9;
    padding: 12px 20px 12px 20px;
    border-radius: 40px;
    display: inline-block;
    margin: 10px auto;
    background: transparent !important;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    border: none !important;
}

/* Opciones de color individuales */
.color-option {
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #B9B9B9;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Tamaños de selector */
.color-options.small .color-option {
    width: 24px;
    height: 24px;
}

.color-options.medium .color-option {
    width: 32px;
    height: 32px;
}

.color-options.large .color-option {
    width: 40px;
    height: 40px;
}

/* Efectos al pasar el ratón */
.color-option:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px #B9B9B9;
    z-index: 2;
}

/* Color activo */
.color-option.active {
    border: 1px solid #333;
    box-shadow: 0 0 0 2px #B9B9B9;
}

/* El punto blanco en el centro del color activo */
.color-option.active:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* Nota sobre variación de colores */
.selector-note {
    margin-top: 20px;
    font-size: 12px;
    color: #888;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    background: none !important;
}

/* Eliminar cualquier posible fondo de la columna de WPBakery */
.wpb_wrapper, .vc_column-inner {
    background: none !important;
}

/* Ajustes responsive */
@media screen and (max-width: 768px) {
    .color-name-display {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .color-options {
        gap: 8px;
    }
    
    .color-options.medium .color-option {
        width: 28px;
        height: 28px;
    }
    
    .color-options.large .color-option {
        width: 34px;
        height: 34px;
    }
}