.custom-type-switch-container {
    display: flex;
    justify-content: center;
    /* margin: 20px 0; */
}

.custom-type-switch {
    position: relative;
    width: 100%;
    height: 40px;
    background-image: linear-gradient(to top, #4DF17F, #00C853);
    background: #1a1f36;
    /* Fondo negro para todo el switch */
    border-radius: 25px;
    display: flex;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.custom-type-switch input[type="radio"] {
    display: none;
}

.switch-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100%;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
    text-align: center;
    font-weight: 600;
    z-index: 2;
    color: #fff;
    /* Por defecto, todo el texto es blanco */
}

.switch-selection {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: linear-gradient(to top, #4DF17F, #00C853);
    border-radius: 25px;
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

/* Posición del indicador de selección */
input:nth-of-type(1):checked~.switch-selection {
    transform: translateX(0);
}

input:nth-of-type(2):checked~.switch-selection {
    transform: translateX(100%);
}

input:nth-of-type(1):checked~.switch-label:nth-of-type(1) {
    color: #000;
    /* Texto negro para la opción seleccionada */
}

input:nth-of-type(2):checked~.switch-label:nth-of-type(2) {
    color: #000;
    /* Texto negro para la opción seleccionada */
}