.selector-tarifas-nav {
    position: absolute;
    top: 10%;
    right: 10px;
    display: inline-block;
    min-width: 70px;
    /* padding: 12px; */
    /* background: #ffffff; */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
}
.switch-container {
    position: relative;
    width: 100%;
    height: 30px;
}

.switch-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Radio buttons invisibles que cubren todo el área */
.radio-input {
    position: absolute;
    width: 33.33%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.radio-input#tarifa_neto { left: 0; }
.radio-input#tarifa_pvp { left: 33.33%; }
.radio-input#tarifa_ambos { left: 66.66%; }

.switch-track {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border-radius: 18px;
    transition: background-color 0.3s ease;
    z-index: 0;
}

.switch-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 1.7em;
    height: 1.7em;
    border-radius: 50%;
    background: #f7f7f7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
/* Estados del Switch */
.radio-input:checked#tarifa_neto ~ .switch-track { background: #48c4e0; }
.radio-input:checked#tarifa_pvp ~ .switch-track { background: #2e2236; }
.radio-input:checked#tarifa_ambos ~ .switch-track { background: #4ab7c6; }

.radio-input:checked#tarifa_neto ~ .switch-thumb { transform: translateX(0); }
.radio-input:checked#tarifa_pvp ~ .switch-thumb { transform: translateX(calc(40% + 0.85em)); }
.radio-input:checked#tarifa_ambos ~ .switch-thumb { transform: translateX(calc(80% + 1.70em)); }

.selected-label {
    text-align: center;
    transition: opacity 0.2s ease;
    color: #4eb5c67a;
}

@media (max-width: 767px) {
  .selector-tarifas-nav {
     display: none;
}