/**
 * Switch real con animación para tarifas (sin/con IVA).
 * Plugin Tarifas Visalia – sustituye el cambio de imagen por un toggle animado.
 */

.tarifas-visalia-switch-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* Pista del switch (pill) */
.tarifas-visalia-switch {
    display: inline-flex;
    align-items: center;
    width: 2.75rem;
    height: 1.5rem;
    padding: 0.15rem;
    background-color: #cbd5e0;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    box-sizing: border-box;
}

.tarifas-visalia-switch:hover {
    background-color: #b0bcc9;
}

/* Estado activo (con impuestos): pista destacada */
.tarifas-visalia-switch.is-on {
    background-color: #3182ce;
}

.tarifas-visalia-switch.is-on:hover {
    background-color: #2c5282;
}

/* Círculo deslizante (thumb) */
.tarifas-visalia-switch__thumb {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    flex-shrink: 0;
}

/* Posición "on" = con impuestos: thumb a la derecha (pista 2.75rem - padding - thumb 1.2rem) */
.tarifas-visalia-switch.is-on .tarifas-visalia-switch__thumb {
    transform: translateX(1.25rem);
}

/* Accesibilidad: foco visible */
.tarifas-visalia-switch:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3182ce;
}

.tarifas-visalia-switch:focus:not(:focus-visible) {
    box-shadow: none;
}
